/* ============================================================================
   ОРБІТА — «Планета твоєї відпустки»
   Архітектура кольору: примітиви → семантика → компоненти.
   Компоненти знають ЛИШЕ семантичний шар (--bg/--surface/--ink/--accent/...).
   Клімат країни (html[data-clime]) переозначує тільки семантичний шар.
   ========================================================================== */

/* ---------- 1. Токени ---------- */
:root {
  /* Бренд (легка заміна бренду: ім'я + акценти) */
  --brand-name: "KOLOS";

  /* Примітиви: космос */
  --cosmos-950: #080d33;
  --cosmos-900: #0d1652;
  --cosmos-800: #1a2878;
  --cosmos-700: #283aa0;
  --star-ink: #eef1ff;
  --star-dim: #aeb6e2;
  --atmo: #5e79f2;

  /* Примітиви: золото і жар */
  --orbit-gold: #e3b750;
  --orbit-gold-hi: #f0cd71;
  --orbit-gold-deep: #aa7d25;
  --ember: #f67e42;
  --ember-deep: #b84412;

  /* Семантика (космос за замовчуванням) */
  --bg: var(--cosmos-900);
  --bg-deep: var(--cosmos-950);
  --surface: var(--cosmos-800);
  --surface-hover: var(--cosmos-700);
  --ink: var(--star-ink);
  --ink-dim: var(--star-dim);
  --accent: var(--orbit-gold);
  --accent-text: var(--orbit-gold);
  --on-accent: var(--cosmos-950);
  --cta-bg: var(--orbit-gold);
  --cta-bg-hover: var(--orbit-gold-hi);
  --cta-ink: var(--cosmos-950);
  --hot: var(--ember);
  --line: rgba(255, 255, 255, 0.12);
  --focus: var(--atmo);
  --field-bg: var(--cosmos-700);
  --card-shadow: none;
  --overlay-grad: linear-gradient(to top, rgba(6, 12, 25, 0.82), rgba(6, 12, 25, 0.12) 55%, rgba(6, 12, 25, 0.05));

  /* Типографіка */
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-text: "Manrope", system-ui, sans-serif;
  --font-voice: "Lora", Georgia, serif;
  --t--1: clamp(0.8125rem, 0.78rem + 0.15vw, 0.875rem);
  --t-0: clamp(1rem, 0.95rem + 0.19vw, 1.125rem);
  --t-1: clamp(1.25rem, 1.16rem + 0.38vw, 1.5rem);
  --t-2: clamp(1.5rem, 1.31rem + 0.76vw, 2rem);
  --t-3: clamp(1.875rem, 1.54rem + 1.33vw, 2.75rem);
  --t-4: clamp(2.375rem, 1.76rem + 2.48vw, 4rem);
  --t-hero: clamp(2.75rem, 1.75rem + 6.2vw, 7rem);

  /* Простір, сітка */
  --container-pad: clamp(20px, 4vw, 72px);
  --gutter: clamp(16px, 1.5vw, 28px);
  --section: clamp(72px, 10vh, 160px);
  --header-h: clamp(60px, 8vh, 76px);
  --radius-card: 20px;
  --radius-photo: 14px;
  --radius-field: 12px;
  --radius-chip: 8px;

  /* Моушн */
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-cam: cubic-bezier(0.45, 0, 0.55, 1);

  color-scheme: dark;
  accent-color: var(--accent);
}

/* ---------- Клімати («приземлення»). Тільки семантичний шар ---------- */
html[data-clime="turkiye"] {
  --bg: #eef7f6; --bg-deep: #e3f1ef;
  --surface: #ddeeec; --surface-hover: #cfe6e3;
  --ink: #032c34; --ink-dim: rgba(3, 44, 52, 0.72);
  --accent: #06999a; --accent-text: #0b5e65; --on-accent: #eef7f6;
  --cta-bg: #0b5e65; --cta-bg-hover: #0a6f77; --cta-ink: #eef7f6;
  --hot: #b84412; --line: rgba(3, 44, 52, 0.14);
  --field-bg: #ffffff;
  --gold-ui: var(--orbit-gold-deep);
  --card-shadow: 0 1px 2px rgba(3, 44, 52, 0.06), 0 12px 32px rgba(3, 44, 52, 0.08);
  --overlay-grad: linear-gradient(to top, rgba(238, 247, 246, 1), rgba(3, 44, 52, 0.18) 60%, rgba(3, 44, 52, 0.28));
  color-scheme: light;
}
html[data-clime="egypt"] {
  --bg: #f8f0e1; --bg-deep: #f2e7d2;
  --surface: #efe1c9; --surface-hover: #e7d6b8;
  --ink: #3e2815; --ink-dim: rgba(62, 40, 21, 0.72);
  --accent: #9b6833; --accent-text: #814c1a; --on-accent: #f8f0e1;
  --cta-bg: #814c1a; --cta-bg-hover: #93591f; --cta-ink: #f8f0e1;
  --hot: #b84412; --line: rgba(62, 40, 21, 0.14);
  --field-bg: #fffaf0;
  --card-shadow: 0 1px 2px rgba(62, 40, 21, 0.06), 0 12px 32px rgba(62, 40, 21, 0.08);
  --overlay-grad: linear-gradient(to top, rgba(248, 240, 225, 1), rgba(62, 40, 21, 0.18) 60%, rgba(62, 40, 21, 0.28));
  color-scheme: light;
}
html[data-clime="uae"] {
  --bg: #16171c; --bg-deep: #101116;
  --surface: #212127; --surface-hover: #2b2b32;
  --ink: #eae8e2; --ink-dim: rgba(234, 232, 226, 0.66);
  --accent: #e1b850; --accent-text: #e1b850; --on-accent: #16171c;
  --cta-bg: #e1b850; --cta-bg-hover: #efcd71; --cta-ink: #16171c;
  --hot: #f67e42; --line: rgba(225, 184, 80, 0.18);
  --field-bg: #2a2a31;
  --card-shadow: none;
  --overlay-grad: linear-gradient(to top, rgba(22, 23, 28, 0.92), rgba(22, 23, 28, 0.2) 60%, rgba(22, 23, 28, 0.08));
  color-scheme: dark;
}
html[data-clime="greece"] {
  --bg: #f9fafc; --bg-deep: #eef2f7;
  --surface: #ebf0f4; --surface-hover: #dfe7ee;
  --ink: #192230; --ink-dim: rgba(25, 34, 48, 0.7);
  --accent: #2463ae; --accent-text: #2463ae; --on-accent: #ffffff;
  --cta-bg: #2463ae; --cta-bg-hover: #0d458c; --cta-ink: #ffffff;
  --hot: #b84412; --line: rgba(25, 34, 48, 0.14);
  --field-bg: #ffffff;
  --card-shadow: 0 1px 2px rgba(25, 34, 48, 0.06), 0 12px 32px rgba(25, 34, 48, 0.08);
  --overlay-grad: linear-gradient(to top, rgba(249, 250, 252, 1), rgba(25, 34, 48, 0.18) 60%, rgba(25, 34, 48, 0.28));
  color-scheme: light;
}
html[data-clime="montenegro"] {
  --bg: #eff4f6; --bg-deep: #e4ecef;
  --surface: #e6e5dc; --surface-hover: #dcdacd;
  --ink: #212a33; --ink-dim: rgba(33, 42, 51, 0.72);
  --accent: #1785af; --accent-text: #125c82; --on-accent: #eff4f6;
  --cta-bg: #125c82; --cta-bg-hover: #156c97; --cta-ink: #eff4f6;
  --hot: #b84412; --line: rgba(33, 42, 51, 0.14);
  --field-bg: #ffffff;
  --card-shadow: 0 1px 2px rgba(33, 42, 51, 0.06), 0 12px 32px rgba(33, 42, 51, 0.08);
  --overlay-grad: linear-gradient(to top, rgba(239, 244, 246, 1), rgba(33, 42, 51, 0.18) 60%, rgba(33, 42, 51, 0.28));
  color-scheme: light;
}

