/* ============================================================
   «Баканова о ресницах» — фирменный лендинг
   Стиль: русские сказки. Ночь, черника-чернила, киноварь, золото.
   Форма: кнопки и поля — пилюли, фото — арки, карточки — 12px.
   ============================================================ */

:root {
  --ink: #171114;
  --ink-2: #201719;
  --ink-3: #2a1e22;
  --ivory: #f2e7d5;
  --ivory-70: rgba(242, 231, 213, 0.72);
  --ivory-45: rgba(242, 231, 213, 0.45);
  --crimson: #a83226;
  --crimson-hi: #c24434;
  --crimson-deep: #6e1f17;
  --gold: #c9a227;
  --gold-soft: rgba(201, 162, 39, 0.4);
  --line: rgba(201, 162, 39, 0.2);
  --serif: 'Cormorant', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  --r-photo: 14px;
  --r-pill: 999px;
  --wrap: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--crimson); color: var(--ivory); }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
}

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

/* ---------- типографика ---------- */

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; }

section[id] { scroll-margin-top: 88px; }

/* плёночное зерно поверх всей страницы */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}
.eyebrow::before {
  content: '';
  width: 34px;
  height: 1px;
  background: var(--gold-soft);
}

.section-title {
  font-size: clamp(2.1rem, 4.6vw, 3.5rem);
  letter-spacing: -0.01em;
  max-width: 18ch;
}
.section-title em { font-style: italic; font-weight: 500; color: var(--gold); }

.lead {
  color: var(--ivory-70);
  max-width: 52ch;
  font-size: 1.02rem;
}

section { position: relative; padding-block: clamp(96px, 13vh, 164px); }
body.no-scroll { overflow: hidden; }

/* ---------- орнамент ---------- */

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  color: var(--gold-soft);
  margin-bottom: 46px;
}
.ornament::before,
.ornament::after {
  content: '';
  height: 1px;
  width: min(190px, 24vw);
}
.ornament::before { background: linear-gradient(90deg, transparent, var(--gold-soft)); }
.ornament::after { background: linear-gradient(270deg, transparent, var(--gold-soft)); }
.ornament svg { height: 30px; width: auto; flex: none; }

/* ---------- header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: 72px;
  display: flex;
  align-items: center;
  background: rgba(23, 17, 20, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 28px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
/* лого на светлой подложке: читается на тёмной шапке и в подвале */
.logo-mark {
  width: 42px;
  height: 42px;
  object-fit: contain;
  padding: 4px;
  border-radius: 10px;
  flex: none;
  background: #f7f2e9;
  box-shadow: inset 0 0 0 1px rgba(23, 17, 20, 0.1);
}
.logo small {
  display: block;
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ivory-45);
  margin-top: 2px;
}

.site-nav { display: flex; gap: 28px; justify-content: center; }
.site-nav a {
  position: relative;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ivory-70);
  transition: color 0.25s;
}
.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -6px;
  height: 1px;
  background: var(--gold);
  transition: right 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.site-nav a:hover { color: var(--gold); }
.site-nav a:hover::after { right: 0; }

.header-phone {
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.25s;
}
.header-phone:hover { color: var(--gold); }

