/* Ossetia GO. Один светлый облик: передняя бумажная полоса совпадает с фоном страницы. */

/* ---------- шрифты со своего сервера (кириллица + латиница) ---------- */
@font-face { font-family: "Unbounded"; font-weight: 800; font-display: swap; src: url(/fonts/unbounded-cyrillic-800.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; font-weight: 800; font-display: swap; src: url(/fonts/unbounded-latin-800.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-weight: 400; font-display: swap; src: url(/fonts/manrope-cyrillic-400.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-weight: 400; font-display: swap; src: url(/fonts/manrope-latin-400.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-weight: 600; font-display: swap; src: url(/fonts/manrope-cyrillic-600.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-weight: 600; font-display: swap; src: url(/fonts/manrope-latin-600.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-weight: 700; font-display: swap; src: url(/fonts/manrope-cyrillic-700.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-weight: 700; font-display: swap; src: url(/fonts/manrope-latin-700.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* рукописный — одна подпись по-русски: пробел берём из кириллического файла (он там есть), чтобы
   ради одного пробела не тянуть латинский файл на 50 КБ; при совпадении диапазонов побеждает более поздний */
@font-face { font-family: "Caveat"; font-weight: 700; font-display: swap; src: url(/fonts/caveat-latin-700.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Caveat"; font-weight: 700; font-display: swap; src: url(/fonts/caveat-cyrillic-700.woff2) format("woff2"); unicode-range: U+0020, U+00A0, U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url(/fonts/jetbrains-mono-cyrillic-500.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url(/fonts/jetbrains-mono-latin-500.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #FAF8F4; --ink: #1E2A26; --muted: #5A544D; --tag: #6B6157; --line: #E3DBCE;
  --accent: #8B2B2B; --accent-deep: #5E1B1B; --kraft: #C8A57D; --cream: #F7F1E7; --white: #FFFFFF; --night: #26323A;
  --sand: #F1EADF;
  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --gutter: clamp(16px, 4.4vw, 64px);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; }
h1, h2, h3 { text-wrap: balance; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.page { position: relative; }

/* пометка «уточнить»: видно, каких данных не хватает */
.todo { display: inline-block; padding: 1px 8px; border: 1px dashed rgba(139, 43, 43, .55); border-radius: 6px; background: rgba(139, 43, 43, .06); color: var(--accent); font: 500 .8em/1.5 var(--mono); letter-spacing: .01em; }
.todo-block { padding: 12px 16px; border: 1px dashed rgba(139, 43, 43, .55); border-radius: 8px; background: rgba(139, 43, 43, .06); color: var(--accent); font-size: 15px; }

/* ---------- кнопки и ссылки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border: 0; border-radius: 999px; background: var(--accent); color: var(--white); font: 700 16px/1 var(--body); text-decoration: none; cursor: pointer; transition: background .2s; }
.btn:hover { background: var(--accent-deep); }
.pill { display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--cream); color: var(--ink); font: 700 15px/1 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .3s cubic-bezier(.3, 1.5, .5, 1), background .2s, color .2s; }
.textlink { padding: 0; border: 0; background: none; font: 600 16px/1.2 var(--body); color: var(--ink); text-decoration: underline; text-underline-offset: 5px; cursor: pointer; }
/* ссылка «К содержанию» для клавиатуры и скринридеров: видна только в фокусе */
.skip { position: absolute; z-index: 30; left: 12px; top: -64px; padding: 12px 18px; border-radius: 999px; background: var(--ink); color: var(--cream); font: 700 15px/1 var(--body); text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }
.ticket { display: flex; align-items: stretch; text-decoration: none; background: #1B1A18; color: #F2EDE2; border-radius: 4px; overflow: hidden; }
.ticket span { display: flex; align-items: center; min-height: 54px; padding: 0 24px; font: 700 15px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; }
.ticket span + span { padding: 0 16px; border-left: 2px dashed rgba(242, 237, 226, .55); background: var(--accent); letter-spacing: .1em; }
/* второй билет — экскурсия на день: светлый, с тем же корешком */
.ticket--day { background: var(--cream); color: var(--ink); box-shadow: inset 0 0 0 1.5px #1B1A18; }
.ticket--day span + span { background: none; color: var(--accent); border-left-color: rgba(27, 26, 24, .35); }
.ic { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- шапка: живое меню ---------- */
.head-slot { position: relative; z-index: 6; min-height: 88px; }
.head-slot--photo { position: absolute; left: 0; right: 0; top: 0; min-height: 0; }
.site-head { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 88px; padding-inline: var(--gutter); }
.site-head--photo { min-height: 96px; color: var(--white); }
/* логотип красится маской: цвет берётся из текста (белый на фото, тёмный на панели и страницах) */
.logo { --logo-h: 48px; display: inline-flex; flex: none; color: inherit; text-decoration: none; }
.logo__img { display: block; width: calc(var(--logo-h) * 2.17); height: var(--logo-h); background-color: currentColor; -webkit-mask: url(/img/logo-mask.png) center / contain no-repeat; mask: url(/img/logo-mask.png) center / contain no-repeat; transition: background-color .3s; }
.site-head.is-stuck .logo, .menu__top .logo { --logo-h: 40px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* стекло под пунктами; «капля» переезжает к пункту под курсором или к текущему разделу */
.site-nav { position: relative; display: flex; gap: 2px; padding: 5px; border-radius: 999px; border: 1px solid transparent; }
.site-head--photo .site-nav, .site-head--photo .live, .site-head--photo .burger { background: rgba(16, 24, 28, .28); border: 1px solid rgba(255, 255, 255, .2); -webkit-backdrop-filter: blur(12px) saturate(1.3); backdrop-filter: blur(12px) saturate(1.3); }
.site-nav a { position: relative; z-index: 1; padding: 11px 18px; border-radius: 999px; font: 600 14.5px/1 var(--body); text-decoration: none; transition: color .3s; }
.site-nav__blob { position: absolute; z-index: 0; left: 0; top: 5px; bottom: 5px; width: var(--w, 0px); border-radius: 999px; background: var(--cream); opacity: var(--o, 0); transform: translateX(var(--x, 0px)); transition: transform .5s cubic-bezier(.3, 1.35, .45, 1), width .5s cubic-bezier(.3, 1.35, .45, 1), opacity .25s, background .3s; }
.site-nav a.is-on { color: var(--ink); }
.site-head:not(.site-head--photo) .site-nav__blob { background: var(--ink); }
.site-head:not(.site-head--photo) .site-nav a.is-on { color: var(--cream); }
.site-head__end { display: flex; align-items: center; gap: 12px; }
.site-head__phone { margin-inline: 6px; font: 600 15px/1 var(--body); text-decoration: none; white-space: nowrap; }
.site-head:not(.site-head--photo) .pill { background: var(--ink); color: var(--cream); }
.site-head--photo :focus-visible { outline-color: var(--white); }
/* живой чип: местное время во Владикавказе, днём солнце, ночью луна */
.live { display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid transparent; font: 500 12.5px/1 var(--mono); letter-spacing: .04em; white-space: nowrap; }
.live[hidden] { display: none !important; }
.live__time { font-weight: 500; opacity: .85; }
.live__ic { width: 17px; height: 17px; }
.live__dot { width: 7px; height: 7px; border-radius: 50%; background: #6FD68A; animation: livedot 2.2s ease-out infinite; }
@keyframes livedot { 0% { box-shadow: 0 0 0 0 rgba(111, 214, 138, .7); } 70%, 100% { box-shadow: 0 0 0 7px rgba(111, 214, 138, 0); } }
.burger { display: none; width: 44px; height: 44px; padding: 0; border: 1px solid transparent; border-radius: 50%; background: rgba(30, 42, 38, .07); color: inherit; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
/* при прокрутке шапка становится плавающей панелью */
.site-head.is-stuck { position: fixed; z-index: 8; top: 10px; left: 50%; width: min(1180px, calc(100% - 20px)); min-height: 62px; padding: 0 8px 0 24px; border-radius: 999px; color: var(--ink); background: rgba(250, 248, 244, .86); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 12px 34px rgba(20, 16, 12, .14), inset 0 0 0 1px rgba(30, 42, 38, .07); transform: translateX(-50%); animation: head-in .55s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes head-in { from { transform: translate(-50%, -140%); } }
.site-head.is-stuck .site-nav, .site-head.is-stuck .live, .site-head.is-stuck .burger { background: transparent; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.site-head.is-stuck .live, .site-head.is-stuck .burger { background: rgba(30, 42, 38, .06); }
.site-head.is-stuck .site-nav__blob { background: var(--accent); }
.site-head.is-stuck .site-nav a.is-on { color: var(--white); }
.site-head.is-stuck .pill { background: var(--ink); color: var(--cream); }
.site-head.is-stuck :focus-visible { outline-color: var(--accent); }
/* поездка: полоска по нижнему краю панели, по ней едет маленький джип */
.tripbar { position: absolute; left: 34px; right: 34px; bottom: -1px; height: 2px; border-radius: 2px; background: rgba(30, 42, 38, .1); opacity: 0; pointer-events: none; transition: opacity .3s; }
.site-head.is-stuck.has-trip .tripbar { opacity: 1; }
.tripbar__fill { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--trip, 0) * 100%); border-radius: 2px; background: var(--accent); }
.tripbar__car { position: absolute; top: -7px; left: calc(var(--trip, 0) * 100%); width: 24px; height: 15px; margin-left: -12px; color: #17191B; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .25)); transition: transform .4s cubic-bezier(.3, 1.4, .5, 1); }
.trip-back .tripbar__car { transform: scaleX(-1); }

/* ---------- хиро: сцена 1440×900, масштабируется целиком ---------- */
.hero { position: relative; overflow: hidden; height: 100vh; min-height: 520px; background: var(--night); }
.stage { position: absolute; left: 0; top: 0; width: 1440px; height: 900px; transform-origin: 0 0; }
.layer { position: absolute; left: 0; top: 0; width: 1440px; height: 900px; }
.l-title, .l-kraft, .sun, .warm { will-change: transform; }
.ph { position: absolute; left: 0; top: 0; width: 1440px; height: 900px; max-width: none; object-fit: cover; display: block; filter: brightness(.88) contrast(1.04); }
/* вертикальный экран: квадратный кадр hero-p-* (правая часть сцены, x от 540) стоит на своём месте — см. hero.njk */
@media (orientation: portrait) { .ph { left: 540px; width: 900px; } }
.l-ridge picture { position: absolute; left: 0; top: 0; width: 1440px; height: 900px; }
/* видео в хиро. Горизонтальный ролик стоит ровно на месте кадра фото (1440×810, сдвиг 45), поэтому
   подмена фото на видео незаметна; во время наезда он растягивается на всю сцену. Надпись за гребнем
   держится только на неподвижном фото, поэтому вместе с гребнем тает, когда камера летит в горы.
   Вертикальный ролик закрывает видимую часть сцены и проявляется, когда камера входит в облака. */
.hero-video { position: absolute; left: 0; top: 45px; width: 1440px; height: 810px; max-width: none; object-fit: cover; opacity: 0; transform-origin: 50% 50%; filter: brightness(.88) contrast(1.04); transition: opacity .8s ease, transform 1.6s cubic-bezier(.45, 0, .2, 1); pointer-events: none; }
.hero.is-video .hero-video { opacity: 1; }
.hero.is-flying .hero-video { transform: scale(1.1112); }
.hero.video--portrait .hero-video { left: var(--vx, 0px); top: 0; width: var(--vw, 1440px); height: 900px; transform: none; transition: opacity 1.1s ease; }
.l-title, .l-ridge { transition: opacity 1s ease; }
.hero.is-flying .l-title, .hero.is-flying .l-ridge { opacity: 0; }
.video-toggle { position: absolute; z-index: 5; right: var(--gutter); top: 71%; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid rgba(255, 255, 255, .32); border-radius: 50%; background: rgba(16, 24, 28, .3); color: var(--white); cursor: pointer; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.video-toggle[hidden] { display: none; }
.video-toggle .ic { width: 18px; height: 18px; stroke-width: 2.2; }
.video-toggle .vt-play { display: none; fill: currentColor; stroke: none; }
.video-toggle.is-paused .vt-pause { display: none; }
.video-toggle.is-paused .vt-play { display: inline; }
.video-toggle:focus-visible { outline-color: var(--white); }
/* маска на picture, а не на img: у кадра для телефона своя рамка, а маска всегда на всю сцену 1440×900 */
.l-ridge picture, .rim { -webkit-mask-image: url(/img/ridge-mask.png); mask-image: url(/img/ridge-mask.png); -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.sun-drift { position: absolute; inset: 0; animation: breathe 9s ease-in-out infinite alternate; }
.sun { position: absolute; inset: 0; background: radial-gradient(circle at 76% 30%, rgba(255, 204, 150, .85) 0%, rgba(255, 186, 120, .32) 15%, rgba(255, 186, 120, 0) 40%); mix-blend-mode: screen; opacity: .35; }
.warm { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 168, 110, .55), rgba(255, 168, 110, .16) 45%, rgba(255, 168, 110, 0) 72%); mix-blend-mode: soft-light; opacity: 0; }
.rim { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(255, 214, 160, 0) 40%, rgba(255, 214, 160, .95) 50%, rgba(255, 214, 160, 0) 60%); background-size: 300% 100%; background-position: 8% 0; mix-blend-mode: soft-light; opacity: .45; }
@keyframes breathe { from { transform: translate(0, 0) scale(1); } to { transform: translate(-28px, 10px) scale(1.07); } }
.title-svg { position: absolute; left: 0; top: 0; width: 1440px; height: 900px; overflow: visible; filter: drop-shadow(0 8px 18px rgba(15, 25, 40, .3)); }
.title-svg text { font-family: var(--display); font-weight: 800; fill: #F8F2E8; text-anchor: middle; letter-spacing: -.01em; }
.t-desk { font-size: 150px; }
.t-mob { display: none; }
.t-mob--a { font-size: 66px; } .t-mob--b { font-size: 150px; }
.shade { position: absolute; }
.shade--top { left: 0; top: 0; width: 1440px; height: 210px; background: linear-gradient(180deg, rgba(12, 20, 32, .45), rgba(12, 20, 32, 0)); }
.shade--left { left: 0; top: 0; width: 150px; height: 560px; background: linear-gradient(90deg, rgba(12, 20, 32, .32), rgba(12, 20, 32, 0)); }
.shade--right { right: 0; top: 0; width: 150px; height: 560px; background: linear-gradient(270deg, rgba(12, 20, 32, .32), rgba(12, 20, 32, 0)); }
.shade--copy { left: 0; top: 430px; width: 1000px; height: 420px; background: radial-gradient(ellipse 640px 240px at 330px 240px, rgba(12, 20, 32, .55), rgba(12, 20, 32, 0)); }
.paper { position: absolute; left: 0; top: 0; width: 1440px; height: 900px; overflow: visible; }
.strip { filter: drop-shadow(0 -2px 5px rgba(0, 0, 0, .22)); }
.grain-layer, .grain-path { mix-blend-mode: multiply; opacity: .9; }
.paper-front { fill: var(--bg); }
.rise { position: absolute; inset: 0; animation: rise 1.5s cubic-bezier(.2, .75, .2, 1) both; }
.rise--late { animation-delay: .12s; }
@keyframes rise { from { transform: translateY(90px); } to { transform: none; } }
.rp { position: absolute; width: 0; height: 0; }

.rail { position: absolute; z-index: 5; top: 170px; display: flex; align-items: center; gap: 14px; color: var(--white); }
.rail--left { left: 30px; flex-direction: column; }
.rail--left span { writing-mode: vertical-rl; transform: rotate(180deg); font: 700 12px/1 var(--body); letter-spacing: .22em; text-transform: uppercase; }
.rail--left a, .rail--left button { display: flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .5); background: none; color: inherit; cursor: pointer; }
.rail--right { right: 30px; top: 176px; align-items: stretch; }
.rail--right ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 24px; font: 700 13px/1 var(--body); }
.rail--right a { text-decoration: none; opacity: .7; }
.rail--right a.is-active { opacity: 1; }
.rail__bar { position: relative; width: 2px; background: rgba(255, 255, 255, .35); }
.rail__bar span { position: absolute; left: 0; top: 0; width: 2px; height: 34%; background: var(--white); transition: transform .4s; }
.rail a:focus-visible, .rail button:focus-visible, .hero-copy :focus-visible { outline-color: var(--white); }

.hero-copy { position: absolute; z-index: 5; left: clamp(16px, 6.7vw, 96px); right: var(--gutter); top: 58.5%; max-width: 620px; display: flex; flex-direction: column; gap: 12px; color: var(--white); will-change: transform; }
.eyebrow { display: flex; align-items: center; gap: 14px; margin: 0; font: 700 13px/1.2 var(--body); letter-spacing: .22em; text-transform: uppercase; }
.eyebrow::before { content: ""; flex: none; width: 44px; height: 2px; background: currentColor; }
.hero-h1 { margin: 0; font: 600 30px/1.22 var(--body); }
.hero-facts { margin: 0; font: 600 15px/1.5 var(--body); color: rgba(255, 255, 255, .92); }
.hero-facts .todo { color: #FFE3D9; border-color: rgba(255, 227, 217, .6); background: rgba(0, 0, 0, .2); }
.hero-cta { position: absolute; z-index: 5; left: clamp(16px, 6.7vw, 96px); right: var(--gutter); top: 90.9%; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }

/* ---------- секции ---------- */
.section { position: relative; padding-block: 110px; }
/* блоки разделены сменой фона и мягким гребнем на стыке: гребень цвета следующего блока
   заходит в нижний отступ предыдущего, два слоя — как хребты в дымке */
.section--sand { background: var(--sand); }
.section--sand .paper-front { fill: var(--sand); }
.wave { position: absolute; z-index: 1; left: 0; bottom: calc(100% - 1px); display: block; width: 100%; height: clamp(30px, 4.2vw, 60px); color: var(--bg); pointer-events: none; }
.wave path { fill: currentColor; }
.wave path:first-child { opacity: .5; }
.section--sand > .wave { color: var(--sand); }
.foot > .wave { color: var(--ink); }
.wrap { position: relative; z-index: 3; max-width: 1312px; margin: 0 auto; padding-inline: var(--gutter); }
.section h2 { margin: 16px 0 0; font: 800 clamp(30px, 3.1vw, 44px)/1.1 var(--display); letter-spacing: -.01em; }
.section .eyebrow { color: var(--accent); }
.lead { margin: 16px 0 0; max-width: 520px; font-size: 18px; line-height: 1.6; color: var(--muted); }
.section-head { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 16px clamp(24px, 6.7vw, 96px); align-items: end; }
.section-head .lead { margin: 0; }

/* карточки экскурсий */
.tours { padding-top: 90px; }
.tours__grid { margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 2.8vw, 40px); }
.tours__grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 860px; margin-top: 40px; }
.tour { position: relative; display: flex; flex-direction: column; gap: 22px; }
.tour__shot { margin: 0; position: relative; aspect-ratio: 4 / 5; max-width: 100%; overflow: hidden; border-radius: 4px 4px 0 0; background: #D9D4C8; }
.tour__shot picture { display: block; width: 100%; height: 100%; }
.tour__shot img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.tour:hover .tour__shot img { transform: scale(1.035); }
.shot__paper { position: absolute; inset: 0; width: 100%; height: 100%; }
.tour__time { position: absolute; left: 6%; bottom: 4%; display: inline-flex; align-items: center; gap: 8px; font: 500 13px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.tour__body { display: flex; flex-direction: column; flex: 1; gap: 12px; }
.tour__name { margin: 0; font: 800 24px/1.15 var(--display); letter-spacing: -.01em; }
.tour__link { text-decoration: none; }
.tour__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }   /* вся карточка — ссылка */
.tour:hover .tour__link { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.tour__meta { margin: 0; font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--tag); }
.mini-route { list-style: none; margin: 4px 0 0; padding: 0 0 0 20px; border-left: 2px dashed rgba(139, 43, 43, .4); display: grid; gap: 9px; }
.mini-route li { position: relative; font-size: 16px; line-height: 1.35; }
.mini-route li::before { content: ""; position: absolute; left: -26px; top: .36em; width: 10px; height: 10px; box-sizing: border-box; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.tour__rest { margin: 0 0 0 22px; font-size: 15px; color: var(--muted); }
.tour__price { margin: 6px 0 0; font: 700 17px/1.3 var(--body); }
.tour__cta { margin-top: auto; padding-top: 8px; }
.tour__cta .btn { position: relative; z-index: 2; }

/* главы главной: 01 — туры, 02 — экскурсии. Шапка главы: номер, заголовок, вводная, паспорт */
.chapter__head { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 16px clamp(32px, 5.5vw, 88px); align-items: end; }
.chapter__head .lead { margin: 0; }
.chapter__passport { margin: 18px 0 0; font: 500 13px/1.6 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--tag); }
/* выбранный тур: факты строкой, «включено» чипами, кнопка */
.trip__facts { margin: 0; display: flex; flex-wrap: wrap; gap: 14px 28px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.trip__facts dt { font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--tag); }
.trip__facts dd { margin: 6px 0 0; font: 700 17px/1.3 var(--body); }
.trip__incl-title { margin: 4px 0 -8px; font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--tag); }
.trip__incl { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.trip__incl li { padding: 7px 12px; border-radius: 999px; background: var(--sand); font: 600 14px/1.2 var(--body); }
.trip__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 4px; }

/* 01. Туры: слева общий коллаж (едет рядом, пока читают), справа выбор длительности, предложение, программа */
.plan { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: clamp(32px, 5.5vw, 88px); align-items: start; }
.plan__body { display: flex; flex-direction: column; gap: 30px; min-width: 0; }
@media (min-width: 901px) { .plan__media { position: sticky; top: 96px; } }
/* выбор длительности: радиокнопки в виде сегментов, выбранный — тёмный */
.len { position: relative; margin: 0; padding: 0; min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1.5px solid var(--ink); border-radius: 14px; overflow: hidden; }
.len__opt { display: flex; flex-direction: column; justify-content: center; gap: 5px; min-height: 64px; padding: 10px 14px; border-left: 1.5px solid var(--ink); cursor: pointer; transition: background .2s, color .2s; }
.len__opt:first-of-type { border-left: 0; }
.len__opt b { font: 700 17px/1.15 var(--body); }
.len__opt span { font: 500 12px/1.2 var(--mono); letter-spacing: .04em; color: var(--tag); }
.len__opt:hover { background: rgba(30, 42, 38, .05); }
.len__input:checked + .len__opt { background: var(--ink); color: var(--cream); }
.len__input:checked + .len__opt span { color: rgba(247, 241, 231, .78); }
.len__input:focus-visible + .len__opt { outline: 2px solid var(--accent); outline-offset: -5px; border-radius: 10px; }
/* предложение выбранного тура. Без :has() видны все три подряд, с подписями */
.offer { display: flex; flex-direction: column; gap: 18px; }
.offer__none { margin: 0; }
.vstack { display: grid; gap: 32px; }
.vstack__title { margin: 0; font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
/* программа по дням: дни после финиша выбранного тура приглушены и подписаны, в какие туры входят */
.plan__days { gap: 22px; }
.plan__day .route-list__name, .plan__day .route-list__items { transition: opacity .25s; }
.plan__day .route-list__dot { transition: background .35s, color .35s, transform .35s cubic-bezier(.3, 1.6, .5, 1), opacity .25s; }
.plan__only { font: 500 12px/1.3 var(--mono); letter-spacing: .04em; color: var(--accent); }
.plan__finish { display: inline-flex; align-items: center; gap: 8px; margin: 2px 0 10px; font: 700 24px/1 var(--hand); color: var(--accent); }
.plan__finish .ic { flex: none; width: 18px; height: 18px; stroke-width: 2; }
@supports selector(:has(*)) {
  .vstack { gap: 0; }
  .vstack > .vstack__item { grid-area: 1 / 1; visibility: hidden; }
  .vstack__title { display: none; }
  .plan__only, .plan__finish { visibility: hidden; }
  .chapter--tours:has(#len-3:checked) [data-len="3"],
  .chapter--tours:has(#len-4:checked) [data-len="4"],
  .chapter--tours:has(#len-5:checked) [data-len="5"] { visibility: visible; }
  .chapter--tours:has(#len-3:checked) .plan__day:is([data-day="4"], [data-day="5"]) :is(.route-list__dot, .route-list__name, .route-list__items),
  .chapter--tours:has(#len-4:checked) .plan__day[data-day="5"] :is(.route-list__dot, .route-list__name, .route-list__items) { opacity: .42; }
  .chapter--tours:has(#len-3:checked) .plan__day:is([data-day="4"], [data-day="5"]) .plan__only,
  .chapter--tours:has(#len-4:checked) .plan__day[data-day="5"] .plan__only { visibility: visible; }
}
/* под главой: короткая цитата из отзыва о туре и мостик к экскурсиям */
.chapter__foot { margin-top: clamp(80px, 8vw, 112px); padding-top: 28px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 48px; }
.pull { margin: 0; max-width: 680px; }
.pull blockquote { margin: 0; font: 600 clamp(20px, 1.8vw, 24px)/1.4 var(--body); }
.pull figcaption { margin-top: 10px; font: 500 12px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--tag); }
.chapter__next { font: 700 16px/1.3 var(--body); color: var(--accent); text-underline-offset: 5px; }

/* разбивка «Осетинский стол» между главами: тёмная полоса — пауза для глаза между двумя главами с ценами,
   еда на тёмном светится. Слева фото стола, поверх угла — карточка с пирогами; справа пироги и еда в туре */
.feast { background: var(--ink); color: #E9E4DA; }
.feast > .wave { color: var(--ink); }
.feast__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(36px, 6.7vw, 96px); align-items: center; }
.feast__media { min-width: 0; }   /* галерея stories.js: на компьютере коллаж, на телефоне сторис */
.feast .eyebrow { color: var(--kraft); }
.feast h2 { color: var(--white); }
.feast .lead { color: rgba(233, 228, 218, .78); }
.feast__pies { list-style: none; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
.feast__pies li { display: flex; flex-direction: column; gap: 4px; padding: 15px 0; border-top: 1px solid rgba(233, 228, 218, .16); }
.feast__pies b { font: 800 17px/1.2 var(--display); color: var(--white); }
.feast__pies span { font-size: 15px; line-height: 1.4; color: rgba(233, 228, 218, .68); }
.feast__label { margin: 28px 0 0; font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--kraft); }
.feast__tour { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
.feast__tour li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 16px; line-height: 1.45; }
.feast__tour .ic { width: 22px; height: 22px; color: var(--kraft); }

/* 02. Экскурсии на день: три карточки рядом; на телефоне у каждой свои сторис */
.dcards { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 36px); }
.dcard { display: flex; flex-direction: column; gap: 22px; min-width: 0; scroll-margin-top: 96px; }
.dcard__body { display: flex; flex-direction: column; flex: 1; gap: 12px; }
.dcard__tag { margin: 0; font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.dcard__name { margin: 0; font: 800 clamp(22px, 2vw, 26px)/1.15 var(--display); letter-spacing: -.01em; }
@media (min-width: 901px) { .dcard__name { min-height: 2.3em; } .book__finish { margin-right: clamp(80px, 10vw, 160px); } }
.dcard__name a { text-decoration: none; }
.dcard__name a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.dcard__facts { margin: 0; font: 700 16px/1.4 var(--body); }
.dcard__cta { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
/* как проходит день — лентой под карточками */
.howday { margin-top: clamp(64px, 7vw, 96px); padding-top: 36px; border-top: 1px solid rgba(30, 42, 38, .14); }
.howday__title { margin: 0; font: 800 clamp(20px, 1.9vw, 24px)/1.2 var(--display); }
.howday__steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.howday__step { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.howday__ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--bg); color: var(--accent); }
.howday__ic .ic { width: 22px; height: 22px; stroke-width: 1.7; }
.howday__time { font: 500 12px/1.3 var(--mono); letter-spacing: .04em; color: var(--tag); }
.howday__step b { font: 700 17px/1.25 var(--body); }
.howday__desc { color: var(--muted); font-size: 15px; line-height: 1.45; }
.howday .format { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 36px; border-top-color: rgba(30, 42, 38, .14); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--cream); }

/* заглушка фото вне галереи: видно, какой кадр нужен */
.need-photo { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; height: 100%; min-height: 220px; padding: 24px; border: 2px dashed rgba(139, 43, 43, .45); border-radius: 6px; background: var(--cream); color: var(--accent); text-align: center; }
.need-photo .ic { width: 30px; height: 30px; }
.need-photo b { font: 800 15px/1.2 var(--body); }
.need-photo span { max-width: 260px; font-size: 14px; line-height: 1.45; color: var(--muted); }

/* кто везёт: гид, машины и три факта */
.why__ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--sand); color: var(--accent); }
.why__ic .ic { width: 24px; height: 24px; stroke-width: 1.7; }
.crew__facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; max-width: 560px; }
.crew__facts li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; color: var(--muted); font-size: 15.5px; line-height: 1.5; }
.crew__facts .why__ic { width: 44px; height: 44px; border-radius: 12px; }
.crew__facts b { display: block; margin-bottom: 2px; font: 700 17px/1.3 var(--body); color: var(--ink); }
.guide { margin-top: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.guide__media { display: grid; gap: 12px; align-content: start; }
.guide__text { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.guide__text .eyebrow { color: var(--accent); }
.guide__name { margin: 2px 0 0; font: 800 clamp(26px, 2.6vw, 36px)/1.1 var(--display); }
.guide__role { margin: -6px 0 0; font: 500 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.guide__bio { margin: 0; max-width: 600px; font-size: 18px; line-height: 1.6; color: var(--muted); }
/* три факта о гиде — короткими плашками */
.guide__facts { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.guide__facts li { padding: 7px 13px; border-radius: 999px; background: var(--sand); font: 600 14px/1.2 var(--body); color: var(--ink); }
/* слова гостьи о Георгии: та же цитата, что под главой туров */
.guide__quote { margin: 6px 0 4px; padding-left: 18px; border-left: 2px solid var(--kraft); }
.guide__quote blockquote { font-size: clamp(17px, 1.5vw, 20px); }

/* отзывы */
.reviews__grid { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.review { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; padding: 28px 26px; border-radius: 16px; background: var(--white); box-shadow: 0 1px 0 var(--line); }
.review__text { margin: 0; font-size: 17px; line-height: 1.6; white-space: pre-line; }
.review__who { margin: 0; color: var(--muted); font-size: 15px; }
.review__meta { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.review__rating { white-space: nowrap; color: var(--accent); }
.reviews__more { display: none; }
#more-reviews:focus-visible ~ .reviews__more { outline: 2px solid var(--accent); outline-offset: 4px; }
.review--need { background: rgba(255, 255, 255, .55); border: 1px dashed rgba(139, 43, 43, .35); box-shadow: none; }

/* что взять с собой — под заголовком вопросов */
.bring { margin-top: 36px; padding: 24px 24px 20px; border-radius: 16px; background: var(--sand); }
.bring__title { margin: 0 0 14px; font: 800 18px/1.2 var(--display); }
.bring__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bring__list li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 15.5px; line-height: 1.45; }
.bring__list .ic { width: 20px; height: 20px; margin-top: 1px; color: var(--accent); stroke-width: 2.2; }

/* точки маршрута — их проезжает джип — и факты строкой */
.route-list__dot { position: relative; width: 30px; height: 30px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); color: var(--accent); display: grid; place-items: center; font: 700 11px/1 var(--body); transition: background .35s, color .35s, transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.is-passed > .route-list__dot { background: var(--accent); color: var(--bg); transform: scale(1.08); }
.route-list__dot::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; pointer-events: none; }
.is-here > .route-list__dot { transform: scale(1.18); }
.is-here > .route-list__dot::after { animation: pulse 1.5s ease-out infinite; }
@keyframes pulse { from { transform: scale(1); opacity: .8; } to { transform: scale(2); opacity: 0; } }
.format { margin: 48px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.format dt, .facts dt { font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--tag); }
.format dd, .facts dd { margin: 8px 0 0; font: 600 16px/1.4 var(--body); }

/* вопросы */
.faq__inner { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq__list { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 64px; padding: 16px 0; cursor: pointer; list-style: none; font: 700 18px/1.35 var(--body); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; flex: none; width: 9px; height: 9px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: translateY(-3px) rotate(45deg); transition: transform .25s; }
.qa[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.qa p { margin: 0 0 22px; max-width: 640px; color: var(--muted); font-size: 17px; }

/* записаться */
.book { padding-bottom: 130px; }
.book__inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; }
.book__inner > header { grid-column: 1 / -1; }
.book__steps { grid-column: 1 / -1; list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.book__steps li { display: flex; flex-direction: column; gap: 8px; padding-top: 20px; border-top: 2px solid var(--ink); }
.book__num { font: 800 28px/1 var(--display); color: var(--accent); }
.book__steps strong { font: 700 19px/1.3 var(--body); }
.book__steps span:last-child { color: var(--muted); }
.book__conditions { grid-column: 1 / -1; margin: 0; }
.book__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.book__hours { margin: 0; color: var(--muted); }
.book__finish { margin-left: auto; display: inline-flex; align-items: center; gap: 12px; font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.book__finish .ic { width: 15px; height: 15px; stroke-width: 2.2; }

/* подвал */
.foot { position: relative; z-index: 3; background: var(--ink); color: #E9E4DA; padding-block: 56px 48px; }
.foot__inner { max-width: 1312px; margin: 0 auto; padding-inline: var(--gutter); display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.foot__logo { --logo-h: 64px; color: var(--cream); }
.foot__brand p { margin: 12px 0 0; color: #BDB6AA; }
.foot__col { display: flex; flex-direction: column; gap: 10px; }
.foot__col a { color: #E9E4DA; text-decoration: none; }
.foot__col a:hover { text-decoration: underline; }
.foot__title { margin: 0 0 4px; font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #9D968A; }
.foot__legal { margin: 0; color: #BDB6AA; font-size: 14px; }
.foot .todo { color: #F3C9C0; border-color: rgba(243, 201, 192, .5); background: rgba(255, 255, 255, .04); }
.foot :focus-visible { outline-color: var(--cream); }

/* панель записи */
.sheet { width: min(460px, calc(100% - 32px)); padding: 32px 28px 26px; border: 0; border-radius: 20px; background: var(--bg); color: var(--ink); box-shadow: 0 30px 80px rgba(20, 16, 12, .35); }
.sheet::backdrop { background: rgba(20, 24, 22, .55); }
.sheet__close-form { position: absolute; right: 12px; top: 12px; margin: 0; }
.sheet__close { width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; font-size: 28px; line-height: 1; cursor: pointer; }
.sheet__eyebrow { margin: 0; font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--tag); }
.sheet__title { margin: 10px 0 0; font: 800 26px/1.15 var(--display); }
.sheet__tour { margin: 8px 0 0; font: 600 17px/1.3 var(--body); color: var(--accent); }
.sheet__actions { display: grid; gap: 10px; margin-top: 24px; }
.sheet__btn { display: flex; align-items: center; justify-content: center; min-height: 54px; border-radius: 14px; font: 700 16px/1 var(--body); text-decoration: none; }
.sheet__btn--tg { background: #229ED9; color: var(--white); }
.sheet__btn--wa { background: #1FAF5A; color: var(--white); }
.sheet__btn--tel { border: 1.5px solid var(--ink); color: var(--ink); }
.sheet__btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.sheet__note { margin: 16px 0 0; font-size: 14px; color: var(--muted); }
.sheet { max-height: calc(100dvh - 24px); overflow-y: auto; }
/* форма заявки: поля друг под другом, даты и число людей — в одну строку */
.sheet__form { display: grid; gap: 12px; margin-top: 20px; }
.sheet__row { display: grid; grid-template-columns: minmax(0, 1fr) 110px; gap: 10px; }
.sheet__field { display: grid; gap: 5px; font: 600 14px/1.2 var(--body); }
.sheet__field input, .sheet__field textarea { width: 100%; box-sizing: border-box; min-height: 46px; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--white); color: var(--ink); font: 400 16px/1.3 var(--body); }
.sheet__field textarea { min-height: 64px; resize: vertical; }
.sheet__field input:focus-visible, .sheet__field textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.sheet__field [aria-invalid="true"] { border-color: var(--accent); }
.sheet__err { font: 500 13px/1.3 var(--body); color: var(--accent); }
.sheet__consent { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 14px; line-height: 1.4; color: var(--muted); }
.sheet__consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); }
.sheet__consent a { color: var(--ink); }
.sheet__trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.sheet__send { width: 100%; }
.sheet__send[disabled] { opacity: .6; cursor: progress; }
.sheet__msg { margin: 0; font-size: 15px; line-height: 1.4; }
.sheet__msg:empty { display: none; }
.sheet__msg.is-ok { padding: 12px 14px; border-radius: 12px; background: var(--sand); color: var(--ink); font-weight: 600; }
.sheet__msg.is-err { color: var(--accent); }
.sheet__or { margin: 18px 0 0; font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--tag); text-align: center; }
.sheet__or + .sheet__actions { margin-top: 12px; }

/* ---------- страница экскурсии ---------- */
.t-hero { padding-block: 8px 72px; }
/* страница поездки: тип поездки под названием (часть H1), связь с туром и «можно отдельно» в программе */
.t-hero__kind { display: block; margin-top: 12px; font: 700 clamp(18px, 1.7vw, 24px)/1.25 var(--body); letter-spacing: 0; color: var(--accent); }
.t-hero__intour { margin: 14px 0 0; font: 600 16px/1.45 var(--body); color: var(--muted); }
.t-hero__intour a { color: var(--accent); text-underline-offset: 4px; }
.route-list__alone { font: 600 15px/1.45 var(--body); color: var(--accent); text-underline-offset: 4px; }
/* страницы-разделы /tury/ и /ekskursii/: шапка без фото, сравнение в таблице, общая программа */
.hub { padding-bottom: 72px; }
.hub h1 { max-width: 920px; }
.hub .chapter__passport { margin-top: 22px; }
.hub__only { font: 500 12px/1.3 var(--mono); letter-spacing: .04em; color: var(--accent); }
.hub__days { margin-top: 48px; max-width: 760px; }
.cmp-wrap { margin-top: 56px; overflow-x: auto; }
.cmp { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15.5px; line-height: 1.45; }
.cmp th, .cmp td { padding: 14px 16px 14px 0; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(30, 42, 38, .14); }
.cmp thead th { font: 500 12px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--tag); }
.cmp tbody th { font: 700 15.5px/1.35 var(--body); }
.cmp td { color: var(--muted); }
.cmp a { color: var(--ink); font-weight: 700; text-underline-offset: 4px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); }
.crumbs a { color: inherit; }
.t-hero__grid { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.t-hero .eyebrow { color: var(--accent); }
.t-hero h1 { margin: 16px 0 0; font: 800 clamp(34px, 4.4vw, 60px)/1.05 var(--display); letter-spacing: -.015em; }
.t-hero__promise { margin: 18px 0 0; max-width: 560px; font-size: 20px; line-height: 1.5; color: var(--muted); }
.facts { margin: 36px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 22px 28px; padding-block: 26px; border-block: 1px solid var(--line); }
.t-hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 30px; }
.conditions { margin: 0; font-size: 14px; color: var(--muted); }
.t-hero__shot { position: sticky; top: 24px; }
.t-hero__media { position: sticky; top: 88px; min-width: 0; }   /* ниже плавающей шапки */
.t-hero__sub { margin: 12px 0 0; font: 600 20px/1.35 var(--body); color: var(--muted); }
.route-list--days { gap: 30px; }
.route-list--days .route-list__item { align-items: start; }
.route-list__body { display: flex; flex-direction: column; gap: 6px; padding-top: 3px; }
.route-list__items { color: var(--muted); font-size: 16px; line-height: 1.5; }
.t-route__inner { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 24px clamp(32px, 6vw, 96px); align-items: start; }
.t-route__inner > header { position: sticky; top: 32px; }
.route-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.route-list__item { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 18px; align-items: center; }
.route-list__name { font: 600 19px/1.3 var(--body); }
.extras { grid-column: 2; margin-top: 16px; padding: 26px 28px; border: 1px solid var(--line); border-radius: 14px; }
.extras h3 { margin: 0; font: 800 20px/1.2 var(--display); }
.extras ul { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.extras li { padding: 8px 14px; border-radius: 999px; border: 1px solid #DCD4C7; font-size: 15px; color: var(--muted); }
.extras__note { margin: 14px 0 0; }
.t-info__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.info-card { padding: 26px 24px; border-radius: 14px; background: var(--white); border: 1px solid var(--line); }
.info-card h3 { margin: 0; font: 800 19px/1.2 var(--display); }
.info-card p, .info-card li { color: var(--muted); font-size: 16px; }
.info-card ul { margin: 14px 0 0; padding-left: 18px; }
.sticky-book { display: none; }

.text-page__main { padding-top: 40px; }
.prose { max-width: 760px; }
.prose h1 { font: 800 clamp(30px, 4vw, 44px)/1.1 var(--display); }
.prose h2 { margin-top: 36px; font: 700 22px/1.3 var(--body); }
.prose p { font-size: 17px; color: var(--muted); }

/* ---------- маршрут и джип поверх страницы ---------- */
.route, .jeep-layer { position: absolute; left: 0; top: 0; pointer-events: none; overflow: visible; }
.route { z-index: 2; }
.jeep-layer { z-index: 4; }
/* дорога: тёмная кромка, светлое полотно, пунктир посередине; пройденное — сплошной линией */
.route > path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.route .edge { stroke: rgba(30, 42, 38, .13); stroke-width: 17; }
.route .halo { stroke: rgba(250, 248, 244, .92); stroke-width: 13; }
.route .base { stroke: var(--accent); stroke-width: 2.5; stroke-dasharray: 9 10; opacity: .75; }
.route .done { stroke: var(--accent); stroke-width: 4; }
.jeep__body { fill: #17191B; stroke: #F4EFE6; stroke-width: 1.3; }
.jeep__roof { fill: #26292C; }
.jeep__brake rect { fill: #FF4034; }
.jeep__brake { opacity: .3; transition: opacity .25s; }
.jeep.is-braking .jeep__brake { opacity: 1; }
.dust circle { fill: #A8906F; }
/* дорожные знаки у дороги: вырастают, когда джип подъезжает, и качаются, когда проезжает мимо */
.sign { color: var(--ink); }
.sign__inner { transform-box: fill-box; transform-origin: 50% 100%; transform: scale(.15); opacity: 0; transition: transform .7s cubic-bezier(.3, 1.6, .5, 1), opacity .3s; }
.sign.is-up .sign__inner { transform: none; opacity: 1; }
.sign.is-up.is-wobble .sign__inner { animation: wobble 1.1s ease-out; }
@keyframes wobble { 15% { transform: rotate(-10deg); } 35% { transform: rotate(7deg); } 55% { transform: rotate(-4deg); } 75% { transform: rotate(2deg); } 100% { transform: none; } }
.sign__tri { fill: var(--cream); stroke: var(--accent); stroke-width: 3.6; stroke-linejoin: round; }
.sign__post { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; }
.sign use { fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- мобильное меню ---------- */
.menu { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 12px var(--gutter) calc(24px + env(safe-area-inset-bottom, 0px)); border: 0; background: #161E1C; color: var(--cream); }
.menu[open] { display: flex; flex-direction: column; animation: menu-fade .25s ease both; }
.menu::backdrop { background: transparent; }
@keyframes menu-fade { from { opacity: 0; } }
.menu__top { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.menu__top form { margin: 0; }
.menu__close { position: relative; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(247, 241, 231, .1); color: inherit; cursor: pointer; }
.menu__close span { position: absolute; left: 13px; top: 21px; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transform: rotate(45deg); }
.menu__close span + span { transform: rotate(-45deg); }
.menu__nav { display: flex; flex-direction: column; margin: auto 0; }
.menu__nav a { display: flex; align-items: baseline; gap: 14px; padding: 14px 0; border-bottom: 1px solid rgba(247, 241, 231, .12); font: 800 clamp(28px, 8.4vw, 40px)/1.1 var(--display); text-decoration: none; opacity: 0; transform: translateY(18px); animation: menu-in .5s cubic-bezier(.2, .8, .2, 1) forwards; }
.menu__nav a:nth-child(2) { animation-delay: .06s; }
.menu__nav a:nth-child(3) { animation-delay: .12s; }
.menu__nav a:nth-child(4) { animation-delay: .18s; }
.menu__nav small { font: 500 12px/1 var(--mono); letter-spacing: .08em; color: var(--kraft); }
@keyframes menu-in { to { opacity: 1; transform: none; } }
.menu__foot { display: flex; flex-direction: column; align-items: stretch; gap: 14px; }
.menu__foot .live { align-self: flex-start; padding: 0; height: auto; }
.menu :focus-visible { outline-color: var(--cream); }
html:has(.menu[open]) { overflow: hidden; }

/* ---------- адаптив ---------- */
@media (max-width: 1240px) {
  .live { display: none; }
  .site-nav a { padding-inline: 14px; }
}
@media (max-width: 1100px) {
  .t-info__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .site-nav, .rail, .site-head__phone { display: none; }
  .burger { display: inline-flex; }
  .site-head.is-stuck { min-height: 58px; padding: 0 7px 0 18px; }
  .site-head .pill { min-height: 44px; padding: 0 18px; }
  .menu .live { display: inline-flex; }
  .section { padding-block: 72px; }
  .section-head, .chapter__head, .faq__inner, .t-route__inner, .t-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .tours__grid, .tours__grid--two { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
  .book__steps { grid-template-columns: minmax(0, 1fr); }
  .foot__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .t-hero__shot, .t-route__inner > header { position: static; }
  .t-hero__shot { order: -1; max-width: 520px; }
  .t-hero__media { position: static; order: -1; }
  /* главы на телефоне: колонкой; дорога с джипом идёт у правого края — карточки сторис держим в стороне от неё */
  .plan { grid-template-columns: minmax(0, 1fr); }
  .plan__media, .dcard__media, .feast__media, .guide__media { padding-inline: 20px; }
  .dcards { grid-template-columns: minmax(0, 1fr); gap: 64px; }
  .howday__steps, .howday .format { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chapter__foot { flex-direction: column; align-items: flex-start; margin-top: 88px; }
  /* на странице поездки карточка ниже, чтобы подпись кадра не пряталась под нижней панелью записи */
  .tour-page .t-hero__media .gallery { width: min(100%, calc(64vh * 9 / 16)); width: min(100%, calc(64svh * 9 / 16)); }
  /* текстовые ссылки: область касания 44 px вместо 19, а вид прежний */
  .textlink { display: inline-block; padding-block: 12px; margin-block: -12px; }
  .guide { grid-template-columns: minmax(0, 1fr); }
  .guide__media { max-width: 360px; }
  .plan__days { margin-top: 26px; }
  .feast__grid { grid-template-columns: minmax(0, 1fr); }
  /* отзывы колонкой: сначала три, остальные по кнопке */
  .reviews__grid .review:nth-child(n + 4) { display: none; }
  #more-reviews:checked + .reviews__grid .review { display: flex; }
  .reviews__more { display: inline-flex; margin-top: 24px; }
  #more-reviews:checked ~ .reviews__more { display: none; }
  .reviews__grid { grid-template-columns: minmax(0, 1fr); }
  .extras { grid-column: 1; }
  .tour-page .foot { padding-bottom: 120px; }
  .sticky-book { position: fixed; z-index: 7; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 14px; align-items: center; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--bg); box-shadow: 0 -8px 24px rgba(20, 16, 12, .14); }
  .sticky-book__name { font: 700 15px/1.2 var(--body); }
  .sticky-book__price { grid-row: 2; font-size: 13px; color: var(--muted); }
  .sticky-book .btn { grid-row: 1 / span 2; grid-column: 2; min-height: 48px; padding: 0 22px; }
}
@media (max-width: 640px) {
  .t-desk { display: none; } .t-mob { display: inline; }
  .hero-copy { top: 55%; }
  .site-head { gap: 10px; }
  .site-head .pill { padding: 0 14px; font-size: 14px; }
  .tripbar { left: 26px; right: 26px; }
  /* два билета в одну строку: компактнее, а «Написать» на телефоне уже есть в шапке */
  .hero-cta { gap: 10px; }
  .hero-cta .textlink { display: none; }
  .ticket span { min-height: 48px; padding: 0 10px; font-size: 12px; letter-spacing: .06em; }
  .ticket span + span { padding: 0 8px; }
  .hero-h1 { font-size: 23px; }
  .hero-facts { font-size: 14px; }
  .logo { --logo-h: 40px; }
  .site-head.is-stuck .logo { --logo-h: 36px; }
  .format { grid-template-columns: minmax(0, 1fr); }
  .t-info__grid, .foot__inner { grid-template-columns: minmax(0, 1fr); }
  .len__opt { padding: 10px; }
  .len__opt b { font-size: 15px; }
  /* дорога с джипом идёт у края: на телефоне текст главной держим от неё в стороне — запас с той стороны,
     по которой дорога идёт вдоль секции (data-road, по умолчанию справа) */
  .home .wrap { padding-right: calc(var(--gutter) + 18px); }
  .plan__media, .dcard__media, .feast__media, .guide__media { padding-inline: 18px 0; }
  .home [data-road="left"] .wrap { padding-left: calc(var(--gutter) + 18px); padding-right: var(--gutter); }
  .home [data-road="left"] :is(.dcard__media, .feast__media) { padding-inline: 0 18px; }
  /* «включено» одной строкой через точку, а не шестью рядами чипов */
  .offer .trip__incl { display: block; color: var(--muted); font-size: 15px; line-height: 1.55; }
  .offer .trip__incl li { display: inline; padding: 0; background: none; font: inherit; }
  .offer .trip__incl li + li::before { content: " · "; }
  /* как проходит день — списком: иконка слева, текст справа */
  .howday__steps { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .howday__step { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; align-items: start; }
  .howday__ic { grid-row: 1 / span 3; width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sun-drift, .rise, .live__dot, .site-head.is-stuck, .menu[open], .menu__nav a { animation: none; }
  .menu__nav a { opacity: 1; transform: none; }
  .is-here > .route-list__dot::after, .sign.is-up.is-wobble .sign__inner { animation: none; }
  .route-list__dot, .tour__shot img, .site-nav__blob, .sign__inner, .pill, .plan__day .route-list__name, .plan__day .route-list__items, .plan__day .route-list__dot, .len__opt { transition: none; }
}
