/* ==========================================================================
   VIPclub 2026 — Анталия
   Тёмная тема, золотые градиенты, Manrope + Unbounded.
   ========================================================================== */

:root {
  --bg: #17181b;
  --bg-tint: #1b1c20;
  --surface: #1f2125;
  --surface-2: #212328;
  --surface-3: #1e2024;
  --surface-gold: #26241c;

  --text: #ededef;
  --muted: #a8a9ae;
  --dim: #8c8d93;
  --faint: #75767c;
  --ghost: #63646a;

  --gold: #e5ce7a;
  --gold-hover: #f3d97a;
  --gold-deep: #946712;
  --gold-grad: linear-gradient(100deg, #c49a2e, #ebd87a 55%, #ad8119);
  --gold-grad-logo: linear-gradient(120deg, #c49a2e, #ebd87a 55%, #ad8119);

  --line: rgba(229, 208, 104, 0.14);
  --line-soft: rgba(229, 208, 104, 0.12);
  --line-strong: rgba(229, 208, 104, 0.42);

  --radius: 18px;
  --radius-sm: 12px;
  --wrap: 1120px;
  --pad: clamp(1.25rem, 4vw, 3rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; line-height: 1.14; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-hover); }
img { max-width: 100%; display: block; }
::selection { background: var(--gold-deep); color: #fff; }

.wrap {
  width: min(100% - 2 * var(--pad), var(--wrap));
  margin-inline: auto;
}

.gold {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: .75rem 1.25rem;
  background: var(--surface);
  color: var(--gold);
}
.skip-link:focus { left: 1rem; top: 1rem; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Логотип ---------- */
.logo {
  display: block;
  background: var(--gold-grad-logo);
  -webkit-mask: url("../img/vipclub-logo.7a7b61833c90.svg") no-repeat center / contain;
  mask: url("../img/vipclub-logo.7a7b61833c90.svg") no-repeat center / contain;
}
.logo--lg { width: 184px; height: 72px; margin: 0 auto .95rem; }
.logo--sm { width: 87px; height: 34px; }
.logo--xs { width: 67px; height: 26px; }

/* ---------- Шапка ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  /* Вверху страницы — ни фона, ни размытия: шапка просто лежит на первом экране. */
  background: transparent;
  backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
}
.topbar.is-stuck {
  background: rgba(23, 24, 27, .82);
  backdrop-filter: blur(14px) saturate(150%);
  border-bottom-color: var(--line-soft);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 18px 0;
}

.topbar__nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: .94rem;
}
.topbar__nav a { color: var(--muted); }
.topbar__nav a:hover { color: var(--gold); }
.topbar__nav .btn { color: #241c05; }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .03);
  cursor: pointer;
}
.burger span {
  display: block;
  width: 18px;
  height: 1.5px;
  margin: 4px auto;
  background: var(--gold);
  transition: transform .25s, opacity .25s;
}
.burger[aria-expanded='true'] span:first-child { transform: translateY(2.75px) rotate(45deg); }
.burger[aria-expanded='true'] span:last-child { transform: translateY(-2.75px) rotate(-45deg); }

/* ---------- Кнопки ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 17px 34px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  background:
    linear-gradient(rgba(224, 199, 103, .97), rgba(224, 199, 103, .97)) padding-box,
    linear-gradient(140deg,
      rgba(255, 250, 232, .95) 0%,
      rgba(224, 199, 103, .85) 34%,
      rgba(213, 181, 79, .8) 50%,
      rgba(224, 199, 103, .85) 66%,
      rgba(236, 222, 186, .78) 100%) border-box;
  box-shadow:
    inset -16px 14px 26px -14px rgba(60, 44, 8, .45),
    inset 16px -14px 26px -14px rgba(60, 44, 8, .45),
    inset 0 1px 0 rgba(255, 255, 255, .45),
    0 8px 22px rgba(0, 0, 0, .4);
  color: #241c05;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .35);
  font: inherit;
  font-weight: 800;
  font-size: .94rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.btn:hover {
  color: #241c05;
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow:
    inset -16px 14px 26px -14px rgba(60, 44, 8, .45),
    inset 16px -14px 26px -14px rgba(60, 44, 8, .45),
    inset 0 1px 0 rgba(255, 255, 255, .45),
    0 14px 32px rgba(0, 0, 0, .5);
}
.btn:active { transform: translateY(0); }

/* Полупрозрачная кнопка: заливка пропускает фон секции, рамка нарисована
   отдельным слоем с вырезанной серединой — иначе градиент рамки светится
   сквозь заливку. */
.btn--ghost {
  background: linear-gradient(165deg,
    rgba(235, 216, 122, .3) 0%,
    rgba(235, 216, 122, .14) 55%,
    rgba(224, 199, 103, .06) 100%);
  box-shadow: none;
  color: var(--gold);
  text-shadow: none;
}
.btn--ghost::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1.5px;
  border-radius: inherit;
  background: linear-gradient(140deg,
    rgba(255, 250, 232, .85) 0%,
    rgba(224, 199, 103, .7) 34%,
    rgba(213, 181, 79, .65) 50%,
    rgba(224, 199, 103, .7) 66%,
    rgba(236, 222, 186, .6) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}
.btn--ghost:hover {
  color: var(--gold-hover);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .35);
}

.btn--sm { padding: 11px 22px; font-size: .75rem; }
.btn--full { width: 100%; }

/* ---------- Первый экран ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 9vw, 7.5rem) 0 clamp(4.5rem, 11vw, 9.4rem);
  text-align: center;
}
.hero__glow {
  position: absolute;
  top: -220px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1100px, 150vw);
  height: 620px;
  background: radial-gradient(ellipse at center, rgba(233, 214, 109, .13), rgba(23, 24, 27, 0) 65%);
  pointer-events: none;
}
.hero__inner { position: relative; }

/* Подпись под логотипом: заметно мельче заголовка. */
.hero__intro {
  display: grid;
  gap: .35rem;
  color: var(--muted);
  font-size: clamp(.95rem, 1.7vw, 1.25rem);
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
}

/* Незаметная черта, растворяющаяся к краям. */
.hero__rule {
  width: min(220px, 60%);
  height: 1px;
  margin: clamp(1.6rem, 3.5vw, 2.6rem) auto;
  border: 0;
  background: linear-gradient(90deg,
    transparent, rgba(229, 208, 104, .28) 50%, transparent);
}

.hero__eyebrow {
  margin-bottom: .65rem;
  color: var(--ghost);
  font-size: .8rem;
  letter-spacing: .28em;
  text-transform: uppercase;
}

.hero__title {
  /* Ширину не ограничиваем: лимит по символам заставлял переносить строку
     даже там, где до края оставалось место. Раскладку по строкам делает balance. */
  max-width: 100%;
  margin-inline: auto;
  font-family: 'Unbounded', 'Manrope', sans-serif;
  font-weight: 400;
  font-size: clamp(2.05rem, 5.6vw, 4.75rem);
  line-height: 1.08;
  letter-spacing: -.02em;
  text-wrap: balance;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .6rem 1.75rem;
  margin-top: 2.85rem;
  color: #c9cace;
  font-size: 1.06rem;
}
.hero__meta li {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}
.hero__meta li + li::before {
  content: '';
  width: 5px;
  height: 5px;
  margin-right: 1.15rem;
  border-radius: 50%;
  background: var(--gold-deep);
}
.hero__meta svg {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}
.hero__meta i { font-style: normal; opacity: .45; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.75rem;
}

/* ---------- Промо-ролик ---------- */
.promo { padding: 0 0 clamp(3rem, 7vw, 5rem); }

/* Золотая рамка нарисована отдельным слоем поверх — так она не зависит
   от того, каким размером браузер отрисует само видео. */
.promo__frame {
  position: relative;
  /* Ролик — короткая заставка, а не главный экран: половина колонки контента
     (--wrap 1120px, то есть 840px) и по центру. */
  max-width: 75%;
  margin-inline: auto;
  transition: max-width .35s ease;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .5);
}
.promo__frame::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(140deg, #ebd87a, #c49a2e 45%, #ad8119 70%, #ebd87a);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.promo__video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
  transition: aspect-ratio .35s ease;
}

