/* Green Light — сайт дроп-зони (концепція 1 «Висота»).
   Палітра «висота», Unbounded / Onest / Martian Mono, контроли 12 px і не менше 44 px.
   Сторінка — спуск: небо (hero) → земля → небо (ціни, сертифікат) → земля → небо (заявка) → земля.
   У небесних смугах текст стоїть на суцільних панелях: контраст не залежить від фото неба. */

:root {
  color-scheme: dark;
  --font-display: "Unbounded", "Onest", system-ui, sans-serif;
  --font-text: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-data: "Martian Mono", ui-monospace, "Cascadia Mono", monospace;

  /* темна тема — за замовчуванням */
  --bg: #070B22;
  --surface: #10173A;
  --surface-2: #18214D;
  --text: #EEF3FF;
  --muted: #A9B4D6;
  --line: rgba(238, 243, 255, .16);
  --line-strong: rgba(238, 243, 255, .42);
  --accent: #C6F432;
  --accent-hover: #D6FF55;
  --accent-ink: #070B22;
  --accent-border: #C6F432;
  --link: #9EC2FF;
  --signal-red: #FF6B6B;
  --sky-top: #0B1A57;
  --sky-mid: #2A3F9E;
  --sky-low: #7A6FC8;
  --sky-horizon: #E7A3B8;
  --on-sky: #FFFFFF;
  --on-sky-muted: #E3E9FF;
  /* Затемнення під текстом hero: розраховано на найсвітліший кадр (білі хмари), див. README «Контраст» */
  --hero-scrim: linear-gradient(180deg, rgba(5, 10, 40, .6) 0, rgba(5, 10, 40, 0) 150px), linear-gradient(90deg, rgba(5, 10, 40, .66) 0%, rgba(5, 10, 40, .62) 48%, rgba(5, 10, 40, .57) 72%, rgba(5, 10, 40, 0) 95%);
  --hero-scrim-m: rgba(5, 10, 40, .62);
  --chip: rgba(5, 10, 40, .76);
  --band-scrim: rgba(5, 10, 40, .3);
  --cloud: #2A3266;
  --panel: #070B22;
  --panel-shadow: 0 4px 16px rgba(0, 0, 0, .18);
  --focus: #C6F432;
  --focus-halo: #070B22;
  --radius: 12px;
  --radius-lg: 24px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1280px;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #FFFFFF;
  --surface: #EEF3FB;
  --surface-2: #E1EAF7;
  --text: #0A1033;
  --muted: #4A5578;
  --line: rgba(10, 16, 51, .14);
  --line-strong: rgba(10, 16, 51, .5);
  --accent-ink: #0A1033;
  --accent-border: #0A1033;
  --link: #1F4FC4;
  --signal-red: #C42525;
  --sky-top: #1F5FD6;
  --sky-mid: #3D86F0;
  --sky-low: #7FB5FA;
  --sky-horizon: #CFE6FF;
  --hero-scrim: linear-gradient(180deg, rgba(8, 30, 90, .6) 0, rgba(8, 30, 90, 0) 150px), linear-gradient(90deg, rgba(8, 30, 90, .68) 0%, rgba(8, 30, 90, .64) 48%, rgba(8, 30, 90, .6) 72%, rgba(8, 30, 90, 0) 95%);
  --hero-scrim-m: rgba(8, 30, 90, .64);
  --chip: rgba(8, 30, 90, .78);
  --band-scrim: rgba(8, 30, 90, .12);
  --cloud: #FFFFFF;
  --panel: #FFFFFF;
  --panel-shadow: 0 4px 16px rgba(8, 30, 90, .1);
  --focus: #0A1033;
  --focus-halo: #C6F432;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-text); font-size: 17px; line-height: 1.55;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--focus-halo); border-radius: 8px;
}
.sky :focus-visible, .site-header :focus-visible { outline-color: #C6F432; box-shadow: 0 0 0 6px #070B22; }
.panel :focus-visible, .mobile-menu :focus-visible { outline-color: var(--focus); box-shadow: 0 0 0 6px var(--focus-halo); }

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  background: var(--accent); color: var(--accent-ink);
  padding: 12px 16px; border-radius: var(--radius); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Шапка ---------- */
.site-header { position: absolute; inset: 0 0 auto 0; z-index: 20; color: var(--on-sky); }
.site-header .bar { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; flex: none; }
.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -.01em;
  text-transform: lowercase; white-space: nowrap;
}
/* Набраний вордмарк з точкою-сигналом, поки знак не обрано (brand.js) */
.wordmark .dot {
  width: 12px; height: 12px; border-radius: 50%; flex: none;
  background: #C6F432; box-shadow: 0 0 0 3px rgba(198, 244, 50, .3);
}
.site-footer .wordmark .dot { box-shadow: 0 0 0 2px var(--text); }
.logo { display: none; height: 40px; width: auto; }
[data-theme="dark"] .brand.has-dark .wordmark, [data-theme="light"] .brand.has-light .wordmark { display: none; }
[data-theme="dark"] .brand.has-dark .logo-dark, [data-theme="light"] .brand.has-light .logo-light { display: block; }
/* Шапка лежить на фото неба в обох темах: там завжди світлий знак */
.site-header .brand.has-dark .wordmark { display: none; }
.site-header .brand.has-dark .logo-dark { display: block; }
.site-footer .logo { height: 36px; }

.nav { margin-left: auto; }
.nav ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.nav a {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 11px;
  text-decoration: none; font-size: 15px; font-weight: 500; border-radius: 10px; white-space: nowrap;
}
.nav a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.tools { display: flex; align-items: center; gap: 8px; }
.tools > *, .site-header .brand { flex-shrink: 0; }