/* ---------- кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 32px;
  border-radius: var(--r-pill);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: transform 0.25s, background 0.25s, border-color 0.25s, box-shadow 0.25s, color 0.25s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary {
  background: var(--crimson);
  color: var(--ivory);
  box-shadow: 0 10px 30px rgba(168, 50, 38, 0.28);
}
.btn-primary:hover {
  background: var(--crimson-hi);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(168, 50, 38, 0.4);
}

.btn-ghost {
  border: 1px solid var(--gold-soft);
  color: var(--ivory);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

.btn-ivory {
  background: var(--ivory);
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}
.btn-ivory:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.36);
}

.btn-small { padding: 11px 24px; font-size: 12.5px; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 80px;
  overflow: hidden;
}

.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(23, 17, 20, 0.94) 0%, rgba(23, 17, 20, 0.72) 38%, rgba(23, 17, 20, 0.25) 68%, rgba(23, 17, 20, 0.55) 100%),
    linear-gradient(0deg, var(--ink) 0%, rgba(23, 17, 20, 0) 26%),
    radial-gradient(120% 90% at 50% 8%, rgba(23, 17, 20, 0) 55%, rgba(23, 17, 20, 0.55) 100%);
}

.hero-inner { max-width: 720px; }

.hero h1 {
  font-size: clamp(2.7rem, 6.6vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.02;
  margin-bottom: 26px;
}
.hero h1 em { font-style: italic; font-weight: 500; color: var(--gold); }

.hero-sub {
  color: var(--ivory-70);
  font-size: 1.08rem;
  max-width: 44ch;
  margin-bottom: 40px;
}

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-rosette { display: block; margin-bottom: 20px; color: var(--gold); }
.hero-rosette svg { display: block; width: 26px; height: 26px; }

/* медальон прижат к правому нижнему углу и обрезан по краю,
   чтобы читался как часть «платка», а не случайная метка */
.hero-ornament {
  position: absolute;
  right: -56px;
  bottom: -56px;
  color: var(--gold);
  width: min(300px, 38vw);
  opacity: 0.22;
}

/* ---------- marquee ---------- */

.marquee {
  position: relative;
  background: var(--crimson-deep);
  border-block: 1px solid rgba(201, 162, 39, 0.25);
  overflow: hidden;
  padding-block: 20px;
}
/* «платковая» кромка: золотой бисер по верхнему и нижнему краю */
.marquee::before,
.marquee::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  opacity: 0.5;
  background-image: repeating-linear-gradient(90deg, var(--gold) 0 5px, transparent 5px 13px);
}
.marquee::before { top: 5px; }
.marquee::after { bottom: 5px; }
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee-track > div { display: flex; align-items: center; flex: none; }
.marquee span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  color: var(--ivory);
  padding-inline: 28px;
  white-space: nowrap;
}
.marquee i {
  flex: none;
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
  opacity: 0.85;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- история ---------- */

.story-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 6vw, 84px);
  align-items: center;
}

.story-photo {
  position: relative;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: calc(var(--r-photo) + 14px) calc(var(--r-photo) + 14px) var(--r-photo) var(--r-photo);
}
.story-photo::before {
  content: '';
  position: absolute;
  inset: -14px;
  border: 1px solid rgba(201, 162, 39, 0.14);
  border-radius: inherit;
  pointer-events: none;
}
.story-photo .arch {
  border-radius: 999px 999px var(--r-photo) var(--r-photo);
  overflow: hidden;
  aspect-ratio: 3 / 3.8;
}
.story-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: breathe 16s ease-in-out infinite alternate;
}
@keyframes breathe { from { transform: scale(1); } to { transform: scale(1.06); } }

.story-copy p + p { margin-top: 18px; }
.story-copy .lead { margin-top: 24px; }

/* буквица, как в старинной книге */
.story-copy .lead::first-letter {
  float: left;
  font-family: var(--serif);
  font-size: 3.6em;
  font-weight: 600;
  line-height: 0.78;
  padding-right: 12px;
  padding-top: 4px;
  color: var(--gold);
}

.folk-quote {
  margin-top: 28px;
  padding-left: 20px;
  border-left: 1px solid var(--gold-soft);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.12rem;
  line-height: 1.5;
  color: var(--ivory-70);
  max-width: 50ch;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 44px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
.fact b {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}
.fact span {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--ivory-70);
  max-width: 22ch;
}

/* ---------- программа (bento) ---------- */

