/* ===== Tokens ===== */
:root {
  --bg: #0a0a0a;
  --bg-alt: #0d0d0d;
  --card: #111111;
  --card-border: #262019;
  --gold: #c9a06a;
  --gold-dim: #a9895f;
  --text: #f2ede4;
  --text-dim: #b7b7b7;
  --text-faint: #7a7a7a;
  --danger: #e0664f;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --max-w: 1200px;
  --font: 'Manrope', Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ===== Diamond grid decorative background ===== */
.diamond-bg {
  position: relative;
  overflow: hidden;
}
.diamond-bg::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(201,160,106,0.06) 0, rgba(201,160,106,0.06) 1px, transparent 1px, transparent 64px),
    repeating-linear-gradient(-45deg, rgba(201,160,106,0.06) 0, rgba(201,160,106,0.06) 1px, transparent 1px, transparent 64px);
  mask-image: radial-gradient(ellipse 80% 60% at 30% 20%, #000 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 30% 20%, #000 40%, transparent 85%);
  pointer-events: none;
}
.diamond-bg > .wrap { position: relative; z-index: 1; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  padding: 14px 26px;
  border-radius: 30px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
}
.btn:hover { opacity: 0.9; }
.btn:active { transform: scale(0.98); }
.btn-outline {
  border-color: var(--gold-dim);
  color: var(--text);
  background: transparent;
}
.btn-solid {
  background: var(--text);
  color: var(--bg);
}
.btn-cta {
  border-color: var(--gold);
  color: var(--text);
  background: transparent;
  box-shadow: 0 0 22px rgba(201,160,106,0.25);
  text-transform: uppercase;
}
.btn-cta:hover { background: rgba(201,160,106,0.08); }
.btn-block { width: 100%; }

.pill {
  display: inline-block;
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 16px;
}

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--card-border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 18px; padding-bottom: 18px;
}
.logo {
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
  font-size: 14px;
}
.header-nav { display: flex; gap: 12px; }
.burger {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px;
  background: none; border: 1px solid var(--card-border); border-radius: 8px;
  cursor: pointer;
}
.burger span { display: block; height: 2px; background: var(--text); margin: 0 8px; }

/* ===== Sections ===== */
.section { padding: 80px 0; border-top: 1px solid #1c1c1c; }
.section-title {
  font-size: 30px;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.2;
  text-wrap: balance;
  margin: 0 0 10px;
}
.section-title.center { text-align: center; max-width: 760px; margin-left: auto; margin-right: auto; }
.section-sub { color: var(--text-dim); font-size: 15px; max-width: 640px; margin: 0 0 40px; }

/* ===== Hero ===== */
.hero { padding: 56px 0 80px; border-top: none; }
.hero-flex { display: flex; align-items: center; gap: 48px; }
.hero-text { flex: 1 1 520px; min-width: 0; }
.hero-title {
  font-size: 48px;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.12;
  text-wrap: balance;
  color: var(--gold);
  margin: 0 0 20px;
  max-width: 620px;
}
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .hero-title {
    background: linear-gradient(90deg, #e9c98e, #b98a52);
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
}
.hero-desc { color: var(--text-dim); font-size: 16px; line-height: 1.65; max-width: 560px; margin: 0 0 32px; }
.hero-cta-row { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.hero-note { color: var(--text-faint); font-size: 13px; max-width: 380px; margin: 0; }
.hero-photo { flex: 0 0 340px; width: 340px; position: relative; }
.hero-photo img {
  width: 100%; height: 420px; object-fit: contain; object-position: 50% 100%;
  background: radial-gradient(circle at 50% 25%, #211a12, var(--bg));
  border-radius: var(--radius-lg);
}
.hero-photo-caption { margin-top: 16px; }
.hero-photo-caption .name { font-weight: 800; font-size: 15px; margin-bottom: 4px; }
.hero-photo-caption .role { color: var(--text-dim); font-size: 12.5px; line-height: 1.5; }

/* ===== Подойдёт вам, если ===== */
.fits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}
.fit-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: 0 0 24px rgba(201,160,106,0.05);
}
.fit-card h3 { font-size: 16px; font-weight: 800; margin: 0 0 12px; line-height: 1.35; }
.fit-card p { color: var(--text-dim); font-size: 13.5px; line-height: 1.6; margin: 0; }
.fits-footnote { color: var(--text-faint); font-size: 13px; max-width: 640px; margin: 0; }

/* ===== VS / До-После ===== */
.vs-section { background: var(--bg-alt); }
.vs-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: start;
  margin: 40px 0;
}
.vs-col {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 30px;
}
.vs-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint); margin-bottom: 8px; }
.vs-lead { font-weight: 700; font-size: 16px; margin: 0 0 18px; }
.vs-col ul { margin: 0; padding-left: 20px; color: var(--text-dim); font-size: 14px; line-height: 1.9; }
.vs-before { border-color: rgba(224,102,79,0.25); }
.vs-after { border-color: rgba(201,160,106,0.35); }
.vs-after .vs-lead { color: var(--gold); }
.vs-divider {
  align-self: center;
  font-weight: 900; font-size: 18px; color: var(--gold);
  border: 1px solid var(--gold-dim); border-radius: 50%;
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
}
.center-cta { text-align: center; margin-top: 16px; }