/* ---------- 2. Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--t-0);
  line-height: 1.6;
  min-height: 100svh;
  overflow-x: clip;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
input, button, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--on-accent); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 100;
  background: var(--cta-bg); color: var(--cta-ink);
  padding: 10px 18px; border-radius: 999px;
  transform: translateY(-200%); transition: transform 0.3s var(--ease-soft);
  text-decoration: none; font-weight: 700; font-size: var(--t--1);
}
.skip-link:focus-visible { transform: translateY(0); }

/* Числа і ціни — табличні */
.num, .price, .t-card__price, .buy__price, output { font-variant-numeric: tabular-nums lining-nums; }

/* ---------- 3. Зерно і зорі ---------- */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 90;
  pointer-events: none;
  opacity: 0.025;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.stars {
  position: fixed; inset: -20vh 0; z-index: 0;
  pointer-events: none;
}
.stars canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
html[data-clime] .stars { display: none; }

/* ---------- 4. Лейаут ---------- */
.container {
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--container-pad);
}
.section { padding-block: calc(var(--section) / 2); position: relative; z-index: 30; }
.section--first { padding-top: var(--section); }
.section-head {
  display: flex; flex-wrap: wrap; gap: 12px 24px;
  align-items: baseline; justify-content: space-between;
  margin-bottom: clamp(24px, 4vh, 48px);
}
.section-head h2 { font-size: var(--t-3); }
@media (min-width: 960px) {
  .section-head { padding-inline-start: 8.333%; }
}
.eyebrow {
  display: block;
  font-size: var(--t--1);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 10px;
}
.voice {
  font-family: var(--font-voice);
  font-style: italic;
  font-size: var(--t-1);
  color: var(--ink-dim);
}

/* ---------- 5. Хедер ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color 0.4s var(--ease-soft), border-color 0.4s var(--ease-soft);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled,
.site-header--solid {
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  border-bottom-color: var(--line);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .site-header.is-scrolled, .site-header--solid { background: var(--bg); }
}
.site-header .container {
  width: 100%;
  display: flex; align-items: center; gap: clamp(16px, 3vw, 40px);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}
.brand svg { width: 34px; height: 34px; color: var(--accent); }
.brand-name::after {
  content: var(--brand-name);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  color: var(--ink);
}
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: clamp(18px, 2.5vw, 36px); list-style: none; padding: 0; align-items: center; }
.site-nav a {
  position: relative;
  text-decoration: none;
  color: var(--ink-dim);
  font-weight: 600;
  font-size: var(--t--1);
  letter-spacing: 0.02em;
  transition: color 0.25s;
}
.site-nav a:hover, .site-nav a[aria-current] { color: var(--ink); }
@media (min-width: 960px) {
  /* елегантне підкреслення, що «малюється» (замість статичного) */
  .site-nav a::after {
    content: ""; position: absolute; left: 0; bottom: -6px; height: 1.5px; width: 0;
    background: var(--accent); transition: width 0.3s var(--ease-soft);
  }
  .site-nav a:hover::after, .site-nav a[aria-current]::after { width: 100%; }
}
.header-phone {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; font-weight: 700; font-size: var(--t--1);
  color: var(--ink); white-space: nowrap;
}
.header-phone svg { width: 18px; height: 18px; color: var(--accent-text); }
/* ---------- Преміум-тоглер «Меню» (замість банального ≡) ---------- */
.nav-burger {
  display: none; align-items: center; gap: 11px;
  margin-left: auto; padding: 8px 2px;
  background: transparent; border: 0; cursor: pointer; color: var(--ink);
  -webkit-tap-highlight-color: transparent;
}
.brg-label {
  font-family: var(--font-text); font-weight: 700;
  font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ink); transition: color 0.25s;
}
.brg-ico { position: relative; width: 26px; height: 11px; flex-shrink: 0; }
.brg-ico i {
  position: absolute; height: 1.5px; border-radius: 2px; background: var(--accent);
  transition: transform 0.42s var(--ease-soft), width 0.3s var(--ease-soft), top 0.3s, bottom 0.3s, left 0.3s;
}
.brg-ico i:nth-child(1) { top: 0; left: 0; width: 100%; }
.brg-ico i:nth-child(2) { bottom: 0; right: 0; left: auto; width: 64%; }
.nav-burger:hover .brg-ico i:nth-child(2) { width: 100%; }
.nav-burger:hover .brg-label { color: var(--accent-text); }
body.menu-open .brg-ico i:nth-child(1) { top: 5px; width: 100%; transform: rotate(45deg); }
body.menu-open .brg-ico i:nth-child(2) { bottom: 4px; left: 0; width: 100%; transform: rotate(-45deg); }

/* нижній блок меню (пошта + CTA) — лише на мобільному */
.nav-foot { display: none; }

@media (max-width: 959px) {
  .nav-burger { display: inline-flex; }
  .header-phone--top { display: none; }

  /* Класичне компактне меню — випадна панель під шапкою (не повноекранне) */
  .site-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 49;
    background: color-mix(in srgb, var(--bg-deep) 98%, transparent);
    border-top: 1px solid var(--line);
    box-shadow: 0 26px 50px rgba(0, 0, 0, 0.45);
    padding: 4px clamp(16px, 5vw, 26px) 20px;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    transform: translateY(-14px); opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.28s var(--ease-soft), transform 0.32s var(--ease-soft), visibility 0.32s;
  }
  @supports not (background: color-mix(in srgb, red, blue)) { .site-nav { background: var(--bg-deep); } }
  .site-nav.is-open { transform: none; opacity: 1; visibility: visible; pointer-events: auto; }

  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; width: 100%; margin: 0; }
  .site-nav ul li { width: 100%; border-bottom: 1px solid var(--line); }
  .site-nav a {
    display: block; padding: 15px 2px;
    font-family: var(--font-text); font-weight: 600; font-size: 1.06rem; letter-spacing: 0.01em;
    color: var(--ink);
  }
  .site-nav a::after { display: none; }
  .site-nav a[aria-current] { color: var(--accent-text); }

  .site-nav .nav-phone-big { border-bottom: 0; }
  .site-nav .nav-phone-big a { color: var(--accent-text); font-weight: 800; font-size: 1.12rem; padding: 16px 2px 6px; }

  .nav-foot { display: flex; flex-direction: column; gap: 12px; width: 100%; padding-top: 12px; }
  .nav-foot__mail { color: var(--ink-dim); font-weight: 600; font-size: 0.95rem; text-decoration: none; overflow-wrap: anywhere; }
  .nav-foot__mail:hover { color: var(--ink); }
  .nav-foot__cta { width: 100%; justify-content: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .site-nav, .site-nav.is-open ul li, .site-nav.is-open .nav-foot > *, .brg-ico i { transition: none; animation: none; }
}
body.menu-open { overflow: hidden; }

