/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-2: #eef1f7;
  --text: #12172b;
  --text-muted: #5b6478;
  --border: #e1e5ee;
  --accent: #2f6fed;
  --accent-dark: #1d4fc2;
  --accent-soft: #e8f0ff;
  --money: #0f9d74;
  --money-soft: #e4f7ef;
  --warning: #b8590a;
  --warning-soft: #fdf1e2;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 30px -12px rgba(18, 23, 43, 0.18);
  --shadow-sm: 0 2px 10px -4px rgba(18, 23, 43, 0.12);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Manrope", var(--sans);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1120;
    --surface: #161b30;
    --surface-2: #1e2440;
    --text: #eef1fb;
    --text-muted: #a2a9c4;
    --border: #2a3157;
    --accent: #6d97ff;
    --accent-dark: #8fadff;
    --accent-soft: #1c2a52;
    --money: #4fd8a6;
    --money-soft: #123829;
    --warning: #f4a860;
    --warning-soft: #3a2711;
    --shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.5);
    --shadow-sm: 0 2px 10px -4px rgba(0, 0, 0, 0.4);
  }
}
:root[data-theme="dark"] {
  --bg: #0d1120;
  --surface: #161b30;
  --surface-2: #1e2440;
  --text: #eef1fb;
  --text-muted: #a2a9c4;
  --border: #2a3157;
  --accent: #6d97ff;
  --accent-dark: #8fadff;
  --accent-soft: #1c2a52;
  --money: #4fd8a6;
  --money-soft: #123829;
  --warning: #f4a860;
  --warning-soft: #3a2711;
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.5);
  --shadow-sm: 0 2px 10px -4px rgba(0, 0, 0, 0.4);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { font-family: var(--display); text-wrap: balance; line-height: 1.15; letter-spacing: -0.01em; font-weight: 800; }
ul, ol { padding: 0; margin: 0; list-style: none; }
::selection { background: var(--accent); color: #fff; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--accent); color: #fff;
  z-index: 9999; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.container { width: 100%; max-width: 880px; margin-inline: auto; padding-inline: 1.25rem; }

/* =============================================================
   3. Header / footer
   ============================================================= */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header-row { display: flex; align-items: center; justify-content: space-between; padding-block: .5rem; max-width: 880px; margin-inline: auto; padding-inline: 1.25rem; }
@media (min-width: 720px) { .site-header-row { padding-block: .75rem; } }
.logo { display: flex; align-items: center; gap: .5rem; font-family: var(--display); font-weight: 800; font-size: 1.05rem; }
.logo strong { color: var(--accent); }
.site-nav { display: none; gap: 1.4rem; font-size: .92rem; font-weight: 600; color: var(--text-muted); }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--accent); }
@media (min-width: 720px) { .site-nav { display: flex; } }

.site-footer { border-top: 1px solid var(--border); padding-block: 2rem; margin-top: 1rem; }
.footer-row { display: flex; flex-direction: column; gap: 1rem; font-size: .85rem; color: var(--text-muted); }
.footer-links { display: flex; gap: 1.2rem; }
.footer-links a:hover { color: var(--accent); }
@media (min-width: 720px) { .footer-row { flex-direction: row; justify-content: space-between; align-items: center; } }

/* =============================================================
   4. Hero
   ============================================================= */
.hero { padding-block: 1.3rem 1rem; }
.hero h1 { font-size: clamp(1.4rem, 4.6vw, 2.5rem); max-width: 20ch; }
.hero-sub { margin-top: .6rem; color: var(--text-muted); font-size: .95rem; max-width: 58ch; }
@media (min-width: 720px) {
  .hero { padding-block: 2.4rem 1.5rem; }
  .hero-sub { font-size: 1.05rem; }
}

/* =============================================================
   5. Tool card
   ============================================================= */
.tool-card {
  margin-top: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
}
@media (min-width: 720px) { .tool-card { padding: 2rem; margin-top: 1.5rem; } }

.notice-nojs {
  background: var(--warning-soft); color: var(--warning);
  border-radius: var(--radius-sm); padding: .8rem 1rem; font-size: .9rem; margin-bottom: 1rem;
}

.field-hint { font-size: .78rem; color: var(--text-muted); font-weight: 400; margin-top: -.1rem; }

.field-row { display: grid; grid-template-columns: 1.6fr 1fr; gap: .6rem; }
@media (min-width: 540px) { .field-row { grid-template-columns: 2fr 1fr; gap: 1rem; } }
.field { display: flex; flex-direction: column; gap: .3rem; margin-bottom: .7rem; }
.field label, fieldset.field legend { font-size: .78rem; font-weight: 700; color: var(--text-muted); }
fieldset.field { border: 0; padding: 0; }
@media (min-width: 720px) {
  .field { gap: .4rem; margin-bottom: 1rem; }
  .field label, fieldset.field legend { font-size: .85rem; }
}

