/* ==========================================================================
   Артур & Александра — свадебный лендинг
   Тёмный кинематографичный стиль
   ========================================================================== */

:root {
  /* базовые цвета — их можно менять глобально и по блокам */
  --bg: #0a0a0c;
  --text: #efe9e0;
  --head: var(--text);   /* цвет заголовков (можно отдельно от текста) */
  --gold: #bfa06a;
  /* производные (выводятся из base — перекраска каскадит автоматически) */
  --gold-2: color-mix(in srgb, var(--gold) 68%, #ffffff);
  /* панели/подложки — нейтральные (мешаем фон с серым, а не с цветным текстом) */
  --bg-2: color-mix(in srgb, var(--bg) 92%, #808080);
  --panel: color-mix(in srgb, var(--bg) 88%, #808080);
  --panel-2: color-mix(in srgb, var(--bg) 80%, #808080);
  --muted: color-mix(in srgb, var(--text) 58%, var(--bg));
  --muted-2: color-mix(in srgb, var(--text) 40%, var(--bg));
  --line: color-mix(in srgb, var(--text) 12%, transparent);
  --line-strong: color-mix(in srgb, var(--text) 22%, transparent);
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Cormorant Garamond", Georgia, serif;
  /* множители размеров шрифтов (регулируются в админке) */
  --fs-head: 1;
  --fs-body: 1;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1180px;
  --pad: clamp(20px, 5vw, 64px);
}

*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Плёночное зерно ---------- */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 9000;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  animation: grain 0.6s steps(3) infinite;
  will-change: transform;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  33% { transform: translate(-4%, 3%); }
  66% { transform: translate(3%, -2%); }
  100% { transform: translate(0, 0); }
}

/* ---------- Прелоадер ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: var(--bg);
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 24px;
  transition: opacity 0.8s var(--ease), visibility 0.8s;
}
.preloader.done { opacity: 0; visibility: hidden; }
.preloader__mono {
  font-family: var(--serif);
  font-size: clamp(48px, 9vw, 96px);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text);
}
.preloader__bar {
  width: 160px;
  height: 1px;
  background: var(--line);
  overflow: hidden;
}
.preloader__bar span {
  display: block;
  height: 100%;
  width: 40%;
  background: var(--gold);
  animation: load 1.1s var(--ease) infinite;
}
@keyframes load {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(360%); }
}

/* ---------- Верхняя панель ---------- */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--pad);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text);
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.topbar.scrolled {
  background: rgba(10, 10, 12, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  padding-top: 14px;
  padding-bottom: 14px;
}
.topbar__center {
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: 0.16em;
  text-transform: none;
}
.topbar__side { color: var(--muted); font-weight: 500; }
.topbar__left { font-family: var(--serif); font-size: 18px; letter-spacing: 0.04em; color: var(--text); text-transform: none; }

.nav {
  position: absolute;
  top: 100%;
  right: var(--pad);
  display: none;
  flex-direction: column;
  gap: 4px;
  background: rgba(15, 15, 18, 0.96);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  padding: 14px 22px;
  border-radius: 4px;
}
.nav a { padding: 8px 0; font-size: 12px; letter-spacing: 0.18em; color: var(--muted); transition: color 0.25s; }
.nav a:hover { color: var(--text); }
.nav.open { display: flex; }

.burger {
  display: none;
  background: none;
  border: none;
  width: 30px;
  height: 20px;
  position: relative;
}
.burger span {
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.burger span:first-child { top: 4px; }
.burger span:last-child { bottom: 4px; }
.burger.open span:first-child { transform: translateY(5px) rotate(45deg); }
.burger.open span:last-child { transform: translateY(-5px) rotate(-45deg); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-block;
  padding: 15px 34px;
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: transparent;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s, transform 0.3s var(--ease);
  cursor: pointer;
}
.btn:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
  transform: translateY(-2px);
}
.btn--ghost { border-color: var(--line); color: var(--muted); }
.btn--ghost:hover { color: var(--bg); }
.btn--wide { width: 100%; text-align: center; padding: 16px; }
.btn--wide:hover { background: color-mix(in srgb, var(--gold) 16%, transparent); border-color: var(--gold); color: var(--text); transform: none; }

/* ---------- Общие секции ---------- */
.section {
  position: relative;
  padding: clamp(26px, 4.2vh, 50px) var(--pad);
  max-width: var(--container);
  margin: 0 auto;
}
h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: calc(clamp(32px, 6vw, 66px) * var(--fs-head));
  line-height: 1.05;
  letter-spacing: 0.01em;
}
h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: calc(24px * var(--fs-head));
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}
.center { text-align: center; }
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  font-weight: 500;
}
p { color: var(--muted); font-size: calc(16px * var(--fs-body)); max-width: 46ch; }

