:root {
    --accent: #4f46e5;
    --accent2: #7c3aed;
    --accent-soft: #eef2ff;
    --ink: #1e293b;
    --ink-soft: #64748b;
    --line: #e2e8f0;
    --radius: 16px;
    --shadow: 0 10px 30px rgba(30, 41, 59, .08);
}

.wrap {
    max-width: 1030px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===== Hero ===== */
.hero {
    background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 50%, #fdf4ff 100%);
    padding: 60px 0;
    border-bottom: 1px solid var(--line);
    text-align: center;
}

.badge {
    display: inline-block;
    background: #e0e7ff;
    color: #4338ca;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.hero h1 {
    font-size: clamp(30px, 5vw, 46px);
    line-height: 1.25;
    letter-spacing: -1px;
    margin-bottom: 20px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
}

.hero>.wrap>p {
    max-width: 740px;
    color: var(--ink-soft);
    font-size: 17px;
    margin: 0 auto 50px auto;
}

/* country */
.country ul {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, 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 grid ===== */
.calc {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    margin-top: 20px;
}

.calc-form {
    background: #fff;
    border-radius: var(--radius) 0 0 var(--radius) ;
    padding: 28px;
    box-shadow: var(--shadow);
}

.form-title {
    font-size: 19px;
    margin-bottom: 20px;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
}

.field {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.field label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    text-align: left;
    color: #64748b;
    display: block;
}
.field small {
    display: block;
    font-size: 12px;
    color: #94a3b8;
    margin-top: 4px;
    text-align: left;
}

.field input,
.field select {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 15px;
    color: var(--ink);
    background: #fff;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}

.field input:focus,
.field select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.btn {
    margin-top: 22px;
    width: 100%;
    border: none;
    cursor: pointer;
    border-radius: 12px;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    box-shadow: 0 8px 20px rgba(79, 70, 229, .35);
    transition: transform .12s, box-shadow .12s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(79, 70, 229, .45);
}

/* ===== Result panel ===== */
.calc-result {
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 28px;
    box-shadow: var(--shadow);
}

.calc-result h2 {
    font-size: 17px;
    color: #94a3b8;
    margin-bottom: 18px;
    letter-spacing: .5px;
}
.calc-result span{
    text-align: left;
}

.rate-label {
    font-size: 14px;
    color: #94a3b8;
}

.big-rate {
    font-size: 42px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin: 4px 0 2px;
}

.big-rate small {
    font-size: 15px;
    font-weight: 500;
    color: #94a3b8;
    margin-left: 6px;
}

.divider {
    height: 1px;
    background: rgba(148, 163, 184, .25);
    margin: 18px 0;
}

.kv {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 7px 0;
    font-size: 14px;
}

.kv span {
    color: #94a3b8;
}

.kv b {
    color: #fff;
    font-size: 15px;
    white-space: nowrap;
}

.kv.ideal b {
    color: #a5b4fc;
    font-size: 16px;
}

details.vat {
    margin-top: 16px;
    background: rgba(99, 102, 241, .12);
    border: 1px solid rgba(129, 140, 248, .3);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14px;
}

details.vat summary {
    cursor: pointer;
    font-weight: 600;
    color: #c7d2fe;
}

details.vat p {
    margin-top: 8px;
    color: #cbd5e1;
    font-size: 13px;
}

.note {
    margin-top: 14px;
    font-size: 12px;
    color: #64748b;
}

/* ===== Sections ===== */
section {
    padding-top: 60px;
}

.sec {
    font-size: clamp(22px, 3vw, 30px);
    letter-spacing: -.5px;
    margin-bottom: 18px;
}

.intro p {
    color: var(--ink-soft);
    margin-bottom: 14px;
}

.intro h3 {
    font-size: 19px;
    margin: 28px 0 12px;
}

.intro ul {
    list-style: none;
    display: grid;
    gap: 10px;
}

.intro ul li {
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 15px;
    color: var(--ink-soft);
}

.intro ul li strong {
    color: var(--ink);
}

.table-scroll {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-top: 8px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 680px;
}

th,
td {
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
}

th {
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 700;
}

tr:last-child td {
    border-bottom: none;
}

td {
    color: var(--ink-soft);
}

.faq details {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 12px;
    background: #fff;
}

.faq details summary {
    cursor: pointer;
    font-weight: 700;
    font-size: 16px;
}

.faq details p {
    margin-top: 10px;
    color: var(--ink-soft);
    font-size: 15px;
}

.cta {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    border-radius: 20px;
    padding: 44px 32px;
    text-align: center;
    color: #fff;
}

.cta h2 {
    font-size: clamp(22px, 3vw, 28px);
    margin-bottom: 10px;
}

.cta p {
    opacity: .9;
    max-width: 580px;
    margin: 0 auto 22px;
}

.btn2 {
    display: inline-block;
    background: #fff;
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 999px;
}

@media (max-width: 900px) {
    .wrap { padding: 0 16px; }
    .hero>.wrap>p { font-size: 15px; }
    .badge {width:100%;}
    .calc { display: grid !important; grid-template-columns: 1fr !important; gap: 0 !important; width: 100% !important; }
    .calc-form, .calc-result {  box-sizing: border-box !important; padding: 20px !important; margin: 0 !important; }
    .calc-form .grid { display: grid !important; grid-template-columns: 1fr !important; gap: 14px !important; width: 100% !important; }
    .calc-form .field { width: 100% !important; min-width: 0 !important; }
    .calc-form .field label { white-space: normal; line-height: 1.4; }
    .calc-form .field input, .calc-form .field select { width: 100% !important; max-width: 100% !important; box-sizing: border-box !important; }
    .calc-form .field small { display: block; width: 100%; }
    .calc-form .btn { width: 100%; }
    .calc-result .big-rate, .calc-result .kv b { word-break: break-all; }
    .grid { grid-template-columns: 1fr; }
    .btn { padding: 12px 16px; font-size: 15px; }
    .big-rate { font-size: 32px; }
    .calc-result h2 { font-size: 15px; }
    .sec { font-size: clamp(20px, 5vw, 26px); }
    .intro h3 { font-size: 17px; }
    .intro ul li { font-size: 14px; padding: 10px 14px; }
    .cta { padding: 32px 20px; }
    .btn2 { padding: 10px 22px; }
    footer .wrap { flex-direction: column; text-align: center; gap: 6px; }
    table { font-size: 13px; min-width: 520px; }
    th, td { padding: 10px 12px; }
    .faq details summary { font-size: 15px; }
    .faq details p { font-size: 14px; }
    .calc-form {border-radius: var(--radius) var(--radius) 0 0;}
    .calc-result {border-radius: 0 0 var(--radius) var(--radius);}
    .country ul {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 640px) {
    .badge { font-size: 12px; padding: 5px 10px;}
    .calc-form, .calc-result { padding: 16px !important; }
    .form-title { font-size: 17px; }
    .field label { font-size: 13px; }
    .field input, .field select { font-size: 16px; padding: 12px; }
    .field small { font-size: 11px; }
    .big-rate { font-size: 28px; }
    .kv { font-size: 13px; }
    .kv b { font-size: 14px; }
    details.vat summary { font-size: 13px; }
    .note { font-size: 11px; }
    .country ul {
        grid-template-columns: repeat(1, 1fr);
    }
}