:root {
    --bg: #fafbfc;
    --card: #ffffff;
    --ink: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --brand: #4f46e5;
    --brand-dark: #4338ca;
    --accent: #f59e0b;
    --radius: 16px;
    --shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
}

.wrap {
    max-width: 1030px;
    margin: 0 auto;
    padding: 0 15px
}

/* Hero */
.hero {
    padding-top: 60px;
    text-align: center;
    background: linear-gradient(180deg, #eef2ff 0%, var(--bg) 100%)
}

.badge {
    display: inline-block;
    background: #e0e7ff;
    color: var(--brand-dark);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 16px
}

h1 {
    font-size: clamp(28px, 4.5vw, 44px);
    font-weight: 800;
    letter-spacing: -.5px;
    line-height: 1.25;
    background: linear-gradient(90deg, #4f46e5, #7c3aed);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}


.hero p {
    max-width: 640px;
    margin: 16px auto 0;
    color: var(--muted);
    font-size: 16px
}

/* country */
.country ul {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(6, 1fr);
    margin: 64px auto 0 auto;
}
.country li{
    list-style: none;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
    line-height: 150%;
    padding:20px 0 ;
}
.country .active{
    background: #4338ca;
    color: #fff;
    border: none;
}
.country .active a{
    color: #fff;
}

/* Calculator */
.calc {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    overflow: hidden;
    margin-top: 20px
}

.calc-form {
    padding: 32px;
    border-right: 1px solid var(--line)
}

.calc-result {
    padding: 32px;
    background: linear-gradient(160deg, #312e81 0%, #4f46e5 100%);
    color: #fff
}

.calc-result h2 {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #c7d2fe;
    margin-bottom: 20px
}

h2.form-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px
}

input,
select {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    color: var(--ink);
    background: #fff;
    transition: border-color .15s, box-shadow .15s
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, .15)
}

.field {
    margin-bottom: 16px
}
.field label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    text-align: left;
    color: var(--muted);
    display: block;
}

.field small {
    display: block;
    font-size: 12px;
    color: #94a3b8;
    margin-top: 4px;
    text-align: left;
}

.btn {
    display: inline-block;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: var(--brand);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s, transform .1s;
    margin-top: 8px
}

.btn:hover {
    background: var(--brand-dark)
}

.btn:active {
    transform: scale(.985)
}

.big-rate {
    font-size: 44px;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.1
}

.big-rate small {
    font-size: 20px;
    font-weight: 600;
    color: #c7d2fe
}

.rate-label {
    font-size: 13px;
    color: #c7d2fe;
    margin-bottom: 4px
}

.divider {
    height: 1px;
    background: rgba(255, 255, 255, .18);
    margin: 20px 0
}

.kv {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 10px
}

.kv span:first-child {
    color: #c7d2fe
}

.kv b {
    font-weight: 700
}

.kv.ideal b {
    color: #fcd34d
}

.note {
    font-size: 12px;
    color: #a5b4fc;
    margin-top: 16px;
    line-height: 1.6
}

details.vat {
    margin-top: 14px;
    background: rgba(255, 255, 255, .08);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px
}

details.vat summary {
    cursor: pointer;
    font-weight: 600
}

details.vat p {
    margin-top: 8px;
    color: #c7d2fe
}

/* Sections */
section {
    padding-top: 60px;
}

h2.sec {
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 800;
    letter-spacing: -.4px;
    margin-bottom: 20px
}

h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 28px 0 10px
}

.intro p {
    color: #334155;
    margin-bottom: 14px;
}

.intro ul {
    color: #334155;
    margin: 0 0 14px 22px
}

.intro li {
    margin-bottom: 8px
}

/* Country table */
.table-scroll {
    overflow-x: auto;
    margin-top: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius)
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: 14px;
    min-width: 640px
}

th {
    background: #f1f5f9;
    text-align: left;
    padding: 12px 16px;
    font-weight: 700;
    color: #334155;
    white-space: nowrap
}

td {
    padding: 12px 16px;
    border-top: 1px solid var(--line);
    color: #334155;
    white-space: nowrap
}

tr:hover td {
    background: #f8fafc
}

/* FAQ */
.faq details {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
}

.faq summary {
    padding: 18px 20px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px
}

.faq summary::-webkit-details-marker {
    display: none
}

.faq summary::after {
    content: "+";
    font-size: 22px;
    color: var(--brand);
    font-weight: 400;
    transition: transform .2s
}

.faq details[open] summary::after {
    transform: rotate(45deg)
}

.faq details p {
    padding: 0 20px 18px;
    color: #475569;
    font-size: 15px
}

/* CTA + footer */
.cta {
    text-align: center;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border-radius: var(--radius);
    padding: 48px 24px;
    color: #fff
}

.cta h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 10px
}

.cta p {
    color: #ddd6fe;
    margin-bottom: 22px
}

.cta .btn2 {
    display: inline-block;
    background: #fff;
    color: var(--brand-dark);
    font-weight: 700;
    padding: 13px 32px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 15px
}

@media(max-width:900px) {
    .country ul {
        grid-template-columns: repeat(3, 1fr);
    }
    .calc {
        grid-template-columns: 1fr
    }
    .calc-form {
        border-right: none;
        border-bottom: 1px solid var(--line)
    }
}

@media(max-width:640px) {
    .country ul{
        grid-template-columns: repeat(2, 1fr);
    }
    .grid {
        grid-template-columns: 1fr
    }
}