/* Ролик снят вертикально (464×848), обложка — горизонтальная. Поэтому на
   старте кадр перестраивается под 9:16, иначе видео шло бы с чёрными
   полями по бокам в четверть высоты. */
.promo__frame.is-playing { max-width: min(75%, 46vh); }
.promo__frame.is-playing .promo__video {
  /* Точное соотношение исходника, а не круглые 9:16: иначе сверху и снизу
     остаются чёрные поля в пару десятков пикселей. */
  aspect-ratio: 464 / 848;
  object-fit: contain;
}
/* Затемнение снимаем, как только ролик запустили. */
.promo__frame:not(.is-playing) .promo__video { filter: brightness(.42); }

.promo__play {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: clamp(.7rem, 1.6vw, 1.1rem);
  width: 100%;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.promo__play svg {
  width: clamp(62px, 17vw, 82px);
  height: clamp(62px, 17vw, 82px);
  /* Меньше внутреннего поля — треугольник заполняет круг заметнее. */
  padding: clamp(9px, 1.8vw, 12px);
  border-radius: 50%;
  /* Белое золото: почти белый с тёплым отливом. */
  fill: #f6efd6;
  background: rgba(23, 24, 27, .35);
  border: 4px solid rgba(246, 239, 214, .85);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .45);
  transition: transform .2s ease, background .2s ease;
}
.promo__label {
  display: grid;
  justify-items: center;
  gap: .45rem;
  /* Подписи отодвинуты от кнопки к нижней трети кадра. */
  margin-top: clamp(1.4rem, 4vw, 2.6rem);
}