/* ---------- HERO (фото на весь экран, надписи поверх) ---------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__photo {
  position: absolute;
  inset: -6%;
  background-size: cover;
  background-position: center 35%;
  transform: scale(1.06);
  animation: kenburns 20s ease-out forwards;
  will-change: transform;
}
@keyframes kenburns {
  from { transform: scale(1.12); }
  to { transform: scale(1.02); }
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,12,0.55) 0%, rgba(10,10,12,0.18) 34%, rgba(10,10,12,0.4) 64%, rgba(10,10,12,0.96) 100%),
    radial-gradient(120% 80% at 50% 42%, transparent 42%, rgba(10,10,12,0.55) 100%);
}
.hero__content { position: relative; z-index: 1; padding: 0 var(--pad); }
.hero__kicker {
  font-size: 12px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: rgba(239, 233, 224, 0.85);
  margin-bottom: 24px;
  padding-left: 0.5em;
}
.hero__title {
  font-family: var(--display);
  font-weight: 300;
  font-size: calc(clamp(50px, 12vw, 160px) * var(--fs-head));
  line-height: 0.94;
  letter-spacing: 0.01em;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.4);
}
.hero__title span { display: block; }
.hero__amp {
  font-style: italic;
  font-size: 0.5em;
  color: var(--gold-2);
  margin: 0.04em 0;
  font-weight: 300;
}
.hero__meta {
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(239, 233, 224, 0.9);
}
.hero__dot { color: var(--gold); }
.hero__sub { color: var(--gold-2); }
.hero__scroll {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  z-index: 1;
}
.hero__scroll i {
  width: 1px;
  height: 46px;
  background: linear-gradient(var(--gold), transparent);
  position: relative;
  overflow: hidden;
}
.hero__scroll i::after {
  content: "";
  position: absolute;
  top: -50%;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--text);
  animation: scrolldot 1.8s var(--ease) infinite;
}
@keyframes scrolldot {
  0% { transform: translateY(0); opacity: 0; }
  40% { opacity: 1; }
  100% { transform: translateY(200%); opacity: 0; }
}

/* ---------- Узкая видео-полоса ---------- */
.videostrip { width: 100%; background: var(--bg); overflow: hidden; margin-top: clamp(40px, 6vh, 80px); }
.videostrip[hidden] { display: none; }
.videostrip__inner {
  position: relative;
  width: 100%;
  height: var(--strip-h, clamp(240px, 58vh, 620px));
  overflow: hidden;
  background: #000;
}
.videostrip__inner video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.videostrip__inner::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--bg), transparent 7%, transparent 93%, var(--bg)),
    linear-gradient(0deg, rgba(10, 10, 12, 0.5), transparent 28%, transparent 72%, rgba(10, 10, 12, 0.5));
}

