/* Weekendo — дизайн-система. Без сборщика: современный CSS (вложенность, :has, container queries,
   view transitions, scroll-driven animations) с безопасными запасными вариантами. */

@font-face { font-family: "Onest"; src: url("../fonts/onest-latin-wght-normal.3db826ed1c5d.woff2") format("woff2-variations"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; src: url("../fonts/onest-latin-ext-wght-normal.3e2cb9888206.woff2") format("woff2-variations"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Onest"; src: url("../fonts/onest-cyrillic-wght-normal.fe2bd26ae82a.woff2") format("woff2-variations"); font-weight: 100 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; src: url("../fonts/unbounded-latin-wght-normal.8616dc355070.woff2") format("woff2-variations"); font-weight: 200 900; font-display: swap; unicode-range: U+0000-024F, U+20AC, U+2000-206F; }
@font-face { font-family: "Unbounded"; src: url("../fonts/unbounded-cyrillic-wght-normal.3a5ed4d11365.woff2") format("woff2-variations"); font-weight: 200 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

@view-transition { navigation: auto; }

:root {
  color-scheme: light dark;
  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Unbounded", "Onest", system-ui, sans-serif;

  --bg: #fbf7f2;
  --bg-2: #f3ece3;
  --surface: #ffffff;
  --ink: #1b1622;
  --ink-2: #4b4453;
  --mute: #8a8292;
  --line: color-mix(in oklab, var(--ink) 10%, transparent);
  --brand: #c8283f;          /* клюква */
  --brand-2: #8e1630;
  --gold: #e8a33d;
  --night: #121a33;
  --ok: #1e9b5a;
  --warn: #d98a1c;
  --off: #9a93a1;

  --r-s: 10px; --r-m: 16px; --r-l: 24px; --r-xl: 32px;
  --shadow-1: 0 1px 2px rgb(20 10 30 / .06), 0 4px 14px rgb(20 10 30 / .06);
  --shadow-2: 0 2px 6px rgb(20 10 30 / .08), 0 18px 40px -12px rgb(20 10 30 / .28);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --wrap: min(1180px, 100% - 2rem);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0b14; --bg-2: #161220; --surface: #1b1626; --ink: #f4eef8; --ink-2: #cfc6d8; --mute: #8f86a0;
    --line: color-mix(in oklab, #fff 10%, transparent);
    --shadow-1: 0 1px 2px rgb(0 0 0 / .4), 0 6px 18px rgb(0 0 0 / .3);
    --shadow-2: 0 2px 6px rgb(0 0 0 / .5), 0 24px 48px -12px rgb(0 0 0 / .7);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font: 400 1rem/1.55 var(--font); color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: color-mix(in oklab, currentColor 35%, transparent); text-underline-offset: .2em; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid color-mix(in oklab, var(--brand) 60%, transparent); outline-offset: 2px; border-radius: 6px; }
.wrap { width: var(--wrap); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.i { display: inline-block; width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }

h1, h2, h3 { font-family: var(--display); font-weight: 650; letter-spacing: -.01em; line-height: 1.12; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 1.2rem + 3.2vw, 3.6rem); }
h2 { font-size: clamp(1.3rem, 1rem + 1.2vw, 1.9rem); }
h3 { font-size: 1.05rem; font-weight: 600; }
p { text-wrap: pretty; }

/* ---------- шапка ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 94%, transparent);
  border-bottom: 1px solid var(--line);
  view-transition-name: top;
}
.top .wrap { display: flex; align-items: center; gap: 1rem; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; font: 700 1.15rem/1 var(--display); letter-spacing: .01em; }
.brand-logo { width: 34px; height: 34px; border-radius: 10px; box-shadow: 0 6px 16px -6px #1d3fa8; }
.brand-mark { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; color: #fff;
  background: conic-gradient(from 210deg, var(--brand), var(--gold), var(--brand-2), var(--brand)); box-shadow: 0 6px 16px -6px var(--brand); }
.brand-mark .i { width: 19px; height: 19px; }
.nav { display: flex; gap: .25rem; margin-left: auto; }
.nav a { display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; padding: .45rem .8rem; border-radius: 999px; color: var(--ink-2); font-weight: 500; font-size: .95rem; }
.nav a:hover, .nav a[aria-current] { background: var(--bg-2); color: var(--ink); }
.langs { position: relative; }
.langs > summary { list-style: none; cursor: pointer; display: inline-flex; gap: .4rem; align-items: center; padding: .45rem .75rem; border-radius: 999px; border: 1px solid var(--line); font-size: .92rem; background: var(--surface); }
.langs > summary::-webkit-details-marker { display: none; }
.langs ul { position: absolute; right: 0; top: calc(100% + .5rem); margin: 0; padding: .4rem; list-style: none; min-width: 12rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: var(--shadow-2);
  animation: pop .18s var(--ease); }
.langs li a { display: block; padding: .5rem .7rem; border-radius: 10px; text-decoration: none; }
.langs li a:hover { background: var(--bg-2); }
.langs li a[aria-current] { font-weight: 650; color: var(--brand); }
@media (max-width: 720px) { .nav { display: none; } .langs { margin-left: auto; } }

/* ---------- кнопки, чипы ---------- */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.25rem; border-radius: 999px; border: 0; cursor: pointer;
  font: 600 1rem/1 var(--font); text-decoration: none; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 10px 24px -10px var(--brand); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px var(--brand); }
.btn.ghost { background: color-mix(in oklab, #fff 14%, transparent); color: inherit; box-shadow: inset 0 0 0 1px color-mix(in oklab, currentColor 30%, transparent); }
.btn.soft { background: var(--bg-2); color: var(--ink); box-shadow: none; }
.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .9rem; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-2); text-decoration: none; font-size: .92rem; font-weight: 500; cursor: pointer; white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s; }
.chip:hover { border-color: color-mix(in oklab, var(--brand) 40%, transparent); color: var(--ink); }
.chip.on, .chip:has(input:checked) { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip .n { opacity: .6; font-variant-numeric: tabular-nums; }

/* ---------- герой ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: var(--night);
  border-radius: 0 0 var(--r-xl) var(--r-xl); padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5rem); }
.hero::before { content: ""; position: absolute; inset: -40%; z-index: -2;
  background:
    radial-gradient(40% 35% at 20% 30%, #c8283f 0%, transparent 72%),
    radial-gradient(35% 30% at 80% 20%, #e8a33d 0%, transparent 72%),
    radial-gradient(45% 40% at 60% 85%, #3f5fbf 0%, transparent 72%),
    radial-gradient(30% 30% at 10% 90%, #7a3fa0 0%, transparent 72%);
  opacity: .7; will-change: transform; animation: aurora 30s ease-in-out infinite alternate; }
.hero::after { content: ""; position: absolute; inset: -300px 0 0; z-index: -1; pointer-events: none; will-change: transform;
  background-image:
    radial-gradient(2px 2px at 20px 30px, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 120px 80px, #fff 50%, transparent 51%),
    radial-gradient(2.5px 2.5px at 200px 160px, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 300px 40px, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 360px 220px, #fff 50%, transparent 51%);
  background-size: 400px 300px; opacity: .5; animation: snow 20s linear infinite; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .8rem; border-radius: 999px; font-size: .85rem; font-weight: 600;
  background: color-mix(in oklab, #fff 14%, transparent); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .2); }
.hero h1 { margin: 1rem 0 .9rem; max-width: 17ch; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #ffd27a, #ff9aa8 60%, #ffd27a); -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 200% 100%; animation: shine 6s linear infinite; }
.hero p.lead { font-size: clamp(1.02rem, .95rem + .35vw, 1.2rem); max-width: 56ch; color: rgb(255 255 255 / .82); margin: 0 0 1.8rem; }
.hero .cta { display: flex; flex-wrap: wrap; gap: .7rem; }
.stats { display: flex; flex-wrap: wrap; gap: clamp(1.2rem, 4vw, 3rem); margin-top: 2.6rem; }
.stats b { display: block; font: 700 clamp(1.6rem, 1.2rem + 1.5vw, 2.4rem)/1 var(--display); }
.stats span { color: rgb(255 255 255 / .7); font-size: .9rem; }
.search { display: flex; align-items: center; gap: .6rem; margin-top: 1.6rem; max-width: 560px; padding: .4rem .4rem .4rem 1rem; border-radius: 999px;
  background: rgb(255 255 255 / .96); color: #1b1622; box-shadow: 0 20px 40px -18px rgb(0 0 0 / .6); }
.search input { flex: 1; border: 0; outline: 0; background: none; font: 500 1rem var(--font); color: inherit; min-width: 0; }
.search .btn { padding: .7rem 1.1rem; }

/* ---------- разделы ---------- */
.section { padding: clamp(2.5rem, 5vw, 4.5rem) 0 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.3rem; }
.section-head p { margin: .35rem 0 0; color: var(--mute); }
.section-head a { display: inline-flex; gap: .3rem; align-items: center; font-weight: 600; text-decoration: none; color: var(--brand); white-space: nowrap; }

.rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(82%, 320px); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: .25rem .25rem 1.2rem; margin-inline: -.25rem; scrollbar-width: thin; overscroll-behavior-x: contain; }
.rail > * { scroll-snap-align: start; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 285px), 1fr)); gap: 1.1rem; }

/* ---------- карточка ---------- */
.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r-l); overflow: hidden;
  box-shadow: var(--shadow-1); border: 1px solid var(--line); content-visibility: auto; contain-intrinsic-size: auto 400px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.card .cover { position: relative; aspect-ratio: 5 / 3; overflow: hidden; background: var(--night); }