.icon-btn {
  width: 44px; height: 44px; display: inline-grid; place-items: center; padding: 0;
  border: 1.5px solid rgba(255, 255, 255, .45); border-radius: var(--radius);
  background: rgba(7, 11, 34, .28); cursor: pointer; color: inherit;
}
.icon-btn:hover { border-color: currentColor; }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* Іконка з файлу Codex: маска, колір — currentColor (app.js, uiIcons) */
.ui-mask { display: inline-block; flex: none; width: 20px; height: 20px; background: currentColor; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.btn .ui-mask.arrow, .gl-pencil .ui-mask { width: 18px; height: 18px; }
/* Тема: «таблетка» день/ніч. Повзунок — сигнальна лампа Green Light (лайм з ореолом, як точка у знаку);
   на ньому іконка обраної теми, друга іконка — приглушена. Геометрія рамки та сама, що в .icon-btn */
.theme-switch {
  position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; align-items: center; justify-items: center;
  width: 88px; height: 44px; padding: 0 4px; flex: none;
  border: 1.5px solid rgba(255, 255, 255, .45); border-radius: var(--radius);
  background: rgba(7, 11, 34, .28); color: inherit; cursor: pointer;
}
.theme-switch:hover { border-color: currentColor; }
.ts-lamp {
  position: absolute; top: 50%; left: 6px; width: 34px; height: 34px; margin-top: -17px; border-radius: 50%;
  background: #C6F432; box-shadow: 0 0 0 3px rgba(198, 244, 50, .28), 0 0 14px rgba(198, 244, 50, .45);
  transition: transform .2s cubic-bezier(.65, 0, .35, 1);
}
.theme-switch[aria-checked="true"] .ts-lamp { transform: translateX(39px); }
.ts-icon { position: relative; display: grid; place-items: center; width: 34px; height: 34px; color: var(--on-sky); opacity: .72; transition: color .2s, opacity .2s; }
.ts-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ts-icon .ui-mask { width: 20px; height: 20px; }
.theme-switch[aria-checked="false"] .ts-day, .theme-switch[aria-checked="true"] .ts-night { color: #070B22; opacity: 1; }
.theme-switch:hover .ts-icon { opacity: 1; }
.menu-btn { display: none; }

/* Перемикач мови: ті самі сім мов, що на вітрині. Кнопка-розкриття зі списком посилань ?lang= */
.lang { position: relative; }
.lang-btn { width: auto; min-width: 44px; padding: 0 12px; display: inline-flex; align-items: center; gap: 8px; font: 600 13px/1 var(--font-data); letter-spacing: .02em; }
.lang-btn::after { content: ""; width: 6px; height: 6px; margin-top: -3px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); transition: transform .15s ease; }
.lang-btn[aria-expanded="true"]::after { transform: translateY(3px) rotate(-135deg); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; min-width: 220px; margin: 0; padding: 8px; list-style: none;
  background: var(--bg); color: var(--text); border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .3);
}
/* Пункт мови: лампа (обрана мова — горить лаймом, як сигнал «зелене світло»), назва, код — мітка висотоміра */
.lang-menu a {
  display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px;
  border-radius: var(--radius); color: var(--text); text-decoration: none; font-size: 15px;
}
.lang-menu a::before {
  content: ""; width: 10px; height: 10px; flex: none; border-radius: 50%;
  border: 1.5px solid var(--line-strong); box-sizing: border-box;
}
.lang-menu a:hover { background: var(--surface); }
.lang-menu a[aria-current] { font-weight: 650; }
.lang-menu a[aria-current]::before { background: #C6F432; border-color: #C6F432; box-shadow: 0 0 0 3px rgba(198, 244, 50, .25); }
[data-theme="light"] .lang-menu a[aria-current]::before { border-color: #0A1033; }
.lang-short {
  margin-left: auto; padding: 4px 6px; border: 1px solid var(--line-strong); border-radius: 6px;
  font: 500 11px/1 var(--font-data); letter-spacing: .04em; color: var(--muted);
}
.lang-menu a[aria-current] .lang-short { color: var(--text); border-color: var(--text); }
.site-header .lang-menu :focus-visible { outline-color: var(--focus); box-shadow: 0 0 0 6px var(--focus-halo); outline-offset: -3px; }
/* Поки довантажується переклад (до 4 с) — без спалаху українського тексту */
.i18n-wait body { visibility: hidden; }
/* Китайська і японська: без від'ємного трекінгу латинських гарнітур, перенос за фразами */
:lang(zh-Hans) h1, :lang(zh-Hans) h2, :lang(zh-Hans) h3, :lang(ja) h1, :lang(ja) h2, :lang(ja) h3 { letter-spacing: 0; }
:lang(ja) { word-break: auto-phrase; }

.mobile-menu {
  position: absolute; left: 0; right: 0; top: 76px;
  background: var(--bg); color: var(--text);
  border-bottom: 1px solid var(--line); box-shadow: 0 16px 40px rgba(0, 0, 0, .3);
  padding: 8px 0 24px;
}
.mobile-menu ul { list-style: none; margin: 0 0 20px; padding: 0; }
.mobile-menu ul a {
  display: flex; align-items: center; min-height: 56px; text-decoration: none;
  font-family: var(--font-display); font-size: 20px; font-weight: 600; border-bottom: 1px solid var(--line);
}
.mobile-menu .btn { width: 100%; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  border-radius: var(--radius); border: 2px solid transparent;
  font-family: var(--font-text); font-weight: 650; font-size: 16px; line-height: 1.2;
  text-decoration: none; cursor: pointer; text-align: center;
  transition: transform .15s ease, background-color .15s ease;
}
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent-border); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:active { transform: translateY(1px); }
.sky .btn-primary, .site-header .btn-primary { color: #070B22; border-color: #C6F432; }
.btn-ghost { border-color: currentColor; background: transparent; }
.btn-ghost:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.btn .arrow { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Картинки: файл → PNG з _source → заглушка ---------- */
.ph { position: relative; overflow: hidden; background: var(--surface-2); }
.ph > img { width: 100%; height: 100%; object-fit: cover; color: transparent; font-size: 0; }
.ph > img.is-missing { display: none; }
.ph.is-missing { background: linear-gradient(135deg, color-mix(in srgb, var(--surface-2) 70%, var(--sky-mid)) 0%, var(--surface-2) 100%); }

/* ---------- Небо і хмари ---------- */
.sky { position: relative; color: var(--on-sky); isolation: isolate; }
.sky::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 45%, var(--sky-low) 80%, var(--sky-horizon) 100%);
}
.sky-photo { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.sky-photo img { width: 100%; height: 100%; object-fit: cover; color: transparent; }
.sky-photo img.is-missing { display: none; }
.sky-photo .for-light { display: none; }
[data-theme="light"] .sky-photo .for-light { display: block; }
[data-theme="light"] .sky-photo .for-dark { display: none; }
[data-theme="light"] .sky-photo .for-light.is-missing { display: none; }

/* Висота = пропорція файлу 2400×600 (25vw), щоб cover не обрізав напівпрозору середину хмар */
.cloud-edge { position: absolute; left: 0; right: 0; height: clamp(90px, 25vw, 360px); pointer-events: none; z-index: 2; }
.cloud-edge.bottom { bottom: -1px; }
.cloud-edge.top { top: -1px; transform: scaleY(-1); }
.cloud-edge::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(closest-side, var(--cloud) 97%, transparent) -2% 100% / 24% 78% no-repeat,
    radial-gradient(closest-side, var(--cloud) 97%, transparent) 17% 100% / 20% 100% no-repeat,
    radial-gradient(closest-side, var(--cloud) 97%, transparent) 37% 100% / 26% 70% no-repeat,
    radial-gradient(closest-side, var(--cloud) 97%, transparent) 56% 100% / 18% 92% no-repeat,
    radial-gradient(closest-side, var(--cloud) 97%, transparent) 76% 100% / 28% 74% no-repeat,
    radial-gradient(closest-side, var(--cloud) 97%, transparent) 102% 100% / 22% 96% no-repeat,
    linear-gradient(0deg, var(--cloud) 0 34%, transparent 34%);
}
/* У темній темі «земля» — це фон сторінки: хмара переходить у нього */
.cloud-edge::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 26%; background: linear-gradient(0deg, var(--bg), transparent); }
[data-theme="light"] .cloud-edge::after { display: none; }
.cloud-edge.has-img::before { display: none; }
.cloud-edge img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: bottom; color: transparent; }
.cloud-edge img.is-missing { display: none; }
.cloud-edge .for-light { display: none; }
[data-theme="light"] .cloud-edge .for-light { display: block; }
[data-theme="light"] .cloud-edge .for-dark { display: none; }
[data-theme="light"] .cloud-edge .for-light.is-missing { display: none; }