/* ---------- INTRO ---------- */
.intro__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.intro__date {
  font-family: var(--serif);
  font-size: calc(clamp(30px, 5vw, 52px) * var(--fs-head));
  letter-spacing: 0.08em;
  margin: 6px 0 22px;
  color: var(--text);
}
.intro__text h2 { margin-bottom: 4px; }
.intro__text p { margin-bottom: 34px; font-size: calc(17px * var(--fs-body)); line-height: 1.75; }
.frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--line);
}
.frame__photo {
  position: absolute;
  inset: -8%;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

/* ---------- COUNTDOWN ---------- */
.countdown { text-align: center; }
.countdown__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(10px, 2.5vw, 28px);
  max-width: 720px;
  margin: 44px auto 30px;
}
.cd {
  border: 1px solid var(--line);
  padding: clamp(18px, 3vw, 34px) 10px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
}
.cd__num {
  font-family: var(--serif);
  font-size: calc(clamp(38px, 7vw, 76px) * var(--fs-head));
  font-weight: 400;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.cd__label {
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}
.countdown__date {
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- TIMELINE ---------- */
.timeline__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 0;
  margin: 50px 0 40px;
  position: relative;
}
.tl {
  text-align: center;
  padding: 0 14px;
  position: relative;
}
.tl:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 22px;
  right: -1px;
  width: 100%;
  height: 1px;
  background: var(--line);
  transform: translateX(50%);
  z-index: -1;
}
.tl__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  margin: 0 auto 18px;
  box-shadow: 0 0 0 5px rgba(191,160,106,0.14);
}
.tl__time {
  font-family: var(--serif);
  font-size: calc(clamp(26px, 4vw, 40px) * var(--fs-head));
  color: var(--text);
}
.tl__title {
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.timeline__photos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(8px, 1.5vw, 16px);
}
.timeline__photos .tphoto {
  aspect-ratio: 3 / 4;
  background-size: cover;
  background-position: center;
  filter: grayscale(0.15) contrast(1.02);
  transition: filter 0.5s var(--ease), transform 0.6s var(--ease);
}
.timeline__photos .tphoto:hover { filter: grayscale(0) contrast(1.05); transform: scale(1.015); }

/* ---------- GALLERY ---------- */
.gallery__head { text-align: center; margin-bottom: 44px; }
.gallery__grid {
  columns: 4;
  column-gap: clamp(8px, 1.2vw, 14px);
}
.gitem {
  break-inside: avoid;
  margin-bottom: clamp(8px, 1.2vw, 14px);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--panel);
}
.gitem img {
  width: 100%;
  height: auto;
  transition: transform 0.7s var(--ease), filter 0.5s;
  filter: brightness(0.94);
}
.gitem:hover img { transform: scale(1.04); filter: brightness(1.05); }
.gitem::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.35));
  opacity: 0;
  transition: opacity 0.4s;
}
.gitem:hover::after { opacity: 1; }
.gallery__more { text-align: center; margin-top: 44px; }
.gallery__more.hidden { display: none; }

/* ---------- LOCATION ---------- */
.location__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
}
.location__venue {
  font-family: var(--serif);
  font-size: clamp(26px, 4vw, 40px);
  margin: 6px 0 6px;
}
.location__addr { color: var(--muted); font-size: 16px; margin-bottom: 6px; }
.location__note { margin-bottom: 28px; }
.location__map {
  aspect-ratio: 16 / 11;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--panel);
}
/* Светлую карту Яндекса приводим к тёмной монохромной гамме сайта */
.location__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1) invert(0.92) contrast(0.9) brightness(0.95);
}

/* ---------- DETAILS ---------- */
.details__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 22px);
}
.card {
  border: 1px solid var(--line);
  padding: clamp(26px, 3vw, 40px);
  background: linear-gradient(180deg, rgba(255,255,255,0.015), transparent);
  min-height: 220px;
}
.card p { font-size: 15px; }
.card--quote { display: grid; place-content: center; text-align: center; }
.quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: calc(clamp(22px, 2.6vw, 30px) * var(--fs-head));
  line-height: 1.35;
  color: var(--text);
}
.swatches { display: flex; gap: 10px; margin-top: 22px; }
.swatches span {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
}