.promo__eyebrow {
  color: rgba(246, 239, 214, .8);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .26em;
  text-transform: uppercase;
  text-shadow: 0 3px 14px rgba(0, 0, 0, .75);
}

.promo__caption {
  color: #f6efd6;
  font-family: 'Unbounded', 'Manrope', sans-serif;
  font-weight: 800;
  font-size: clamp(1.05rem, 2.4vw, 1.7rem);
  letter-spacing: .05em;
  text-transform: uppercase;
  /* Тень держит текст читаемым на светлых кадрах обложки. */
  text-shadow: 0 4px 20px rgba(0, 0, 0, .75);
}

.promo__play:hover svg { transform: scale(1.06); background: rgba(23, 24, 27, .5); }
.promo__frame.is-playing .promo__play { display: none; }

/* ---------- Секции ---------- */
.section { padding: clamp(3.75rem, 8vw, 6.25rem) 0; }
.section--tint { background: var(--bg-tint); }
section[id] { scroll-margin-top: 80px; }

/* Шапки секций выровнены по центру колонки. */
.section__head {
  max-width: 760px;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.eyebrow {
  margin-bottom: .9rem;
  color: var(--dim);
  font-size: .78rem;
  letter-spacing: .26em;
  text-transform: uppercase;
}

h2 {
  font-family: 'Unbounded', 'Manrope', sans-serif;
  font-weight: 300;
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);
  letter-spacing: -.01em;
  /* Золото у всех заголовков разделов — как в первом экране. */
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section__lead {
  margin-top: 1rem;
  margin-inline: auto;
  max-width: 620px;
  color: var(--dim);
  font-size: 1rem;
  line-height: 1.65;
}

/* ---------- Карточки программы ---------- */
.grid { display: grid; gap: 1.25rem; }
/* Строки одной высоты, чтобы все шесть карточек были одинаковыми. */
.grid--cards {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-auto-rows: 1fr;
}

.card {
  padding: clamp(1.6rem, 3vw, 2.1rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  background: #232529;
}
.card__num {
  display: block;
  font-family: 'Unbounded', sans-serif;
  font-weight: 400;
  font-size: 1.7rem;
}
.card h3 {
  margin: 1.1rem 0 .6rem;
  font-size: 1.16rem;
  font-weight: 700;
  color: var(--gold);
}
.card p { color: var(--muted); font-size: .98rem; }

/* ---------- Форматы участия ---------- */
.grid--tiers { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }

.tier {
  --tier-pad: clamp(1.75rem, 3vw, 2.25rem);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--tier-pad);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-2);
}
/* Рекомендуемый формат: теплее фон, ярче рамка, лёгкое золотое свечение
   и подъём над соседями. */
