:root {
  --primary: #1B6EF3;
  --primary-dark: #1558C2;
  --bg: #F5F7FA;
  --surface: #FFFFFF;
  --text: #1A1D26;
  --muted: #6B7280;
  --border: #E5E7EB;
  --holiday: #F59E0B;
  --holiday-soft: #FEF3C7;
  --pro: #6D28D9;
  --pro-soft: #EDE9FE;
  --planned: #8AB4FF;
  --segment-idle: #ECEFF3;
  --segment-active: #DBEAFE;
  --list-active: #EFF6FF;
  --field: #F0F2F5;
  --great: #047857;
  --off: #B45309;
  --flights-bg: #E0F2FE;
  --flights-text: #0369A1;
  --map-bg: #ECFDF5;
  --map-text: #047857;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --s-xs: 4px;
  --s-sm: 8px;
  --s-md: 16px;
  --s-lg: 24px;
  --s-xl: 32px;
  --max: 1120px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-raised: 0 4px 12px rgba(16, 24, 40, 0.08);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
img { max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--surface); padding: var(--s-sm) var(--s-md); z-index: 100; }
.skip:focus { left: var(--s-md); top: var(--s-md); }
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--s-md); }
.narrow { max-width: 760px; }
.icon { display: inline-block; vertical-align: middle; flex: none; }
.spark { color: var(--primary); font-size: 1.05em; line-height: 1; }
.btn-primary .spark { color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--surface); border-bottom: 1px solid var(--border); }
.header-row { display: flex; align-items: center; gap: var(--s-md); min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 18px; }
.brand:hover { text-decoration: none; }
.logo { border-radius: 8px; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.main-nav a { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: var(--r-md); color: var(--muted); font-weight: 600; font-size: 14px; }
.main-nav a:hover { background: var(--list-active); color: var(--primary); text-decoration: none; }
.main-nav a[aria-current="page"] { background: var(--segment-active); color: var(--primary); }
.main-nav .nav-pro a { color: var(--pro); }
.main-nav .nav-pro a:hover, .main-nav .nav-pro a[aria-current="page"] { background: var(--pro-soft); color: var(--pro); }
.lang-switch { font-size: 14px; font-weight: 600; padding: 8px 10px; border-radius: var(--r-md); border: 1px solid var(--border); color: var(--text); }
.lang-switch:hover { text-decoration: none; background: var(--list-active); }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--border); border-radius: var(--r-md); padding: 8px 12px; font: inherit; font-weight: 600; color: var(--text); cursor: pointer; }
@media (max-width: 1100px) {
  .menu-toggle { display: inline-flex; align-items: center; gap: 6px; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-raised); }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: var(--s-sm) var(--s-md) var(--s-md); }
  .main-nav a { padding: 12px; font-size: 16px; }
  .lang-switch { margin-left: 0; }
}

/* Breadcrumbs */
.crumbs { font-size: 14px; color: var(--muted); margin: var(--s-md) 0 var(--s-sm); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--muted); }

/* Typography */
h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; margin: var(--s-md) 0 var(--s-sm); letter-spacing: -0.01em; }
h2 { font-size: clamp(20px, 2.4vw, 26px); line-height: 1.25; margin: var(--s-xl) 0 var(--s-md); }
h3 { font-size: 17px; margin: 0 0 6px; }
p { margin: 0 0 var(--s-md); }
.lead { font-size: 18px; color: var(--muted); max-width: 720px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--primary); }
main { padding-bottom: 64px; }
.prose p, .prose li { font-size: 17px; line-height: 1.7; color: #374151; }
.prose h2 { margin-top: 40px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: var(--r-md); font: inherit; font-weight: 700; border: 0; cursor: pointer; transition: transform 120ms ease, background 150ms ease; }
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-soft { background: var(--surface); color: var(--primary); border: 1px solid var(--border); }
.btn-soft:hover { background: var(--list-active); }
.btn-pro { background: var(--pro); color: #fff; }

/* Hero */
.hero { padding: 48px 0 24px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(32px, 5vw, 52px); margin-top: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--s-lg); }
.hero-card { background: var(--surface); border-radius: 24px; padding: var(--s-lg); box-shadow: var(--shadow-raised); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding-top: 24px; } }

/* Mode switch (same look as the app's home switch) */
.mode-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--segment-idle); padding: 6px; border-radius: 999px; }
.mode-switch a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border-radius: 999px; font-weight: 700; color: var(--muted); text-align: center; }
@media (max-width: 520px) { .mode-switch a { padding: 10px 6px; font-size: 14px; gap: 6px; } }
.mode-switch a:hover { text-decoration: none; color: var(--primary); }
.mode-switch a.active { background: var(--surface); color: var(--primary); box-shadow: var(--shadow-raised); }
.hint { background: var(--list-active); color: var(--muted); border-radius: var(--r-lg); padding: var(--s-md); margin: var(--s-md) 0; }