input[type="number"], select {
  width: 100%; font: inherit; font-size: .95rem;
  padding: .58rem .7rem; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); background: var(--surface);
  color: var(--text); transition: border-color .18s var(--ease-out);
}
@media (min-width: 720px) { input[type="number"], select { font-size: 1rem; padding: .72rem .85rem; } }
input[type="number"]:focus, select:focus { border-color: var(--accent); outline: none; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%); background-position: calc(100% - 20px) center, calc(100% - 15px) center; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 2.4rem; }

.radio-row { display: flex; gap: .6rem; flex-wrap: wrap; }
.radio-pill {
  display: flex; align-items: center; gap: .5rem;
  border: 1.5px solid var(--border); border-radius: 999px;
  padding: .55rem 1rem; font-size: .92rem; font-weight: 600;
  cursor: pointer; transition: border-color .18s var(--ease-out), background .18s var(--ease-out);
}
.radio-pill:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-dark); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border-radius: var(--radius-sm); font-weight: 700; font-size: .95rem;
  padding: .7rem 1.4rem; transition: transform .18s var(--ease-out), box-shadow .18s var(--ease-out), background .18s var(--ease-out);
}
@media (min-width: 720px) { .btn { font-size: 1rem; padding: .85rem 1.4rem; } }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-primary:disabled { opacity: .65; cursor: not-allowed; transform: none; }
.btn-secondary { background: var(--surface-2); color: var(--text); }
.btn-secondary:hover { background: var(--border); }

.privacy-badge { margin-top: 1rem; font-size: .85rem; color: var(--text-muted); }

/* Calculator result */
.calc-result { margin-top: 1.4rem; padding-top: 1.4rem; border-top: 1px dashed var(--border); }
.calc-result-grid { display: grid; grid-template-columns: 1fr; gap: .8rem; }
@media (min-width: 720px) { .calc-result-grid { grid-template-columns: repeat(3, 1fr); } }
.result-stat { background: var(--surface-2); border-radius: var(--radius-sm); padding: 1rem; display: flex; flex-direction: column; gap: .3rem; }
.result-stat--highlight { background: var(--money-soft); }
.result-label { font-size: .8rem; color: var(--text-muted); font-weight: 700; }
.result-value { font-family: var(--display); font-size: 1.5rem; font-weight: 800; color: var(--money); }
.result-note { font-size: .78rem; color: var(--text-muted); }
.result-warning { margin-top: 1rem; background: var(--warning-soft); color: var(--warning); border-radius: var(--radius-sm); padding: .8rem 1rem; font-size: .88rem; font-weight: 600; }
.calc-ineligible { margin-top: 1.4rem; padding-top: 1.4rem; border-top: 1px dashed var(--border); }
.calc-ineligible p { background: var(--warning-soft); color: var(--warning); border-radius: var(--radius-sm); padding: 1rem 1.1rem; font-size: .92rem; }
.result-disclaimer { margin-top: 1rem; font-size: .8rem; color: var(--text-muted); }

/* =============================================================
   6. Ad slots
   ============================================================= */
.ad-slot {
  display: flex; align-items: center; justify-content: center;
  border: 1.5px dashed var(--border); border-radius: var(--radius-sm);
  color: var(--text-muted); font-size: .8rem; font-weight: 700; letter-spacing: .08em;
  background: var(--surface-2);
  position: relative;
}
.ad-label { opacity: .7; }
.ad-slot--leaderboard { min-height: 90px; margin: 1.6rem auto; max-width: 880px; }
.ad-slot--rectangle { min-height: 250px; max-width: 336px; width: 100%; margin: 1.6rem auto; }
.ad-slot--in-content { min-height: 250px; margin: 2rem auto; max-width: 880px; }
.ad-slot--interstitial { min-height: 200px; margin-block: 1rem; }

.ad-slot--sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  min-height: 64px; border-radius: 0; border-inline: 0; border-bottom: 0;
  box-shadow: var(--shadow);
}
.sticky-ad-close {
  position: absolute; top: 4px; right: 6px;
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface); color: var(--text-muted); font-size: 1rem;
  box-shadow: var(--shadow-sm);
}
@media (min-width: 1280px) {
  .ad-slot--sticky {
    left: auto; bottom: 1.5rem; right: 1.5rem;
    width: 300px; min-height: 250px; border-radius: var(--radius-sm); border: 1.5px dashed var(--border);
  }
}