/* ---------- 6. Кнопки, чипи, поля ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 0.85em 1.9em;
  border-radius: 999px;
  background: var(--cta-bg);
  color: var(--cta-ink);
  font-weight: 800;
  font-size: var(--t-0);
  text-decoration: none;
  border: 0;
  transition: background-color 0.3s var(--ease-soft), transform 0.2s var(--ease-soft);
  min-height: 44px;
}
.btn::after {
  content: "";
  position: absolute; inset: -5px;
  border: 1px solid color-mix(in srgb, var(--cta-bg) 60%, transparent);
  border-radius: 999px;
  opacity: 0;
  transform: rotate(-14deg) scale(0.96);
  transition: opacity 0.8s var(--ease-soft), transform 0.8s var(--ease-soft);
  pointer-events: none;
}
.btn:hover { background: var(--cta-bg-hover); }
.btn:hover::after { opacity: 1; transform: rotate(0deg) scale(1); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; }
.btn--ghost {
  background: transparent;
  color: var(--ink-dim);
  border: 1px solid var(--line);
  font-weight: 700;
}
.btn--ghost:hover { background: transparent; color: var(--ink); border-color: var(--ink-dim); }
.btn--ghost::after { display: none; }
.btn--sm { padding: 0.6em 1.3em; font-size: var(--t--1); min-height: 40px; }
.btn--block { width: 100%; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-chip);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent-text);
  font-size: var(--t--1);
  font-weight: 700;
  white-space: nowrap;
}
.chip svg { width: 14px; height: 14px; }
.chip--ghost { background: transparent; border: 1px solid var(--line); color: var(--ink-dim); }
.chip--btn { cursor: pointer; transition: background-color 0.2s; min-height: 32px; }
.chip--btn:hover { background: color-mix(in srgb, var(--accent) 18%, transparent); }

.f-field { display: grid; gap: 6px; }
.f-field > label, .f-label {
  font-size: var(--t--1);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.f-control {
  width: 100%;
  background: var(--field-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-field);
  padding: 0.75em 1em;
  color: var(--ink);
  min-height: 48px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.f-control:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 25%, transparent);
}
.f-control[aria-invalid="true"] { border-color: var(--hot); }
textarea.f-control { resize: vertical; min-height: 90px; }
.f-error { color: var(--hot); font-size: var(--t--1); font-weight: 600; min-height: 1.2em; }
.f-hint { color: var(--ink-dim); font-size: var(--t--1); }
.select-wrap { position: relative; }
.select-wrap select { appearance: none; padding-right: 2.6em; }
.select-wrap > svg {
  position: absolute; right: 14px; top: 50%;
  width: 16px; height: 16px;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--ink-dim);
}

/* Степери */
.stepper {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--field-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-field);
  padding: 3px;
}
.stepper button {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9px;
  color: var(--ink-dim);
  transition: background-color 0.2s, color 0.2s;
}
.stepper button:hover:not(:disabled) { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent-text); }
.stepper button:disabled { opacity: 0.35; cursor: not-allowed; }
.stepper button svg { width: 16px; height: 16px; }
.stepper output { min-width: 2ch; text-align: center; font-weight: 800; }

/* ---------- 7. Hero (index) ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  background: var(--bg-deep);
  overflow: clip;
  z-index: 10;
}
.globe-scene {
  position: absolute; inset: 0;
  z-index: 1;
}
#globe-stage { position: absolute; inset: 0; }
#globe-stage canvas { position: absolute; inset: 0; touch-action: pan-y; }
.globe-fallback { position: absolute; inset: 0; }
.globe-fallback img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.globe-fallback::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 70% 20%, transparent 30%, var(--cosmos-950) 92%);
}
.globe-scene.is-3d .globe-fallback { display: none; }
.fb-marker {
  position: absolute; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none;
  color: var(--star-ink);
  font-size: var(--t--1);
  font-weight: 700;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  background: rgba(6, 12, 25, 0.55);
  border: 1px solid rgba(227, 183, 80, 0.35);
  transition: border-color 0.25s, background-color 0.25s;
}
.fb-marker::before {
  content: "";
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--orbit-gold);
  box-shadow: 0 0 12px rgba(227, 183, 80, 0.6);
}
.fb-marker:hover { border-color: var(--orbit-gold); background: rgba(6, 12, 25, 0.8); }
.hero-content {
  position: relative; z-index: 30;
  width: 100%;
  padding-block: calc(var(--header-h) + 24px) clamp(32px, 6vh, 72px);
}
.hero h1 {
  font-size: var(--t-hero);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 0.98;
  max-width: 11ch;
  margin-bottom: 16px;
}
.hero-sub { font-size: var(--t-1); color: var(--ink-dim); max-width: 46ch; margin-bottom: clamp(24px, 4vh, 40px); }

/* Пошук */
.search {
  display: grid;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: clamp(14px, 2vw, 20px);
  max-width: 980px;
}
.search .f-field { gap: 4px; }
.search-pax { display: flex; gap: 16px; flex-wrap: wrap; }
.search-pax .pax { display: grid; gap: 4px; }
.search-submit { align-self: end; }
@media (min-width: 960px) {
  .search { grid-template-columns: 1.1fr 1fr 1.3fr auto; align-items: end; }
}

/* Глобус: десктоп зміщення, мобайл-«ілюмінатор» */
@media (min-width: 960px) {
  .globe-scene { left: 28%; }
  .globe-fallback::after { background: radial-gradient(110% 100% at 75% 30%, transparent 35%, var(--cosmos-950) 95%); }
}
@media (max-width: 959px) {
  .hero { min-height: auto; padding-top: var(--header-h); display: block; }
  .globe-scene { position: relative; height: 46svh; inset: auto; }
  .hero-content { padding-top: 20px; }
  .hero h1 { max-width: none; }
}

/* ---------- 8. Стрічка гарячих ---------- */
.hstrip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(80vw, 330px);
  gap: var(--gutter);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px var(--container-pad) 24px;
  scrollbar-width: thin;
  scrollbar-color: var(--surface-hover) transparent;
}
.hstrip > * { scroll-snap-align: start; }