/* ===== Cases ===== */
.cases-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 26px; }
.case-card {
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 0 24px rgba(201,160,106,0.06);
}
.case-photo-wrap { width: 100%; aspect-ratio: 4/5; overflow: hidden; background: #1a1a1a; }
.case-photo { width: 100%; height: 100%; object-fit: cover; }
.case-body { padding: 22px; }
.case-name { font-weight: 800; font-size: 16px; margin: 0; }
.case-role { color: var(--text-dim); font-size: 12px; margin: 6px 0 14px; line-height: 1.4; }
.case-stat { color: var(--gold); font-weight: 800; font-size: 18px; line-height: 1.25; margin: 0; }
.case-sub { color: var(--text-dim); font-size: 12px; margin: 4px 0 12px; }
.case-bullets { margin: 0 0 14px; padding-left: 18px; font-size: 12.5px; color: #d8d8d8; line-height: 1.7; }
.case-bullets li { margin: 0; }
.case-quote { font-size: 12.5px; font-style: italic; color: #9a9a9a; border-top: 1px solid var(--card-border); padding-top: 12px; margin: 0; }

/* ===== Video ===== */
.video-card {
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius-lg);
  padding: 12px;
}
.video-frame {
  width: 100%; aspect-ratio: 16/9; border-radius: var(--radius-md); overflow: hidden;
  background: linear-gradient(135deg,#2a2118,#0a0a0a);
  border: 1px solid #333;
}
.video-frame iframe, .video-frame video { width: 100%; height: 100%; border: 0; display: block; }
.video-placeholder {
  width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
}
.play-btn {
  width: 64px; height: 64px; border-radius: 50%; background: var(--gold);
  color: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 22px;
  box-shadow: 0 0 26px rgba(201,160,106,0.35);
}
.video-placeholder-label { color: var(--text-faint); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.session-video { max-width: 460px; flex: 1 1 380px; }

/* ===== Bio ===== */
.bio-flex { display: flex; gap: 48px; align-items: flex-start; }
.bio-photo { flex: 0 0 300px; width: 300px; height: 380px; border-radius: var(--radius-lg); overflow: hidden;
  background: radial-gradient(circle at 50% 25%, #211a12, var(--bg));
  display: flex; align-items: flex-end; justify-content: center; }
.bio-photo img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; }
.bio-copy { flex: 1 1 480px; min-width: 0; }
.bio-copy p { color: var(--text-dim); font-size: 15px; line-height: 1.7; margin: 0 0 18px; }
.bio-copy p b { color: var(--text); }
.stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; margin-top: 12px; }
.stat-num { color: var(--gold); font-weight: 900; font-size: 28px; line-height: 1.2; }
.stat-label { color: var(--text-dim); font-size: 12px; margin-top: 6px; line-height: 1.45; }

/* ===== Gift book ===== */
.gift-section { background: var(--bg-alt); }
.gift-flex { display: flex; gap: 48px; align-items: center; }
.gift-photo { flex: 0 0 260px; width: 260px; }
.gift-photo img { border-radius: var(--radius-md); box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.gift-copy { flex: 1 1 480px; min-width: 0; }
.gift-copy .section-title { margin-bottom: 16px; }
.gift-copy > p { color: var(--text-dim); font-size: 15px; line-height: 1.7; margin: 0 0 26px; max-width: 520px; }

/* ===== Session (2nd screen) ===== */
/* Видео убрано (ревизия 3) — session-copy теперь единственный элемент,
   центрируем и ограничиваем ширину, чтобы не растягивался во всю секцию. */
.session-flex { display: flex; justify-content: center; gap: 48px; align-items: center; }
.session-copy { flex: 1 1 480px; min-width: 0; max-width: 640px; }
.session-lead { font-weight: 700; font-size: 16px; color: var(--gold); margin: 0 0 12px; }
.session-copy > p:not(.session-lead) { color: var(--text-dim); font-size: 15px; line-height: 1.7; max-width: 520px; }
.session-author { margin: 24px 0; padding-top: 20px; border-top: 1px solid var(--card-border); }
.session-author .name { font-weight: 800; font-size: 15px; margin-bottom: 6px; }
.session-author .role { color: var(--text-dim); font-size: 13px; line-height: 1.5; max-width: 480px; }
.session-cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ===== Footer ===== */
.site-footer { padding: 40px 0; border-top: 1px solid var(--card-border); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-inner a { color: var(--text-dim); text-decoration: none; font-size: 13px; }
.footer-copy { color: var(--text-faint); font-size: 12px; }

/* ===== Modals ===== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(5,5,5,0.8);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay[hidden] { display: none; }
.modal {
  position: relative;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  max-width: 460px; width: 100%;
  max-height: 88vh; overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px; border-radius: 50%;
  background: transparent; border: 1px solid var(--card-border); color: var(--text);
  font-size: 18px; line-height: 1; cursor: pointer;
}
.modal h3 { font-size: 20px; font-weight: 800; margin: 0 0 8px; }
.modal-sub { color: var(--text-dim); font-size: 13.5px; margin: 0 0 24px; line-height: 1.5; }

.site-form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--text-dim); }
.field input {
  font-family: var(--font);
  background: #191919; border: 1px solid var(--card-border); border-radius: var(--radius-sm);
  padding: 13px 14px; color: var(--text); font-size: 14px;
}
.field input:focus { outline: 2px solid var(--gold-dim); outline-offset: 1px; }
.consent { color: var(--text-faint); font-size: 11.5px; line-height: 1.5; margin: 4px 0 0; }
.hp-field { position: absolute; left: -9999px; }

/* ===== Quiz ===== */
.modal-quiz { max-width: 520px; }
.quiz-progress { height: 4px; background: #1c1c1c; border-radius: 4px; overflow: hidden; margin-bottom: 24px; }
.quiz-progress-bar { height: 100%; width: 16.6%; background: var(--gold); transition: width 0.25s ease; }
.quiz-q { font-size: 17px; font-weight: 700; margin: 0 0 20px; line-height: 1.4; }
.quiz-options { display: flex; flex-direction: column; gap: 10px; }
.quiz-option {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--card-border); border-radius: var(--radius-sm);
  padding: 13px 16px; cursor: pointer; font-size: 14px; color: var(--text-dim);
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.quiz-option:hover { border-color: var(--gold-dim); }
.quiz-option input { accent-color: var(--gold); width: 16px; height: 16px; flex: 0 0 auto; }
.quiz-option:has(input:checked) { border-color: var(--gold); color: var(--text); background: rgba(201,160,106,0.07); }
.quiz-step h4 { font-size: 19px; font-weight: 800; margin: 0 0 8px; }
.quiz-lead-sub { color: var(--text-dim); font-size: 13.5px; margin: 0 0 20px; }
.quiz-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }
.quiz-nav .btn-cta { margin-left: auto; }
.quiz-result { text-align: center; }
.quiz-result-badge {
  display: inline-block; background: var(--gold); color: var(--bg); font-weight: 800;
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 6px 16px; border-radius: 20px; margin-bottom: 16px;
}
.quiz-result h4 { font-size: 20px; margin-bottom: 12px; }
.quiz-result-text { color: var(--text-dim); font-size: 14.5px; line-height: 1.65; text-align: left; margin: 0 0 16px; }
.quiz-result-text p { margin: 0 0 12px; }
.quiz-result-text p:last-child { margin-bottom: 0; }
.quiz-result-note { color: var(--text-faint); font-size: 12.5px; margin: 0 0 20px; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hero-flex { flex-direction: column-reverse; }
  .hero-photo { width: 100%; max-width: 340px; }
  .bio-flex, .gift-flex, .session-flex { flex-direction: column; }
  .bio-photo, .gift-photo { width: 100%; max-width: 300px; }
  .vs-grid { grid-template-columns: 1fr; }
  .vs-divider { justify-self: center; }
}

@media (max-width: 640px) {
  .header-nav { display: none; }
  .header-nav.open {
    display: flex; flex-direction: column; gap: 10px;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--card-border);
    padding: 16px 24px;
  }
  .burger { display: flex; }
  .section { padding: 56px 0; }
  .hero { padding: 40px 0 56px; }
  .hero-title { font-size: 32px; }
  .section-title { font-size: 24px; }
  .stat-grid { grid-template-columns: repeat(2,1fr); gap: 18px; }
  .cases-grid { grid-template-columns: 1fr; }
  .fits-grid { grid-template-columns: 1fr; }
  .modal { padding: 26px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