.cover-img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
@media (hover: hover) { .card:hover .cover-img { transform: scale(1.05); } }
.card .cover .pill { position: absolute; left: .75rem; top: .75rem; }
.card .body { padding: 1rem 1.1rem 1.15rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }   /* вся карточка — ссылка */
.card .meta { display: flex; flex-direction: column; gap: .3rem; color: var(--ink-2); font-size: .92rem; }
.card .meta span { display: inline-flex; align-items: center; gap: .45rem; }
.card .meta .i { color: var(--mute); }
.card .sum { color: var(--mute); font-size: .9rem; margin: .1rem 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: auto; padding-top: .4rem; }
.fav { position: absolute; right: .7rem; top: .7rem; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  color: #fff; background: rgb(0 0 0 / .28); transition: transform .2s var(--ease), background .2s; }
.fav:hover { transform: scale(1.08); }
.fav.on { background: var(--brand); }
.fav.on .i { fill: currentColor; }
.fav.on { animation: pop .35s var(--ease); }

.tag { display: inline-flex; align-items: center; gap: .3rem; padding: .22rem .55rem; border-radius: 999px; font-size: .78rem; font-weight: 600;
  background: var(--bg-2); color: var(--ink-2); }
.tag.warn { background: color-mix(in oklab, var(--warn) 18%, transparent); color: color-mix(in oklab, var(--warn) 80%, var(--ink)); }
.tag .i { width: 14px; height: 14px; }

/* статус «открыто» */
.pill { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .7rem; border-radius: 999px; font-size: .8rem; font-weight: 650;
  background: rgb(255 255 255 / .92); color: #1b1622; box-shadow: 0 4px 14px -4px rgb(0 0 0 / .35); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--off); flex: none; }
.dot { position: relative; }
.st-open .dot { background: var(--ok); }
.st-open .dot::after, .st-closing_soon .dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: pulse 2s ease-out infinite; }
.st-closing_soon .dot { background: var(--warn); }
.st-closed .dot, .st-unknown .dot { background: var(--off); }

/* ---------- фильтры ---------- */
.toolbar { position: sticky; top: 64px; z-index: 40; padding: .75rem 0; margin-bottom: .5rem;
  background: var(--bg); }
.toolbar form { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; align-items: center; }
.toolbar form::-webkit-scrollbar { display: none; }
.toolbar input[type=date] { border: 1px solid var(--line); border-radius: 999px; padding: .42rem .8rem; font: 500 .9rem var(--font); background: var(--surface); color: var(--ink); }
.count { color: var(--mute); font-size: .9rem; margin: .4rem 0 1rem; }

/* ---------- заголовок страницы ---------- */
.page-head { padding: clamp(1.8rem, 4vw, 3rem) 0 1.2rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; color: var(--mute); font-size: .88rem; margin-bottom: .8rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.page-head p { color: var(--ink-2); max-width: 65ch; }

/* ---------- карта ---------- */
.map { position: relative; isolation: isolate; height: clamp(320px, 55vh, 560px); border-radius: var(--r-l); overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); box-shadow: var(--shadow-1); }
.maplibregl-popup-content { border-radius: 14px !important; padding: .8rem .95rem !important; font: 500 .9rem/1.4 var(--font); box-shadow: var(--shadow-2) !important; }
.maplibregl-popup-content a { font-weight: 650; color: var(--brand); text-decoration: none; }

/* ---------- страны ---------- */
.countries { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: .9rem; }
.country { position: relative; display: flex; flex-direction: column; justify-content: end; min-height: 130px; padding: 1.1rem; border-radius: var(--r-l);
  text-decoration: none; color: #fff; overflow: hidden; isolation: isolate; background: var(--c, var(--night)); transition: transform .3s var(--ease); }
.country::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 90% at 100% 0%, rgb(255 255 255 / .28), transparent 55%); }
.country:hover { transform: translateY(-3px) rotate(-.4deg); }
.country b { font: 650 1.15rem/1.15 var(--display); }
.country span { opacity: .8; font-size: .9rem; }
.country[data-c=BE] { --c: linear-gradient(135deg, #2a2a2a, #c8283f 70%, #e8a33d); }
.country[data-c=NL] { --c: linear-gradient(135deg, #1e3a8a, #d9480f); }
.country[data-c=DE] { --c: linear-gradient(135deg, #1b1622, #8e1630 60%, #e8a33d); }
.country[data-c=LU] { --c: linear-gradient(135deg, #0e7490, #c8283f); }
.country[data-c=FR] { --c: linear-gradient(135deg, #1e3a8a, #7a3fa0 60%, #c8283f); }

/* ---------- страница события ---------- */
.ev-hero { position: relative; isolation: isolate; color: #fff; min-height: clamp(320px, 52vh, 520px); display: flex; align-items: end;
  border-radius: 0 0 var(--r-xl) var(--r-xl); overflow: hidden; background: var(--night); }
.ev-hero .cover { position: absolute; inset: 0; z-index: -2; }
.ev-hero .cover > * { width: 100%; height: 100%; object-fit: cover; }
.ev-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(10 6 16 / .05) 20%, rgb(10 6 16 / .82)); }
.ev-hero .wrap { padding: 2rem 0 2.2rem; }
.ev-hero h1 { max-width: 22ch; margin: .8rem 0 .6rem; }
.ev-hero .crumbs, .ev-hero .crumbs a { color: rgb(255 255 255 / .8); }
.ev-hero .where { display: inline-flex; gap: .45rem; align-items: center; color: rgb(255 255 255 / .9); }
.ev-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 2rem; align-items: start; margin-top: -1.5rem; position: relative; z-index: 2; }
@media (max-width: 920px) { .ev-layout { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .facts { grid-template-columns: 1fr 1fr; gap: .6rem; } .fact { padding: .75rem .8rem; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow-1); padding: 1.3rem 1.4rem; }
.panel + .panel { margin-top: 1.1rem; }
.panel h2 { font-size: 1.15rem; margin-bottom: .9rem; display: flex; gap: .5rem; align-items: center; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .8rem; }
.fact { padding: .9rem 1rem; border-radius: var(--r-m); background: var(--bg-2); }
.fact small { display: flex; align-items: center; gap: .4rem; color: var(--mute); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.fact b { display: block; margin-top: .25rem; font-weight: 650; }
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { padding: .55rem .2rem; border-bottom: 1px solid var(--line); text-align: left; font-weight: 500; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.today { color: var(--brand); font-weight: 700; }
.hours tr.today th::after { content: " •"; }
.exceptions { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .5rem; }
.exceptions li { display: flex; gap: .6rem; align-items: start; padding: .65rem .8rem; border-radius: 12px; background: color-mix(in oklab, var(--warn) 10%, transparent); font-size: .92rem; }
.prose { font-size: 1.05rem; color: var(--ink-2); }
.prose p { margin: 0 0 1em; }
.side { position: sticky; top: 84px; }
.side .actions { display: grid; gap: .6rem; margin-top: 1rem; }
.side .btn { justify-content: center; }
.minimap { position: relative; isolation: isolate; height: 220px; border-radius: var(--r-m); overflow: hidden; margin-top: 1rem; background: var(--bg-2); }
.source { display: flex; gap: .55rem; align-items: start; color: var(--mute); font-size: .9rem; margin-top: 1rem; }
.source .i { color: var(--ok); margin-top: .15rem; }
.list-plain { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.list-plain li { display: flex; gap: .55rem; align-items: start; }
.mobile-bar { display: none; }
@media (max-width: 920px) {
  .side { position: static; }
  .mobile-bar { display: flex; gap: .6rem; position: fixed; inset: auto .8rem .8rem; z-index: 60; padding: .5rem; border-radius: 999px;
    background: color-mix(in oklab, var(--surface) 85%, transparent); box-shadow: var(--shadow-2); border: 1px solid var(--line); }
  .mobile-bar .btn { flex: 1; justify-content: center; padding: .75rem; }
  body:has(.mobile-bar) footer { padding-bottom: 6rem; }
}

/* ---------- пусто, подвал ---------- */
.empty { display: grid; place-items: center; text-align: center; gap: .6rem; padding: 3rem 1rem; color: var(--mute); border: 1.5px dashed var(--line); border-radius: var(--r-l); }
.empty .i { width: 42px; height: 42px; color: var(--brand); }
footer.site { margin-top: 5rem; padding: 2.5rem 0 3rem; border-top: 1px solid var(--line); color: var(--mute); font-size: .92rem; }
footer.site p { display: flex; gap: .5rem; align-items: center; margin: 0; }
footer.site .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.draft { display: flex; gap: .5rem; justify-content: center; align-items: center; padding: .5rem; font-size: .9rem; font-weight: 600; background: #ffe7a3; color: #5a4100; }

/* ---------- движение ---------- */
@keyframes aurora { to { transform: translate3d(5%, -3%, 0) scale(1.06); } }
@keyframes snow { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, 300px, 0); } }
@keyframes shine { to { background-position: -200% 0; } }
@keyframes pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(3); opacity: 0; } }
@keyframes pop { 0% { transform: scale(.92); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(26px) scale(.98); } to { opacity: 1; transform: none; } }
.hero .wrap > * { animation: rise .9s var(--ease) both; }
.hero .wrap > *:nth-child(2) { animation-delay: .08s; } .hero .wrap > *:nth-child(3) { animation-delay: .16s; }
.hero .wrap > *:nth-child(4) { animation-delay: .24s; } .hero .wrap > *:nth-child(5) { animation-delay: .32s; }
@supports (animation-timeline: view()) {
  .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
}
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  @view-transition { navigation: none; }
}

.mapbox { margin: .4rem 0 1rem; } .mapbox > summary { list-style: none; display: inline-flex; } .mapbox > summary::-webkit-details-marker { display: none; } .mapbox[open] > summary { margin-bottom: .8rem; background: var(--ink); color: var(--bg); }

.map-fail { display: grid; place-items: center; color: var(--ink-2); padding: 1.2rem; overflow: auto; }
.map-fail > div { max-width: 640px; }
.mf-title { font-weight: 650; margin: 0 0 .3rem; } .mf-tip { color: var(--mute); margin: 0 0 1rem; }
.mf-list { columns: 2 220px; padding-left: 1.1rem; margin: 0; font-size: .92rem; } .mf-list a { color: var(--brand); }

.leaflet-container { font: 500 .85rem var(--font); }
.city-label { background: rgb(255 255 255 / .85); border: 0; box-shadow: none; padding: 1px 6px; border-radius: 6px; font-weight: 600; color: #1b1622; }
.city-label::before { display: none; }

.mf-city { white-space: nowrap; pointer-events: none; }
.mf-city span { display: inline-block; transform: translate(-50%, -50%); font: 600 12px/1 var(--font); color: #2b2633; text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 2px #fff; }
.mf-city.r1 span { font-size: 14px; font-weight: 750; }
.mf-city.r3 span { font-size: 11px; font-weight: 550; color: #4b4453; }

/* экологические зоны */
.zone-alert { display: flex; gap: .9rem; padding: 1rem 1.15rem; margin-top: 1.1rem; border-radius: var(--r-l);
  background: color-mix(in oklab, var(--warn) 14%, var(--surface)); border: 1px solid color-mix(in oklab, var(--warn) 45%, transparent); }
.zone-alert .za-icon { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: var(--warn); }
.zone-alert p { margin: .3rem 0 0; color: var(--ink-2); }
.za-links { display: flex; flex-wrap: wrap; gap: .4rem .8rem; font-size: .92rem; }
.za-links a { color: var(--brand); font-weight: 600; text-decoration: none; display: inline-flex; gap: .3rem; align-items: center; }
.zone-card { display: flex; flex-direction: column; gap: .35rem; padding: 1.2rem; border-radius: var(--r-l); text-decoration: none; color: #fff; min-height: 140px; justify-content: end;
  background: linear-gradient(135deg, #121a33, #8e1630 70%, #d98a1c); transition: transform .3s var(--ease); }
.zone-card[data-req=umweltplakette_green] { background: linear-gradient(135deg, #10251c, #1e7a4f 70%, #c9b23d); }
.zone-card[data-req=nl_milieuzone] { background: linear-gradient(135deg, #0d2a4a, #1f6aa5 65%, #e8833a); }
.zone-card[data-req=critair] { background: linear-gradient(135deg, #1b2350, #3f5fbf 65%, #c8283f); }
.zone-card:hover { transform: translateY(-3px); }
.zone-card b { font: 650 1.15rem/1.2 var(--display); }
.zone-card span { opacity: .85; font-size: .9rem; }
.zc-badge { align-self: start; padding: .2rem .6rem; border-radius: 999px; background: rgb(255 255 255 / .18); font-weight: 650; font-size: .8rem !important; opacity: 1 !important; }

.intro { margin: .8rem 0 1rem; } .intro p { margin: 0 0 .7em; }
.faq details { margin-bottom: .7rem; } .faq summary { cursor: pointer; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--brand); } .faq details[open] summary::after { content: "–"; }
.faq details p { margin: .7rem 0 0; color: var(--ink-2); }
.foot-links { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; } .foot-links a { text-decoration: none; color: var(--ink-2); } .foot-links a:hover { color: var(--brand); }
.static .prose h2 { margin: 1.8rem 0 .6rem; font-size: 1.25rem; } .static .prose ul { padding-left: 1.2rem; } .static .prose li { margin: .3rem 0; }

/* планировщик «по пути» */
.route-form { display: grid; gap: .9rem; }
.rf-row { display: flex; flex-wrap: wrap; gap: .8rem; align-items: end; }
.rf-field { position: relative; display: grid; gap: .35rem; flex: 1 1 260px; font-weight: 600; font-size: .9rem; }
.rf-field > .i { position: absolute; left: .8rem; top: 2.35rem; color: var(--mute); }
.rf-field input, .rf-field select { width: 100%; padding: .75rem .9rem .75rem 2.4rem; border-radius: 12px; border: 1px solid var(--line); font: 500 1rem var(--font); background: var(--bg); color: var(--ink); }
.rf-field .seg input { position: absolute; width: auto; padding: 0; opacity: 0; }
.rf-field input.bad { border-color: var(--brand); }
.rf-field .seg { display: flex; flex-wrap: wrap; gap: .4rem; }
.suggest { position: absolute; z-index: 20; top: 100%; left: 0; right: 0; margin: .3rem 0 0; padding: .3rem; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-2); }
.suggest li { padding: .55rem .7rem; border-radius: 8px; cursor: pointer; font-weight: 500; } .suggest li:hover, .suggest li:focus { background: var(--bg-2); outline: 0; }
.route-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .8rem; }
.cost-edit { display: flex; gap: .3rem; align-items: center; font-size: .8rem; color: var(--mute); margin-top: .3rem; }
.cost-edit input { width: 4.2rem; padding: .2rem .35rem; border-radius: 6px; border: 1px solid var(--line); font: 500 .85rem var(--font); background: var(--surface); color: var(--ink); }
.onway { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; counter-reset: ow; }
.ow { display: flex; gap: 1rem; align-items: center; padding: .9rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); }
.ow-km { flex: none; width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; align-content: center; font: 700 1.15rem/1 var(--display); background: var(--bg-2); }
.ow-km small { font: 500 .7rem var(--font); color: var(--mute); }
.ow.st-open .ow-km { background: color-mix(in oklab, var(--ok) 18%, var(--surface)); color: var(--ok); }
.ow.st-closing_soon .ow-km { background: color-mix(in oklab, var(--warn) 18%, var(--surface)); color: var(--warn); }
.ow-body { flex: 1; display: grid; gap: .2rem; } .ow-body a { text-decoration: none; } .ow-body > span { color: var(--mute); font-size: .9rem; }
.ow-meta { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; margin-top: .2rem; }
.ow-meta .pill { box-shadow: none; background: var(--bg-2); }
.stops { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-top: 1rem; } .stops .chip a { display: inline-flex; color: var(--brand); }
@media (max-width: 600px) { .ow { flex-wrap: wrap; } .ow .btn { width: 100%; justify-content: center; } }
