/* =========================================================
   AVENTUS MOTORS — демо-концепт (KoraLink)
   Усі кольори — у :root. Щоб змінити акцент, достатньо --accent / --accent-2.
   ========================================================= */
:root {
  --bg: #0B0B0C;          /* чорний — основний фон */
  --bg-2: #111113;        /* фон чергових секцій */
  --card: #161618;        /* графіт — картки */
  --text: #FFFFFF;
  --muted: rgba(255, 255, 255, .62);
  --dim: rgba(255, 255, 255, .38);
  --line: rgba(255, 255, 255, .09);
  --accent: #0ABAB5;      /* Тіффані */
  --accent-2: #81D8D0;    /* світлий Тіффані — ховери */
  --accent-soft: rgba(10, 186, 181, .14);
  --danger: #FF6B6B;

  --glass: rgba(22, 22, 24, .55);
  --radius: 14px;
  --radius-sm: 10px;
  --container: 1200px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  --f-head: "Montserrat", system-ui, sans-serif;
  --f-text: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--f-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--bg); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--bg); padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
.muted { color: var(--muted); }

.icon { width: 28px; height: 28px; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Типографіка ---------- */
.eyebrow {
  margin: 0 0 14px;
  font: 600 12px/1 var(--f-head);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--accent); }
.h2 {
  margin: 0;
  font: 700 clamp(26px, 4vw, 42px)/1.15 var(--f-head);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.section { padding: clamp(72px, 10vw, 120px) 0; position: relative; }
.section--alt { background: var(--bg-2); }
.section--alt::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, var(--accent) 50%, transparent); opacity: .35; }
.section__head { margin-bottom: clamp(32px, 5vw, 52px); max-width: 720px; }
.section__lead { margin: 16px 0 0; color: var(--muted); }

/* ---------- Кнопки + відблиск ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 12px 24px;
  border: 1px solid transparent; border-radius: 999px;
  font: 600 13px/1 var(--f-head); letter-spacing: .14em; text-transform: uppercase;
  transition: background-color .3s var(--ease), color .3s, border-color .3s, transform .3s var(--ease);
  white-space: nowrap;
}
.btn--lg { min-height: 54px; padding: 16px 32px; }
.btn--primary { background: var(--accent); color: var(--bg); }
.btn--primary:hover { background: var(--accent-2); }
.btn--ghost { border-color: rgba(255,255,255,.28); color: var(--text); background: rgba(255,255,255,.03); backdrop-filter: blur(8px); }
.btn--ghost:hover { border-color: var(--accent-2); color: var(--accent-2); }
.btn:active { transform: scale(.97); }
/* «відблиск на лаку» */
.btn::after, .shine::after {
  content: ""; position: absolute; inset: -20% auto -20% 0; width: 45%; z-index: 1; pointer-events: none;
  background: linear-gradient(105deg, transparent 0%, rgba(255,255,255,.55) 50%, transparent 100%);
  transform: translateX(-160%) skewX(-18deg); opacity: 0;
}
.btn--ghost::after { background: linear-gradient(105deg, transparent, rgba(129,216,208,.35), transparent); }
.btn:hover::after, .shine:hover::after { animation: shine .9s var(--ease); }
@keyframes shine {
  0% { transform: translateX(-160%) skewX(-18deg); opacity: 1; }
  100% { transform: translateX(330%) skewX(-18deg); opacity: 1; }
}

/* ---------- Картки (скло) ---------- */
.card {
  background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,0) 40%), var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