/* Interstitial dialog */
.interstitial { border: 0; border-radius: var(--radius); padding: 1.6rem; max-width: 380px; width: calc(100% - 2rem); box-shadow: var(--shadow); background: var(--surface); color: var(--text); position: relative; }
.interstitial::backdrop { background: rgba(10, 14, 30, .55); backdrop-filter: blur(2px); }
.interstitial-close {
  position: absolute; top: .7rem; right: .7rem;
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2); font-size: 1.2rem;
}
.interstitial-check { font-weight: 700; margin-bottom: .8rem; padding-right: 2rem; }

/* =============================================================
   7. Steps / how it works
   ============================================================= */
.steps { padding-block: 2.5rem; }
.steps h2 { font-size: clamp(1.4rem, 3.4vw, 2rem); margin-bottom: 1.4rem; }
.steps-grid { display: grid; grid-template-columns: 1fr; gap: 1.2rem; }
@media (min-width: 720px) { .steps-grid { grid-template-columns: repeat(3, 1fr); } }
.step-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow-sm); }
.step-card svg { width: 36px; height: 36px; color: var(--accent); margin-bottom: .8rem; }
.step-card h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.step-card p { color: var(--text-muted); font-size: .92rem; }

/* =============================================================
   8. Airport assistant
   ============================================================= */
.airport-assistant { padding-block: 1rem 2.5rem; }
.airport-assistant h2 { font-size: clamp(1.4rem, 3.4vw, 2rem); }
.section-sub { color: var(--text-muted); margin-top: .5rem; max-width: 62ch; }

.guide-result { margin-top: 1.6rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.guide-result h3 { font-size: 1.2rem; margin-bottom: 1rem; }
.guide-steps { display: flex; flex-direction: column; gap: 1rem; counter-reset: step; }
.guide-step { background: var(--surface-2); border-radius: var(--radius-sm); padding: 1rem 1.1rem; border-left: 4px solid var(--accent); }
.guide-step h4 { font-size: .95rem; margin-bottom: .3rem; color: var(--accent-dark); }
.guide-step p { font-size: .92rem; color: var(--text); }
.guide-actions { margin-top: 1.4rem; }
.tiny-note { font-size: .8rem; color: var(--text-muted); margin-top: .6rem; text-align: center; }

/* =============================================================
   9. VAT table
   ============================================================= */
.vat-table-section { padding-block: 2rem; }
.vat-table-section h2 { font-size: clamp(1.4rem, 3.4vw, 2rem); }
.vat-table-subheading { font-size: clamp(1.1rem, 2.6vw, 1.4rem); margin-top: 2.4rem; }
.table-scroll { overflow-x: auto; margin-top: 1.2rem; border: 1px solid var(--border); border-radius: var(--radius); }
.vat-table { width: 100%; border-collapse: collapse; min-width: 480px; font-size: .92rem; }
.vat-table th, .vat-table td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--border); }
.vat-table thead th { background: var(--surface-2); font-weight: 700; color: var(--text-muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.vat-table tbody tr:last-child td { border-bottom: 0; }
.vat-table tbody tr:hover { background: var(--accent-soft); }

/* =============================================================
   10. Static airport guide (no-JS reference)
   ============================================================= */
.static-guide { padding-block: 2rem; }
.static-guide h2 { font-size: clamp(1.4rem, 3.4vw, 2rem); }
.airport-block { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); margin-top: .8rem; padding: 0; overflow: hidden; }
.airport-block summary { padding: 1rem 1.2rem; font-weight: 700; cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; }
.airport-block summary::-webkit-details-marker { display: none; }
.airport-block summary::after { content: "+"; font-size: 1.3rem; color: var(--accent); }
.airport-block[open] summary::after { content: "–"; }
.airport-block-body { padding: 0 1.2rem 1.2rem; }
.airport-block-body h4 { font-size: .88rem; color: var(--accent-dark); margin-top: 1rem; margin-bottom: .3rem; }
.airport-block-body h4:first-child { margin-top: 0; }
.airport-block-body p { font-size: .92rem; color: var(--text-muted); margin-bottom: .4rem; }

/* =============================================================
   11. FAQ
   ============================================================= */
.faq { padding-block: 2rem 3rem; }
.faq h2 { font-size: clamp(1.4rem, 3.4vw, 2rem); margin-bottom: 1.2rem; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: .7rem; padding: 0; }
.faq-item summary { padding: 1rem 1.2rem; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--accent); flex-shrink: 0; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding: 0 1.2rem 1.1rem; color: var(--text-muted); font-size: .94rem; }

/* =============================================================
   12. Responsive helpers
   ============================================================= */
@media (max-width: 1279px) { body { padding-bottom: 76px; } }