/* ---------- 9. Картка тура ---------- */
.t-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 6px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--card-shadow);
  transition: transform 0.35s var(--ease-soft), background-color 0.35s var(--ease-soft);
}
.t-card:hover { transform: translateY(-4px); background: var(--surface-hover); }
.t-card__media { position: relative; border-radius: var(--radius-photo); overflow: clip; }
.t-card__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.t-card--hot .t-card__media::after {
  content: "";
  position: absolute; inset: auto 0 0 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--ember) 30%, var(--ember) 70%, transparent);
}
.t-card__badge {
  position: absolute; top: 10px; left: 10px;
  background: rgba(6, 12, 25, 0.78);
  color: var(--orbit-gold-hi);
  font-size: var(--t--1);
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-chip);
}
.t-card__body { display: flex; flex-direction: column; gap: 8px; padding: 14px 12px 12px; flex: 1; }
.t-card__loc { font-size: var(--t--1); color: var(--ink-dim); font-weight: 600; }
.t-card__hotel { font-size: var(--t-1); font-family: var(--font-display); font-weight: 500; line-height: 1.2; }
.t-card__stars { display: inline-flex; gap: 2px; color: var(--accent-text); vertical-align: 2px; margin-left: 8px; }
.t-card__stars svg { width: 13px; height: 13px; fill: currentColor; stroke: none; }
.t-card__meta { display: flex; flex-wrap: wrap; gap: 6px; }
.t-card__foot {
  margin-top: auto;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 10px;
  padding-top: 8px;
}
.t-card__dep { font-size: var(--t--1); color: var(--ink-dim); line-height: 1.4; }
.t-card__price { text-align: right; line-height: 1.15; }
.t-card__price .old {
  display: block;
  text-decoration: line-through;
  color: var(--ink-dim);
  font-size: var(--t--1);
}
.t-card__price .now { font-size: var(--t-1); font-weight: 800; white-space: nowrap; }
.t-card--hot .t-card__price .now { color: var(--hot); }
.t-card__price .per { display: block; font-size: var(--t--1); color: var(--ink-dim); font-weight: 600; }
.hot-mark {
  font-size: var(--t--1);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hot);
}

/* Сітка карток (container queries + фолбек) */
.cards { display: grid; gap: var(--gutter); }
.cards-cq { container-type: inline-size; }
@container (min-width: 560px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@container (min-width: 880px) { .cards { grid-template-columns: repeat(3, 1fr); } }
@supports not (container-type: inline-size) {
  @media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
  @media (min-width: 1100px) { .cards { grid-template-columns: repeat(3, 1fr); } }
}
/* Правило дуги: вертикальний зсув карток як точок орбіти */
@media (min-width: 960px) {
  .orbit-lift > :nth-child(3n+2) { transform: translateY(24px); }
  .orbit-lift > :nth-child(3n)   { transform: translateY(48px); }
  .orbit-lift > :nth-child(3n+2):hover { transform: translateY(20px); }
  .orbit-lift > :nth-child(3n):hover   { transform: translateY(44px); }
  .orbit-lift { padding-bottom: 48px; }
}

/* ---------- 10. Сітка напрямків ---------- */
.dest-grid { display: grid; gap: var(--gutter); }
.dest-card {
  position: relative;
  display: flex; align-items: flex-end;
  min-height: 240px;
  border-radius: var(--radius-card);
  overflow: clip;
  text-decoration: none;
  color: var(--star-ink);
  isolation: isolate;
}
.dest-card img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.9s var(--ease-soft);
}
.dest-card::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: var(--overlay-grad, linear-gradient(to top, rgba(6,12,25,.82), rgba(6,12,25,.1) 60%));
  background: linear-gradient(to top, rgba(6, 12, 25, 0.85), rgba(6, 12, 25, 0.15) 55%, rgba(6, 12, 25, 0.05));
}
.dest-card:hover img { transform: scale(1.04); }
.dest-card__body { padding: clamp(16px, 2.5vw, 28px); width: 100%; }
.dest-card__name { font-size: var(--t-2); font-family: var(--font-display); font-weight: 500; margin-bottom: 4px; }
.dest-card__sub { font-size: var(--t--1); color: rgba(232, 235, 241, 0.78); margin-bottom: 10px; }
.dest-card__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.dest-card__price { font-weight: 800; color: var(--orbit-gold-hi); }
.dest-card__count { font-size: var(--t--1); color: rgba(232, 235, 241, 0.78); font-weight: 600; }
@media (min-width: 960px) {
  .dest-grid {
    grid-template-columns: repeat(6, 1fr);
    grid-template-areas:
      "t t t t e e"
      "t t t t e e"
      "u u g g m m";
  }
  .dest-card--turkey { grid-area: t; min-height: 460px; }
  .dest-card--egypt { grid-area: e; }
  .dest-card--uae { grid-area: u; }
  .dest-card--greece { grid-area: g; }
  .dest-card--montenegro { grid-area: m; }
}
@media (min-width: 640px) and (max-width: 959px) {
  .dest-grid { grid-template-columns: 1fr 1fr; }
  .dest-card--turkey { grid-column: 1 / -1; min-height: 320px; }
}

/* ---------- 11. «Чому Орбіта» ---------- */
.why-grid { display: grid; gap: var(--gutter); }
@media (min-width: 640px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) {
  .why-grid { grid-template-columns: repeat(4, 1fr); }
  .why-grid > :nth-child(2) { transform: translateY(24px); }
  .why-grid > :nth-child(3) { transform: translateY(48px); }
  .why-grid > :nth-child(4) { transform: translateY(72px); }
  .why-grid { padding-bottom: 72px; }
}
.why-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: clamp(18px, 2.5vw, 28px);
  box-shadow: var(--card-shadow);
}
.why-item__icon {
  width: 52px; height: 52px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--accent-text);
  margin-bottom: 16px;
}
.why-item__icon svg { width: 26px; height: 26px; }
.why-item h3 { font-size: var(--t-0); font-family: var(--font-text); font-weight: 800; margin-bottom: 8px; }
.why-item p { font-size: var(--t--1); color: var(--ink-dim); }

/* ---------- 12. Відгуки ---------- */
.review-grid { display: grid; gap: var(--gutter); }
@media (min-width: 960px) { .review-grid { grid-template-columns: repeat(3, 1fr); } }
.review {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: clamp(18px, 2.5vw, 28px);
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: var(--card-shadow);
}
.review__head { display: flex; align-items: center; gap: 12px; }
.review__ava {
  width: 46px; height: 46px; flex-shrink: 0;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent-text);
  font-weight: 800;
  font-size: var(--t--1);
  letter-spacing: 0.04em;
}
.review__name { font-weight: 800; }
.review__meta { font-size: var(--t--1); color: var(--ink-dim); }
.review p { font-size: var(--t--1); color: var(--ink-dim); line-height: 1.65; }