/* ромбовидное плетение «платка» на тёмных секциях */
.program,
.studio,
.faq {
  background-color: var(--ink-2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cpath d='M28 3L53 28 28 53 3 28Z' fill='none' stroke='%23c9a227' stroke-opacity='0.05'/%3E%3Ccircle cx='28' cy='28' r='1.1' fill='%23c9a227' fill-opacity='0.07'/%3E%3C/svg%3E");
}

.bento {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  grid-auto-rows: auto;
  gap: 24px;
  margin-top: 56px;
}

.bento-cell {
  position: relative;
  border-radius: var(--r-photo);
  overflow: hidden;
  border: 1px solid var(--line);
  padding: clamp(28px, 3.5vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 340px;
}

.bento-cell--hero { grid-row: span 2; min-height: 640px; }
.bento-cell--hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.bento-cell--hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(23, 17, 20, 0.96) 8%, rgba(23, 17, 20, 0.5) 48%, rgba(23, 17, 20, 0.18) 100%);
}
.bento-cell--hero:hover img { transform: scale(1.05); }
.bento-cell--hero > * { position: relative; z-index: 2; }

.bento-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.bento-cell h3 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  margin-bottom: 14px;
}
.bento-cell p { color: var(--ivory-70); max-width: 46ch; margin-bottom: 18px; }

/* список «что включено» с ромбовидными маркерами */
.program-list {
  list-style: none;
  margin: 0 0 26px;
  display: grid;
  gap: 10px;
}
.program-list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.95rem;
  color: var(--ivory-70);
}
.program-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
  opacity: 0.9;
}

.bento-cell--plain { background: var(--ink-3); min-height: 0; }
.bento-cell--plain .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--gold);
  opacity: 0.85;
  margin-bottom: 14px;
}

/* ---------- курс (список глав) ---------- */

.chapters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 clamp(40px, 6vw, 88px);
  margin-top: 56px;
}
.chapter {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  padding-block: 30px;
  border-top: 1px solid var(--line);
}
.chapter-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--gold);
  line-height: 1.2;
  min-width: 44px;
}
.chapter h3 { font-size: 1.35rem; margin-bottom: 8px; }
.chapter p { color: var(--ivory-70); font-size: 0.95rem; max-width: 44ch; }

/* ---------- студия (коллаж) ---------- */

.collage {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(150px, 20vw, 240px);
  gap: 18px;
  margin-top: 56px;
}
.collage figure {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-photo);
  border: 1px solid var(--line);
}
/* кликабельные фото: подсказка курсором */
[data-lightbox] { cursor: zoom-in; }
[data-lightbox]:hover { border-color: rgba(201, 162, 39, 0.5); }
[data-lightbox]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.collage figure:hover img { transform: scale(1.05); }

.collage .c-a { grid-column: span 2; grid-row: span 2; }
.collage .c-b { grid-row: span 2; }
.collage .c-e, .collage .c-f { grid-column: span 2; }

.studio-hint {
  margin-top: 24px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ivory-45);
}

/* ---------- отзывы ---------- */

.reviews-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}

.rating-big {
  font-family: var(--serif);
  font-size: clamp(5rem, 10vw, 8rem);
  font-weight: 600;
  line-height: 0.9;
  color: var(--ivory);
}
.stars { display: flex; gap: 8px; margin-top: 18px; color: var(--gold); }
.stars svg { width: 26px; height: 26px; }
.rating-note { margin-top: 18px; color: var(--ivory-70); max-width: 26ch; }
.rating-note a {
  display: inline-block;
  margin-top: 14px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--gold-soft);
  padding-bottom: 3px;
  transition: border-color 0.25s;
}
.rating-note a:hover { border-color: var(--gold); }

.quotes { display: grid; gap: 34px; }
.quote {
  border-left: 1px solid var(--gold-soft);
  padding-left: 26px;
}
.quote:nth-child(2) { margin-left: clamp(0px, 5vw, 60px); }
.quote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.28rem;
  line-height: 1.45;
  color: var(--ivory);
}
.quote footer {
  margin-top: 12px;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ivory-45);
}

/* ---------- faq ---------- */

.faq-list { margin-top: 48px; max-width: 820px; }

.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 26px;
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  font-weight: 600;
  transition: color 0.25s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--gold); }