/* ---------- Висотомір: прокрутка = спуск з 4000 м. Лише ≥1440 px, де є вільне поле праворуч ---------- */
.altimeter {
  position: fixed; right: 16px; top: 50%; transform: translateY(-50%); z-index: 15;
  display: none; flex-direction: column; align-items: center; gap: 10px;
  width: 92px; padding: 12px 8px; border-radius: var(--radius);
  background: rgba(7, 11, 34, .84); color: #fff; border: 1.5px solid rgba(255, 255, 255, .28);
  pointer-events: none; text-align: center;
}
.alt-n { font-family: var(--font-data); font-size: 15px; font-weight: 500; letter-spacing: -.03em; white-space: nowrap; }
.alt-scale { width: 6px; height: 200px; border-radius: 6px; background: rgba(255, 255, 255, .22); position: relative; overflow: hidden; }
.alt-scale i { position: absolute; left: 0; right: 0; top: 0; height: 0%; background: #C6F432; }
.alt-p { font-size: 12px; line-height: 1.25; color: #D9E1FF; }
@media (min-width: 1440px) { .altimeter { display: flex; } }

/* ---------- Загальне для розділів ---------- */
.ground { padding: clamp(72px, 9vw, 128px) 0; background: var(--bg); position: relative; }
.ground + .ground { padding-top: 0; }
/* біля хмарного краю сам край дає повітря: менше порожнього відступу */
.sky + .ground, .sky-band + .ground { padding-top: clamp(32px, 4vw, 56px); }
.ground:has(+ .sky) { padding-bottom: clamp(32px, 4vw, 56px); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 32px; align-items: end; margin-bottom: 40px; }
.section-head h2 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 3.4vw, 48px); line-height: 1.06; letter-spacing: -.03em; }
.section-head p { margin: 0; color: var(--muted); max-width: 52ch; }
h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.ico { display: block; width: 48px; height: 48px; flex: none; background: var(--text); -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.ico:not([style]) { background: transparent; -webkit-mask: none; mask: none; }
.ico.as-img { background: transparent; -webkit-mask: none; mask: none; }
.ico.as-img img { display: block; width: 100%; height: 100%; }
[data-theme="dark"] .ico.as-img img { filter: invert(1) brightness(.94); }
.ico.is-missing { border-radius: var(--radius); box-shadow: inset 0 0 0 1.5px var(--line-strong); }

/* ---------- 1. Hero ---------- */
.hero { min-height: max(680px, 100svh); display: flex; flex-direction: column; }
.hero .sky-photo::after { content: ""; position: absolute; inset: 0; background: var(--hero-scrim); }
.hero-in { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-top: 120px; padding-bottom: clamp(120px, 23vw, 330px); position: relative; z-index: 3; }
.hero h1 { margin: 0; font-family: var(--font-display); font-weight: 700; line-height: .98; letter-spacing: -.035em; }
.hero h1 .big { display: block; font-size: clamp(56px, 15.5vw, 172px); font-weight: 800; letter-spacing: -.05em; white-space: nowrap; }
/* «米» ширший за «m» і на 1440 заходить на світле небо: контраст 2,98 < 3. Трохи менше число */
:lang(zh-Hans) .hero h1 .big { font-size: clamp(56px, 14vw, 156px); }
.hero h1 .rest { display: block; font-size: clamp(28px, 3.6vw, 52px); line-height: 1.08; margin-top: .25em; max-width: 19ch; }
.hero .lead { max-width: 46ch; margin: 28px 0 0; font-size: clamp(17px, 1.4vw, 19px); color: var(--on-sky-muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .actions { margin-top: 32px; }
.hero-note { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; font-family: var(--font-data); font-size: 14px; color: #fff; }
/* факти — плашки з власним фоном: стоять на найсвітлішій частині кадру */
.hero-note span:not([aria-hidden]) { padding: 6px 12px; border-radius: 10px; background: var(--chip); }
.hero-note span[aria-hidden] { display: none; }

/* ---------- 2. Стрибок у цифрах ---------- */
.descent { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1.5px solid var(--line-strong); }
.descent li { padding: 18px 16px 0 0; position: relative; }
.descent li::before { content: ""; position: absolute; top: -8px; left: 0; width: 1.5px; height: 14px; background: var(--text); }
.descent .v { display: block; font-family: var(--font-data); font-size: clamp(20px, 1.9vw, 27px); font-weight: 500; letter-spacing: -.04em; white-space: nowrap; }
.descent .k { display: block; color: var(--muted); font-size: 15px; line-height: 1.4; margin-top: 6px; }

/* ---------- 3. Види стрибків ---------- */
.jumps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 20px; }
.jump { display: flex; flex-direction: column; gap: 14px; }
.jump .ph { aspect-ratio: 4 / 5; border-radius: var(--radius-lg); }
.jump h3 { margin: 4px 0 0; font-size: 20px; }
.jump p { margin: 0; color: var(--muted); font-size: 15px; }
.facts { margin: 0; display: grid; border-top: 1px solid var(--line); }
.facts div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-family: var(--font-data); font-size: 13px; text-align: right; }
.jump .btn { align-self: flex-start; margin-top: auto; }

/* ---------- 4. Про дроп-зону ---------- */
.about-in { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.about-photo { aspect-ratio: 16 / 11; border-radius: var(--radius-lg); }
.about-text h2 { margin: 0 0 20px; font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 3.4vw, 48px); line-height: 1.06; letter-spacing: -.03em; }
.about-text > p { margin: 0 0 28px; color: var(--muted); }
.about-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.about-points li { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.about-points b { font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.about-points span { color: var(--muted); font-size: 15px; }

/* ---------- 5. День стрибка ---------- */
.day-photos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 48px; }
.day-photos .ph { aspect-ratio: 4 / 3; border-radius: var(--radius); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 28px; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 4px 16px; align-content: start; counter-increment: step; }
.steps .ico { grid-row: 1 / span 2; }
.steps b { font-family: var(--font-display); font-weight: 600; font-size: 17px; line-height: 1.3; }
.steps b::before { content: "0" counter(step) " "; font-family: var(--font-data); font-weight: 500; font-size: 13px; color: var(--muted); margin-right: 4px; }
.steps span:not(.ico) { color: var(--muted); font-size: 15px; }

/* ---------- 6. Умови ---------- */
.rules-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.rules-list li { display: flex; flex-direction: column; gap: 10px; padding: 22px; background: var(--surface); border-radius: var(--radius-lg); }
.rules-list b { font-family: var(--font-display); font-weight: 600; font-size: 17px; margin-top: 6px; }
.rules-list span:not(.ico) { color: var(--muted); font-size: 15px; }

/* ---------- Небесні смуги: ціни + сертифікат, заявка ---------- */
.sky-band { padding: clamp(120px, 21vw, 300px) 0; }
.sky-band .sky-photo::after { content: ""; position: absolute; inset: 0; background: var(--band-scrim); }
.panel { background: var(--panel); color: var(--text); border-radius: var(--radius-lg); box-shadow: var(--panel-shadow); position: relative; z-index: 3; }

/* Панелі лёгкі й компактні: небо лишається головним (рішення головного чату 15.11.2026) */
.prices-sec > .inner, .gift-card { max-width: 980px; margin-left: auto; margin-right: auto; }
.prices-sec > .inner { padding: clamp(24px, 4vw, 48px); }
.prices-sec .section-head { grid-template-columns: 1fr; gap: 10px; margin-bottom: 28px; }
.prices { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--line-strong); }
.prices li { display: grid; grid-template-columns: minmax(0, 10em) minmax(0, 1fr) 10.5em 9em; gap: 8px 24px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.prices h3 { margin: 0; font-size: clamp(18px, 1.6vw, 22px); }
.prices p { margin: 0; color: var(--muted); font-size: 15px; }
.prices .price { font-family: var(--font-data); font-size: clamp(17px, 1.5vw, 20px); white-space: nowrap; text-align: right; }
.prices .btn { justify-self: end; }
.prices-note { margin: 20px 0 0; color: var(--muted); font-size: 15px; }

.gift { margin-top: 32px; }
.gift-card { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); overflow: hidden; }
.gift-photo { min-height: 340px; }
.gift-text { padding: clamp(24px, 4vw, 56px); display: flex; flex-direction: column; gap: 20px; justify-content: center; }
.gift-text h2 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 2.6vw, 36px); line-height: 1.1; letter-spacing: -.03em; }
.gift-text ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.gift-text li { position: relative; padding-left: 26px; color: var(--muted); }
.gift-text li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1.5px var(--accent-border); }
.gift-text .btn { align-self: flex-start; }

