/* ==========================================================================
   Prestige Yachts — лендинг «Exclusive Days 2026»
   Светлая тема: белый и «пена» (#eef2f3), фирменные navy #033e59 и синий p-y.ru.
   Фото показываются как есть — без затемняющих слоёв.
   ========================================================================== */

@font-face { font-family: "Geometria"; font-weight: 300; font-display: swap; src: url("../fonts/Geometria-Light.woff2") format("woff2"); }
@font-face { font-family: "Geometria"; font-weight: 400; font-display: swap; src: url("../fonts/Geometria-Regular.woff2") format("woff2"); }
@font-face { font-family: "Geometria"; font-weight: 500; font-display: swap; src: url("../fonts/Geometria-Medium.woff2") format("woff2"); }
@font-face { font-family: "Geometria"; font-weight: 700; font-display: swap; src: url("../fonts/Geometria-Bold.woff2") format("woff2"); }
@font-face { font-family: "Geometria"; font-weight: 800; font-display: swap; src: url("../fonts/Geometria-ExtraBold.woff2") format("woff2"); }

:root {
  --navy: #033e59;         /* фирменный navy p-y.ru: заголовки, футер */
  --navy-deep: #02293b;
  --blue: #1c7aab;         /* кнопки и акценты (фирменный #258cc1, чуть темнее для контраста) */
  --blue-dark: #155f86;
  --blue-soft: #e3f0f7;    /* мягкая подложка выбранного */
  --foam: #eef2f3;
  --line: #d9dee1;
  --title: #0b2230;
  --text: #3a4f5f;
  --muted: #627786;
  --white: #fff;

  --radius: 6px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Geometria", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.container { width: min(1240px, 100% - 48px); margin-inline: auto; }
.container--narrow { width: min(820px, 100% - 48px); }

/* Фото чуть ярче и сочнее исходников */
.hero__media img, .stage img, .lightbox__fig img, .premiere__photo img, .atmo__photo img, .final__photo img, .thumbs img, .yard img {
  filter: brightness(1.05) saturate(1.1) contrast(1.02);
}

/* ---------- Типографика ---------- */
h1, h2, h3 { color: var(--title); font-weight: 700; letter-spacing: -.015em; line-height: 1.15; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); }
h3 { font-size: 1.2rem; line-height: 1.3; }
p { text-wrap: pretty; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
  padding: 14px 28px; border: 1px solid var(--blue); border-radius: var(--radius);
  background: var(--blue); color: var(--white); font-weight: 500; font-size: 1rem; letter-spacing: .01em; line-height: 1.2;
  text-decoration: none; text-align: center;
  transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); text-decoration: none; }
.btn--lg { padding: 18px 34px; font-size: 1.05rem; min-height: 56px; }
.btn--sm { padding: 10px 20px; font-size: .92rem; min-height: 42px; }
.btn--block { width: 100%; }
.btn--outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* ---------- Шапка: прозрачная над фото, белая после прокрутки ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -20px rgba(3, 62, 89, .35);
  transition: background .3s var(--ease), box-shadow .3s var(--ease), backdrop-filter .3s var(--ease);
}
.header__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header__logo { display: block; }
.header__logo img { height: 38px; width: auto; }
.header__logo .logo-light { display: none; }
.header__nav { display: flex; gap: 32px; }
.header__nav a { color: var(--title); font-size: .95rem; transition: color .3s var(--ease); }
.header__nav a:hover { color: var(--blue); text-decoration: none; }
.header__right { display: flex; align-items: center; gap: 22px; }
.header__phone { color: var(--navy); font-weight: 500; white-space: nowrap; transition: color .3s var(--ease); }

/* Пока страница не прокручена (и JS работает) — шапка прозрачная, текст и логотип белые */
.js .header:not(.is-solid) { background: transparent; backdrop-filter: none; box-shadow: none; }
.js .header:not(.is-solid) .logo-light { display: block; }
.js .header:not(.is-solid) .logo-dark { display: none; }
.js .header:not(.is-solid) .header__nav a,
.js .header:not(.is-solid) .header__phone { color: var(--white); }
.js .header:not(.is-solid) .header__nav a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 6px; }
.js .header:not(.is-solid) :focus-visible { outline-color: var(--white); }