/* ---------- Шапка ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  transition: background-color .35s, border-color .35s, backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled { background: rgba(11,11,12,.72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-color: var(--line); }
.header__inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.logo__mark { width: 30px; height: 30px; color: var(--accent); }
.logo__text { display: flex; flex-direction: column; font: 800 18px/1 var(--f-head); letter-spacing: .26em; }
.logo__text small { font-size: 8.5px; font-weight: 600; letter-spacing: .62em; color: var(--muted); margin-top: 4px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) { position: relative; font: 500 13px/1 var(--f-head); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); transition: color .25s; padding: 6px 0; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:not(.btn):hover { color: var(--text); }
.nav a:not(.btn):hover::after { transform: scaleX(1); }
.nav__cta { display: none; }
.burger { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + 40px) 0 80px; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__video { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 80% at 85% 40%, rgba(10,186,181,.10), transparent 60%),
    linear-gradient(180deg, rgba(11,11,12,.55) 0%, rgba(11,11,12,.55) 55%, var(--bg) 100%),
    linear-gradient(90deg, rgba(11,11,12,.85) 0%, rgba(11,11,12,.35) 100%);
}
.hero__inner { display: grid; grid-template-columns: 1fr; align-items: center; gap: 48px; }
.hero__title { margin: 0; font: 800 clamp(40px, 7.2vw, 88px)/1.02 var(--f-head); text-transform: uppercase; letter-spacing: .04em; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__title .line > span { display: inline-block; transform: translateY(105%); animation: lineUp 1s var(--ease) forwards; }
.hero__title .line:nth-child(2) > span { animation-delay: .15s; }
.hero__title .line:nth-child(3) > span { animation-delay: .3s; }
.hero__title .accent { color: var(--accent); }
@keyframes lineUp { to { transform: translateY(0); } }
.hero__eyebrow { opacity: 0; animation: fadeUp .8s .05s var(--ease) forwards; }
.hero__rule { display: block; width: min(320px, 70%); height: 1px; margin: 28px 0 22px; background: linear-gradient(90deg, var(--accent), rgba(10,186,181,0)); transform: scaleX(0); transform-origin: left; animation: draw 1.2s .7s var(--ease) forwards; }
@keyframes draw { to { transform: scaleX(1); } }
.hero__sub { margin: 0 0 34px; font: 500 clamp(14px, 1.6vw, 17px)/1.5 var(--f-head); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); opacity: 0; animation: fadeUp .9s .9s var(--ease) forwards; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; opacity: 0; animation: fadeUp .9s 1.05s var(--ease) forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.hero__frame { display: none; margin: 0; position: relative; justify-self: end; width: min(360px, 100%); border-radius: 20px; overflow: hidden; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 40px 80px -30px rgba(0,0,0,.9), 0 0 0 6px rgba(255,255,255,.02); opacity: 0; animation: fadeUp 1.1s .5s var(--ease) forwards; }
.hero__frame::before { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(10,186,181,.35); pointer-events: none; }
.hero__frame video { width: 100%; aspect-ratio: 360 / 516; object-fit: cover; }
.hero__frame figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; font: 500 11px/1.3 var(--f-head); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); background: linear-gradient(transparent, rgba(0,0,0,.8)); }
.hero__scroll { position: absolute; left: 50%; bottom: 22px; width: 24px; height: 40px; margin-left: -12px; border: 1px solid rgba(255,255,255,.3); border-radius: 14px; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 2px; height: 8px; margin-left: -1px; border-radius: 2px; background: var(--accent); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Переваги ---------- */
.adv { display: grid; grid-template-columns: 1fr; gap: 16px; }
.adv__item { padding: 28px 24px; transition: border-color .35s, transform .35s var(--ease); }
.adv__item:hover { border-color: rgba(10,186,181,.4); transform: translateY(-4px); }
.adv__item h3 { margin: 20px 0 8px; font: 700 16px/1.3 var(--f-head); text-transform: uppercase; letter-spacing: .08em; }
.adv__item p { margin: 0; color: var(--muted); font-size: 15px; }
.stats { margin-top: 40px; display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 26px 12px; text-align: center; }
.stat:nth-child(odd) { border-right: 1px solid var(--line); }
.stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.stat b { display: block; font: 800 clamp(34px, 5vw, 52px)/1 var(--f-head); color: var(--accent); font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 8px; font: 500 11px/1.4 var(--f-head); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* ---------- Прайс ---------- */
.classes { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.classes li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 13px; color: var(--muted); }
.classes b { display: grid; place-items: center; flex: none; width: 34px; height: 26px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font: 700 12px/1 var(--f-head); letter-spacing: .06em; }

.tabs { display: flex; gap: 8px; margin: 0 -20px 24px; padding: 2px 20px 8px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding-inline: 20px; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; scroll-snap-align: start;
  padding: 12px 18px; border-radius: 999px; border: 1px solid var(--line); background: transparent;
  font: 600 12px/1 var(--f-head); letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  transition: color .25s, border-color .25s, background-color .25s;
}
.tab:hover { color: var(--text); border-color: rgba(255,255,255,.25); }
.tab[aria-selected="true"] { color: var(--bg); background: var(--accent); border-color: var(--accent); }

.price-panel { transition: opacity .3s var(--ease), transform .3s var(--ease); }
.price-panel.is-switching { opacity: 0; transform: translateY(10px); }
.price-card { position: relative; overflow: hidden; padding: 8px 0; }
.price-card__head { display: none; }
.price-row {
  position: relative; display: grid; grid-template-columns: 1fr; gap: 10px;
  padding: 16px 20px; border-bottom: 1px solid var(--line);
  transition: background-color .25s;
}
.price-row:last-child { border-bottom: 0; }
.price-row::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 2px; background: var(--accent); transform: scaleY(0); transition: transform .3s var(--ease); }
.price-row:hover { background: rgba(10,186,181,.06); }
.price-row:hover::before { transform: scaleY(1); }
.price-row__name { font-weight: 500; }
.price-row__vals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.price-row__vals span { display: flex; flex-direction: column; align-items: center; padding: 6px 4px; border-radius: 8px; background: rgba(255,255,255,.04); font: 600 14px/1.2 var(--f-head); white-space: nowrap; }
.price-row__vals span i { font: 600 10px/1 var(--f-head); font-style: normal; letter-spacing: .1em; color: var(--accent); margin-bottom: 4px; }
.price-row__one { font: 700 16px/1.2 var(--f-head); color: var(--accent-2); white-space: nowrap; }
.price-sub { padding: 18px 20px 6px; font: 600 11px/1 var(--f-head); letter-spacing: .22em; text-transform: uppercase; color: var(--accent); border-bottom: 1px solid var(--line); }
.price-note { margin: 14px 4px 0; font-size: 13px; color: var(--dim); }