/* ---------- 9. Команда ---------- */
.roles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.roles li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 4px 18px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); align-content: start; }
.roles .ico { grid-row: 1 / span 2; }
.roles b { font-family: var(--font-display); font-weight: 600; font-size: 17px; }
.roles span:not(.ico) { color: var(--muted); font-size: 15px; }

/* ---------- 10. Відео ---------- */
.video-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.video-text h2 { margin: 0 0 20px; font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 3.4vw, 48px); line-height: 1.06; letter-spacing: -.03em; }
.video-text > p { margin: 0 0 24px; color: var(--muted); }
.video-opts { margin: 0; display: grid; gap: 16px; }
.video-opts div { padding-left: 18px; border-left: 3px solid var(--accent); }
.video-opts dt { font-weight: 650; }
.video-opts dd { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.video-note { margin: 20px 0 0; font-family: var(--font-data); font-size: 14px; }
.video-frame { margin: 0; }
.video-frame .ph, .video-frame video { aspect-ratio: 16 / 9; width: 100%; border-radius: var(--radius-lg); background: #000; }
.video-frame .ph { background: var(--surface-2); }

/* ---------- 11. Заявка ---------- */
.booking-in { display: grid; max-width: 1120px; margin: 0 auto; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: center; position: relative; z-index: 3; }
.booking-photo { aspect-ratio: 4 / 5; border-radius: var(--radius-lg); box-shadow: var(--panel-shadow); }
.booking-card { padding: clamp(24px, 4vw, 48px); }
.booking-card h2 { margin: 0 0 12px; font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 2.6vw, 36px); line-height: 1.1; letter-spacing: -.03em; }
.booking-card .sub { margin: 0 0 28px; color: var(--muted); font-size: 15px; }
#booking-form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; align-content: start; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.field > label, .field > .label { font-weight: 600; font-size: 15px; }
.ctl { display: block; position: relative; }
.ctl input, .ctl select {
  width: 100%; min-height: 52px; padding: 12px 16px;
  border: 1.5px solid var(--line-strong); border-radius: var(--radius);
  background: var(--surface); color: var(--text); font-size: 16px;
  appearance: none; -webkit-appearance: none;
}
.ctl input:hover, .ctl select:hover { border-color: var(--text); }
.ctl input:focus-visible, .ctl select:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; box-shadow: none; border-color: var(--text); }
.ctl input[type="date"] { appearance: auto; -webkit-appearance: auto; }
/* Кнопка календаря всередині поля — окрема зупинка Tab у Chrome, і тоді :focus-visible поля не спрацьовує.
   Тоді на полі спрацьовує лише :focus-within. Поле для введення й так показує фокус при кліку. */