/* ---------- RSVP ---------- */
.rsvp { display: flex; justify-content: center; }
.rsvp__box {
  width: 100%;
  max-width: 560px;
  text-align: center;
  border: 1px solid var(--line);
  padding: clamp(32px, 5vw, 60px);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
}
.rsvp__box h2 { margin-bottom: 12px; }
.rsvp__box > p { margin: 0 auto 30px; }
.rsvp__form { text-align: left; display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field > span {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input[type="text"],
.field input[type="number"],
.field textarea {
  width: 100%;
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 13px 15px;
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.3s;
  resize: vertical;
}
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--gold); }
.choices { display: flex; gap: 12px; }
.choice {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  border: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s;
  flex: 1;
  justify-content: center;
}
.choice input { display: none; }
.choice i {
  width: 14px; height: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: background 0.3s, border-color 0.3s;
}
.choice input:checked + i { background: var(--gold); border-color: var(--gold); box-shadow: inset 0 0 0 3px var(--panel); }
.choice:has(input:checked) { color: var(--text); border-color: var(--gold); }
.rsvp__deadline {
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-top: 24px;
}
.rsvp__done {
  text-align: center;
  padding: 20px;
  font-family: var(--serif);
  font-size: 22px;
  color: var(--gold-2);
}

/* ---------- FOOTER ---------- */
.footer {
  text-align: center;
  padding: 46px var(--pad) 34px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  justify-items: center;
  background: var(--bg-2);
}
.footer__mono { font-family: var(--serif); font-size: 40px; }
.footer__names { font-family: var(--serif); font-size: 20px; letter-spacing: 0.08em; }
.footer__date { font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted); }
.footer__made { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted-2); margin-top: 14px; }
.footer__admin { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted-2); margin-top: 8px; opacity: 0.6; transition: opacity 0.3s; }
.footer__admin:hover { opacity: 1; color: var(--gold); }