/* ---------- Галерея ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; grid-auto-flow: dense; gap: 10px; }
.gallery__item { position: relative; overflow: hidden; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.gallery__item--tall { grid-row: span 2; }
.gallery__item img, .gallery__item video { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), opacity .4s; }
.gallery__item:hover img, .gallery__item:hover video { transform: scale(1.05); }
.gallery__item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(0,0,0,.75)); pointer-events: none; }
.gallery__cap { position: absolute; left: 14px; bottom: 12px; z-index: 1; font: 600 11px/1.2 var(--f-head); letter-spacing: .14em; text-transform: uppercase; text-align: left; }
.gallery__play { position: absolute; top: 12px; right: 12px; z-index: 1; width: 34px; height: 34px; border-radius: 50%; background: rgba(11,11,12,.55); border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(6px); }
.gallery__play::before { content: ""; position: absolute; left: 13px; top: 10px; border-left: 10px solid var(--text); border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.gallery__more {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 16px;
  background: linear-gradient(150deg, rgba(10,186,181,.16), rgba(22,22,24,1) 60%);
  font-size: 13px; color: var(--muted); transition: border-color .3s;
}
.gallery__more::after { display: none; }
.gallery__more b { color: var(--text); font-family: var(--f-head); letter-spacing: .06em; }
.gallery__more:hover { border-color: var(--accent); }

/* ---------- Лайтбокс ---------- */
.lightbox { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 56px 12px; background: rgba(5,5,6,.92); backdrop-filter: blur(10px); opacity: 0; transition: opacity .3s; }
.lightbox.is-open { opacity: 1; }
.lightbox[hidden] { display: none; }
.lightbox__stage { margin: 0; max-width: min(92vw, 560px); transform: scale(.96); transition: transform .35s var(--ease); }
.lightbox.is-open .lightbox__stage { transform: none; }
.lightbox__media img, .lightbox__media video { max-height: 78vh; width: auto; margin: 0 auto; border-radius: var(--radius); border: 1px solid var(--line); }
.lightbox figcaption { margin-top: 12px; text-align: center; font: 500 12px/1.4 var(--f-head); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.lightbox__close, .lightbox__nav { position: absolute; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: rgba(22,22,24,.7); font-size: 26px; line-height: 1; transition: border-color .25s, color .25s; }
.lightbox__close:hover, .lightbox__nav:hover { border-color: var(--accent); color: var(--accent-2); }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__nav--prev { left: 8px; top: 50%; margin-top: -23px; }
.lightbox__nav--next { right: 8px; top: 50%; margin-top: -23px; }

/* ---------- Запис ---------- */
.booking { display: grid; gap: 32px; }
.booking__head { margin-bottom: 0; }
.booking__phone { display: inline-block; margin-top: 20px; font: 700 clamp(22px, 3vw, 28px)/1 var(--f-head); letter-spacing: .04em; color: var(--accent); transition: color .25s; }
.booking__phone:hover { color: var(--accent-2); }
.booking__hours { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.form { display: grid; grid-template-columns: 1fr; gap: 16px; padding: 24px 18px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field label { font: 600 11px/1 var(--f-head); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.field label .muted { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--dim); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 13px 14px;
  border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-sm);
  background: rgba(11,11,12,.6); color: var(--text);
  font: 400 16px/1.3 var(--f-text);
  transition: border-color .25s, box-shadow .25s;
  -webkit-appearance: none; appearance: none;
}
.field select {
  padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%), linear-gradient(135deg, var(--accent) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px; background-repeat: no-repeat;
}
.field select option, .field select optgroup { background: var(--card); color: var(--text); }
.field input[type="date"] { color-scheme: dark; }
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(255,255,255,.24); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field.is-invalid input, .field.is-invalid select { border-color: var(--danger); }
.field__err { min-height: 0; color: var(--danger); font-size: 12.5px; }
.field__err:empty { display: none; }
.form__foot { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.form__foot .btn { width: 100%; }
.form__note { margin: 0; font-size: 12.5px; }

/* ---------- Модалка «Дякуємо» ---------- */
.modal { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 16px; background: rgba(5,5,6,.8); backdrop-filter: blur(8px); opacity: 0; transition: opacity .3s; }
.modal.is-open { opacity: 1; }
.modal[hidden] { display: none; }
.modal__box { position: relative; width: min(520px, 100%); max-height: calc(100svh - 32px); overflow-y: auto; padding: 32px 22px 24px; text-align: center; background: linear-gradient(160deg, rgba(10,186,181,.12), rgba(22,22,24,.96) 45%); transform: translateY(16px) scale(.98); transition: transform .4s var(--ease); }
.modal.is-open .modal__box { transform: none; }
.modal__close { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border: 0; background: none; font-size: 26px; color: var(--muted); }
.modal__close:hover { color: var(--text); }
.modal__check { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; border: 1px solid var(--accent); background: var(--accent-soft); }
.modal__check svg { width: 30px; height: 30px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; }
.modal.is-open .modal__check svg { animation: check .6s .25s var(--ease) forwards; }
@keyframes check { to { stroke-dashoffset: 0; } }
.modal__title { margin: 0; font: 800 28px/1.1 var(--f-head); text-transform: uppercase; letter-spacing: .1em; }
.modal__lead { margin: 10px 0 18px; color: var(--muted); font-size: 15px; }
.modal__text { margin: 0 0 18px; padding: 14px 16px; text-align: left; white-space: pre-wrap; word-break: break-word; font: 400 13.5px/1.55 var(--f-text); color: var(--text); background: rgba(0,0,0,.35); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.modal__actions { display: grid; gap: 10px; }
.modal__actions .btn { white-space: normal; text-align: center; line-height: 1.3; }
.modal__copied { min-height: 20px; margin: 10px 0 0; font-size: 13px; color: var(--accent-2); }

/* ---------- Контакти ---------- */
.contacts { display: grid; gap: 32px; }
.contacts__list { list-style: none; margin: 28px 0; padding: 0; display: grid; gap: 18px; }
.contacts__list li { display: flex; gap: 14px; align-items: flex-start; }
.contacts__list .icon { width: 24px; height: 24px; margin-top: 2px; }
.contacts__list small { display: block; font: 600 10.5px/1 var(--f-head); letter-spacing: .18em; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }
.contacts__list a { transition: color .25s; }
.contacts__list a:hover { color: var(--accent-2); }
.contacts__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.map { position: relative; min-height: 340px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.92) contrast(.9) hue-rotate(180deg); }

/* ---------- Футер ---------- */
.footer { padding: 48px 0 calc(96px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #070708; }
.footer__inner { display: grid; gap: 24px; }
.footer__contacts { display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.footer__contacts a:hover { color: var(--accent-2); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--dim); }
.footer__bottom a { color: var(--muted); border-bottom: 1px solid var(--line); }
.footer__bottom a:hover { color: var(--accent-2); }

/* ---------- Плаваюча кнопка ---------- */
.fab {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40;
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 20px 14px 16px;
  border-radius: 999px; background: var(--accent); color: var(--bg);
  font: 700 12px/1 var(--f-head); letter-spacing: .12em; text-transform: uppercase;
  box-shadow: 0 10px 30px -8px rgba(10,186,181,.7);
  transform: translateY(140%); transition: transform .45s var(--ease);
}
.fab.is-visible { transform: none; }
.fab svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fab::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--accent); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.35); opacity: 0; } }

/* ---------- Появлення при скролі ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ================= Адаптив ================= */
@media (max-width: 899px) {
  .header__cta { display: none; }
  .burger {
    display: grid; place-content: center; gap: 7px; margin-left: auto;
    width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); background: rgba(11,11,12,.4); backdrop-filter: blur(8px);
    position: relative; z-index: 2;
  }
  .burger span { display: block; width: 18px; height: 1.5px; background: var(--text); transition: transform .35s var(--ease); }
  .burger[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
  .burger[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
  .nav {
    position: fixed; inset: 0; z-index: 1; margin: 0;
    flex-direction: column; justify-content: center; gap: 22px;
    background: rgba(11,11,12,.96); backdrop-filter: blur(18px);
    opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
  }
  .nav a:not(.btn) { font-size: 18px; color: var(--text); transform: translateY(12px); transition: transform .45s var(--ease), color .25s; }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav.is-open a:not(.btn) { transform: none; }
  .nav__cta { display: inline-flex; margin-top: 12px; }
  body.menu-open { overflow: hidden; }
}

@media (min-width: 600px) {
  .classes { grid-template-columns: repeat(4, 1fr); }
  .adv { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 220px; }
  .form { grid-template-columns: 1fr 1fr; padding: 32px; }
  .field--wide { grid-column: 1 / -1; }
  .form__foot { flex-direction: row; align-items: center; }
  .form__foot .btn { width: auto; }
  .modal__box { padding: 40px 36px 30px; }
  .modal__actions { grid-template-columns: 1fr auto; }
}

@media (min-width: 900px) {
  .container { padding: 0 32px; }
  .hero__inner { grid-template-columns: 1.25fr 1fr; }
  .hero__frame { display: block; }
  .hero__overlay {
    background:
      linear-gradient(90deg, rgba(11,11,12,.92) 0%, rgba(11,11,12,.7) 50%, rgba(11,11,12,.55) 100%),
      linear-gradient(180deg, transparent 60%, var(--bg) 100%);
  }
  /* фонове відео низької роздільності — на десктопі розмиваємо, чітке відео в рамці праворуч */
  .hero__video { filter: blur(10px) saturate(.9); transform: scale(1.08); }
  .adv { grid-template-columns: repeat(4, 1fr); }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stat:nth-child(odd) { border-right: 0; }
  .stat:not(:last-child) { border-right: 1px solid var(--line); }
  .stat:nth-child(-n+2) { border-bottom: 0; }
  .tabs { flex-wrap: wrap; margin: 0 0 28px; padding: 0; overflow: visible; }

  .price-card__head, .price-row { grid-template-columns: 1fr repeat(4, 110px); align-items: center; gap: 12px; }
  .price-card__head { display: grid; padding: 14px 24px; border-bottom: 1px solid var(--line); font: 700 12px/1 var(--f-head); letter-spacing: .14em; color: var(--accent); text-transform: uppercase; }
  .price-card__head span:not(:first-child) { text-align: right; }
  .price-row { padding: 16px 24px; }
  .price-row__vals { display: contents; }
  .price-row__vals span { display: block; padding: 0; background: none; text-align: right; font-size: 15px; }
  .price-row__vals span i { display: none; }
  .price-row__one { grid-column: 2 / -1; text-align: right; }
  .price-sub { padding: 22px 24px 8px; }

  .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; gap: 14px; }
  .booking { grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
  .contacts { grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: stretch; }
  .map { min-height: 440px; }
  .footer { padding-bottom: 48px; }
  .footer__inner { grid-template-columns: auto 1fr; align-items: center; }
  .footer__contacts { grid-auto-flow: column; justify-content: end; gap: 28px; }
  .fab { display: none; }
}

@media (hover: none) {
  .btn::after, .shine::after { display: none; }
}

/* ---------- Зменшення руху ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero__title .line > span { transform: none; }
  .btn::after, .shine::after { display: none; }
}