.faq-item summary::after {
  content: '+';
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 400;
  color: var(--gold);
  line-height: 1;
  flex: none;
  transition: transform 0.35s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .answer {
  padding-bottom: 28px;
  color: var(--ivory-70);
  max-width: 62ch;
}

/* ---------- контакты ---------- */

.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: stretch;
}

.contacts-info h2 { margin-bottom: 30px; }

.contact-phone {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(2rem, 4.4vw, 3rem);
  font-weight: 600;
  color: var(--ivory);
  line-height: 1.1;
  margin-bottom: 8px;
  transition: color 0.25s;
}
.contact-phone:hover { color: var(--gold); }
.contact-phone-note { color: var(--ivory-45); font-size: 14px; margin-bottom: 34px; }

.contact-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: baseline;
  padding-block: 18px;
  border-top: 1px solid var(--line);
}
.contact-row dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}
.contact-row dd { font-size: 1.05rem; }
.contact-row dd a { border-bottom: 1px solid var(--gold-soft); transition: border-color 0.25s; }
.contact-row dd a:hover { border-color: var(--gold); }

.contacts-map {
  position: relative;
  border-radius: var(--r-photo);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 420px;
  background: var(--ink-3);
}
.contacts-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.35) sepia(0.22) brightness(0.88) contrast(0.96);
}
.map-badge {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(23, 17, 20, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 11px 22px;
  font-size: 13px;
  font-weight: 600;
  transition: border-color 0.25s;
}
.map-badge:hover { border-color: var(--gold); }
.map-badge svg { width: 15px; height: 15px; color: var(--gold); flex: none; }

/* ---------- финал / CTA ---------- */

.finale {
  background-color: var(--crimson-deep);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cpath d='M28 3L53 28 28 53 3 28Z' fill='none' stroke='%23c9a227' stroke-opacity='0.09'/%3E%3Ccircle cx='28' cy='28' r='1.1' fill='%23c9a227' fill-opacity='0.12'/%3E%3C/svg%3E");
  border-block: 1px solid rgba(201, 162, 39, 0.25);
}

.finale-frame {
  position: relative;
  max-width: 780px;
  margin-inline: auto;
  padding: clamp(48px, 7vw, 84px) clamp(24px, 5vw, 72px);
  text-align: center;
}
/* двойная золотая рамка, как на старинном фронтисписе */
.finale-frame::before {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(201, 162, 39, 0.28);
  border-radius: 18px;
  pointer-events: none;
}
.finale .ornament { margin-bottom: 36px; color: rgba(201, 162, 39, 0.65); }
.finale .ornament::before { background: linear-gradient(90deg, transparent, rgba(201, 162, 39, 0.65)); }
.finale .ornament::after { background: linear-gradient(270deg, transparent, rgba(201, 162, 39, 0.65)); }

.section-title--center { margin-inline: auto; text-align: center; }

.finale-sub {
  margin: 22px auto 0;
  max-width: 48ch;
  color: rgba(242, 231, 213, 0.78);
  font-size: 1.05rem;
}

.finale-phone {
  display: inline-block;
  margin-top: 34px;
  font-family: var(--serif);
  font-size: clamp(2.3rem, 6vw, 3.8rem);
  font-weight: 600;
  line-height: 1.05;
  color: var(--ivory);
  transition: color 0.25s;
}
.finale-phone:hover { color: var(--gold); }

.finale-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 36px;
}
.finale .btn-ghost { border-color: rgba(201, 162, 39, 0.5); }