/* ---------- Hero: фото на весь экран, текст поверх ---------- */
.hero { background: var(--white); }
.hero__stage {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: flex-end;
  min-height: max(620px, min(100svh, 1000px));
  background: var(--navy); color: var(--white);
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 55%; animation: drift 22s var(--ease-out) both; }
/* Лёгкое затемнение только там, где лежит текст: полоса под шапкой и низ кадра */
.hero__stage::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(2, 30, 45, .34) 0, rgba(2, 30, 45, 0) 160px),
    linear-gradient(to top, rgba(2, 30, 45, .6) 0%, rgba(2, 30, 45, .3) 32%, rgba(2, 30, 45, 0) 60%);
}
.hero__in {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 32px clamp(32px, 5vw, 80px);
  align-items: end; padding: calc(var(--header-h) + 48px) 0 clamp(40px, 5vw, 68px);
}
.hero__kicker { font-size: clamp(1rem, 1.4vw, 1.2rem); color: rgba(255, 255, 255, .92); text-shadow: 0 1px 12px rgba(2, 30, 45, .35); }
.hero__title {
  margin-top: 12px; color: var(--white); font-weight: 300;
  font-size: clamp(3.2rem, 9vw, 8.6rem); line-height: .92; letter-spacing: -.045em;
  text-shadow: 0 2px 30px rgba(2, 30, 45, .28);
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; }
.hero__facts { display: grid; gap: 14px; }
.hero__facts div { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: baseline; padding-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, .32); }
.hero__facts dt { font-size: .9rem; color: rgba(255, 255, 255, .78); }
.hero__facts dd { font-size: 1.15rem; font-weight: 700; color: var(--white); line-height: 1.35; text-shadow: 0 1px 12px rgba(2, 30, 45, .35); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero__stage :focus-visible { outline-color: var(--white); }

.btn--light { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .9); color: var(--white); backdrop-filter: blur(4px); }
.btn--light:hover { background: var(--white); border-color: var(--white); color: var(--navy); }

.hero__bar {
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 40px;
  padding: 30px 0 38px; border-bottom: 1px solid var(--line);
}
.hero__about { max-width: 34em; justify-self: end; }
.hero__lead { font-size: 1.02rem; color: var(--text); }
.hero__note { margin-top: 6px; font-size: .92rem; color: var(--muted); }

