@font-face { font-family: Onest; src: url(fonts/onest-cyrillic.woff2) format("woff2"); 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: Onest; src: url(fonts/onest-latin.woff2) format("woff2"); 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; }

:root {
  --bg: #fff; --surface: #fff; --soft: #f3f4f2; --text: #14120f; --text-muted: #5c605a; --border: #dfe1dc;
  --accent: #d6381a; --accent-hover: #b52c12; --accent-fg: #fff; --dark: #0f1412; --dark-2: #1c2421; --sun: #ffd23f;
  --radius: 20px; --wrap: 1080px; --wide: 1280px;
  --font: Onest, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: var(--font);
  --ease: cubic-bezier(.2, .7, .1, 1);
}
* { box-sizing: border-box; }
html { scrollbar-width: none; scroll-behavior: smooth; scroll-padding-top: 80px; }
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; }
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; margin: 0; font: 400 17px/1.55 var(--font); color: var(--text); background: var(--bg); -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3 { font-weight: 700; }
h1 { font-size: clamp(34px, 5.6vw, 64px); line-height: 1; letter-spacing: -.035em; margin: 0 0 16px; text-wrap: balance; }
h2 { font-size: clamp(24px, 3.2vw, 36px); line-height: 1.1; letter-spacing: -.025em; margin: 0 0 16px; text-wrap: balance; }
h3 { font-size: 20px; line-height: 1.25; letter-spacing: -.01em; margin: 0 0 6px; }
h1 em { font-style: normal; }
p { margin: 0 0 12px; }
.muted { color: var(--text-muted); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--sun); color: #000; padding: 8px 12px; z-index: 40; }
.skip:focus { left: 8px; top: 8px; }