/* Cards and grids */
.card { background: var(--surface); border-radius: var(--r-lg); padding: var(--s-lg); box-shadow: var(--shadow); }
.card h3 { display: flex; align-items: center; gap: 8px; }
.grid { display: grid; gap: var(--s-md); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
a.card { color: inherit; display: block; transition: box-shadow 150ms ease, transform 150ms ease; }
a.card:hover { text-decoration: none; box-shadow: var(--shadow-raised); transform: translateY(-1px); }
.step-num { display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: 999px; background: var(--segment-active); color: var(--primary); font-weight: 800; margin-bottom: var(--s-sm); }
.feature-icon { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: var(--r-md); background: var(--list-active); color: var(--primary); font-size: 20px; margin-bottom: var(--s-sm); }
.feature-icon.pro { background: var(--pro-soft); color: var(--pro); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-md); }
.section-head h2 { margin-bottom: var(--s-md); }

/* Forms */
.form-card { display: grid; gap: var(--s-md); }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.field select, .field input { width: 100%; font: inherit; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid transparent; background: var(--field); color: var(--text); }
.field select:focus, .field input:focus { border-color: var(--primary); outline: 3px solid var(--primary); outline-offset: 1px; background: var(--surface); }
.form-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-md); align-items: end; }
@media (max-width: 720px) { .form-row { grid-template-columns: 1fr; } }

/* Results (same structure as the app's result cards) */
.results { display: grid; gap: var(--s-sm); margin-top: var(--s-lg); }
.result { background: var(--surface); border-radius: var(--r-lg); padding: var(--s-md) var(--s-md) var(--s-md) 19px; border-left: 3px solid #D1D5DB; }
.result.top { border-left-color: var(--primary); }
.result .rank { font-size: 11px; font-weight: 800; letter-spacing: 0.04em; color: var(--muted); }
.result.top .rank { color: var(--primary); }
.result .range { font-size: 18px; font-weight: 700; margin: 2px 0; }
.result .stats { color: var(--muted); font-size: 14px; }
.result .hols { font-size: 14px; margin-top: 6px; }
.result .links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; font-size: 14px; font-weight: 700; }
.status { margin-top: var(--s-md); color: var(--muted); }