/* Один оркестрованный момент: заголовок поднимается из-под маски при загрузке */
.js .hero__title .line > span { transform: translateY(105%); animation: rise 1.1s var(--ease-out) forwards; }
.js .hero__title .line:nth-child(2) > span { animation-delay: .12s; }
.js .hero__kicker, .js .hero__side, .js .hero__media, .js .hero__bar { opacity: 0; animation: fade .9s var(--ease) forwards; }
.js .hero__kicker { animation-delay: .05s; }
.js .hero__side { animation-delay: .4s; }
.js .hero__media { animation-name: fadein; animation-delay: .1s; }
.js .hero__bar { animation-delay: .7s; }
@keyframes rise { to { transform: none; } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes drift { from { transform: scale(1.06); } to { transform: scale(1); } }

/* ---------- Обратный отсчёт ---------- */
.countdown { display: flex; align-items: center; gap: 24px; }
.countdown__label { font-size: .95rem; color: var(--muted); }
.countdown__time { display: flex; gap: 22px; }
.countdown__time span { display: flex; align-items: baseline; gap: 6px; }
.countdown__time b { font-size: clamp(1.9rem, 3vw, 2.6rem); font-weight: 300; line-height: 1; color: var(--blue); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.countdown__time i { font-style: normal; font-size: .9rem; color: var(--muted); }
.countdown__done { font-size: 1.1rem; font-weight: 500; color: var(--blue); }

/* ---------- Секции ---------- */
.section { padding: clamp(72px, 9vw, 128px) 0; }
.section--foam { background: var(--foam); }
.section__head { max-width: 44em; margin-bottom: clamp(36px, 5vw, 60px); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__sub { margin-top: 18px; font-size: 1.1rem; }

/* ---------- 2. Что вас ждёт ---------- */
.intro__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.intro__mark {
  font-size: clamp(9rem, 24vw, 21rem); font-weight: 300; line-height: .8; letter-spacing: -.07em;
  color: var(--blue); position: sticky; top: calc(var(--header-h) + 32px);
}
.intro__lead { margin-top: 22px; font-size: 1.15rem; max-width: 36em; }
.agenda { margin-top: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.agenda li { padding: 22px 0 26px; border-top: 1px solid var(--line); }
.agenda h3 a { color: var(--title); background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease); }
.agenda h3 a:hover { text-decoration: none; background-size: 100% 1px; }
.agenda p { margin-top: 8px; font-size: .98rem; }

/* ---------- 3. Яхты: витрина с галереями ---------- */
.tabs {
  display: flex; gap: 12px 48px; flex-wrap: wrap; align-items: flex-end;
  border-bottom: 1px solid var(--line); margin-bottom: 32px;
}
.tabs__group { display: flex; align-items: flex-end; gap: 4px 30px; flex-wrap: wrap; }
.tabs__line { width: 100%; font-size: .85rem; color: var(--muted); }
.tab {
  position: relative; background: none; border: 0; padding: 6px 0 16px;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem); font-weight: 300; letter-spacing: -.02em; line-height: 1.1;
  color: var(--muted); white-space: nowrap; transition: color .25s var(--ease);
}
.tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease-out); }
.tab:hover { color: var(--title); }
.tab.is-on { color: var(--navy); }
.tab.is-on::after { transform: scaleX(1); }
.tag { margin-left: 6px; vertical-align: super; font-size: .72rem; font-weight: 700; letter-spacing: .04em; color: var(--white); background: var(--blue); padding: 2px 7px 3px; border-radius: 999px; }

.boat { display: grid; grid-template-columns: minmax(0, 1fr) 340px; grid-template-areas: "stage info" "thumbs info"; gap: 20px 40px; }
.boat[hidden] { display: none; }
.boat.is-on { animation: fade .5s var(--ease) both; }
.boat__stage { grid-area: stage; position: relative; }
.stage { display: block; width: 100%; padding: 0; border: 0; background: var(--foam); border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; cursor: zoom-in; }
.stage img { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s var(--ease); }
.stage img.is-loading { opacity: .35; }
.stage__nav {
  position: absolute; right: 14px; bottom: 14px; display: flex; align-items: center; gap: 4px;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); border-radius: 999px; padding: 4px;
  box-shadow: 0 6px 20px -10px rgba(3, 62, 89, .45);
}
.stage__count { min-width: 56px; text-align: center; font-size: .9rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.stage__count b { color: var(--title); font-weight: 500; }
.arrow { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--navy); transition: background .2s var(--ease); }
.arrow:hover { background: var(--blue-soft); }
.arrow svg, .lightbox__close svg, .quiz__ok svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.boat__info { grid-area: info; align-self: start; display: grid; gap: 14px; padding-top: 4px; }
.boat__line { font-size: .9rem; color: var(--blue); }
.boat__name { font-size: clamp(1.7rem, 2.4vw, 2.1rem); font-weight: 300; letter-spacing: -.02em; color: var(--navy); }
.boat__info .btn { margin-top: 10px; }