/* Шапка */
.top { position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 32px; padding: 16px max(clamp(16px, 4vw, 40px), calc((100% - var(--wide)) / 2 + 40px)); background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); transition: background .3s, color .3s, border-color .3s; }
.logo { font-weight: 800; font-size: 28px; letter-spacing: -.04em; text-decoration: none; }
.logo::after { content: ""; display: inline-block; width: 10px; height: 10px; margin-left: 3px; border-radius: 50%; background: var(--accent); }
.top nav { display: flex; gap: 2px; flex: 1; }
.top nav a { text-decoration: none; padding: 9px 14px; border-radius: 999px; font-weight: 500; font-size: 16px; transition: background .2s; }
.top nav a:hover { background: rgba(20, 18, 15, .08); }
.city-pick { display: flex; align-items: center; gap: 10px; font-size: 15px; color: inherit; }
.city-pick label { color: inherit; font-size: inherit; }
.city-pick select { width: auto; padding: 7px 12px; min-height: 40px; border-radius: 999px; font-weight: 600; }
.city-menu { position: relative; }
.city-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 18px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--text); font: inherit; font-weight: 600; cursor: pointer; transition: background .2s, border-color .2s; }
.city-btn::after { content: ""; width: 7px; height: 7px; margin-top: -4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s; }
.city-btn[aria-expanded="true"]::after { transform: rotate(-135deg); margin-top: 4px; }
.city-list { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; display: grid; grid-template-rows: repeat(10, auto); grid-auto-flow: column; gap: 2px 4px; width: max-content; max-width: calc(100vw - 24px); overflow-y: auto; overscroll-behavior: contain; margin: 0; padding: 8px; list-style: none; background: #fff; color: var(--text); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .45); }
.city-list[hidden] { display: none; }
.city-list li { padding: 9px 14px; border-radius: 12px; font-size: 15px; font-weight: 500; white-space: nowrap; cursor: pointer; }
.city-list li:hover, .city-list li:focus { background: var(--soft); outline: 0; }
.city-list li:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.city-list li[aria-selected="true"] { background: var(--text); color: #fff; }
.home .top .city-btn { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .4); }
.home .top.stuck .city-btn { background: #fff; color: var(--text); border-color: var(--border); }
.home .top { position: fixed; left: 0; right: 0; background: transparent; color: #fff; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.home .top nav a:hover { background: rgba(255, 255, 255, .16); }
.home .top .city-pick select { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .4); }
.home .top .city-pick select option { color: #14120f; }
.home .top.stuck { background: rgba(255, 255, 255, .92); color: var(--text); border-color: var(--border); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.home .top.stuck nav a:hover { background: rgba(20, 18, 15, .08); }
.home .top.stuck .city-pick select { background: #fff; color: var(--text); border-color: var(--border); }

/* Поля */
select, input, textarea { font: inherit; font-size: 16px; padding: 11px 14px; border: 1px solid var(--border); border-radius: 12px; background: #fff; color: var(--text); width: 100%; min-width: 0; min-height: 48px; transition: border-color .2s, box-shadow .2s; }
select:hover, input:hover, textarea:hover { border-color: #bdb5a4; }
select:focus, input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(214, 56, 26, .18); }
input:disabled { background: var(--soft); color: var(--text-muted); }
label { display: block; font-size: 13px; font-weight: 500; color: var(--text-muted); position: relative; }
label > select, label > input:not([type=checkbox]), label > textarea { margin-top: 5px; }
label.check { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 15px; }
label.check input { width: 20px; height: 20px; min-height: 0; flex: none; accent-color: var(--accent); }
textarea { resize: vertical; }

main { display: block; }
.wrap, .hero { max-width: var(--wrap); margin: 0 auto; padding: 72px 20px 0; }
.wrap.wide { max-width: var(--wide); padding-top: clamp(64px, 9vw, 120px); }
.wrap.narrow { max-width: 760px; }
.hero { padding-top: 64px; }
.hero.small { padding-top: 40px; }
.hero.small h1 { font-size: clamp(30px, 4.6vw, 52px); }
.lead { max-width: 640px; color: var(--text-muted); font-size: clamp(17px, 1.6vw, 20px); }
.crumbs { font-size: 14px; color: var(--text-muted); margin-bottom: 14px; }
.display { font-size: clamp(34px, 6vw, 76px); line-height: .98; letter-spacing: -.04em; margin-bottom: clamp(24px, 4vw, 48px); }

/* Первый экран */
.hero-full { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; background: var(--dark); isolation: isolate; z-index: 2; }
.slides { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.slide { position: absolute; inset: -6% 0 0; translate: 0 var(--py, 0); background: center / cover no-repeat; opacity: 0; transition: opacity 1.8s ease; }
.slide.on { opacity: 1; animation: kenburns 14s ease-out both; }
.s1 { background-image: url(img/slide1.webp); } .ready .s2 { background-image: url(img/slide2.webp); } .ready .s3 { background-image: url(img/slide3.webp); }
@media (min-width: 1700px) { .s1 { background-image: url(img/slide1-xl.webp); } .ready .s2 { background-image: url(img/slide2-xl.webp); } .ready .s3 { background-image: url(img/slide3-xl.webp); } }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero-full::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 14, 12, .62) 0, rgba(10, 14, 12, .2) 30%, rgba(10, 14, 12, .5) 62%, rgba(10, 14, 12, .86) 100%); }
.hero-in { width: 100%; max-width: var(--wide); margin: 0 auto; padding: 120px clamp(16px, 4vw, 40px) clamp(56px, 8vh, 96px); }
.hero-full h1 { font-size: clamp(40px, min(5.4vw, 10vh), 84px); line-height: 1; letter-spacing: -.04em; margin-bottom: 20px; }
.hero-full h1 .line { display: block; white-space: nowrap; }
.hero-full .lead { max-width: 620px; color: rgba(255, 255, 255, .9); font-size: clamp(17px, 1.5vw, 21px); margin-bottom: 32px; }
.anim .hero-full h1 .line, .anim .hero-full .lead, .anim .hero-full .search, .anim .hero-full .phrase { opacity: 0; transform: translateY(34px); animation: rise .9s var(--ease) forwards; }
.anim .hero-full h1 .line:nth-child(1) { animation-delay: .08s; } .anim .hero-full h1 .line:nth-child(2) { animation-delay: .18s; } .anim .hero-full h1 .line:nth-child(3) { animation-delay: .28s; }
.anim .hero-full .lead { animation-delay: .42s; } .anim .hero-full .search { animation-delay: .52s; } .anim .hero-full .phrase { animation-delay: .62s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Поиск */
.search { background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 24px; padding: 18px; margin-top: 24px; box-shadow: 0 30px 60px -40px rgba(15, 20, 18, .5); }
.hero-full .search { border: 0; margin-top: 0; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); }
.tabs { display: inline-flex; gap: 4px; margin-bottom: 14px; padding: 4px; background: var(--soft); border-radius: 999px; }
.tab { font: inherit; font-weight: 600; font-size: 15px; padding: 8px 20px; min-height: 40px; border-radius: 999px; border: 0; background: none; cursor: pointer; color: var(--text-muted); transition: background .25s, color .25s; }
.tab.on { background: var(--text); color: #fff; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 12px; align-items: end; }
.grid > * { min-width: 0; }
[hidden] { display: none !important; }
.hint { grid-column: 1 / -1; color: #b3261e; margin: 0; font-size: 14px; }
.hint:empty { display: none; }
.suggest { position: absolute; z-index: 5; left: 0; right: 0; top: 100%; margin-top: 6px; background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .4); }
.suggest button { display: block; width: 100%; text-align: left; font: inherit; padding: 12px 14px; border: 0; background: none; cursor: pointer; color: var(--text); }
.suggest button:hover, .suggest button:focus { background: var(--soft); }
.suggest small { color: var(--text-muted); font-size: 12px; }
.phrase { margin-top: 18px; }
.phrase-row { display: flex; gap: 10px; margin-top: 5px; }
.phrase-row input { flex: 1; }
.phrase .small { margin: 8px 0 0; }
.hero-full .phrase, .hero.photo > .phrase { max-width: 760px; }
.hero-full .phrase label, .hero-full .phrase .muted, .hero.photo .phrase label, .hero.photo .phrase .muted { color: rgba(255, 255, 255, .8); }
.hero-full .phrase input, .hero.photo .phrase input { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .36); color: #fff; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.hero-full .phrase input::placeholder, .hero.photo .phrase input::placeholder { color: rgba(255, 255, 255, .62); }
.hero-full .phrase .btn.ghost { color: #fff; border-color: rgba(255, 255, 255, .7); }
.hero-full .phrase .btn.ghost:hover { background: #fff; color: var(--text); }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; font: inherit; font-weight: 600; text-align: center; text-decoration: none; padding: 10px 24px; border-radius: 999px; border: 1.5px solid var(--accent); background: var(--accent); color: var(--accent-fg); cursor: pointer; transition: background .2s, border-color .2s, color .2s, transform .2s var(--ease), box-shadow .2s; }
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 14px 24px -14px rgba(214, 56, 26, .8); }
.btn:active { transform: none; }
.btn.ghost { background: none; color: var(--text); border-color: var(--text); box-shadow: none; }
.btn.ghost:hover { background: var(--text); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* Направления */
.dest { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.dest-card { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; color: #fff; text-decoration: none; background: var(--dark); isolation: isolate; }
.dest-card:nth-child(6n + 1), .dest-card:nth-child(6n + 6) { grid-column: span 2; aspect-ratio: auto; }
.dest-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.dest-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .72) 100%); transition: opacity .4s; }
.dest-card:hover img, .dest-card:focus-visible img { transform: scale(1.08); }
.dest-meta { display: block; margin-top: 8px; font-size: 14px; font-weight: 500; letter-spacing: 0; line-height: 1.35; }
.chip-x { display: inline-flex; align-items: center; }
.chip-x .chip { border-radius: 999px 0 0 999px; }
.chip-x button { align-self: stretch; min-width: 44px; border: 1px solid var(--border); border-left: 0; border-radius: 0 999px 999px 0; background: var(--surface); font-size: 20px; line-height: 1; cursor: pointer; color: inherit; }
.chip-x button:hover { background: var(--text); color: #fff; }
.chip[aria-current] { border-color: var(--text); }
.dest-name { position: absolute; left: 20px; right: 14px; bottom: 18px; font-size: clamp(22px, 2.4vw, 34px); font-weight: 700; letter-spacing: -.03em; line-height: 1; transition: transform .4s var(--ease); }

/* Чем отличаемся */
.why { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--text); }
.why li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 8px 32px; align-items: baseline; padding: clamp(20px, 3vw, 34px) 0; border-bottom: 1px solid var(--border); transition: padding .4s var(--ease), background .3s; }
.why h3 { font-size: clamp(22px, 2.6vw, 34px); letter-spacing: -.03em; margin: 0; }
.why p { margin: 0; color: var(--text-muted); }

/* Тёмная полоса с картой */
.band { margin-top: clamp(64px, 9vw, 120px); background: var(--dark); color: #fff; padding-bottom: clamp(56px, 8vw, 100px); }
.band .wrap { padding-top: clamp(56px, 8vw, 100px); }
.band-lead { color: rgba(255, 255, 255, .7); max-width: 560px; margin-top: -24px; margin-bottom: 28px; }
.map-box { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: stretch; }
.map { background: radial-gradient(120% 90% at 30% 40%, #24302c 0, var(--dark-2) 70%); border: 1px solid rgba(255, 255, 255, .08); border-radius: 24px; padding: clamp(10px, 2vw, 24px); overflow: hidden; }
.map svg { display: block; width: 100%; height: auto; overflow: visible; }
.land { fill: #34433e; stroke: #4c5d57; stroke-width: 1; stroke-linejoin: round; }
.dot { cursor: pointer; outline: none; }
.dot .hit { fill: transparent; }
.dot .pin { fill: #c9d3cf; stroke: var(--dark-2); stroke-width: 1.5; transition: fill .2s, r .2s; }
.dot text { fill: #fff; font: 600 17px var(--font); opacity: 0; pointer-events: none; transition: opacity .15s; paint-order: stroke; stroke: var(--dark-2); stroke-width: 6px; stroke-linejoin: round; }
.dot.near .pin { fill: var(--sun); }
.dot.me .pin { fill: var(--accent); stroke: #fff; stroke-width: 2.5; }
.dot .pulse { fill: none; stroke: var(--accent); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.anim .dot .pulse { animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(4); } }
.dot.me text, .dot:hover text, .dot:focus-visible text { opacity: 1; }
.dot:hover .pin, .dot:focus-visible .pin { fill: #fff; r: 8; }
.dot:hover ~ .dot.me text { opacity: 0; }
.arc { fill: none; stroke: var(--sun); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.anim .map .arc { stroke-dashoffset: 1; }
.anim .map.in .arc { stroke-dashoffset: 0; transition: stroke-dashoffset 1.2s ease .3s; }
.map-side { display: flex; flex-direction: column; gap: 20px; background: var(--dark-2); border: 1px solid rgba(255, 255, 255, .08); border-radius: 24px; padding: 24px; }
.map-side p { margin: 0; }
.map-side span { display: block; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .55); margin-bottom: 8px; }
.map-now strong { display: flex; align-items: center; gap: 10px; font-size: 30px; line-height: 1.05; letter-spacing: -.03em; }
.map-now strong::before { content: ""; flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px #fff; }
.map-near a { display: flex; align-items: center; gap: 10px; padding: 7px 0; color: #fff; text-decoration: none; font-weight: 500; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.map-near a::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--sun); }
.map-near a:hover { color: var(--sun); }
.map-side .btn { margin-top: auto; text-align: center; }
.map-cities { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.map-city { min-height: 40px; padding: 8px 16px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; background: transparent; color: #fff; font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.map-city:hover { background: #fff; color: var(--text); border-color: #fff; }
.map-city[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); }

/* Калькулятор */
.calc-box { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 20px; align-items: start; margin-top: 8px; }
.calc { display: grid; gap: 12px; }
.calc-group, .calc-people { margin: 0; border: 1px solid var(--border); border-radius: 24px; padding: 8px 22px; background: var(--surface); min-width: 0; }
.calc-group legend { float: left; width: 100%; padding: 14px 0 6px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }
.calc-row { display: grid; grid-template-columns: minmax(0, 1fr) 96px 170px; gap: 12px; align-items: center; clear: both; padding: 12px 0; border-top: 1px solid var(--border); font-size: 16px; color: var(--text); }
.calc-group legend + .calc-row, .calc-people { border-top: 0; }
.calc-people { grid-template-columns: minmax(0, 1fr) auto; border: 1px solid var(--border); padding: 16px 22px; background: var(--soft); }
.calc-name { font-size: 16px; font-weight: 600; color: var(--text); }
.calc-name small { display: block; font-size: 13px; font-weight: 400; color: var(--text-muted); }
.calc-unit { font-size: 13px; color: var(--text-muted); text-align: right; }
.calc-in { position: relative; display: block; }
.calc-in input { margin: 0; padding-right: 34px; text-align: right; font-variant-numeric: tabular-nums; }
.calc-in i { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--text-muted); pointer-events: none; }
.stepper { display: inline-flex; align-items: center; gap: 6px; }
.stepper input { width: 64px; margin: 0; text-align: center; font-weight: 600; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.stepper button { width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 50%; background: #fff; font-size: 22px; line-height: 1; cursor: pointer; color: var(--text); transition: background .2s, color .2s; }
.stepper button:hover { background: var(--text); color: #fff; }
.total { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 10px; min-width: 0; overflow-wrap: anywhere; background: var(--dark); color: rgba(255, 255, 255, .72); border-radius: 24px; padding: 28px; font-size: 16px; }
.total-bar { display: flex; height: 8px; margin-top: 10px; border-radius: 999px; overflow: hidden; background: rgba(255, 255, 255, .12); }
.total-bar i { flex: 0 0 0; transition: flex-grow .4s var(--ease); }
.total-bar i:nth-child(1), .total-parts .p0 { background: var(--accent); }
.total-bar i:nth-child(2), .total-parts .p1 { background: var(--sun); }
.total-bar i:nth-child(3), .total-parts .p2 { background: #7fd1b9; }
.total-parts { margin: 4px 0 8px; }
.total-parts div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.total-parts dt { display: flex; align-items: center; gap: 8px; }
.total-parts dt i { width: 10px; height: 10px; border-radius: 50%; }
.total-parts dd { margin: 0; color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.total .link { align-self: flex-start; color: #fff; }
.total .small { margin: 0; font-size: 13px; color: rgba(255, 255, 255, .55); }
.total-label { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.total strong { font-size: clamp(34px, 4.4vw, 60px); line-height: 1; letter-spacing: -.05em; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }

/* Обычные страницы */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; transition: transform .4s var(--ease), box-shadow .4s; }
.card > :last-child { margin-bottom: 0; }
.steps .card { position: relative; padding: 24px 24px 24px 76px; counter-increment: step; }
.steps .card h2 { font-size: 20px; line-height: 1.25; letter-spacing: -.01em; margin: 6px 0 6px; }
.steps .card::before { content: counter(step); position: absolute; left: 24px; top: 24px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--soft); font: 700 16px/1 var(--font); }
.steps .card:first-child { background: var(--dark); border-color: var(--dark); color: #fff; }
.steps .card:first-child::before { background: var(--accent); }
.wrap > .card { margin-top: 16px; }
.card ol, .card ul { margin: 0 0 14px; padding-left: 22px; }
.card li { margin-bottom: 6px; }
.route h3 { margin-top: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip { text-decoration: none; padding: 9px 16px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-weight: 500; font-size: 15px; transition: border-color .2s, background .2s, color .2s; }
.chip:hover { border-color: var(--text); background: var(--text); color: #fff; }
.hero.photo { position: relative; max-width: none; padding: 0; color: #fff; isolation: isolate; z-index: 2; background: var(--dark); }
.hero.photo > :not(.hero-bg) { max-width: var(--wrap); margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; }
.hero.photo > .crumbs { padding-top: 110px; color: rgba(255, 255, 255, .8); }
.hero.photo > .search { margin-top: 28px; margin-bottom: 48px; max-width: calc(var(--wrap) - 40px); padding: 18px; }
.hero.photo .lead { color: rgba(255, 255, 255, .86); }
.hero-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 14s ease-out both; }
.hero.photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 14, 12, .45), rgba(10, 14, 12, .78)); }
.small { font-size: 13px; }
.understood { background: #fff6d6; border: 1px solid #f0d273; border-radius: 14px; padding: 14px 16px; }
.form { display: grid; gap: 16px; }
.form .btn { justify-self: start; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.errors { background: #fdecea; border: 1px solid #f0b4ae; color: #7a1c15; border-radius: 14px; padding: 14px 16px; margin-bottom: 16px; }
.errors ul { margin: 0; padding-left: 20px; }
.prose h2 { margin-top: 32px; font-size: 24px; }
.prose code { background: var(--soft); padding: 1px 6px; border-radius: 6px; font-size: .92em; }
.credits { padding-left: 20px; } .credits li { margin-bottom: 12px; overflow-wrap: anywhere; }
.gap { margin-top: 40px; }

/* Подвал */
.foot { margin-top: clamp(72px, 10vw, 140px); padding: clamp(40px, 6vw, 72px) clamp(16px, 4vw, 40px) 40px; font-size: 14px; color: rgba(255, 255, 255, .62); background: var(--dark); }
.foot > * { max-width: var(--wide); margin-left: auto; margin-right: auto; }
.foot p { max-width: var(--wide); }
.foot-nav a { display: inline-block; padding: 6px 0; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 0 22px; margin-top: 20px; color: #fff; }
.cookie-bar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30; max-width: 720px; margin: 0 auto; background: var(--dark); color: #fff; border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--radius); padding: 18px; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .7); }
.cookie-bar .btn.ghost { color: #fff; border-color: #fff; }
.cookie-bar[hidden] { display: none; }


.city-ask { left: auto; max-width: 340px; padding: 14px 16px; font-size: 14px; }
@media (max-width: 1100px) {
  .top { gap: 8px 14px; }
  .top nav a { padding: 8px 9px; font-size: 15px; }
  .city-pick label { display: none; }
}
@media (max-width: 900px) {
  .dest { grid-template-columns: repeat(2, 1fr); }
  .dest-card:nth-child(6n + 1), .dest-card:nth-child(6n + 6) { grid-column: auto; aspect-ratio: 4 / 5; }
  .why li { grid-template-columns: 1fr; }
  .calc-box { grid-template-columns: 1fr; }
  .map-box { grid-template-columns: 1fr; }
  .total { position: static; }
}
@media (max-width: 700px) {
  .top { padding: 10px 14px; gap: 6px 12px; }
  .logo { font-size: 24px; }
  .top nav a { font-size: 15px; }
  .city-pick { font-size: 14px; }
  .city-btn { min-height: 40px; padding: 7px 14px; }
  .top nav { order: 3; flex-basis: 100%; flex-wrap: wrap; margin: 0 -6px; }
  .top nav a { padding: 6px 10px; white-space: nowrap; }
  .city-pick { margin-left: auto; }
  .city-list { padding: 6px; column-gap: 0; }
  .city-list li { padding: 9px 8px; font-size: 14px; }
  .s1 { background-image: url(img/slide1-m.webp); } .ready .s2 { background-image: url(img/slide2-m.webp); } .ready .s3 { background-image: url(img/slide3-m.webp); }
  .hero-full { align-items: flex-start; }
  .hero-in { padding-top: 180px; display: flex; flex-direction: column; }
  .hero-full h1 { font-size: clamp(30px, 9.2vw, 40px); margin-bottom: 14px; }
  .hero-full h1 .line { display: inline; white-space: normal; }
  .hero-full .lead { order: 3; margin: 20px 0 0; }
  .hero-full .phrase { order: 2; }
  .dest { gap: 10px; }
  .dest-name { left: 14px; bottom: 14px; }
  .steps { grid-template-columns: 1fr; }
  .steps .card { padding: 20px 18px 20px 66px; }
  .steps .card::before { left: 18px; top: 20px; }
  .btn-row .btn { flex: 1 1 100%; }
  .city-ask { display: none; } /* на телефоне город виден и меняется в шапке, плашка только закрывала экран */
  .calc-row { grid-template-columns: minmax(0, 1fr) 130px; gap: 4px 10px; }
  .calc-row .calc-unit { grid-column: 1; grid-row: 2; text-align: left; }
  .calc-row .calc-in { grid-row: 1 / span 2; grid-column: 2; }
  .calc-people { grid-template-columns: 1fr; gap: 10px; }
  .calc-group, .calc-people { padding-left: 16px; padding-right: 16px; }
  .grid .btn { width: 100%; }
  .grid { grid-template-columns: 1fr 1fr; }
  .grid > :first-child, .grid > label:first-of-type, .grid > .btn, .grid > .check { grid-column: 1 / -1; }
  .phrase-row { flex-direction: column; }
  .dot text { font-size: 34px; stroke-width: 10px; }
  .dot .pin { r: 9; } .dot.me .pin { r: 12; }
  .suggest { position: static; margin-top: 6px; }
  .hero.photo > .crumbs { padding-top: 124px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Таблицы с данными */
.table-scroll { overflow-x: auto; margin: 16px 0 8px; }
table.data { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
table.data caption { text-align: left; font-weight: 600; padding-bottom: 8px; }
table.data th, table.data td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
table.data thead th { font-size: 13px; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
table.data tbody th { font-weight: 600; }
table.data tr.now { background: var(--soft); }
.lead-text { font-size: 18px; max-width: 60ch; margin-bottom: 24px; }
.wrap > .crumbs { padding-top: 8px; }
@media (max-width: 700px) {
  table.data { font-size: 14px; }
  table.data th, table.data td { padding: 8px 6px; }
  table.data thead th { white-space: normal; }
}
button.link { padding: 0; border: 0; background: none; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.facts { margin: 0; }
.facts dt { font-weight: 600; margin-top: 16px; }
.facts dd { margin: 4px 0 0; }

/* Внутренние страницы: серый фон, блоки-карточки */
body:not(.home) { background: var(--soft); }
body:not(.home) main > .wrap { width: calc(100% - 24px); max-width: var(--wrap); margin: 20px auto 0; padding: clamp(20px, 3.4vw, 40px); background: var(--surface); border-radius: 28px; }
body:not(.home) main > .wrap > h2:first-child, body:not(.home) main > .wrap > .crumbs + h1 { margin-top: 0; }
body:not(.home) main > .wrap > h2 { font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -.02em; }
body:not(.home) main > .wrap > h2:not(:first-child) { margin-top: 40px; }
body:not(.home) main > .wrap.narrow > p, body:not(.home) main > .wrap.narrow > ol, body:not(.home) main > .wrap.narrow > ul, .facts { max-width: 76ch; }
body:not(.home) .wrap > .chips:last-child, body:not(.home) .wrap > :last-child { margin-bottom: 0; }
body:not(.home) .foot { margin-top: 48px; }
.hero.photo { padding-bottom: 1px; }
.hero.photo > :last-child { margin-bottom: 44px; }
.hero.photo > h1:first-child, .hero.photo > .hero-bg + h1 { padding-top: 72px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 0 0 24px; }
.stat { background: var(--soft); border-radius: 20px; padding: 18px 20px; }
.stat dt { font-size: 13px; font-weight: 500; color: var(--text-muted); }
.stat dd { margin: 6px 0 0; font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat small { display: block; margin-top: 8px; font-size: 13px; font-weight: 400; letter-spacing: 0; line-height: 1.35; color: var(--text-muted); }
.stat.ok { background: #e4f3ea; } .stat.ok dd { color: #14633a; }
.stat.warn { background: #fff1cf; } .stat.warn dd { color: #7a4b00; }
.tag { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--soft); font-size: 13px; font-weight: 500; }
.tag.ok { background: #e4f3ea; color: #14633a; } .tag.warn { background: #fff1cf; color: #7a4b00; }
.dest.mini { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.dest.mini .dest-card, .dest.mini .dest-card:nth-child(n) { grid-column: auto; aspect-ratio: 4 / 3; border-radius: 16px; }
.dest.mini .dest-name { left: 12px; right: 8px; bottom: 12px; font-size: 18px; letter-spacing: -.02em; }
.climate { margin: 0 0 12px; }
.climate figcaption { font-weight: 600; margin-bottom: 12px; }
.climate-bars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; }
.climate-bars a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 0; border-radius: 14px; text-decoration: none; transition: background .2s; }
.climate-bars a:hover { background: var(--soft); }
.climate-bars .now a { box-shadow: inset 0 0 0 2px var(--text); }
.c-col { display: flex; align-items: flex-end; justify-content: center; width: 100%; height: 110px; }
.c-col i { width: 62%; max-width: 36px; border-radius: 8px 8px 3px 3px; background: #c9cfc9; }
.good .c-col i, .k-good { background: var(--accent); }
.c-air { font-size: 15px; font-weight: 700; }
.c-m { font-size: 13px; font-weight: 600; text-transform: capitalize; }
.c-sea { font-size: 13px; color: #1a66a8; font-weight: 600; }
.c-rain { font-size: 12px; color: var(--text-muted); }
.climate-key { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 12px 0 0; font-size: 13px; color: var(--text-muted); }
.climate-key i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 3px; }
.k-air { background: #c9cfc9; } .k-sea { background: #1a66a8; } .k-rain { background: var(--text-muted); }
.b0 { height: 18%; } .b1 { height: 26%; } .b2 { height: 34%; } .b3 { height: 42%; } .b4 { height: 50%; } .b5 { height: 58%; } .b6 { height: 66%; } .b7 { height: 74%; } .b8 { height: 82%; } .b9 { height: 91%; } .b10 { height: 100%; }
details.more { margin: 0 0 12px; }
details.more summary { cursor: pointer; font-weight: 500; text-decoration: underline; padding: 6px 0; width: max-content; max-width: 100%; }
.rank { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 10px; }
.rank-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.2fr) minmax(0, 1fr); gap: 12px 20px; align-items: center; padding: 10px 18px 10px 10px; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); transition: border-color .2s, box-shadow .3s; }
.rank-row:hover { border-color: var(--text); box-shadow: 0 16px 36px -24px rgba(0, 0, 0, .4); }
.rank-main { display: flex; align-items: center; gap: 14px; min-width: 0; text-decoration: none; }
.rank-main img { flex: none; width: 104px; height: 78px; object-fit: cover; border-radius: 14px; }
.rank-main strong { display: block; font-size: 19px; letter-spacing: -.02em; line-height: 1.2; }
.rank-main small { display: block; font-size: 13px; color: var(--text-muted); }
.rank-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
.rank-nums dt { font-size: 12px; color: var(--text-muted); }
.rank-nums dd { margin: 2px 0 0; font-size: 18px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rank-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; margin: 0; }
.month-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.month-grid a { padding: 9px 16px; border: 1px solid rgba(255, 255, 255, .4); border-radius: 999px; background: rgba(255, 255, 255, .12); color: #fff; font-size: 15px; font-weight: 500; text-decoration: none; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background .2s, color .2s; }
.month-grid a:hover, .month-grid a[aria-current] { background: #fff; color: var(--text); border-color: #fff; }
.route { padding: clamp(20px, 3vw, 32px); }
.route header h2 { margin: 0 0 4px; }
.route-cols { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; margin: 18px 0; align-items: start; }
.route h3 { margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }
.card ol.days { list-style: none; margin: 0; padding: 0; }
.days li { position: relative; margin: 0; padding: 0 0 18px 92px; }
.days li::before { content: attr(data-day); position: absolute; left: 0; top: 1px; padding: 3px 10px; border-radius: 999px; background: var(--text); color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; }
.days li:not(:last-child)::after { content: ""; position: absolute; left: 30px; top: 30px; bottom: 4px; width: 2px; background: var(--border); }
.route-tips { background: #fff6d6; border-radius: 18px; padding: 20px; }
.route-tips ul { margin: 0; }
.cards2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; align-items: start; }
.cards2 .card h2 { font-size: 22px; margin-top: 0; }
@media (max-width: 900px) {
  .rank-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .rank-tags { grid-column: 1 / -1; justify-content: flex-start; }
  .route-cols, .cards2 { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  body:not(.home) main > .wrap { width: calc(100% - 16px); margin-top: 12px; border-radius: 22px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .stat { padding: 14px; border-radius: 16px; }
  .climate-bars { grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: 10px; }
  .c-col { height: 64px; }
  .rank-row { grid-template-columns: 1fr; padding: 10px; }
  .rank-main img { width: 88px; height: 66px; }
  .dest.mini { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .days li { padding-left: 0; padding-top: 30px; }
  .days li:not(:last-child)::after { display: none; }
  .hero.photo > h1:first-child, .hero.photo > .hero-bg + h1 { padding-top: 40px; }
}
.hero.photo .btn.ghost { color: #fff; border-color: rgba(255, 255, 255, .7); }
.hero.photo .btn.ghost:hover { background: #fff; color: var(--text); }

main { flex: 1 0 auto; }
.hero.photo > .hint { color: #ffd9d2; font-size: 16px; margin-bottom: 12px; }
.hero.photo > .phrase { margin-left: auto; margin-right: auto; max-width: var(--wrap); }
.hero.plain > h1:first-child { padding-top: 56px; }
.hero.plain > :last-child { margin-bottom: 40px; }
.hero.plain { background: linear-gradient(120deg, var(--dark) 0, var(--dark-2) 100%); }
.hero.plain::after { display: none; }
@media (max-width: 700px) {
  .dest.stack-m { grid-template-columns: 1fr; }
  .dest.stack-m .dest-card { aspect-ratio: 16 / 9; }
  .dest:not(.mini):not(.stack-m) .dest-name { font-size: 20px; }
  .dest:not(.mini):not(.stack-m) .dest-meta { font-size: 12px; margin-top: 5px; }
  .hero.plain > h1:first-child { padding-top: 32px; }
  .hero.plain > :last-child { margin-bottom: 28px; }
}
@media (max-width: 900px) {
  .top nav { order: 3; flex-basis: 100%; flex-wrap: wrap; margin: 0 -6px; }
  .top nav a { white-space: nowrap; }
  .city-pick { margin-left: auto; }
  .hero-in { padding-top: 150px; }
}
@media (max-width: 700px) {
  .hero-in { padding-top: 180px; }
}
@media (max-width: 520px) {
  .dest:not(.mini) { grid-template-columns: 1fr; }
  .dest:not(.mini) .dest-card, .dest:not(.mini) .dest-card:nth-child(n) { aspect-ratio: 16 / 9; }
  .dest:not(.mini):not(.stack-m) .dest-name { font-size: 22px; }
  .dest:not(.mini):not(.stack-m) .dest-meta { font-size: 13px; }
}