/* Chips and tabs */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: var(--r-sm); background: var(--list-active); font-size: 13px; font-weight: 600; color: var(--text); }
.chip.holiday { background: var(--holiday-soft); color: #92400E; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: var(--s-md) 0; }
.tab { padding: 8px 14px; border-radius: var(--r-md); background: var(--segment-idle); color: var(--muted); font-weight: 600; font-size: 14px; }
.tab:hover { text-decoration: none; color: var(--primary); }
.tab[aria-current="page"], .tab.active { background: var(--segment-active); color: var(--primary); }

/* Trip cards (app trip offer cards) */
.idea { background: var(--surface); border-radius: var(--r-lg); padding: var(--s-md) var(--s-md) var(--s-md) 19px; border-left: 3px solid #D1D5DB; display: flex; flex-direction: column; gap: 2px; }
.idea.top { border-left-color: var(--primary); }
.idea .name-row { display: flex; align-items: center; gap: 8px; }
.idea .name { font-size: 17px; font-weight: 700; color: var(--text); }
.idea .region { font-size: 14px; color: var(--muted); }
.idea .meta { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; margin-top: 2px; }
.idea .why { font-size: 14px; color: var(--muted); margin-top: 4px; }
.fit-great { color: var(--great); }
.fit-good { color: var(--primary); }
.fit-off { color: var(--off); }
.travel-footer { display: flex; margin-top: 10px; border-radius: var(--r-md); overflow: hidden; }
.travel-footer a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px; font-size: 14px; font-weight: 700; }
.travel-footer a:hover { text-decoration: none; filter: brightness(0.97); }
.travel-footer .book { background: var(--flights-bg); color: var(--flights-text); }
.travel-footer .map { background: var(--map-bg); color: var(--map-text); border-left: 1px solid var(--border); }

/* Month bar */
.months { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; margin: var(--s-sm) 0; }
.months span { text-align: center; font-size: 11px; font-weight: 700; padding: 8px 0; border-radius: 6px; background: var(--segment-idle); color: var(--muted); }
.months .best { background: var(--great); color: #fff; }
.months .ok { background: #A7F3D0; color: #065F46; }
@media (max-width: 520px) { .months { grid-template-columns: repeat(6, 1fr); } }

/* Booking options (app book-trip screen) */
.options { display: grid; gap: var(--s-sm); }
.option { display: flex; align-items: center; gap: var(--s-sm); background: var(--surface); border-radius: var(--r-lg); padding: var(--s-md); color: inherit; box-shadow: var(--shadow); }
.option:hover { text-decoration: none; box-shadow: var(--shadow-raised); }
.option .body { flex: 1; display: grid; gap: 6px; }
.option .name { font-size: 16px; font-weight: 700; }
.option .opens { font-size: 14px; color: var(--muted); }
.option .chev { font-size: 26px; font-weight: 300; color: var(--primary); }

/* Tables */
.table-wrap { overflow-x: auto; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); }
th { font-size: 13px; color: var(--muted); font-weight: 700; background: #FAFBFC; }
tr:last-child td { border-bottom: 0; }

/* Break list */
.breaks { display: grid; gap: var(--s-sm); }
.break { display: grid; grid-template-columns: auto 1fr; gap: 4px var(--s-md); align-items: center; background: var(--surface); border-radius: var(--r-lg); padding: var(--s-md); box-shadow: var(--shadow); }
.break .badge { grid-row: span 2; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 72px; padding: 8px; border-radius: var(--r-md); background: var(--segment-active); color: var(--primary); }
.break .badge strong { font-size: 24px; line-height: 1; }
.break .badge span { font-size: 11px; font-weight: 700; }
.break .what { font-weight: 700; }
.break .detail { font-size: 14px; color: var(--muted); }

/* Year calendar (app manual calendar) */
.legend { display: flex; flex-wrap: wrap; gap: var(--s-md); font-size: 14px; color: var(--muted); margin: var(--s-md) 0; }
.legend i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: 6px; }
.legend .l-holiday { background: var(--holiday); }
.legend .l-weekend { background: var(--segment-idle); border: 1px solid var(--border); }
.legend .l-picked { background: var(--planned); }
.year { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: var(--s-md); }
.month { background: var(--surface); border-radius: var(--r-lg); padding: var(--s-md); box-shadow: var(--shadow); }
.month .month-title { font-size: 15px; margin: 0 0 8px; }
.card-title { font-size: 17px; margin: 0 0 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; }
.days .wd { font-size: 11px; font-weight: 700; color: var(--muted); padding-bottom: 2px; }
.day { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: 8px; font-size: 13px; font-weight: 600; border: 0; background: transparent; color: var(--text); font-family: inherit; padding: 0; }
button.day { cursor: pointer; }
button.day:hover { background: var(--list-active); }
.day.we { background: var(--segment-idle); color: var(--muted); }
.day.hol { background: var(--holiday); color: #fff; }
.day.half { background: linear-gradient(135deg, var(--holiday) 50%, var(--segment-idle) 50%); color: var(--text); }
.day.picked { background: var(--planned); color: #fff; }
.day.span { box-shadow: inset 0 0 0 2px var(--primary); }
.sel-bar { position: sticky; bottom: 0; z-index: 20; margin-top: var(--s-md); background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-raised); padding: 12px var(--s-md); display: flex; align-items: center; justify-content: space-between; gap: var(--s-md); font-weight: 700; }

/* Country list */
.country-search { margin: var(--s-md) 0; max-width: 360px; }
.country-list { columns: 4 200px; column-gap: var(--s-lg); list-style: none; padding: 0; margin: 0; }
.country-list li { break-inside: avoid; padding: 4px 0; }

/* Pro */
.pro-hero { background: linear-gradient(135deg, var(--pro) 0%, #4C1D95 100%); color: #fff; border-radius: 24px; padding: 40px var(--s-lg); margin-top: var(--s-md); }
.pro-hero h1 { color: #fff; margin-top: 0; }
.pro-hero p { color: #EDE9FE; font-size: 18px; max-width: 640px; }
.badge-soon { display: inline-block; white-space: nowrap; padding: 2px 8px; border-radius: 999px; background: var(--pro-soft); color: var(--pro); font-size: 11px; font-weight: 800; vertical-align: middle; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.check-list li::before { content: "✓"; color: var(--great); font-weight: 800; margin-right: 8px; }

/* App banner */
.app-banner { display: flex; align-items: center; gap: var(--s-md); background: var(--surface); border-radius: var(--r-lg); padding: var(--s-md) var(--s-lg); box-shadow: var(--shadow); margin-top: var(--s-xl); }
.app-banner p { margin: 0; color: var(--muted); }
.app-banner strong { display: block; }

/* Article */
.article-meta { color: var(--muted); font-size: 14px; }
.callout { background: var(--list-active); border-radius: var(--r-lg); padding: var(--s-md) var(--s-lg); margin: var(--s-lg) 0; }
.toc { background: var(--surface); border-radius: var(--r-lg); padding: var(--s-md) var(--s-lg); box-shadow: var(--shadow); }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 48px 0 24px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--s-lg); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.site-footer h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); margin-top: var(--s-xl); padding-top: var(--s-md); color: var(--muted); display: grid; gap: 6px; }