.thumbs { grid-area: thumbs; display: flex; gap: 10px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--line) transparent; padding-bottom: 6px; scroll-snap-type: x proximity; }
.thumbs li { flex: 0 0 auto; scroll-snap-align: start; }
.thumbs button { display: block; width: 128px; aspect-ratio: 3 / 2; padding: 0; border: 0; border-radius: 4px; overflow: hidden; background: var(--foam); opacity: .6; outline-offset: 2px; transition: opacity .25s var(--ease); position: relative; }
.thumbs button::after { content: ""; position: absolute; inset: 0; border: 2px solid transparent; border-radius: 4px; transition: border-color .25s var(--ease); }
.thumbs button:hover { opacity: .9; }
.thumbs button.is-on { opacity: 1; }
.thumbs button.is-on::after { border-color: var(--blue); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Полноэкранный просмотр ---------- */
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(255, 255, 255, .97); color: var(--title); overflow: hidden;
}
.lightbox::backdrop { background: rgba(238, 242, 243, .85); }
.lightbox[open] { display: grid; place-items: center; animation: fade .3s var(--ease) both; }
.lightbox__fig { display: grid; gap: 14px; justify-items: center; padding: 64px 84px 28px; max-width: 100%; max-height: 100%; }
.lightbox__fig img { max-width: 100%; max-height: calc(100dvh - 150px); width: auto; height: auto; object-fit: contain; border-radius: 4px; user-select: none; -webkit-user-drag: none; touch-action: pan-y; }
.lightbox__fig figcaption { display: flex; gap: 14px; font-size: .95rem; color: var(--muted); }
.lightbox__fig figcaption b { color: var(--title); font-weight: 500; }
.lightbox__close { position: absolute; top: 14px; right: 14px; width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--foam); color: var(--navy); }
.lightbox__close:hover { background: var(--blue-soft); }
.lightbox .arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; background: var(--foam); }
.lightbox .arrow:hover { background: var(--blue-soft); }
.lightbox__prev { left: 16px; }
.lightbox__next { right: 16px; }
body.is-locked { overflow: hidden; }

/* ---------- 4. Премьеры ---------- */
.premieres { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 24px; align-items: stretch; }
.premiere { border-radius: 10px; overflow: hidden; background: var(--foam); }
.premiere--c { display: grid; grid-template-rows: auto 1fr; }
.premiere__photo { aspect-ratio: 2 / 1; overflow: hidden; }
.premiere__photo img { width: 100%; height: 100%; object-fit: cover; }
.premiere__body { padding: clamp(26px, 3.4vw, 44px); display: grid; gap: 14px; align-content: start; }
.premiere__line { font-size: .95rem; font-weight: 700; color: var(--blue); }
.premiere h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 700; color: var(--navy); }
.yard { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 10px 0 8px; }
.yard li { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 4px; }
.yard img { width: 100%; height: 100%; object-fit: cover; }
.premiere--c .btn { justify-self: start; }

.premiere--y { display: flex; flex-direction: column; justify-content: space-between; }
.ymodels { padding: 0 clamp(26px, 3.4vw, 44px) clamp(26px, 3.4vw, 44px); }
.ymodels div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.ymodels dt { font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 300; letter-spacing: -.03em; line-height: 1; color: var(--navy); }
.ymodels dd { font-size: .92rem; color: var(--muted); text-align: right; }

/* ---------- 5. Атмосфера и партнёры ---------- */
.atmo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.atmo__photo { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 10px; }
.atmo__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 38% center; }
.partners__title { margin-top: 44px; margin-bottom: 10px; }
.partners { display: flex; flex-wrap: wrap; margin-top: 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.partners li { padding: 16px 22px; font-size: clamp(1.15rem, 1.8vw, 1.4rem); font-weight: 300; color: var(--navy); letter-spacing: -.01em; }
.partners li:first-child { padding-left: 0; }
.partners li + li { border-left: 1px solid var(--line); }
.offers { margin-top: 22px; display: grid; gap: 10px; }
.offers li { position: relative; padding-left: 30px; }
.offers li::before { content: ""; position: absolute; left: 0; top: .8em; width: 18px; height: 1px; background: var(--blue); }

/* ---------- 6. Регистрация ---------- */
.register__in { max-width: 920px; }
.quiz { background: var(--white); color: var(--text); border-radius: 10px; padding: clamp(26px, 4vw, 52px); box-shadow: 0 30px 70px -40px rgba(3, 62, 89, .35); }
.quiz__progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 30px; }
.quiz__progress i { height: 3px; border-radius: 3px; background: var(--line); transition: background .4s var(--ease); }
.quiz__progress i.is-on { background: var(--blue); }
.quiz__step[hidden], .quiz__done[hidden] { display: none; }
.quiz__step, .quiz__done { animation: fade .45s var(--ease) both; }
.quiz__q { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 700; color: var(--title); line-height: 1.25; margin-bottom: 26px; }
.quiz__q span { display: block; font-size: .9rem; font-weight: 500; color: var(--blue); margin-bottom: 8px; }
.quiz__summary { margin: -12px 0 22px; font-size: .95rem; }
.quiz__back { margin-top: 22px; background: none; border: 0; padding: 8px 0; font-size: .95rem; color: var(--text); opacity: .75; }
.quiz__back::before { content: "‹"; margin-right: 8px; }
.quiz__back:hover { opacity: 1; color: var(--blue); }
.opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.opts--3 { grid-template-columns: repeat(3, 1fr); }
.opt {
  text-align: left; padding: 22px; min-height: 88px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; flex-direction: column; justify-content: center; gap: 4px; color: var(--text);
  transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.opt b { font-size: 1.15rem; color: var(--title); }
.opt span { font-size: .92rem; opacity: .8; }
.opt:hover { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue) inset; }
.opt:active { background: var(--foam); }
.opt.is-on { border-color: var(--blue); background: var(--blue-soft); box-shadow: 0 0 0 1px var(--blue) inset; }