/* ---------- LIGHTBOX ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9800;
  background: rgba(6,6,8,0.96);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox__stage {
  max-width: 90vw;
  max-height: 86vh;
  display: flex;
}
.lightbox__stage img {
  max-width: 90vw;
  max-height: 86vh;
  object-fit: contain;
  box-shadow: var(--shadow);
}
.lightbox__close {
  position: absolute;
  top: 22px; right: 28px;
  background: none; border: none;
  color: var(--text);
  font-size: 40px;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.3s;
}
.lightbox__close:hover { opacity: 1; }
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 1px solid var(--line);
  color: var(--text);
  width: 54px; height: 54px;
  border-radius: 50%;
  font-size: 26px;
  display: grid;
  place-content: center;
  opacity: 0.75;
  transition: opacity 0.3s, background 0.3s, transform 0.3s;
}
.lightbox__nav:hover { opacity: 1; background: rgba(255,255,255,0.06); }
.lightbox__prev { left: 3vw; }
.lightbox__next { right: 3vw; }
.lightbox__counter {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--muted);
}

/* ---------- Анимация появления ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--rd, 0s);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- Адаптив ---------- */
@media (max-width: 900px) {
  .topbar__center { display: none; }
  .burger { display: block; }
  .intro__grid,
  .location__grid { grid-template-columns: 1fr; }
  .location__map { aspect-ratio: 16 / 12; }
  .details__grid { grid-template-columns: 1fr; }
  .gallery__grid { columns: 3; }
  .intro__media { max-width: 460px; margin: 0 auto; width: 100%; }
}
@media (max-width: 620px) {
  .topbar { padding: 14px var(--pad); }
  .countdown__grid { grid-template-columns: repeat(2, 1fr); max-width: 360px; }
  .timeline__track { grid-auto-flow: row; grid-auto-columns: auto; gap: 4px; }
  .tl { display: flex; align-items: center; gap: 18px; text-align: left; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .tl::after { display: none; }
  .tl__dot { margin: 0; }
  .tl__time { min-width: 90px; }
  .timeline__photos { grid-template-columns: repeat(2, 1fr); }
  .gallery__grid { columns: 2; }
  .hero__meta { flex-wrap: wrap; justify-content: center; gap: 10px; }
  .choices { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Хром-заголовок (металлический блеск) — заменяемый шрифт --display
   ========================================================================== */
.hero__title.upper { text-transform: uppercase; }
.hero__title.chrome {
  font-family: var(--display);
  font-weight: 400;
  font-size: calc(clamp(40px, 9.5vw, 132px) * var(--fs-head));
  line-height: 1.0;
  letter-spacing: 0.005em;
}
.hero__title.chrome span:not(.hero__amp) {
  background: linear-gradient(180deg,
    #ffffff 0%, #dfe3e6 20%, #939a9f 42%,
    #f4f6f7 50%, #b7bdc1 60%, #5c6267 82%, #e8ebed 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter:
    drop-shadow(0 1px 0 rgba(255, 255, 255, 0.4))
    drop-shadow(0 3px 2px rgba(0, 0, 0, 0.55))
    drop-shadow(0 6px 18px rgba(0, 0, 0, 0.6));
}
.hero__title.chrome .hero__amp {
  font-family: var(--serif);
  font-style: italic;
  background: linear-gradient(180deg, #f4e6c6, #bfa06a 55%, #8a6f3f);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ==========================================================================
   Детализация программы дня (при наведении)
   ========================================================================== */
.tl { transition: transform 0.4s var(--ease); }
.tl__time, .tl__dot { transition: color 0.3s, transform 0.35s var(--ease), box-shadow 0.35s; }
.tl__desc {
  position: absolute;
  bottom: calc(100% + 16px);
  left: 50%;
  width: min(250px, 66vw);
  transform: translateX(-50%) translateY(8px);
  background: var(--panel-2);
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  padding: 13px 15px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  pointer-events: none;
  z-index: 6;
  box-shadow: var(--shadow);
}
.tl__desc::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--panel-2);
}
@media (hover: hover) {
  .tl:hover .tl__desc { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
  .tl:hover .tl__time { color: var(--gold-2); }
  .tl:hover .tl__dot { transform: scale(1.35); box-shadow: 0 0 0 7px rgba(191, 160, 106, 0.22); }
}

/* ==========================================================================
   Анкета — варианты ответа
   ========================================================================== */
.survey__opts { display: flex; flex-direction: column; gap: 2px; }
.opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 2px;
  font-size: 15px;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.25s;
}
.opt input { display: none; }
.opt i {
  width: 16px; height: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  transition: background 0.25s, border-color 0.25s;
  flex: none;
}
.opt.radio i { border-radius: 50%; }
.opt input:checked + i { background: var(--gold); border-color: var(--gold); box-shadow: inset 0 0 0 4px var(--panel); }
.opt:has(input:checked) { color: var(--text); }
.opt:hover { color: var(--text); }
.survey__hidden { display: none !important; }
.rsvp__form .field + .field { margin-top: 2px; }

@media (max-width: 620px) {
  .tl { position: relative; }
  .tl__desc { display: none; }
}

/* ==========================================================================
   Бегущая строка (сверху)
   ========================================================================== */
.marquee {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1100;
  height: 32px; overflow: hidden;
  background: var(--gold); color: var(--bg);
  display: flex; align-items: center;
}
.marquee[hidden] { display: none; }
.marquee__track { display: inline-flex; align-items: center; white-space: nowrap; animation: marquee 34s linear infinite; will-change: transform; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-25%); } }
.marquee__item { font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; padding: 0 10px; }
.marquee__sep { opacity: 0.55; padding: 0 2px; font-size: 9px; }
.marquee:hover .marquee__track { animation-play-state: paused; }
body.has-marquee .topbar { top: 32px; }

/* ==========================================================================
   Перекраска отдельных блоков (full-width фон, контент по центру)
   ========================================================================== */
.section--painted { max-width: none; padding-inline: max(var(--pad), calc((100vw - var(--container)) / 2)); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq__head { margin-bottom: 34px; }
.faq__list { max-width: 760px; margin: 0 auto; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; background: none; border: none; color: var(--text);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 0; text-align: left; cursor: pointer;
  font-family: var(--serif); font-size: calc(20px * var(--fs-head));
}
.faq__ic { position: relative; width: 14px; height: 14px; flex: none; }
.faq__ic::before, .faq__ic::after { content: ""; position: absolute; background: var(--gold); transition: transform 0.3s var(--ease); }
.faq__ic::before { top: 6px; left: 0; width: 14px; height: 2px; }
.faq__ic::after { left: 6px; top: 0; width: 2px; height: 14px; }
.faq__item.open .faq__ic::after { transform: scaleY(0); }
.faq__a { overflow: hidden; max-height: 0; transition: max-height 0.4s var(--ease); }
.faq__a > div { padding: 0 0 22px; color: var(--muted); font-size: calc(15px * var(--fs-body)); line-height: 1.65; max-width: none; }
.faq__item.open .faq__a { max-height: 500px; }

/* ==========================================================================
   Контакты организатора (подвал)
   ========================================================================== */
.footer__org { display: grid; gap: 4px; justify-items: center; margin-top: 20px; padding-top: 24px; border-top: 1px solid var(--line); width: min(560px, 90%); }
.footer__org[hidden] { display: none; }
.footer__orgtitle { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); }
.footer__orgname { font-family: var(--serif); font-size: 20px; }
.footer__orgcontacts { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; margin-top: 4px; }
.footer__orgitem { font-size: 14px; color: var(--muted); transition: color 0.25s; }
.footer__orgitem:hover { color: var(--gold); }
.footer__orgitem span { color: var(--muted-2); }

/* ==========================================================================
   Плеер v2 — низ-слева, компактный, виниловый диск, громкость
   ========================================================================== */
.player {
  position: fixed;
  left: 18px; bottom: 18px; top: auto; right: auto;
  z-index: 1200;
  width: 388px; max-width: calc(100vw - 36px);
  display: flex; align-items: center; gap: 13px;
  padding: 13px 18px 13px 14px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--bg) 60%, transparent);
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  border: 1px solid var(--line-strong);
  box-shadow: 0 14px 40px -12px rgba(0, 0, 0, 0.6);
  animation: playerIn 0.5s var(--ease);
}
.player[hidden] { display: none !important; }
.player__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.player__meta { min-width: 0; flex: 1; }
.player__min { flex: none; background: none; border: none; color: var(--muted); font-size: 18px; line-height: 1; padding: 0 2px; margin-top: -1px; cursor: pointer; }
.player__min:hover { color: var(--text); }
.player__disc {
  width: 50px; height: 50px; flex: none; border-radius: 50%;
  background: var(--panel-2) center / cover no-repeat;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 4px 14px rgba(0, 0, 0, 0.5);
}
.player__disc::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: repeating-radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.35) 0 1px, transparent 1px 3px);
  opacity: 0.5;
}
.player__hole { position: absolute; top: 50%; left: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--bg); box-shadow: 0 0 0 3px color-mix(in srgb, var(--text) 28%, transparent); z-index: 2; }
.player.playing .player__disc { animation: spin 4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.player__body { min-width: 0; flex: 1; display: grid; grid-template-columns: minmax(0, 1fr); gap: 5px; }
.player__body > * { min-width: 0; }
.player__track { font-size: 14px; font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__artist { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: -3px; }
.player__seek { display: flex; align-items: center; gap: 8px; padding-right: 2px; }
.player__time { font-size: 10px; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 26px; }
.player__time:last-child { text-align: right; }
.player__range { -webkit-appearance: none; appearance: none; flex: 1; height: 3px; border-radius: 3px; cursor: pointer; margin: 0; background: linear-gradient(var(--gold), var(--gold)) 0 / var(--p, 0%) 100% no-repeat, color-mix(in srgb, var(--text) 18%, transparent); }
.player__range::-webkit-slider-thumb { -webkit-appearance: none; width: 11px; height: 11px; border-radius: 50%; background: var(--gold); }
.player__range::-moz-range-thumb { width: 11px; height: 11px; border: none; border-radius: 50%; background: var(--gold); }
.player__controls { display: flex; align-items: center; gap: 10px; }
.player__ctrl { background: none; border: none; color: var(--text); line-height: 0; display: inline-flex; align-items: center; justify-content: center; padding: 2px; cursor: pointer; opacity: 0.85; transition: opacity 0.2s, transform 0.15s; }
.player__ctrl:hover { opacity: 1; }
.player__ctrl:active { transform: scale(0.9); }
.player__ctrl svg { display: block; }
.player__ctrl--play { width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: #14110a; opacity: 1; }
.player__ctrl--play::before { content: ""; width: 0; height: 0; border-left: 10px solid #14110a; border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 2px; }
.player.playing .player__ctrl--play::before { display: none; }
.player__eq { display: none; gap: 2px; align-items: flex-end; height: 13px; }
.player.playing .player__eq { display: flex; }
.player__eq i { width: 2.5px; height: 5px; background: #14110a; animation: eq 0.9s ease-in-out infinite; }
.player__eq i:nth-child(2) { animation-delay: 0.18s; }
.player__eq i:nth-child(3) { animation-delay: 0.36s; }
.player__vol { display: flex; align-items: center; gap: 5px; margin-left: auto; color: var(--muted); }
.player__volrange { -webkit-appearance: none; appearance: none; width: 44px; height: 3px; border-radius: 3px; cursor: pointer; background: color-mix(in srgb, var(--text) 20%, transparent); }
.player__volrange::-webkit-slider-thumb { -webkit-appearance: none; width: 10px; height: 10px; border-radius: 50%; background: var(--text); }
.player__volrange::-moz-range-thumb { width: 10px; height: 10px; border: none; border-radius: 50%; background: var(--text); }
.player-fab { position: fixed; left: 18px; bottom: 18px; top: auto; right: auto; z-index: 1200; width: 44px; height: 44px; border-radius: 50%; color: var(--gold); font-size: 18px; background: color-mix(in srgb, var(--bg) 60%, transparent); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--line-strong); cursor: pointer; }
.player-fab[hidden] { display: none; }
@media (max-width: 640px) {
  .player { left: 10px; right: 10px; bottom: 10px; width: auto; max-width: none; }
  .player__vol { display: none; }
  .player-fab { left: 14px; bottom: 14px; }
}

/* ==========================================================================
   FAQ — кнопка в подвале + модалка
   ========================================================================== */
.footer__faq {
  margin-top: 16px;
  background: none;
  border: 1px solid var(--line-strong);
  color: var(--text);
  padding: 10px 22px;
  border-radius: 100px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s;
}
.footer__faq[hidden] { display: none; }
.footer__faq:hover { border-color: var(--gold); color: var(--gold); }

.faqmodal {
  position: fixed;
  inset: 0;
  z-index: 9700;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}
.faqmodal.open { opacity: 1; visibility: visible; }
.faqmodal__panel {
  position: relative;
  width: min(680px, 100%);
  max-height: 84vh;
  overflow-y: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(26px, 4vw, 44px);
}
.faqmodal__close {
  position: absolute;
  top: 14px; right: 18px;
  background: none; border: none;
  color: var(--muted);
  font-size: 30px; line-height: 1;
  cursor: pointer;
}
.faqmodal__close:hover { color: var(--text); }
.faqmodal__title {
  font-family: var(--serif);
  font-size: calc(clamp(26px, 4vw, 40px) * var(--fs-head));
  text-align: center;
  margin-bottom: 22px;
}
.faqmodal .faq__list { max-width: none; }

/* ==========================================================================
   Финальные правки (v3)
   ========================================================================== */

/* Заголовки — отдельный цвет (--head). Хром-заголовок сохраняет градиент. */
h2, h3,
.hero__title,
.intro__date,
.cd__num,
.tl__time,
.location__venue,
.quote,
.faq__q,
.faqmodal__title,
.footer__names,
.footer__mono,
.footer__orgname,
.preloader__mono { color: var(--head); }
.hero__title.chrome span:not(.hero__amp) { color: transparent; }

/* Видео под галереей — по пропорции ролика (широкая полоса, не квадрат на мобиле) */
.videostrip__inner {
  aspect-ratio: 2.35 / 1;
  height: auto;
  max-height: 60vh;
}

/* Чистая шапка: только меню-бургер (справа, на всех экранах) */
.burger { display: block; }
.topbar { justify-content: flex-end; }