.ctl input[type="date"]:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; box-shadow: none; border-color: var(--text); }
.ctl input[type="date"]::-webkit-calendar-picker-indicator { cursor: pointer; }
[data-theme="dark"] .ctl input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(1); }
.ctl select option { background: var(--surface); color: var(--text); }
.ctl.is-select::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border: solid var(--text); border-width: 0 2px 2px 0; transform: rotate(45deg); pointer-events: none; }
.ctl.is-select select { padding-right: 44px; cursor: pointer; }
.ctl.invalid input, .ctl.invalid select { border-color: var(--signal-red); border-width: 2px; }
.err { margin: 0; color: var(--signal-red); font-size: 14px; font-weight: 600; }
.hint { margin: 0; padding: 12px 14px; border-radius: var(--radius); background: var(--surface); border-left: 3px solid var(--signal-red); font-size: 14px; }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.seg label { position: relative; display: block; }
.seg input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.seg span {
  display: flex; align-items: center; justify-content: center; text-align: center; min-height: 52px; padding: 6px 10px;
  border: 1.5px solid var(--line-strong); border-radius: var(--radius); font-size: 15px; font-weight: 500;
}
.seg label:hover span { border-color: var(--text); }
.seg input:checked + span { background: var(--accent); color: var(--accent-ink); border-color: var(--accent-border); font-weight: 650; }
.seg input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
#booking-form > .btn { justify-self: start; }
.result { margin-top: 28px; padding: 24px; display: grid; gap: 14px; border-radius: var(--radius-lg); background: var(--surface); }
.result:focus { outline: 0; }
.result h3 { margin: 0; font-size: 20px; }
.result p { margin: 0; color: var(--muted); font-size: 15px; }
.result pre { margin: 0; padding: 16px; border-radius: var(--radius); background: var(--panel); font: 400 14px/1.6 var(--font-data); white-space: pre-wrap; overflow-wrap: anywhere; }
.result .status { min-height: 1.5em; color: var(--text); font-weight: 600; }

/* ---------- 12. Відгуки (на демо вимкнено) ---------- */
.review-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.review-list li { padding: 24px; border-radius: var(--radius-lg); background: var(--surface); display: grid; gap: 16px; align-content: space-between; }
.review-list blockquote { margin: 0; font-size: 17px; }
.review-list .who { margin: 0; display: grid; font-size: 14px; }
.review-list .who span { color: var(--muted); }