.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 8px; font-size: .92rem; font-weight: 500; color: var(--title); }
.form input[type="text"], .form input[type="tel"] {
  width: 100%; min-height: 52px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius);
  font: inherit; color: var(--title); background: var(--white); transition: border-color .2s, box-shadow .2s;
}
.form input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(28, 122, 171, .18); }
.form input.is-bad { border-color: #c0392b; }
.form .check { grid-template-columns: 22px 1fr; align-items: start; gap: 12px; font-weight: 400; font-size: .86rem; line-height: 1.5; color: var(--text); cursor: pointer; }
.form .check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue); }
.form .check--feature { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); font-size: .92rem; transition: border-color .2s, background .2s; }
.form .check--feature:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
.form .check--feature b { display: block; font-size: 1rem; font-weight: 500; color: var(--title); }
.form .check--feature.is-flash { animation: flash 1.4s var(--ease); }
@keyframes flash { 0%, 100% { box-shadow: none; } 30% { box-shadow: 0 0 0 4px rgba(28, 122, 171, .35); } }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__error { color: #c0392b; font-size: .95rem; }
.quiz__done { text-align: center; padding: 8px 0; outline: none; }
.quiz__done p { max-width: 30em; margin: 14px auto 0; }
.quiz__ok { width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: var(--white); }
.quiz__ok svg { width: 30px; height: 30px; stroke-width: 2.2; }
.quiz__alt { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .95rem; text-align: center; }
.quiz__alt a { font-weight: 500; white-space: nowrap; }

/* ---------- 7. FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 44px 24px 0; position: relative;
  font-size: 1.15rem; font-weight: 500; color: var(--title);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 1.7rem; font-weight: 300; color: var(--blue); transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 44px 26px 0; max-width: 40em; }

/* ---------- 8. Финал ---------- */
.final__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.final h2 { color: var(--navy); max-width: 12em; font-size: clamp(2.2rem, 4.6vw, 3.9rem); font-weight: 300; letter-spacing: -.035em; line-height: 1.02; }
.final__place { margin-top: 18px; font-size: 1.15rem; font-weight: 700; color: var(--title); }
.final__note { margin-top: 10px; font-size: 1.05rem; }
.final__note b { color: var(--blue); font-weight: 700; }
.final__photo { aspect-ratio: 3 / 2; overflow: hidden; border-radius: 10px; }
.final__photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Футер ---------- */
.footer { background: var(--navy); color: rgba(255, 255, 255, .78); padding: 44px 0 56px; font-size: .92rem; }
.footer a { color: var(--white); }
.footer :focus-visible { outline-color: var(--white); }
.footer__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer__in img { height: 38px; width: auto; }

/* ---------- Нижняя панель (телефон) ---------- */
.dock { display: none; }

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
  .header__nav { display: none; }
  .hero__in { grid-template-columns: 1fr; }
  .hero__side { max-width: 640px; }
  .boat { grid-template-columns: 1fr; grid-template-areas: "stage" "thumbs" "info"; }
  .boat__info { max-width: 640px; }
  .premieres { grid-template-columns: 1fr; }
  .premiere--y { display: grid; grid-template-columns: 1fr 1fr; align-items: end; }
  .ymodels { padding-top: clamp(26px, 3.4vw, 44px); }
}
@media (max-width: 860px) {
  body { font-size: 16px; padding-bottom: 68px; }
  .container, .container--narrow { width: calc(100% - 32px); }
  .header__phone { display: none; }
  /* Телефон: поверх фото только заголовок, факты и кнопки — сразу под фото на белом */
  .hero__stage {
    display: grid; grid-template-areas: "photo" "side"; min-height: 0;
    background: var(--white); color: var(--title);
  }
  .hero__media { position: relative; inset: auto; grid-area: photo; height: min(80svh, 680px); min-height: 460px; }
  .hero__media img { object-position: 66% 50%; }
  .hero__stage::before {
    grid-area: photo; position: relative; inset: auto;
    background:
      linear-gradient(to bottom, rgba(2, 30, 45, .34) 0, rgba(2, 30, 45, 0) 110px),
      linear-gradient(to top, rgba(2, 30, 45, .58) 0%, rgba(2, 30, 45, .26) 30%, rgba(2, 30, 45, 0) 52%);
  }
  .hero__in { display: contents; }
  .hero__text { grid-area: photo; align-self: end; padding: 0 16px 26px; color: var(--white); }
  .hero__side { grid-area: side; max-width: none; padding: 26px 16px 4px; }
  .hero__facts div { border-bottom-color: var(--line); }
  .hero__facts dt { color: var(--muted); }
  .hero__facts dd { color: var(--title); text-shadow: none; }
  .hero__side :focus-visible { outline-color: var(--blue); }
  .hero__side .btn--light { background: transparent; border-color: var(--navy); color: var(--navy); backdrop-filter: none; }
  .hero__side .btn--light:hover { background: var(--navy); color: var(--white); }
  .hero__bar { grid-template-columns: 1fr; gap: 16px; padding: 22px 0 30px; }
  .hero__about { justify-self: start; }
  .hero__cta .btn { width: 100%; }
  .countdown { flex-wrap: wrap; gap: 8px 24px; }
  .intro__grid { grid-template-columns: 1fr; gap: 8px; }
  .intro__mark { position: static; font-size: clamp(7rem, 34vw, 11rem); }
  .agenda { grid-template-columns: 1fr; }
  .tabs { gap: 20px; }
  .tabs__group { gap: 4px 22px; }
  .premiere--y { display: flex; }
  .atmo, .final__in { grid-template-columns: 1fr; }
  .atmo__photo { aspect-ratio: 4 / 3; }
  .partners li { padding: 12px 16px; }
  .opts, .opts--3 { grid-template-columns: 1fr; }
  .opt { min-height: 72px; padding: 18px; }
  .form__row { grid-template-columns: 1fr; }
  .thumbs button { width: 104px; }
  .lightbox__fig { padding: 64px 12px 88px; }
  .lightbox .arrow { top: auto; bottom: 16px; transform: none; width: 52px; height: 52px; }
  .lightbox__fig img { max-height: calc(100dvh - 190px); }
  .dock {
    display: grid; grid-template-columns: 1fr 1fr 1fr 1.25fr; position: fixed; inset: auto 0 0 0; z-index: 60;
    background: rgba(255, 255, 255, .97); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .dock a { display: grid; place-items: center; height: 60px; color: var(--navy); font-weight: 500; font-size: .92rem; }
  .dock a:hover { text-decoration: none; }
  .dock__main { background: var(--blue); color: var(--white) !important; }
}
@media (max-width: 480px) {
  .hero__title { font-size: clamp(3rem, 15vw, 4.4rem); }
  .countdown__time { gap: 16px; }
  .stage { aspect-ratio: 4 / 3; }
  .stage__nav { right: 8px; bottom: 8px; }
  .partners li { padding: 10px 12px; font-size: 1.05rem; }
  .partners li:first-child { padding-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__media img { animation: none; }
  .js .hero__title .line > span { transform: none; animation: none; }
  .js .hero__kicker, .js .hero__side, .js .hero__media, .js .hero__bar { opacity: 1; animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