.tier--featured {
  border-color: rgba(229, 208, 104, .6);
  background: linear-gradient(180deg, #2b2820, #24221b 60%);
  box-shadow:
    0 0 0 1px rgba(229, 208, 104, .18),
    0 26px 70px rgba(0, 0, 0, .55),
    0 0 70px -24px rgba(235, 216, 122, .4);
  transform: translateY(-10px);
}
.tier--featured .tier__price { border-top-color: rgba(229, 208, 104, .28); }
/* Подпись над заголовком: обычная строка в потоке, приглушённая,
   выровнена по левому краю карточки вместе с заголовком. */
.tier__badge {
  align-self: flex-start;
  margin: 0 0 .8rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .55;
}
.tier__badge--gold { color: var(--gold); }
.tier__badge--silver { color: #dfe4ec; }
.tier h3 {
  font-family: 'Unbounded', 'Manrope', sans-serif;
  font-weight: 400;
  font-size: 1.38rem;
  /* Ровное золото, без градиентного перелива. */
  color: var(--gold);
}
/* Цена прижата к низу карточки и отделена тонкой чертой. */
.tier__price {
  margin-top: auto;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-soft);
  font-family: 'Unbounded', 'Manrope', sans-serif;
  font-weight: 400;
  font-size: 2rem;
  letter-spacing: -.01em;
  color: var(--gold);
}

/* Подпись под ценой — тем же кеглем и цветом, что и строка над заголовком. */
.tier__price-note {
  margin-top: .5rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .55;
}

.tier__tagline {
  margin: .75rem 0 1.6rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}
.tier--featured /* Подпись под ценой — тем же кеглем и цветом, что и строка над заголовком. */
.tier__price-note {
  margin-top: .5rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .55;
}

.tier__tagline { color: #b7b8bd; }

.tier__perks {
  display: grid;
  gap: .75rem;
  margin-bottom: 1.6rem;
  color: #c9cace;
  font-size: .95rem;
}
/* Когда у формата нет описания, список иначе прилипает к заголовку или цене. */
.tier h3 + .tier__perks,
.tier__price + .tier__perks { margin-top: 1.5rem; }

/* Выделение внутри пункта: главное — светлее, уточнение в скобках — тише. */
.tier__perks strong { color: var(--text); font-weight: 700; }
.tier--featured .tier__perks strong { color: #fff; }
.tier--featured .tier__perks { color: #dcdde1; }
.tier__perks li { position: relative; padding-left: 1.6rem; }
.tier__perks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .5em;
  width: .55rem;
  height: .3rem;
  border-left: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  rotate: -45deg;
}
.tier .btn { margin-top: 1.25rem; }

/* ---------- Развлекательная программа ---------- */
.leisure {
  display: grid;
  grid-template-columns: minmax(280px, .85fr) minmax(320px, 1.15fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
.leisure__head h2 { margin-bottom: 1.25rem; }
.leisure__head .section__lead { color: var(--muted); font-size: 1.05rem; }

.leisure__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}
.mini {
  padding: 1.6rem;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: var(--surface-3);
  transition: border-color .25s ease, transform .25s ease;
}
.mini:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.mini h3 {
  margin-bottom: .5rem;
  color: var(--gold);
  font-size: 1.02rem;
  font-weight: 700;
}
.mini p { color: var(--muted); font-size: .94rem; }

/* ---------- Галерея ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 220px;
  /* dense подтягивает мелкие плитки в дыры, которые оставляют крупные. */
  grid-auto-flow: dense;
  gap: 1rem;
}
.gallery__item {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: var(--surface-3);
}
.gallery__item--tall { grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }
.gallery__item--large { grid-column: span 2; grid-row: span 2; }

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.95);
  transition: transform .5s ease, filter .5s ease;
}
.gallery__item:hover img { transform: scale(1.04); filter: saturate(1.05); }

.gallery__placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 1rem;
  text-align: center;
  background:
    linear-gradient(calc(140deg + var(--i, 0) * 22deg),
      rgba(235, 216, 122, .22), rgba(148, 103, 18, .16) 52%, rgba(34, 36, 41, .95));
}
.gallery__placeholder span {
  color: rgba(237, 237, 239, .5);
  font-size: .82rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.gallery__item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .75rem;
  padding: 2rem 1.1rem .95rem;
  background: linear-gradient(transparent, rgba(15, 16, 18, .9));
  font-size: .9rem;
}
.gallery__item figcaption span { color: var(--muted); font-size: .8rem; }

