/* 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[data-scheme=light] { color-scheme: light; }
:root[data-scheme=dark] { color-scheme: dark; }

: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:not([data-scheme=light]) {
    --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);
  }
}
:root[data-scheme=dark] {
    --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-text, var(--brand)); }
/* меню: на компьютере — строка в шапке, на телефоне — «бургер» с выпадающей панелью */
.menu { display: contents; }
.burger, .menu-langs, .menu-label { display: none; }
@media (max-width: 720px) {
  .burger { display: grid; place-items: center; width: 42px; height: 42px; margin-left: auto; border-radius: 12px; border: 1px solid var(--line);
    background: var(--surface); color: var(--ink); cursor: pointer; }
  .burger .i-close, .burger[aria-expanded=true] .i-open { display: none; }
  .burger[aria-expanded=true] .i-close { display: block; }
  .menu { display: none; position: fixed; left: 0; right: 0; top: 64px; z-index: 60; max-height: calc(100dvh - 64px); overflow-y: auto;
    flex-direction: column; gap: .2rem; padding: .8rem 1rem 1.2rem; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-2); }
  .menu.open { display: flex; }
  .menu .nav { display: flex; flex-direction: column; gap: .1rem; margin: 0; }
  .menu .nav a { font-size: 1.05rem; padding: .8rem .6rem; border-radius: 12px; }
  .menu .nav a .i { display: inline-block; }
  .menu .scheme { width: auto; height: auto; border: 0; border-radius: 12px; background: none; justify-content: start; display: flex; gap: .55rem;
    padding: .8rem .6rem; font: 500 1rem var(--font); color: var(--ink-2); border-top: 1px solid var(--line); margin-top: .4rem; }
  .menu .menu-label { display: inline; }
  .menu .langs { display: none; }
  .menu-langs { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; padding: .7rem .6rem 0; border-top: 1px solid var(--line); color: var(--mute); }
  .menu-langs a { padding: .4rem .7rem; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--ink-2); font-size: .92rem; }
  .menu-langs a[aria-current] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
  body.menu-open { overflow: hidden; }
}

/* ---------- кнопки, чипы ---------- */
.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-text, 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: var(--top-h, 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-text, 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-text, 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-text, 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-text, 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-text, 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-text, 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); color: var(--ink); }
.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; } }