/* ---------- 13. CTA-смуга ---------- */
.cta-band {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: clamp(24px, 4vw, 48px);
  display: flex; flex-wrap: wrap; gap: 20px;
  align-items: center; justify-content: space-between;
}
.cta-band h2 { font-size: var(--t-2); max-width: 24ch; }
.cta-band p { color: var(--ink-dim); font-size: var(--t--1); margin-top: 6px; }
.cta-band__phone {
  font-family: var(--font-display);
  font-size: var(--t-2);
  font-weight: 500;
  color: var(--accent-text);
  text-decoration: none;
  white-space: nowrap;
}

/* ---------- 14. Футер ---------- */
.site-footer {
  position: relative; z-index: 30;
  border-top: 1px solid var(--line);
  margin-top: var(--section);
  padding: clamp(40px, 6vh, 72px) 0 32px;
  background: var(--bg-deep);
}
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.site-footer h3 {
  font-size: var(--t--1);
  font-family: var(--font-text);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.site-footer li { font-size: var(--t--1); color: var(--ink-dim); line-height: 1.5; }
.site-footer a { color: var(--ink-dim); text-decoration: none; transition: color 0.2s; font-size: var(--t--1); }
.site-footer a:hover { color: var(--ink); }
/* месенджери + соцмережі у футері */
.foot-social { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 14px; }
.soc-btn {
  width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); color: var(--ink-dim);
  transition: color 0.2s var(--ease-soft), border-color 0.2s var(--ease-soft), background-color 0.2s var(--ease-soft), transform 0.2s var(--ease-soft);
}
.soc-btn svg { width: 19px; height: 19px; }
.soc-btn:hover { color: var(--cosmos-950); background: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.footer-about { font-size: var(--t--1); color: var(--ink-dim); max-width: 36ch; margin-top: 14px; }
.footer-note {
  margin-top: 40px; padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: space-between;
  font-size: var(--t--1); color: var(--ink-dim);
}

/* ---------- 15. Сторінка країни ---------- */
.country-hero {
  position: relative;
  min-height: clamp(360px, 45vh, 540px);
  display: flex; align-items: flex-end;
  padding-top: var(--header-h);
  isolation: isolate;
  z-index: 10;
}
.country-hero img.bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
}
.country-hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: var(--overlay-grad);
}
.country-hero .container { padding-bottom: clamp(24px, 4vh, 48px); width: 100%; }
.country-hero h1 { font-size: var(--t-4); color: var(--ink); }
html[data-clime="turkiye"] .country-hero h1,
html[data-clime="egypt"] .country-hero h1,
html[data-clime="greece"] .country-hero h1,
html[data-clime="montenegro"] .country-hero h1 { text-shadow: 0 1px 24px rgba(255, 255, 255, 0.25); }
.country-hero .sub { color: var(--ink-dim); margin-top: 8px; font-weight: 600; }
.crumbs {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  list-style: none; padding: 0;
  font-size: var(--t--1); font-weight: 600;
  color: var(--ink-dim);
  margin-bottom: 14px;
}
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs svg { width: 12px; height: 12px; opacity: 0.6; }

/* Фільтри */
.filters {
  position: sticky; top: var(--header-h); z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding-block: 14px;
}
.filters-row { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: end; }
.filters-row .f-field { min-width: 150px; flex: 1; max-width: 220px; }
.filters-row .f-control { min-height: 44px; padding-block: 0.55em; }
.filters-meta {
  display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center;
  margin-top: 10px;
  font-size: var(--t--1); color: var(--ink-dim); font-weight: 600;
}
.filters-meta .count { color: var(--ink); }
.filters-open { display: none; }
.filters-scrim { display: none; }
@media (max-width: 959px) {
  .filters { position: static; border-bottom: 0; padding-block: 8px 0; }
  .filters-open {
    display: inline-flex;
    position: sticky; top: calc(var(--header-h) + 10px); z-index: 39;
  }
  .filters-sheet {
    position: fixed; inset: auto 0 0 0; z-index: 70;
    background: var(--bg);
    border-top: 1px solid var(--line);
    border-radius: 20px 20px 0 0;
    padding: 20px var(--container-pad) calc(20px + env(safe-area-inset-bottom));
    transform: translateY(105%);
    transition: transform 0.45s var(--ease-soft);
    max-height: 82svh; overflow-y: auto;
  }
  .filters-sheet.is-open { transform: translateY(0); }
  .filters-sheet .filters-row { flex-direction: column; align-items: stretch; }
  .filters-sheet .filters-row .f-field { max-width: none; }
  .filters-scrim {
    position: fixed; inset: 0; z-index: 69;
    background: rgba(6, 12, 25, 0.55);
    opacity: 0; pointer-events: none;
    transition: opacity 0.35s;
    display: block; border: 0;
  }
  .filters-scrim.is-open { opacity: 1; pointer-events: auto; }
}
.empty-state {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: clamp(24px, 4vw, 48px);
  text-align: center;
}
.empty-state h3 { font-size: var(--t-1); margin-bottom: 8px; }
.empty-state p { color: var(--ink-dim); font-size: var(--t--1); }

.other-dirs { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.other-dirs a {
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-dim);
  font-weight: 700;
  font-size: var(--t--1);
  transition: color 0.2s, border-color 0.2s;
}
.other-dirs a:hover { color: var(--ink); border-color: var(--accent); }

/* ---------- 16. Сторінка туру ---------- */
.tour-layout { display: grid; gap: clamp(24px, 3vw, 48px); }
@media (min-width: 960px) { .tour-layout { grid-template-columns: 1.6fr 0.9fr; align-items: start; } }
.gallery { display: grid; gap: 8px; }
.gallery__main {
  width: 100%;
  border-radius: var(--radius-photo);
  overflow: clip;
  border: 0; padding: 0;
  cursor: zoom-in;
  background: var(--surface);
}
.gallery__main img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.gallery__thumbs button {
  border-radius: 10px; overflow: clip;
  border: 2px solid transparent;
  padding: 0;
  transition: border-color 0.2s;
}
.gallery__thumbs button.is-active { border-color: var(--accent); }
.gallery__thumbs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.tour-head h1 { font-size: var(--t-3); }
.tour-head .t-card__stars svg { width: 18px; height: 18px; }
.tour-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.included { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gutter); }
@media (min-width: 640px) { .included { grid-template-columns: repeat(4, 1fr); } }
.included li {
  list-style: none;
  display: grid; gap: 8px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-photo);
  font-size: var(--t--1);
  box-shadow: var(--card-shadow);
}
.included li svg { width: 24px; height: 24px; color: var(--accent-text); }
.included li b { font-weight: 800; }
.included li span { color: var(--ink-dim); }

.dates-list { display: grid; gap: 10px; padding: 0; list-style: none; }
.date-opt { position: relative; }
.date-opt input { position: absolute; opacity: 0; pointer-events: none; }
.date-opt label {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 6px 16px; align-items: center;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-field);
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
  box-shadow: var(--card-shadow);
}
.date-opt input:checked + label {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
}
.date-opt input:focus-visible + label { outline: 2px solid var(--focus); outline-offset: 2px; }
.date-opt .d { font-weight: 800; white-space: nowrap; }
.date-opt .c { color: var(--ink-dim); font-size: var(--t--1); font-weight: 600; }
.date-opt .p { font-weight: 800; white-space: nowrap; }
.date-opt .p .old { text-decoration: line-through; color: var(--ink-dim); font-weight: 600; font-size: var(--t--1); margin-right: 8px; }