/* ---------- Финальный блок с формой ---------- */
.section--final {
  position: relative;
  overflow: hidden;
  padding: clamp(4.5rem, 9vw, 6.9rem) 0 clamp(3.5rem, 7vw, 5.6rem);
}
.final__glow {
  position: absolute;
  bottom: -260px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1000px, 150vw);
  height: 520px;
  background: radial-gradient(ellipse at center, rgba(233, 214, 109, .11), rgba(23, 24, 27, 0) 68%);
  pointer-events: none;
}
.final {
  position: relative;
  max-width: 820px;
  text-align: center;
}
.final h2 {
  font-family: 'Unbounded', 'Manrope', sans-serif;
  font-weight: 400;
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  line-height: 1.12;
}
.final__lead {
  margin: 1.4rem auto 2.4rem;
  max-width: 560px;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.7;
}

.final__form {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  max-width: 620px;
  margin-inline: auto;
}
.final__form .field { flex: 1 1 220px; text-align: left; }
.final__form .field--full { flex: 1 1 100%; }
.final__form .btn,
.final__form .final__note,
.final__form .alert { flex: 1 1 100%; }

.field__control {
  width: 100%;
  padding: 16px 20px;
  border: 1px solid rgba(229, 208, 104, .18);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  transition: border-color .2s, background .2s;
}
.field__control:focus {
  outline: none;
  border-color: var(--gold);
  background: #26282d;
}
.field__control::placeholder { color: rgba(168, 169, 174, .7); }
.field__error { display: block; margin-top: .4rem; color: #ff9a8a; font-size: .84rem; }

.final__note {
  margin-top: .35rem;
  color: var(--faint);
  font-size: .8rem;
  text-align: center;
}
.final__meta {
  margin-top: 1.65rem;
  color: var(--faint);
  font-size: .88rem;
  line-height: 1.7;
}
.final__meta span { opacity: .75; }

.contacts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem;
  margin-top: 1.9rem;
}
.contacts a {
  display: inline-block;
  padding: .55rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: .88rem;
}
.contacts a:hover { border-color: var(--line-strong); color: var(--gold); }

.alert {
  padding: .9rem 1.1rem;
  margin-bottom: .5rem;
  border-radius: var(--radius-sm);
  font-size: .93rem;
  text-align: center;
}
.alert--success { background: rgba(74, 176, 129, .16); border: 1px solid rgba(74, 176, 129, .4); }
.alert--error { background: rgba(220, 92, 76, .14); border: 1px solid rgba(220, 92, 76, .38); }

/* ---------- Подвал ---------- */
.footer { padding: 2.4rem 0; }
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.footer p { color: var(--faint); font-size: .88rem; }