/* ---------- лайтбокс ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vh 4vw;
  background: rgba(16, 11, 13, 0.93);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}
.lightbox.open { opacity: 1; visibility: visible; }

.lightbox figure {
  max-width: min(1080px, 94vw);
  text-align: center;
  margin: 0;
}
.lightbox img {
  display: block;
  max-width: 100%;
  max-height: 82vh;
  margin-inline: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
  transform: scale(0.96);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.lightbox.open img { transform: scale(1); }

.lightbox figcaption {
  margin-top: 16px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ivory-70);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--ivory);
  transition: border-color 0.25s, color 0.25s, transform 0.25s;
}
.lightbox-close svg { width: 20px; height: 20px; }
.lightbox-close:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: rotate(90deg);
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 44px;
  background: var(--ink);
}
.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.site-footer p { font-size: 13.5px; color: var(--ivory-45); }
.site-footer .logo { font-size: 1.2rem; }
.site-footer .logo-mark { width: 36px; height: 36px; padding: 3px; border-radius: 8px; }

/* ---------- reveal ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--d, 0s);
}
[data-reveal].in { opacity: 1; transform: none; }

[data-reveal="clip"] {
  clip-path: inset(0 0 100% 0);
  transform: none;
  transition: clip-path 1.1s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s;
  transition-delay: var(--d, 0s);
}
[data-reveal="clip"].in { clip-path: inset(0 0 0% 0); }

/* ---------- мобильное меню ---------- */

.burger {
  display: none;
  position: relative;
  z-index: 70;
  width: 44px;
  height: 44px;
}
.burger span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--ivory);
  transition: transform 0.35s, top 0.35s;
}
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 26px; }
body.menu-open .burger span:nth-child(1) { top: 21px; transform: rotate(45deg); }
body.menu-open .burger span:nth-child(2) { top: 21px; transform: rotate(-45deg); }
/* открытое меню не должно закрывать бургер: шапка поднимается над ним */
body.menu-open .site-header { z-index: 75; }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 65;
  background: rgba(23, 17, 20, 0.97);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  justify-content: safe center; /* не обрывать список на низких экранах */
  overflow-y: auto;
  padding: 96px clamp(28px, 8vw, 64px) 48px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
}
body.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu a {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 8vw, 2.6rem);
  font-weight: 600;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
  transition: color 0.25s, padding-left 0.25s;
}
.mobile-menu a:hover { color: var(--gold); padding-left: 10px; }
.mobile-menu .mm-phone {
  margin-top: 36px;
  border: 0;
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--gold);
}

/* ---------- адаптив ---------- */

@media (max-width: 1024px) {
  .site-header .wrap { grid-template-columns: auto 1fr auto; }
  .header-phone { display: none; }
  .story-grid, .reviews-grid, .contacts-grid { grid-template-columns: 1fr; }
  .story-photo { max-width: 520px; }
  .bento { grid-template-columns: 1fr; }
  .bento-cell--hero { min-height: 480px; }
  .collage { grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(140px, 26vw, 220px); }
  .collage .c-a { grid-column: span 2; }
  .quote:nth-child(2) { margin-left: 0; }
  .contacts-map { min-height: 360px; }
}

@media (max-width: 720px) {
  .site-nav { display: none; }
  .burger { display: block; }
  .logo-mark { width: 36px; height: 36px; padding: 3px; border-radius: 8px; }
  .logo { font-size: 1.25rem; }
  .finale-cta .btn { width: auto; }
  .site-header .wrap { grid-template-columns: 1fr auto auto; gap: 16px; }
  .hero { padding-top: 110px; }
  .hero-ornament { display: none; }
  .facts { grid-template-columns: 1fr 1fr; }
  .chapters { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .hero-cta .btn { width: 100%; }
  .hero-cta { flex-direction: column; }
  .collage .c-a, .collage .c-b, .collage .c-e, .collage .c-f { grid-column: auto; grid-row: auto; }
  .collage .c-a { grid-column: span 2; grid-row: span 2; }
  .collage .c-f { grid-column: span 2; }
}

@media (max-width: 480px) {
  /* на очень узких экранах кнопка в шапке не влезает: запись есть в меню и в hero */
  .site-header .btn-small { display: none; }
  .site-header .wrap { grid-template-columns: 1fr auto; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal], [data-reveal="clip"] { opacity: 1; transform: none; clip-path: none; }
  .marquee-track { animation: none; }
  .story-photo img { animation: none; }
}