.buy {
  position: sticky; top: calc(var(--header-h) + 20px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: clamp(18px, 2.5vw, 28px);
  display: grid; gap: 14px;
  box-shadow: var(--card-shadow);
  z-index: 35;
}
.buy__price { font-family: var(--font-display); font-size: var(--t-2); font-weight: 600; }
.buy__price .old { display: block; font-family: var(--font-text); text-decoration: line-through; color: var(--ink-dim); font-size: var(--t--1); font-weight: 600; }
.buy--hot .buy__price { color: var(--hot); }
.buy__per { font-size: var(--t--1); color: var(--ink-dim); }
.buy__echo {
  display: flex; align-items: center; gap: 8px;
  font-size: var(--t--1); font-weight: 700;
  padding: 10px 12px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-field);
}
.buy__echo svg { width: 16px; height: 16px; color: var(--accent-text); flex-shrink: 0; }
.buy__note { font-size: var(--t--1); color: var(--ink-dim); text-align: center; }
.buy__tel { text-align: center; font-size: var(--t--1); }
.buy__tel a { color: var(--accent-text); font-weight: 800; text-decoration: none; }

.buybar { display: none; }
@media (max-width: 959px) {
  .buy { position: static; }
  .buybar {
    position: fixed; inset: auto 0 0 0; z-index: 60;
    display: flex; align-items: center; gap: 14px;
    background: color-mix(in srgb, var(--bg) 97%, transparent);
    border-top: 1px solid var(--line);
    padding: 12px var(--container-pad) calc(12px + env(safe-area-inset-bottom));
  }
  .buybar__price { font-weight: 800; font-size: var(--t-1); line-height: 1.1; }
  .buybar__sub { font-size: var(--t--1); color: var(--ink-dim); }
  .buybar .btn { margin-left: auto; flex-shrink: 0; }
  body.has-buybar { padding-bottom: 92px; }
}

/* Лайтбокс */
.lightbox {
  border: 0; padding: 0;
  background: transparent;
  max-width: min(96vw, 1200px);
  width: 100%;
}
.lightbox::backdrop { background: rgba(6, 12, 25, 0.88); }
.lightbox img { width: 100%; max-height: 86vh; object-fit: contain; border-radius: var(--radius-photo); }
.lightbox__bar { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; }
.lightbox button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--cosmos-800);
  color: var(--star-ink);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.lightbox button svg { width: 18px; height: 18px; }

/* ---------- 17. Бронювання ---------- */
.booking-layout { display: grid; gap: clamp(24px, 3vw, 48px); align-items: start; }
@media (min-width: 960px) { .booking-layout { grid-template-columns: 1.5fr 1fr; } }

.flightpath { margin-bottom: clamp(20px, 3vh, 36px); }
.flightpath svg { width: 100%; height: auto; overflow: visible; }
.flightpath .traj { stroke: var(--line); stroke-dasharray: 3 8; fill: none; stroke-width: 1.5; stroke-linecap: round; }
.flightpath .traj-done { stroke: var(--accent); fill: none; stroke-width: 2; stroke-linecap: round; }
.flightpath .node { fill: var(--bg); stroke: var(--line); stroke-width: 1.5; }
.flightpath .node.is-done { fill: var(--accent); stroke: var(--accent); }
.flightpath .plane { color: var(--accent); }
.fp-labels { list-style: none; padding: 0; display: flex; justify-content: space-between; margin-top: 6px; }
.fp-labels li {
  font-size: var(--t--1);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.fp-labels li[aria-current="step"] { color: var(--accent-text); }
.fp-labels button { font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; }
.fp-labels button:not(:disabled):hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.fp-labels button:disabled { cursor: default; }

.bk-step { display: grid; gap: 18px; }
.bk-step h2 { font-size: var(--t-2); }
.bk-grid-2 { display: grid; gap: 16px; }
@media (min-width: 640px) { .bk-grid-2 { grid-template-columns: 1fr 1fr; } }
.bk-nav { display: flex; gap: 12px; justify-content: space-between; margin-top: 8px; flex-wrap: wrap; }
.kids-ages { display: grid; gap: 12px; }
@media (min-width: 640px) { .kids-ages { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); } }

.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label {
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  font-size: var(--t--1);
  color: var(--ink-dim);
  transition: all 0.2s;
  min-height: 40px;
  display: inline-flex; align-items: center;
}
.seg input:checked + label {
  border-color: var(--accent);
  color: var(--accent-text);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.seg input:focus-visible + label { outline: 2px solid var(--focus); outline-offset: 2px; }

.bk-summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 6px;
  position: sticky; top: calc(var(--header-h) + 20px);
}
.bk-summary img { border-radius: var(--radius-photo); width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.bk-summary__body { padding: 14px 12px 12px; display: grid; gap: 10px; }
.bk-summary__hotel { font-family: var(--font-display); font-size: var(--t-1); font-weight: 500; }
.bk-summary dl { display: grid; gap: 6px; margin: 0; }
.bk-summary div[role="row"], .bk-summary .row { display: flex; justify-content: space-between; gap: 12px; font-size: var(--t--1); }
.bk-summary dt { color: var(--ink-dim); font-weight: 600; }
.bk-summary dd { margin: 0; font-weight: 700; text-align: right; }
.bk-summary .total { border-top: 1px solid var(--line); padding-top: 10px; font-size: var(--t-0); }
.bk-summary .total dd { font-weight: 800; font-size: var(--t-1); }
.bk-summary__note { font-size: var(--t--1); color: var(--ink-dim); }
@media (max-width: 959px) {
  .bk-summary { position: static; }
  details.bk-summary-mob summary {
    cursor: pointer; list-style: none;
    display: flex; justify-content: space-between; gap: 10px; align-items: center;
    font-weight: 700; font-size: var(--t--1);
    padding: 12px 14px;
  }
  details.bk-summary-mob summary svg { width: 16px; height: 16px; transition: transform 0.3s; }
  details.bk-summary-mob[open] summary svg { transform: rotate(180deg); }
}

.confirm-block { display: grid; gap: 14px; }
.confirm-sec {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-field);
  padding: 14px 16px;
}
.confirm-sec__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.confirm-sec__head b { font-size: var(--t--1); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-dim); }
.confirm-sec__head button { color: var(--accent-text); font-weight: 700; font-size: var(--t--1); text-decoration: underline; text-underline-offset: 3px; }
.consent { font-size: var(--t--1); color: var(--ink-dim); }

.bk-success {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: clamp(28px, 5vw, 56px);
  display: grid; gap: 14px; justify-items: center;
}
.bk-success .land-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  display: grid; place-items: center;
  color: var(--accent-text);
}
.bk-success .land-icon svg { width: 30px; height: 30px; }
.bk-success h2 { font-size: var(--t-3); }
.bk-success .req-id { font-variant-numeric: tabular-nums; font-weight: 800; color: var(--accent-text); }
.bk-success p { color: var(--ink-dim); max-width: 52ch; }
.bk-success .echo { font-weight: 700; color: var(--ink); }
.bk-success__links { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }

/* ---------- 18. Контакти ---------- */
.contact-grid { display: grid; gap: var(--gutter); }
@media (min-width: 640px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .contact-grid { grid-template-columns: repeat(4, 1fr); } }
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: clamp(18px, 2.5vw, 28px);
  display: grid; gap: 10px;
}
.contact-card svg { width: 26px; height: 26px; color: var(--accent-text); }
.contact-card .lbl { font-size: var(--t--1); color: var(--ink-dim); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.contact-card a, .contact-card .val { font-weight: 800; font-size: var(--t-1); color: var(--ink); text-decoration: none; }
.contact-card a:hover { color: var(--accent-text); }

/* ---------- 19. Панель турів країни (глобус) — єдине glass ---------- */
.country-panel {
  position: fixed; inset: 0 0 0 auto; z-index: 60;
  width: min(430px, 94vw);
  background: rgba(22, 30, 44, 0.72);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  transform: translateX(106%) rotate(1.5deg);
  transform-origin: bottom right;
  transition: transform 0.9s var(--ease-soft);
  display: flex; flex-direction: column;
  visibility: hidden;
}
.country-panel.is-open { transform: translateX(0) rotate(0deg); visibility: visible; }
.country-panel__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 20px 22px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.country-panel__head h2 { font-size: var(--t-2); color: var(--star-ink); }
.country-panel__close {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--star-dim);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: color 0.2s, border-color 0.2s;
}
.country-panel__close:hover { color: var(--star-ink); border-color: var(--star-dim); }
.country-panel__close svg { width: 18px; height: 18px; }
.country-panel__list { flex: 1; overflow-y: auto; padding: 14px 22px; display: grid; gap: 10px; align-content: start; }
.cp-tour {
  display: grid; grid-template-columns: 86px 1fr; gap: 12px;
  text-decoration: none;
  padding: 8px;
  border-radius: var(--radius-photo);
  border: 1px solid transparent;
  transition: border-color 0.2s, background-color 0.2s;
  color: var(--star-ink);
}
.cp-tour:hover { border-color: rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.04); }
.cp-tour img { width: 86px; height: 64px; object-fit: cover; border-radius: 8px; }
.cp-tour .h { font-weight: 700; font-size: var(--t--1); line-height: 1.3; }
.cp-tour .m { font-size: var(--t--1); color: var(--star-dim); }
.cp-tour .p { font-weight: 800; font-size: var(--t--1); color: var(--orbit-gold-hi); }
.cp-tour.is-hot .p { color: var(--ember); }
.country-panel__foot { padding: 16px 22px calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255, 255, 255, 0.12); }

/* Тултіп жаринки */
.globe-tip {
  position: fixed; z-index: 55;
  width: 240px;
  background: var(--cosmos-800);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-photo);
  padding: 12px 14px;
  display: none;
  box-shadow: 0 0 24px rgba(227, 183, 80, 0.14);
}
.globe-tip.is-open { display: block; }
.globe-tip .h { font-weight: 800; font-size: var(--t--1); color: var(--star-ink); }
.globe-tip .m { font-size: var(--t--1); color: var(--star-dim); margin: 2px 0 8px; }
.globe-tip .p { font-weight: 800; color: var(--ember); }
.globe-tip a { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; color: var(--orbit-gold-hi); font-weight: 700; font-size: var(--t--1); text-decoration: none; }
.globe-tip a svg { width: 14px; height: 14px; }

/* ---------- 20. Повідомлення (notice) ---------- */
.notice {
  position: relative; z-index: 45;
  margin: calc(var(--header-h) + 12px) auto 0;
  max-width: 720px;
  display: flex; gap: 12px; align-items: center; justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-field);
  padding: 12px 16px;
  font-size: var(--t--1); font-weight: 600;
}
.notice button { color: var(--ink-dim); width: 32px; height: 32px; flex-shrink: 0; }
.notice button svg { width: 14px; height: 14px; }
.notice button:hover { color: var(--ink); }

/* ---------- 21. Reveal-стани (GSAP керує, CSS не ховає контент) ---------- */
.hero [data-hero-reveal] { will-change: transform, opacity; }

/* ---------- 22. View transitions і клімат-перехід ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.6s; }

/* ---------- 23. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
}

/* ---------- 24. Дрібниці ---------- */
.mt-2 { margin-top: 16px; }
.tour-section { display: grid; gap: 14px; margin-top: clamp(24px, 4vh, 40px); }
.tour-section > h2 { font-size: var(--t-1); }
.lead-note { font-size: var(--t--1); color: var(--ink-dim); }
.text-link { color: var(--accent-text); font-weight: 700; text-underline-offset: 4px; }

/* ============================================================ */
/* КОЛОС v1.1 — слайд-hero, заявка-модалка, секція-планета      */
/* ============================================================ */

/* лого-емблема: сонце + 8 пшеничних гілок */
.brand-mark { width: 38px; height: 38px; color: var(--accent); }

/* ----- Слайд-hero (велике фото, повільна зміна) ----- */
.hero--slides {
  position: relative; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden; background: var(--bg-deep);
}
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0;
  transition: opacity 1.8s var(--ease-soft); will-change: opacity;
}
.hero-slide.is-active { opacity: 1; }
.hero-veil {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(120% 92% at 50% 28%, transparent 38%, rgba(8, 13, 51, 0.5) 100%),
    linear-gradient(to top, rgba(8, 13, 51, 0.88) 0%, rgba(8, 13, 51, 0.34) 46%, rgba(8, 13, 51, 0.46) 100%);
}
.hero--slides .hero-content {
  position: relative; z-index: 2;
  max-width: 62rem; margin-inline: auto;
  padding-block: clamp(104px, 17vh, 200px);
}
.hero-eyebrow {
  display: inline-block;
  font-size: var(--t--1); font-weight: 700;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--accent); margin-bottom: clamp(16px, 3vh, 28px);
}
.hero--slides h1 {
  font-size: var(--t-hero); font-weight: 600;
  letter-spacing: -0.02em; line-height: 0.98; color: #fff;
}
.hero--slides .hero-sub {
  margin: clamp(18px, 3vh, 28px) auto 0; max-width: 44ch;
  font-size: var(--t-1); color: rgba(238, 241, 255, 0.86);
}
.hero-cta {
  display: flex; flex-wrap: wrap; gap: 14px;
  justify-content: center; margin-top: clamp(28px, 5vh, 44px);
}
.btn--lg { padding: 1.05em 2.4em; font-size: var(--t-0); min-height: 56px; }
.hero-cta .btn--ghost {
  color: #fff; border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.07);
}
.hero-cta .btn--ghost:hover { color: var(--cosmos-950); background: #fff; border-color: #fff; }
.hero-note {
  margin-top: 18px; font-size: var(--t--1); color: rgba(238, 241, 255, 0.74);
  display: inline-flex; align-items: center; gap: 8px;
}
.hero-note svg { width: 16px; height: 16px; color: var(--accent); }
.hero-scroll {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  z-index: 2; width: 44px; height: 44px; color: rgba(255, 255, 255, 0.82);
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.32);
}
.hero-scroll svg { width: 22px; height: 22px; animation: heroBob 2.4s var(--ease-soft) infinite; }
@keyframes heroBob { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(3px); } }