/* ---------- 13. Статті ---------- */
.article-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
.article { display: grid; gap: 12px; }
/* Рядки карток спільні (subgrid): заголовок в один чи два рядки не зсуває кнопку «Читати» */
@supports (grid-template-rows: subgrid) {
  .article { grid-row: span 4; grid-template-rows: subgrid; row-gap: 12px; align-content: start; }
}
.article .ph { aspect-ratio: 3 / 2; border-radius: var(--radius-lg); }
.article h3 { margin: 6px 0 0; font-size: 20px; }
.article > p { margin: 0; color: var(--muted); font-size: 15px; }
.article details { border-top: 1px solid var(--line); padding-top: 12px; }
/* «Читати» — та сама геометрія, що й btn-ghost btn-sm: 44 px, радіус 12, рамка 2 px */
.article summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px;
  font-weight: 650; font-size: 15px; color: var(--text); border: 2px solid currentColor; border-radius: var(--radius);
  transition: background-color .15s ease;
}
.article summary:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.article summary::-webkit-details-marker { display: none; }
.article summary::after { content: "+"; font: 600 18px/1 var(--font-data); }
.article details[open] summary::after { content: "−"; }
.article details p { margin: 8px 0 0; font-size: 15px; color: var(--muted); }

/* ---------- 14. Питання ---------- */
.faq-in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 32px clamp(32px, 5vw, 72px); align-items: start; }
.faq-in .section-head { grid-template-columns: 1fr; margin: 0; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center;
  min-height: 64px; padding: 10px 0; font-weight: 600; font-size: 18px; border-radius: 8px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-family: var(--font-data); font-size: 22px; flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: 1.5px solid var(--line-strong); border-radius: var(--radius); }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: 0 0 20px; color: var(--muted); max-width: 66ch; }