/* ---------- Просмотр фото ---------- */
.gallery__item img { cursor: zoom-in; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(.5rem, 2vw, 1.5rem);
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(10, 11, 13, .94);
  backdrop-filter: blur(6px);
}
.lightbox[hidden] { display: none; }

.lightbox__image {
  max-width: min(100%, 1400px);
  max-height: 86vh;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}

.lightbox__nav,
.lightbox__close {
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(33, 35, 40, .8);
  color: var(--gold);
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.lightbox__nav:hover,
.lightbox__close:hover { border-color: var(--line-strong); background: rgba(45, 47, 52, .9); }

.lightbox__nav { width: 52px; height: 52px; }
.lightbox__nav svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lightbox__close {
  position: absolute;
  top: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 3vw, 2rem);
  width: 44px;
  height: 44px;
  font-size: 1.6rem;
  line-height: 1;
}

.lightbox__counter {
  position: absolute;
  bottom: clamp(1rem, 3vw, 2rem);
  left: 50%;
  transform: translateX(-50%);
  color: var(--faint);
  font-size: .85rem;
  letter-spacing: .1em;
}

/* На телефоне листаем свайпом, кнопки-стрелки только занимают место. */
@media (max-width: 700px) {
  .lightbox__nav { display: none; }
  .lightbox__image { max-height: 78vh; }
}

/* ---------- Появление при скролле ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
  .leisure { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 200px; }
  .gallery__item--wide,
  .gallery__item--large { grid-column: span 2; }
  .gallery__item--large { grid-row: span 1; }
}

@media (max-width: 800px) {
  .burger { display: block; }

  .topbar__nav {
    position: absolute;
    inset: 100% var(--pad) auto;
    flex-direction: column;
    align-items: stretch;
    gap: 1.1rem;
    padding: 1.4rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(23, 24, 27, .96);
    backdrop-filter: blur(16px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
    text-align: center;
    font-size: 1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .22s, transform .22s, visibility .22s;
  }
  .topbar__nav.is-open { opacity: 1; visibility: visible; transform: none; }

  .hero__meta { flex-direction: column; gap: .7rem; }
  .hero__meta li + li::before { display: none; }
  .hero__actions .btn { width: 100%; }
}

@media (max-width: 560px) {
  /* На телефоне ролик занимает всю ширину — отступы от краёв даёт .wrap. */
  .promo__frame { max-width: 100%; }
  .promo__frame.is-playing { max-width: min(100%, 46vh); }

  /* Два столбца квадратных плиток: на узком экране разноразмерные ячейки
     оставляют дыры, которые dense уже нечем закрыть. */
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: auto;
    gap: .6rem;
  }
  .gallery__item,
  .gallery__item--tall,
  .gallery__item--wide,
  .gallery__item--large {
    grid-column: span 1;
    grid-row: span 1;
    aspect-ratio: 1;
  }
  .final__form .field { flex: 1 1 100%; }
  .footer__inner { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; transition: none !important; }
}

/* ---------- Место проведения ---------- */
.venue {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(320px, 1.2fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: center;
}

/* Пока площадка без адреса, карты нет — текст встаёт по центру. */
.venue--plain { grid-template-columns: 1fr; justify-items: center; text-align: center; }

.venue__name {
  font-family: 'Unbounded', 'Manrope', sans-serif;
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  font-weight: 400;
  line-height: 1.25;
}
.venue__address {
  margin: 1rem 0 1.5rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* Карта живёт в рамке с золотой каймой — как промо-ролик. */
.venue__map {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  aspect-ratio: 16 / 10;
  background: var(--surface-3);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .45);
}
.venue__map::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(140deg, #ebd87a, #c49a2e 45%, #ad8119 70%, #ebd87a);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}
.venue__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  /* Карта у Google светлая: приглушаем, чтобы не выбивалась из тёмной темы. */
  filter: grayscale(.25) contrast(1.05) brightness(.88);
}

@media (max-width: 820px) {
  .venue { grid-template-columns: 1fr; }
  .venue__map { aspect-ratio: 4 / 3; }
}