/* ---------- темы (своя палитра; ?theme= для предпросмотра при DEBUG) ---------- */
.hero-route { display: none; }
[data-theme] .hero::after { display: none; }
[data-theme] .hero h1 em { background: none; animation: none; color: var(--accent-text); -webkit-text-fill-color: currentColor; }
[data-theme] .hero-route { display: block; position: absolute; z-index: -1; right: 0; top: 0; width: min(60%, 760px); height: 100%; pointer-events: none; }
.hero-route path { fill: none; }
.hero-route .hr-border { stroke: var(--hero-line); stroke-width: 2; stroke-dasharray: 2 9; stroke-linecap: round; }
.hero-route .hr-road-bg { stroke: var(--hero-road-bg); stroke-width: 16; stroke-linecap: round; }
.hero-route .hr-road { stroke: var(--gold); stroke-width: 3.5; stroke-dasharray: 16 12; stroke-linecap: round; }
.hero-route .hr-pin { fill: var(--gold); stroke: var(--night); stroke-width: 3; }
.hero-route .hr-halo { fill: var(--gold); opacity: .18; }
.hero-route .hr-const path { stroke: var(--hero-line); stroke-width: 1; opacity: .55; }
.hero-route .hr-const circle { fill: #fff; opacity: .85; }
[data-theme=ice] .hero-route .hr-const circle { fill: var(--night); }
.hero-route .hr-const text { font-size: 12px; }
.hero-route text { fill: var(--hero-line); font: 700 15px/1 var(--display); letter-spacing: .12em; }
@media (max-width: 760px) { [data-theme] .hero-route { width: 100%; opacity: .35; } }
[data-theme] .search .btn { background: var(--gold); color: var(--night); box-shadow: 0 10px 24px -10px var(--gold); }

/* A — «Ночная дорога»: синий и золото логотипа */
[data-theme=route] {
  --brand: #1d3fa8; --brand-2: #0d1e5c; --gold: #ffc83d; --night: #0b1640; --accent-text: #ffc83d;
  --hero-line: rgb(255 255 255 / .45); --hero-road-bg: rgb(255 255 255 / .06);
}
[data-theme=route] .hero::before { inset: 0; animation: none;
  background: radial-gradient(60% 80% at 85% 20%, #1d3fa8 0%, transparent 70%), radial-gradient(50% 60% at 0% 100%, #142a78 0%, transparent 70%),
    repeating-linear-gradient(0deg, rgb(255 255 255 / .035) 0 1px, transparent 1px 48px), repeating-linear-gradient(90deg, rgb(255 255 255 / .035) 0 1px, transparent 1px 48px); opacity: 1; }

/* B — «Ель и латунь»: хвойный зелёный, латунь, сливки */
[data-theme=pine] {
  --brand: #1f6a50; --brand-2: #0f3b2c; --gold: #d4a72c; --night: #0d2a20; --accent-text: #e9c35a;
  --hero-line: rgb(255 255 255 / .4); --hero-road-bg: rgb(255 255 255 / .05);
}
[data-theme=pine] .hero::before { inset: 0; animation: none;
  background: radial-gradient(55% 75% at 90% 15%, #1f6a50 0%, transparent 70%), radial-gradient(45% 60% at 5% 100%, #3a2a12 0%, transparent 70%); opacity: 1; }

/* C — «Зимний день»: светлый первый экран, синий текст, золото */
[data-theme=ice] {
  --brand: #1d3fa8; --brand-2: #0d1e5c; --gold: #f2b42c; --night: #0d1e5c; --accent-text: #1d3fa8;
  --hero-line: rgb(13 30 92 / .35); --hero-road-bg: rgb(13 30 92 / .06);
}
[data-theme=ice] .hero { color: var(--night); background: linear-gradient(160deg, #eef3fb, #dde7f5 60%, #e9eef8); box-shadow: inset 0 -1px 0 rgb(13 30 92 / .08); }
[data-theme=ice] .hero::before { display: none; }
[data-theme=ice] .hero h1 em { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: .14em; text-underline-offset: .12em; }
[data-theme=ice] .hero p.lead, [data-theme=ice] .stats span { color: rgb(13 30 92 / .72); }
[data-theme=ice] .hero .eyebrow { background: rgb(13 30 92 / .07); box-shadow: inset 0 0 0 1px rgb(13 30 92 / .12); }
[data-theme=ice] .search { box-shadow: 0 18px 40px -20px rgb(13 30 92 / .45), 0 0 0 1px rgb(13 30 92 / .08); }
[data-theme=ice] .hero-route .hr-pin { stroke: #fff; }

@media (prefers-color-scheme: light) {:root:not([data-scheme=dark])[data-theme=route], :root:not([data-scheme=dark])[data-theme=ice] { --bg: #f6f7fb; --bg-2: #e8ecf5; }:root:not([data-scheme=dark])[data-theme=pine] { --bg: #f8f5ee; --bg-2: #efe9dc; }
}
:root[data-scheme=light][data-theme=route], :root[data-scheme=light][data-theme=ice] { --bg: #f6f7fb; --bg-2: #e8ecf5; }:root[data-scheme=light][data-theme=pine] { --bg: #f8f5ee; --bg-2: #efe9dc; }

@media (prefers-color-scheme: dark) {:root:not([data-scheme=light])[data-theme=route] { --bg: #0a0f1f; --bg-2: #1a2546; --brand-text: #a9c0ff; --surface: #141d38; --ink: #eef2fb; --ink-2: #c5cde0; --mute: #8792ad; }:root:not([data-scheme=light])[data-theme=ice] .hero { background: linear-gradient(160deg, #13204a, #0b1640); color: #fff; }:root:not([data-scheme=light])[data-theme=ice] { --accent-text: #ffc83d; --hero-line: rgb(255 255 255 / .4); }:root:not([data-scheme=light])[data-theme=ice] .hero p.lead, :root:not([data-scheme=light])[data-theme=ice] .stats span { color: rgb(255 255 255 / .75); }
}
:root[data-scheme=dark][data-theme=route] { --bg: #0a0f1f; --bg-2: #1a2546; --brand-text: #a9c0ff; --surface: #141d38; --ink: #eef2fb; --ink-2: #c5cde0; --mute: #8792ad; }:root[data-scheme=dark][data-theme=ice] .hero { background: linear-gradient(160deg, #13204a, #0b1640); color: #fff; }:root[data-scheme=dark][data-theme=ice] { --accent-text: #ffc83d; --hero-line: rgb(255 255 255 / .4); }:root[data-scheme=dark][data-theme=ice] .hero p.lead, :root[data-scheme=dark][data-theme=ice] .stats span { color: rgb(255 255 255 / .75); }

[data-theme=route] .country[data-c=BE] { --c: linear-gradient(135deg, #0b1640, #1d3fa8 65%, #ffc83d); }
[data-theme=route] .country[data-c=NL] { --c: linear-gradient(135deg, #0b1640, #1d3fa8 60%, #f08a24); }
[data-theme=route] .country[data-c=DE] { --c: linear-gradient(135deg, #0b1640, #2b3a6b 60%, #ffc83d); }
[data-theme=route] .country[data-c=LU] { --c: linear-gradient(135deg, #0b1640, #0e7490 65%, #7dd3fc); }
[data-theme=route] .country[data-c=FR] { --c: linear-gradient(135deg, #0b1640, #1d3fa8 60%, #e8505b); }

/* ---------- поделиться / в календарь ---------- */
.share-row { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .8rem; }
.share-row .chip { font-size: .86rem; padding: .42rem .75rem; }

/* ---------- переключатель схемы ---------- */
.scheme { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
  display: grid; place-items: center; cursor: pointer; flex: none; }
.scheme:hover { color: var(--ink); }
.scheme .i-moon { display: none; }
:root[data-scheme=light] .scheme .i-sun, :root:not([data-scheme]) .scheme .i-sun { display: none; }
:root[data-scheme=light] .scheme .i-moon, :root:not([data-scheme]) .scheme .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-scheme]) .scheme .i-sun { display: block; }
  :root:not([data-scheme]) .scheme .i-moon { display: none; }
}
:root[data-scheme=dark] .scheme .i-sun { display: block; }
:root[data-scheme=dark] .scheme .i-moon { display: none; }
.price-note { display: flex; gap: .55rem; align-items: start; margin: 1rem 0 0; color: var(--ink-2); font-size: .95rem; }
.price-note .i { color: var(--mute); margin-top: .2rem; }

/* ---------- рассылка ---------- */
.subscribe { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 1.5rem 2.5rem; align-items: center; padding: clamp(1.4rem, 3vw, 2.2rem);
  border-radius: var(--r-xl); background: var(--night); color: #fff; box-shadow: var(--shadow-2); }
.subscribe h2 { display: flex; gap: .6rem; align-items: center; } .subscribe h2 .i { color: var(--gold); }
.subscribe .sub-text p { margin: .6rem 0 0; color: rgb(255 255 255 / .78); }
.sub-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.sub-row input, .sub-row select { flex: 1 1 200px; min-width: 0; padding: .75rem 1rem; border-radius: 999px; border: 0; font: 500 1rem var(--font); background: #fff; color: #1b1622; }
.sub-row select { flex: 1 1 170px; }
.subscribe .btn { background: var(--gold); color: var(--night); box-shadow: none; }
.consent { display: flex; gap: .55rem; align-items: start; margin-top: .8rem; font-size: .88rem; color: rgb(255 255 255 / .8); }
.consent input { margin-top: .2rem; accent-color: var(--gold); } .consent a { color: inherit; }
.subscribe .err, .err { color: #ffb4b4; font-size: .9rem; margin: .5rem 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 760px) { .subscribe { grid-template-columns: 1fr; } }
.narrow { max-width: 760px; }
.lead-text { font-size: 1.1rem; color: var(--ink-2); }
.page-head form { margin-top: 1.2rem; }
.page-head .subscribe { margin-top: 1.4rem; }
/* созвездия: звёзды по очереди вспыхивают (только прозрачность и масштаб — дёшево) */
.hero-route .hr-const circle { transform-box: fill-box; transform-origin: center; animation: twinkle 16s ease-in-out infinite; }
@keyframes twinkle { 0%, 82%, 100% { opacity: .55; transform: scale(1); } 91% { opacity: 1; transform: scale(1.9); } }
@media (prefers-reduced-motion: reduce) { .hero-route .hr-const circle { animation: none; } }
.sub-row select { appearance: none; -webkit-appearance: none; padding-right: 2.6rem; text-overflow: ellipsis;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%231b1622%27 stroke-width=%272.2%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27m6 9 6 6 6-6%27/%3E%3C/svg%3E") no-repeat right 1.1rem center / 16px; }
.chips-row { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1rem; }
.chip { position: relative; } /* иначе скрытые чекбоксы фильтров (position:absolute) вылезают за экран и расширяют страницу на телефоне */
body { overflow-x: clip; } /* страховка: ничего не расширяет страницу вбок на телефоне (clip не ломает sticky) */

@media (max-width: 600px) {
  .countries { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .country { min-height: 92px; padding: .85rem; }
  .country b { font-size: 1rem; }
  .page-head .intro.collapsed p:nth-of-type(n+2) { display: none; }
}
.more-btn { margin-top: .2rem; }
@media (max-width: 760px) { [data-theme] .hero-route { opacity: .22; } }
/* длинные слова в заголовках (Weihnachtsmärkte, Рождественские) переносятся по слогам, а не вылезают за экран */
h1, h2, h3 { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
@media (max-width: 600px) { h1 { font-size: clamp(1.4rem, .85rem + 3.6vw, 2rem); } }

/* подпись к фото (автор и лицензия — требование CC BY / BY-SA) */
.cover .credit { position: absolute; right: .45rem; bottom: .35rem; z-index: 2; max-width: 70%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: .62rem; line-height: 1.3; padding: .1rem .4rem; border-radius: 6px; color: #fff; background: rgb(0 0 0 / .45); text-decoration: none; }
.ev-hero .cover .credit { bottom: .6rem; right: .8rem; font-size: .7rem; }
.card .cover .credit { position: absolute; }
.credits li { font-size: .92rem; }
.cover .credit { width: auto !important; height: auto !important; object-fit: unset; }
.ev-hero .cover .credit { bottom: auto; top: .7rem; }

.season-over { display: flex; gap: .9rem; align-items: start; border: 1px solid color-mix(in oklab, var(--gold) 45%, transparent); }
.season-over > .i { width: 28px; height: 28px; color: var(--gold); flex: none; margin-top: .1rem; }
.season-over p { margin: .4rem 0 0; color: var(--ink-2); }

/* ---------- календарь сезона ---------- */
.season-cal h2 { display: flex; gap: .5rem; align-items: center; margin-bottom: 1rem; }
.cal-months { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.4rem 2rem; }
.cal-month h3 { font: 650 1rem var(--display); margin: 0 0 .6rem; text-align: center; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-wd { text-align: center; font-size: .72rem; font-weight: 600; text-transform: uppercase; color: var(--mute); padding-bottom: .2rem; }
.cal-wd.we { color: var(--ink-2); }
.cal-day { position: relative; aspect-ratio: 1; border: 0; border-radius: 10px; font: 600 .92rem var(--font); cursor: pointer; padding: 0;
  background: transparent; color: var(--mute); transition: transform .12s var(--ease); }
.cal-day:hover { transform: scale(1.06); }
.cal-day.st-out { opacity: .45; cursor: default; }
.cal-day.st-open { background: color-mix(in oklab, var(--ok) 20%, var(--surface)); color: var(--ink); }
.cal-day.st-open.we { background: color-mix(in oklab, var(--ok) 34%, var(--surface)); }
.cal-day.st-closed { color: var(--mute); text-decoration: line-through; background: var(--bg-2); }
.cal-day.st-season { color: var(--ink); background: repeating-linear-gradient(135deg, var(--bg-2) 0 6px, color-mix(in oklab, var(--gold) 22%, var(--surface)) 6px 12px); }
.cal-day.special::after { content: ""; position: absolute; top: 5px; right: 5px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.cal-day.today { box-shadow: inset 0 0 0 2px var(--brand-text, var(--brand)); }
.cal-day.picked { outline: 2px solid var(--ink); outline-offset: 1px; }
.cal-info { margin: 1rem 0 .4rem; font-weight: 600; min-height: 1.4em; }
.cal-legend { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin: 0; color: var(--mute); font-size: .86rem; }
.cal-legend span { display: inline-flex; gap: .4rem; align-items: center; }
.sw { display: inline-block; width: 14px; height: 14px; border-radius: 4px; }
.sw.st-open { background: color-mix(in oklab, var(--ok) 34%, var(--surface)); }
.sw.st-closed { background: var(--bg-2); }
.sw.st-season { background: repeating-linear-gradient(135deg, var(--bg-2) 0 3px, color-mix(in oklab, var(--gold) 30%, var(--surface)) 3px 6px); }
.sw.special { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.date-badge { display: inline-flex; flex-direction: column; align-items: center; gap: .1rem; padding: 1rem 1.6rem; border-radius: var(--r-l);
  background: color-mix(in oklab, var(--ok) 16%, var(--surface)); }
.date-badge b { font: 700 2.6rem/1 var(--display); }
.date-badge .db-wd { text-transform: capitalize; font-weight: 600; color: var(--ink-2); }
.date-badge .db-hours { display: inline-flex; gap: .35rem; align-items: center; margin-top: .4rem; font-weight: 600; }
@media (max-width: 600px) { .cal-months { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; }
  .cal-month { scroll-snap-align: start; } }

/* ---------- выбор дня с числом открытых ярмарок ---------- */
.daypick > summary { list-style: none; }
.daypick > summary::-webkit-details-marker { display: none; }
.daypick-panel { position: fixed; z-index: 70; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(720px, 94vw); max-height: 88dvh; overflow-y: auto;
  padding: 1.1rem 1.2rem 1.3rem; border-radius: var(--r-l); background: var(--surface); box-shadow: 0 30px 80px -20px rgb(0 0 0 / .55), 0 0 0 1px var(--line); white-space: normal; }
.daypick[open]::before { content: ""; position: fixed; inset: 0; z-index: 69; background: rgb(0 0 0 / .35); }
.dp-head { display: flex; align-items: baseline; gap: .7rem; flex-wrap: wrap; margin-bottom: 1rem; }
.dp-head span { color: var(--mute); font-size: .88rem; }
.dp-close { margin-left: auto; border: 0; background: var(--bg-2); color: var(--ink); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.dp-day { position: relative; aspect-ratio: 1; border-radius: 10px; display: grid; place-items: center; align-content: center; gap: 0; text-decoration: none;
  font: 600 .92rem/1.1 var(--font); color: var(--ink);
  background: color-mix(in oklab, var(--ok) calc(10% + var(--heat, 0%) * .35), var(--surface)); }
.dp-day small { font-size: .66rem; font-weight: 700; color: color-mix(in oklab, var(--ok) 70%, var(--ink)); }
.dp-day.we { box-shadow: inset 0 -3px 0 color-mix(in oklab, var(--gold) 70%, transparent); }
.dp-day.today { outline: 2px solid var(--brand-text, var(--brand)); outline-offset: -2px; }
.dp-day.picked { background: var(--ink); color: var(--bg); } .dp-day.picked small { color: var(--bg); }
.dp-day.off { background: none; color: var(--mute); opacity: .45; }
a.dp-day:hover { transform: scale(1.06); }

/* ---------- согласие на cookie (Google Analytics) ---------- */
.consent-bar { position: fixed; z-index: 80; left: 50%; bottom: 1rem; transform: translateX(-50%); width: min(720px, calc(100% - 1.5rem));
  display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; align-items: center; justify-content: space-between; padding: 1rem 1.1rem;
  border-radius: var(--r-l); background: var(--surface); color: var(--ink); box-shadow: 0 20px 60px -18px rgb(0 0 0 / .5), 0 0 0 1px var(--line); }
.consent-bar[hidden] { display: none; }
.consent-bar p { margin: 0; flex: 1 1 320px; font-size: .9rem; color: var(--ink-2); }
.consent-bar a { color: inherit; }
.consent-actions { display: flex; gap: .5rem; }
.consent-actions .btn { padding: .6rem 1.1rem; }
body:has(.mobile-bar) .consent-bar { bottom: 5.5rem; }

/* ---------- мини-карта → большая карта ---------- */
.minimap-wrap { position: relative; }
.minimap { cursor: zoom-in; }
.minimap-open { position: absolute; left: .6rem; bottom: .6rem; z-index: 3; display: inline-flex; gap: .4rem; align-items: center; border: 0; cursor: pointer;
  padding: .45rem .75rem; border-radius: 999px; font: 600 .85rem var(--font); color: #1b1622; background: rgb(255 255 255 / .94); box-shadow: 0 4px 14px -4px rgb(0 0 0 / .35); }
.bigmap-box { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; background: var(--bg); }
.bigmap-box[hidden] { display: none; }
@media (min-width: 900px) { .bigmap-box { inset: 4vh 4vw; border-radius: var(--r-l); overflow: hidden; box-shadow: 0 0 0 100vmax rgb(0 0 0 / .45), var(--shadow-2); } }
.bigmap-head { display: flex; align-items: center; gap: .8rem; padding: .7rem 1rem; border-bottom: 1px solid var(--line); }
.bigmap-head b { font: 650 1.02rem var(--display); }
.bigmap-head span { color: var(--mute); font-size: .88rem; }
.bigmap-close { margin-left: auto; border: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--bg-2); color: var(--ink); display: grid; place-items: center; cursor: pointer; flex: none; }
.bigmap { flex: 1; min-height: 0; }
.bigmap-foot { display: flex; flex-wrap: wrap; gap: .5rem; padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
@media (max-width: 600px) { .bigmap-foot .btn { flex: 1 1 auto; justify-content: center; padding: .7rem .8rem; } }
.minimap-open { top: .6rem; bottom: auto; max-width: calc(100% - 1.2rem); } /* не закрывать подпись OpenStreetMap внизу */