/* ---------- 15. Контакти ---------- */
.contacts-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.contacts-text h2 { margin: 0 0 24px; font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 3.4vw, 48px); line-height: 1.06; letter-spacing: -.03em; }
.contact-list { margin: 0 0 28px; display: grid; border-top: 1px solid var(--line); }
.contact-list div { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 4px 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact-list dt { color: var(--muted); font-size: 15px; }
.contact-list dd { margin: 0; }
.contact-list a { color: var(--link); font-weight: 600; text-underline-offset: 4px; display: inline-flex; align-items: center; min-height: 44px; margin: -10px 0; overflow-wrap: anywhere; }
/* Карта OpenStreetMap (Leaflet). До завантаження і без JS видно .geo-static з адресою */
.geo { display: grid; gap: 16px; }
.geo-map { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.geo-static { position: absolute; inset: 0; display: grid; place-content: center; gap: 8px; padding: 24px; text-align: center; }
.geo-static p { margin: 0; }
.geo-static-addr { font-weight: 650; font-size: 19px; }
.geo-static-note { color: var(--muted); font-size: 15px; max-width: 34ch; justify-self: center; }
.geo-canvas { position: absolute; inset: 0; visibility: hidden; background: var(--surface-2); font: 14px/1.4 var(--font-text); }
.geo-map.is-ready .geo-canvas { visibility: visible; }
.geo-map.is-ready .geo-static { visibility: hidden; }
.geo-canvas:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
/* Тайли в темній темі: інверсія і тонування в нічний синій палітри (монохром, без чужих кольорів) */
[data-theme="dark"] .geo-canvas .leaflet-tile-pane { filter: invert(1) grayscale(1) sepia(1) hue-rotate(188deg) saturate(1.5) brightness(1.15) contrast(.85); }
[data-theme="light"] .geo-canvas .leaflet-tile-pane { filter: saturate(.8); }
.geo-map .geo-canvas .leaflet-bar { border: 1.5px solid var(--line-strong); border-radius: var(--radius); box-shadow: none; overflow: hidden; }
.geo-map .geo-canvas .leaflet-bar a { width: 44px; height: 44px; line-height: 44px; font: 600 22px/44px var(--font-text); background: var(--surface); color: var(--text); border-bottom-color: var(--line); }
.geo-map .geo-canvas .leaflet-bar a:hover { background: var(--surface-2); }
.geo-map .geo-canvas .leaflet-bar a.leaflet-disabled { color: var(--muted); background: var(--surface); }
.geo-canvas .leaflet-bar a:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.geo-map .geo-canvas .leaflet-control-attribution { font-size: 12px; background: color-mix(in srgb, var(--surface) 88%, transparent); color: var(--muted); padding: 2px 8px; border-top-left-radius: 8px; }
.geo-map .geo-canvas .leaflet-control-attribution a { color: var(--link); }
/* Маркер — сигнальна лампа знака: колір акценту з темним обідком */
.geo-pin span { display: block; width: 30px; height: 30px; border-radius: 50%; background: #C6F432; border: 4px solid #070B22; box-shadow: 0 0 0 6px rgba(198, 244, 50, .35), 0 6px 16px rgba(0, 0, 0, .35); }
.geo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.geo-coords { margin: 0; color: var(--muted); font-size: 14px; }
.geo-coords-v { font-family: var(--font-data); font-size: 13px; color: var(--text); white-space: nowrap; }
/* План території — доповнення до карти */
.site-plan { margin: clamp(48px, 6vw, 80px) auto 0; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.plan-text h3 { margin: 0 0 8px; font-family: var(--font-display); font-weight: 700; font-size: clamp(20px, 2vw, 26px); letter-spacing: -.02em; }
.plan-text p { margin: 0 0 20px; color: var(--muted); max-width: 46ch; }
.map { margin: 0; display: grid; gap: 16px; }
.map svg { width: 100%; height: auto; display: block; }
/* Схема Codex по темі; поки файлу немає — вбудований SVG (.map-fallback). Без lazy: прихований img з lazy не вантажиться */
.map-img { display: none; width: 100%; height: auto; color: transparent; }
[data-theme="dark"] .map.has-dark .map-img.for-dark, [data-theme="light"] .map.has-light .map-img.for-light { display: block; }
[data-theme="dark"] .map.has-dark .map-fallback, [data-theme="light"] .map.has-light .map-fallback { display: none; }
.m-field { fill: var(--surface); }
.m-road { fill: none; stroke: var(--muted); stroke-width: 10; stroke-linecap: round; }
.m-runway { fill: var(--surface-2); stroke: var(--line-strong); stroke-width: 1.5; }
.m-runway-mark { fill: none; stroke: var(--muted); stroke-width: 2; stroke-dasharray: 16 14; }
.m-hangar { fill: var(--text); }
.m-parking { fill: none; stroke: var(--text); stroke-width: 2.5; stroke-dasharray: 6 5; }
.m-dz { fill: color-mix(in srgb, var(--accent) 35%, transparent); stroke: var(--accent-border); stroke-width: 2.5; }
.m-dz-c { fill: var(--accent-border); }
.m-sock { fill: none; stroke: var(--signal-red); stroke-width: 3; stroke-linejoin: round; }
.map-legend { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; font-size: 14px; color: var(--muted); }
.map-legend li { display: flex; align-items: center; gap: 10px; }
.map-legend i { width: 22px; height: 14px; flex: none; border-radius: 4px; background: var(--lg); border: 2px solid var(--lg-bd, transparent); }
/* Кольори легенди = кольори схеми. Запасний вбудований SVG — свої кольори; схема Codex — з DELIVERY-MANIFEST.json (mapLegend) */
.site-plan {
  --lg-parking: transparent; --lg-parking-bd: var(--text); --lg-hangar: var(--text); --lg-hangar-bd: var(--text);
  --lg-runway: var(--surface-2); --lg-runway-bd: var(--line-strong); --lg-dz: color-mix(in srgb, var(--accent) 35%, transparent); --lg-dz-bd: var(--accent-border);
}
[data-theme="dark"] .site-plan:has(.map.has-dark) {
  --lg-parking: #7A6FC8; --lg-parking-bd: #7A6FC8; --lg-hangar: #E7A3B8; --lg-hangar-bd: #EEF3FF;
  --lg-runway: #EEF3FF; --lg-runway-bd: #EEF3FF; --lg-dz: rgba(198, 244, 50, .13); --lg-dz-bd: #C6F432;
}
[data-theme="light"] .site-plan:has(.map.has-light) {
  --lg-parking: #7A6FC8; --lg-parking-bd: #7A6FC8; --lg-hangar: #E7A3B8; --lg-hangar-bd: #0A1033;
  --lg-runway: #0A1033; --lg-runway-bd: #0A1033; --lg-dz: rgba(63, 98, 18, .13); --lg-dz-bd: #3F6212;
}
.lg-parking { --lg: var(--lg-parking); --lg-bd: var(--lg-parking-bd); border-style: dashed !important; }
[data-theme="dark"] .site-plan:has(.map.has-dark) .lg-parking, [data-theme="light"] .site-plan:has(.map.has-light) .lg-parking { border-style: solid !important; }
.lg-hangar { --lg: var(--lg-hangar); --lg-bd: var(--lg-hangar-bd); }
.lg-runway { --lg: var(--lg-runway); --lg-bd: var(--lg-runway-bd); width: 26px !important; height: 8px !important; }
.lg-dz { --lg: var(--lg-dz); --lg-bd: var(--lg-dz-bd); border-radius: 50% !important; width: 16px !important; height: 16px !important; }

/* ---------- Підвал ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.site-footer .wordmark { color: var(--text); font-size: 17px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0 4px; }
.site-footer nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 8px; color: var(--text); text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-footer .copy { margin: 0 0 0 auto; }

/* ---------- Адаптивність ---------- */
@media (max-width: 1180px) {
  .nav { display: none; }
  .menu-btn { display: inline-grid; }
  .tools { margin-left: auto; }
}
@media (max-width: 1080px) {
  /* планшет: текст hero займає майже всю ширину, затемнення рівне */
  .hero .sky-photo::after { background: var(--hero-scrim-m); }
  .jumps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .descent { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; border-top: 0; }
  .descent li { border-top: 1.5px solid var(--line-strong); }
  .rules-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .roles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prices li { grid-template-columns: minmax(0, 1fr) auto; }
  .prices li p { grid-column: 1 / -1; grid-row: 2; }
  .prices li .price { grid-column: 2; grid-row: 1; }
  .prices li .btn { grid-column: 1; grid-row: 3; justify-self: start; }
  .gift-card { grid-template-columns: 1fr; }
  .gift-photo { min-height: 0; aspect-ratio: 16 / 10; }
  .booking-in { grid-template-columns: 1fr; }
  .booking-photo { display: none; }
  .booking-card { max-width: 760px; width: 100%; margin: 0 auto; }
  .about-in, .video-in, .contacts-in, .site-plan { grid-template-columns: 1fr; }
  .site-plan .map { max-width: 560px; }
  .faq-in { grid-template-columns: 1fr; }
  .review-list, .article-list { grid-template-columns: 1fr 1fr; }
  .site-footer .copy { margin-left: 0; flex-basis: 100%; }
}
@media (max-width: 767px) {
  .section-head { grid-template-columns: 1fr; gap: 12px; margin-bottom: 32px; }
  .hero .actions .btn { flex: 1 1 100%; }
  /* на телефоні текст іде на всю ширину: затемнення рівне */
  .hero .sky-photo::after { background: var(--hero-scrim-m); }
  .day-photos { grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 36px; }
  .descent { grid-template-columns: 1fr 1fr; }
  .rules-list { grid-template-columns: 1fr 1fr; }
  .steps, .roles { grid-template-columns: 1fr; }
  .review-list, .article-list { grid-template-columns: 1fr; }
  .about-points li, .contact-list div { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .seg { grid-template-columns: 1fr; }
  .sky-band { padding: 110px 0; }
  .map-legend { grid-template-columns: 1fr; }
  .geo-map { aspect-ratio: 1 / 1; }
}
/* Шапка на вузьких екранах: кнопка запису — у меню й на першому екрані; знак, мова й тема компактніші,
   щоб «таблетка» теми вміщалася поруч з меню на 360 px */
@media (max-width: 700px) {
  .tools .btn-header { display: none; }
}
@media (max-width: 520px) {
  .site-header .bar { gap: 12px; }
  .tools { gap: 6px; }
  /* Меню мови кріпиться до правого краю всієї групи (мова + тема), щоб не виходити за лівий край екрана */
  .tools { position: relative; }
  .tools .lang { position: static; }
  .site-header .logo { height: 32px; }
  .lang-btn { padding: 0 9px; gap: 6px; }
  .theme-switch { width: 76px; }
  .ts-lamp { left: 5px; width: 30px; height: 30px; margin-top: -15px; }
  .theme-switch[aria-checked="true"] .ts-lamp { transform: translateX(32.5px); }
  .ts-icon { width: 30px; height: 30px; }
  .ts-icon svg, .ts-icon .ui-mask { width: 18px; height: 18px; }
  .jumps { grid-template-columns: 1fr; }
  .jump .ph { aspect-ratio: 16 / 11; }
  .rules-list { grid-template-columns: 1fr; }
  .prices li { grid-template-columns: 1fr; }
  .prices li p, .prices li .price, .prices li .btn { grid-column: 1; grid-row: auto; text-align: left; }
  .gift-text .btn, #booking-form > .btn { width: 100%; justify-self: stretch; }
  .descent .v { font-size: 22px; }
}

/* ---------- Менше руху ---------- */
.btn, .ctl input, .ctl select, .seg span { transition: background-color .15s ease, border-color .15s ease, transform .15s ease; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Режим редагування (editor.js) ---------- */
.gl-editing [data-k], .gl-editing [data-slot] { cursor: pointer; }
.gl-editing [data-k]:hover, .gl-editing .gl-hover { outline: 2px dashed var(--accent); outline-offset: 2px; }
.gl-editing img[data-slot]:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
/* фото ще немає (заглушка): у редакторі місце все одно клікабельне, щоб завантажити своє */
.gl-editing .ph > img.is-missing { display: block; }
.gl-editing [data-optional][hidden] { display: block !important; opacity: .55; }
.gl-editing [data-optional][hidden]::before {
  content: "Розділ вимкнено: відвідувачі його не бачать. Увімкніть на панелі редактора.";
  display: block; max-width: var(--max); margin: 0 auto 24px; padding: 12px var(--gutter);
  border: 2px dashed var(--line-strong); border-radius: var(--radius); font-weight: 600;
}
.gl-editing .video-src { display: block !important; margin-top: 12px; font: 400 13px/1.4 var(--font-data); color: var(--muted); }
.gl-editing .video-src:empty::before { content: "Відео: посилання не задано (показуємо постер). Натисніть, щоб вказати .mp4 або .webm."; }
.gl-pencil {
  position: absolute; z-index: 55; width: 44px; height: 44px; display: grid; place-items: center; border: 2px solid #070B22; cursor: pointer;
  background: #C6F432; color: #070B22; border-radius: var(--radius);
}
.gl-bar {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 60; width: min(calc(100% - 32px), 860px);
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px; border-radius: var(--radius-lg);
  background: var(--surface); color: var(--text); box-shadow: 0 0 0 1px var(--line-strong), 0 12px 32px rgba(0, 0, 0, .35); font-size: 15px;
}
.gl-bar .gl-msg { flex: 1 1 220px; margin: 0; color: var(--muted); }
.gl-bar .gl-msg.bad { color: var(--signal-red); }
.gl-bar .btn { min-height: 44px; padding: 8px 14px; font-size: 15px; }
.gl-dialog { border: 0; padding: 0; border-radius: var(--radius-lg); background: var(--surface); color: var(--text); width: min(calc(100% - 32px), 560px); box-shadow: 0 0 0 1px var(--line-strong), 0 16px 40px rgba(0, 0, 0, .4); }
.gl-dialog::backdrop { background: rgba(5, 10, 18, .6); }
.gl-dialog form { margin: 0; padding: 24px; display: grid; gap: 14px; }
.gl-dialog h2 { margin: 0; font-family: var(--font-display); font-size: 22px; }
.gl-dialog label { font-weight: 600; font-size: 15px; }
.gl-dialog textarea, .gl-dialog select {
  width: 100%; min-height: 120px; padding: 12px; border: 1.5px solid var(--line-strong); border-radius: var(--radius);
  background: var(--bg); color: var(--text); font: 400 16px/1.5 var(--font-text); resize: vertical;
}
.gl-dialog select { min-height: 52px; }
.gl-dialog .gl-hint { margin: 0; color: var(--muted); font-size: 14px; }
.gl-dialog .err { min-height: 1em; }

/* Найвужчі екрани (до 350 px): знак і мова ще компактніші */
@media (max-width: 350px) {
  .site-header .bar { gap: 8px; }
  .site-header .logo { height: 26px; }
  .lang-btn { padding: 0 7px; }
}