/* ----- Каталог «Напрямки»: заголовок, чіпи-категорії, фільтр «гарячі» ----- */
.catalog-intro { margin: calc(var(--header-h) + 30px) 0 22px; }
.catalog-h1 { font-size: var(--t-4); margin: 6px 0 10px; }
.catalog-sub { max-width: 62ch; }
.t-card__tags { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tcat {
  font-size: 11px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--accent-text); background: rgba(227, 183, 80, 0.12);
  border: 1px solid rgba(227, 183, 80, 0.34); border-radius: 100px; padding: 3px 10px;
}
.f-field--check { display: flex; align-items: center; }
.f-check { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-weight: 600; color: var(--ink); white-space: nowrap; }
.f-check input { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; }

/* ----- Секція «планета» (перенесена з hero) ----- */
.planet-section { padding-top: clamp(40px, 6vh, 80px); }
.planet-section .globe-scene {
  position: relative; inset: auto; left: auto;
  height: clamp(520px, 86vh, 900px);
  margin-top: clamp(18px, 3vh, 32px);
  border-radius: var(--radius-card); overflow: hidden;
  background: var(--bg-deep);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent), 0 40px 90px rgba(0, 0, 0, 0.4);
}
/* На телефоні висота в svh: при ховранні адресного рядка vh «стрибає» → canvas
   пересоздається → мерехтіння. svh стабільний, тому глобус не блимає при дотику. */
@media (max-width: 959px) {
  .planet-section .globe-scene { height: 70svh; }
}

/* ----- CTA «Заявка» у хедері ----- */
.header-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0.55em 1.15em; border-radius: 999px;
  background: var(--cta-bg); color: var(--cta-ink);
  font-weight: 800; font-size: var(--t--1); min-height: 40px;
  white-space: nowrap; transition: background-color 0.25s var(--ease-soft);
}
.header-cta:hover { background: var(--cta-bg-hover); }
@media (max-width: 959px) { .header-cta { display: none; } }
@media (min-width: 960px) { .nav-phone-big { display: none; } } /* телефон у шапці лишаємо лише праворуч */

/* ----- Сторінка «Про компанію»: лід + документи ----- */
.about-lead { max-width: 62ch; display: grid; gap: 1em; font-size: var(--t-0); margin-bottom: clamp(8px, 2vh, 20px); }
.section-sub { font-size: var(--t-2); margin: clamp(30px, 5vh, 52px) 0 16px; }
.doc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--gutter); }
.doc-card {
  display: grid; gap: 7px; align-content: start;
  padding: 18px 18px 16px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-card); text-decoration: none; color: var(--ink);
  transition: border-color 0.2s var(--ease-soft), transform 0.2s var(--ease-soft);
}
.doc-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.doc-card__icon svg { width: 30px; height: 30px; color: var(--accent); }
.doc-card__t { font-weight: 800; font-size: var(--t-1); }
.doc-card__m { color: var(--ink-dim); font-size: var(--t--1); }
.doc-card__a { color: var(--accent-text); font-weight: 700; font-size: var(--t--1); display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; }
.doc-card__a svg { width: 15px; height: 15px; }

/* ----- Модалка заявки ----- */
.req-dialog {
  width: min(520px, 92vw); padding: 0; border: 0;
  border-radius: var(--radius-card);
  background: var(--surface); color: var(--ink);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
}
.req-dialog::backdrop { background: rgba(8, 13, 51, 0.62); backdrop-filter: blur(4px); }
.req-dialog__in { padding: clamp(26px, 4vw, 42px); }
.req-dialog h2 { font-size: var(--t-2); }
.req-dialog .req-sub {
  color: var(--ink-dim); margin-top: 8px;
  display: flex; align-items: center; gap: 8px; font-weight: 600;
}
.req-dialog .req-sub svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }
.req-dialog form { display: grid; gap: 14px; margin-top: 22px; }
.req-close {
  position: absolute; top: 14px; right: 14px;
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-dim);
}
.req-close svg { width: 18px; height: 18px; }
.req-close:hover { background: color-mix(in srgb, var(--ink) 12%, transparent); color: var(--ink); }
.req-ok { display: grid; gap: 12px; place-items: center; text-align: center; padding: clamp(30px, 5vw, 50px); }
.req-ok__badge {
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--accent); border: 2px solid var(--accent);
}
.req-ok__badge svg { width: 30px; height: 30px; }

/* ----- Хедерна «Заявка» зникає, поки герой у в'юпорті (щоб не дублювати геройну кнопку) ----- */
.header-cta { transition: opacity 0.3s var(--ease-soft), transform 0.3s var(--ease-soft), background-color 0.25s var(--ease-soft); }
body.hero-in-view .header-cta { opacity: 0; transform: translateY(-6px); pointer-events: none; }

/* ----- Секція «Як до нас дістатися» (карта) ----- */
.map-section { padding-top: clamp(32px, 5vh, 64px); }
.map-wrap {
  display: grid; gap: var(--gutter); margin-top: clamp(16px, 3vh, 28px);
  border-radius: var(--radius-card); overflow: hidden;
  border: 1px solid var(--line); background: var(--surface);
}
@media (min-width: 860px) { .map-wrap { grid-template-columns: 1.7fr 1fr; } }
.map-frame { width: 100%; min-height: 320px; height: 100%; border: 0; display: block; filter: saturate(0.92); }
.map-card { padding: clamp(20px, 3vw, 32px); display: grid; gap: 8px; align-content: center; }
.map-card h3 { font-size: var(--t-1); font-family: var(--font-display); font-weight: 500; }
.map-addr { font-size: var(--t-0); }
.map-hours, .map-note { color: var(--ink-dim); font-size: var(--t--1); }
.map-note { margin-top: 4px; }
.map-card .btn { margin-top: 12px; justify-self: start; }

/* ----- Месенджери та соцмережі на сторінці «Про компанію» ----- */
.msgr-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 8px; }
.msgr-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 0.6em 1.1em; border-radius: 999px;
  border: 1px solid var(--line); color: var(--ink);
  background: var(--surface); font-weight: 700; font-size: var(--t--1);
  font-family: inherit; cursor: pointer; text-decoration: none;
  transition: border-color 0.2s var(--ease-soft), color 0.2s var(--ease-soft), transform 0.2s var(--ease-soft);
}
.msgr-btn svg { width: 18px; height: 18px; color: var(--accent-text); }
.msgr-btn:hover { border-color: var(--accent); transform: translateY(-2px); }
.contact-card a.msgr-mini { display: inline-flex; align-items: center; gap: 8px; }
