/* Секреты — лендинг терапевтической онлайн-группы
   Концепция: «вечерний разговор». Глубокие сливово-чернильные полосы
   чередуются с жемчужными; крупная антиква Cormorant, современный гротеск Onest,
   мягкое свечение, как от лампы в тёмной комнате. */

:root {
  --night: #1C1820;
  --night-2: #262029;
  --pearl: #F2EDE9;
  --pearl-2: #E9E2DD;
  --blush: #E3B7A6;
  --blush-hover: #EDC8BA;
  --wine: #7A3E4A;
  --wine-hover: #62313B;
  --mist: #B9B0B6;
  --dusk: #675C66;

  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --gutter: 20px;
  --header-h: 80px;
  --mobile-cta-h: 0px;

  color-scheme: dark;
}

/* Цветовые полосы: компоненты берут цвета из этих переменных */
.band-dark {
  --bg: var(--night);
  --fg: var(--pearl);
  --muted: var(--mist);
  --line: rgba(242, 237, 233, 0.16);
  --accent: var(--blush);
  --btn-bg: var(--blush);
  --btn-fg: var(--night);
  --btn-hover: var(--blush-hover);
  background-color: var(--bg);
  color: var(--fg);
}
.band-light {
  --bg: var(--pearl);
  --fg: var(--night);
  --muted: var(--dusk);
  --line: rgba(28, 24, 32, 0.16);
  --accent: var(--wine);
  --btn-bg: var(--wine);
  --btn-fg: var(--pearl);
  --btn-hover: var(--wine-hover);
  background-color: var(--bg);
  color: var(--fg);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 8px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
html.dialog-open { overflow: hidden; }

body {
  margin: 0;
  background: var(--night);
  color: var(--pearl);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.7;
  padding-bottom: var(--mobile-cta-h);
  -webkit-font-smoothing: antialiased;
}

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

img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
p { margin: 0; }
a { color: var(--accent); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.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;
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--blush); color: var(--night);
  padding: 12px 18px; border-radius: 999px; text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 16px; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.display-h2 {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.015em;
  max-width: 14em;
  margin-top: 20px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 56px;
  padding: 0 30px;
  border: 1px solid var(--btn-bg);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 500 1rem/1.25 var(--sans);
  letter-spacing: 0.01em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}
.btn:hover { background: var(--btn-hover); border-color: var(--btn-hover); }
.btn:focus-visible { outline-color: var(--fg); }
.btn-arrow { display: inline-block; transition: transform .25s ease; }
.btn:hover .btn-arrow { transform: translateX(4px); }

.btn-outline { background: transparent; color: var(--fg); border-color: var(--line); }
.btn-outline:hover { background: transparent; border-color: var(--accent); color: var(--accent); }
.btn-small { min-height: 44px; padding: 0 22px; font-size: 0.9375rem; }

.cta-group { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.booking-note { font-size: 0.875rem; color: var(--muted); }

/* ---------- Шапка ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(28, 24, 32, 0.82);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}
@supports (backdrop-filter: blur(10px)) {
  .site-header { background: rgba(28, 24, 32, 0.9); backdrop-filter: blur(14px) saturate(1.2); }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.logo {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.875rem;
  line-height: 1;
  color: var(--fg);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  color: var(--muted);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color .2s ease;
}
.site-nav a:hover { color: var(--fg); }

/* ---------- Первый экран ---------- */

.hero { position: relative; overflow: hidden; padding-top: clamp(32px, 4vw, 56px); }

.glow {
  position: absolute;
  pointer-events: none;
  width: min(900px, 120vw);
  aspect-ratio: 1;
  right: -18%;
  top: -22%;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, rgba(227, 183, 166, 0.30), rgba(227, 183, 166, 0.08) 55%, transparent),
    radial-gradient(closest-side at 30% 70%, rgba(122, 62, 74, 0.55), transparent 70%);
  filter: blur(30px);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: center;
  padding-bottom: clamp(40px, 5vw, 64px);
}
.hero-inner { position: relative; display: flex; flex-direction: column; min-width: 0; }

.hero-portrait { margin: 0; width: 100%; max-width: 440px; justify-self: end; display: flex; flex-direction: column; gap: 14px; }
.hero-portrait img {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  max-height: min(420px, 50vh);
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: 4px;
}
.hero-portrait figcaption { display: flex; flex-direction: column; gap: 4px; }
.portrait-name { font-family: var(--serif); font-size: 1.5rem; line-height: 1.15; }
.portrait-role { font-size: 0.875rem; line-height: 1.45; color: var(--muted); }

.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(4rem, 10vw, 9.5rem);
  line-height: 0.85;
  letter-spacing: -0.03em;
  margin-top: clamp(16px, 2vw, 28px);
  margin-left: -0.04em;
}

.hero-subtitle {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.75rem, 3.8vw, 3.25rem);
  line-height: 1.1;
  color: var(--accent);
  max-width: 13em;
  margin-top: clamp(14px, 1.6vw, 22px);
  text-wrap: balance;
}

.hero-lead { max-width: 30em; font-size: 1.1875rem; color: var(--fg); opacity: 0.92; margin-top: clamp(20px, 2.2vw, 30px); }
.hero-inner .cta-group { margin-top: 24px; gap: 10px; }

/* Эпиграф в начале концепции */
.epigraph {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 34em;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.epigraph .question {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.12;
  color: var(--accent);
  text-wrap: balance;
}

/* Правила группы */
.rules {
  margin-top: clamp(48px, 6vw, 88px);
  padding-top: clamp(28px, 3vw, 40px);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr);
  gap: 20px clamp(32px, 5vw, 80px);
}
.rules-title { font-family: var(--serif); font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.1; }
.rules-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px clamp(24px, 3vw, 40px); }
.rules-list li { font-size: 1.125rem; color: var(--muted); }
.rules-list strong { display: block; margin-bottom: 6px; color: var(--fg); font-weight: 600; }

/* Аватар в блоке записи */
.final-person { display: flex; align-items: center; gap: 16px; }
.final-person img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }
.final-person p { display: flex; flex-direction: column; line-height: 1.3; }
.final-person-name { font-family: var(--serif); font-size: 1.5rem; }
.final-person-role { font-size: 0.875rem; color: var(--muted); }

/* Заголовок «проявляется» один раз при загрузке. Анимацию запускает script.js,
   поэтому без JavaScript или при уменьшении анимации текст сразу чёткий. */
@media (prefers-reduced-motion: no-preference) {
  .js-unveil .hero-title { animation: unveil 1.4s cubic-bezier(.2, .7, .2, 1); }
  .js-unveil .hero-subtitle { animation: unveil 1.4s cubic-bezier(.2, .7, .2, 1); }
}
@keyframes unveil {
  from { filter: blur(12px); opacity: 0.3; }
  to { filter: blur(0); opacity: 1; }
}

/* Строка условий */
.facts-list {
  position: relative;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.facts-list > div {
  padding: 28px 24px 36px;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.facts-list > div:first-child { border-left: 0; padding-left: 0; }
.facts-list dt { font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.facts-list dd { margin: 0; font-family: var(--serif); font-size: clamp(1.5rem, 2.2vw, 1.875rem); line-height: 1.2; font-variant-numeric: lining-nums; }

/* ---------- Разделы ---------- */

.section { padding-block: clamp(64px, 8vw, 120px); }
.band-light + .band-light { border-top: 1px solid var(--line); }

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 64px);
  margin-top: clamp(40px, 5vw, 72px);
  max-width: 1040px;
  margin-left: auto;
}
.two-col p { font-size: 1.1875rem; }

.lede {
  font-family: var(--serif);
  font-size: clamp(1.625rem, 2.8vw, 2.375rem);
  line-height: 1.25;
  max-width: 26em;
  margin-top: clamp(32px, 4vw, 56px);
  text-wrap: pretty;
}

/* Словарная статья «секрет» */
.definition {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 16px clamp(32px, 6vw, 96px);
  align-items: baseline;
  margin-top: clamp(56px, 7vw, 104px);
  padding-top: clamp(28px, 3vw, 40px);
  border-top: 1px solid var(--line);
}
.definition-word {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.25rem, 4.6vw, 4rem);
  line-height: 1;
  color: var(--accent);
}

/* Цитата МГИ о методе */
.method-quote {
  margin: 0 0 clamp(56px, 7vw, 96px);
  padding-bottom: clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.method-quote blockquote { margin: 0; }
.method-quote blockquote p {
  font-family: var(--serif);
  font-size: clamp(1.375rem, 2.2vw, 1.875rem);
  line-height: 1.35;
  max-width: 34em;
  text-wrap: pretty;
}
.method-quote blockquote em { color: var(--accent); }
.method-quote figcaption { color: var(--muted); font-size: 0.9375rem; }
.concept-label { margin-bottom: clamp(28px, 3.5vw, 48px); }
.epigraph-note { font-size: 0.875rem; letter-spacing: 0.06em; color: var(--muted); }
.method-quote figcaption a, .mgi-link { color: var(--accent); text-underline-offset: 4px; text-decoration-thickness: 1px; }
.mgi-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 1rem; }

/* Кому подойдёт группа */
.fit { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.fit-title { font-family: var(--serif); font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.1; }
.fit-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.fit-list li { padding: 14px 0 14px 28px; border-bottom: 1px solid var(--line); position: relative; font-size: 1.125rem; }
.fit-list li::before { content: ""; position: absolute; left: 4px; top: 1.45em; width: 10px; height: 1px; background: var(--accent); }
.fit-note { color: var(--muted); font-size: 1.125rem; }
.definition-text { font-size: 1.1875rem; max-width: 34em; }

/* Время по часовому поясу посетителя */
.local-time { display: block; margin-top: 6px; font-family: var(--sans); font-size: 0.875rem; line-height: 1.4; color: var(--accent); }

/* Контакты */
.contact-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.contact-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 32px; color: var(--muted); font-size: 1.125rem; }
.contact-value { color: var(--fg); font-weight: 500; user-select: all; white-space: nowrap; }

/* Концепция */
#concept { position: relative; overflow: hidden; }
#concept .container { position: relative; z-index: 1; }
.concept-head { margin-top: clamp(56px, 7vw, 96px); }
.glow-manifesto { right: auto; left: 10%; top: auto; bottom: -30%; width: min(1100px, 140vw); }

.experiences { margin-top: clamp(40px, 5vw, 72px); border-top: 1px solid var(--line); }
.exp { border-bottom: 1px solid var(--line); }
.exp summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) 44px;
  gap: 12px clamp(24px, 4vw, 64px);
  align-items: center;
  min-height: 44px;
  padding-block: clamp(22px, 2.6vw, 32px);
}
.exp summary::-webkit-details-marker { display: none; }
.exp h3 {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.75rem, 3vw, 2.625rem);
  line-height: 1.05;
  transition: color .3s ease;
}
.exp .voice {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.7vw, 1.5rem);
  line-height: 1.3;
  color: var(--muted);
}
.exp-icon {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--accent);
}
.exp-icon::before { content: "+"; font-size: 1.375rem; line-height: 1; }
.exp[open] .exp-icon { transform: rotate(45deg); border-color: var(--accent); }
.exp summary:hover h3, .exp[open] h3 { color: var(--accent); }
.exp-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) 44px;
  column-gap: clamp(24px, 4vw, 64px);
  padding-bottom: clamp(24px, 3vw, 36px);
}
.exp-body p { grid-column: 2; max-width: 34em; font-size: 1.125rem; }
@media (prefers-reduced-motion: no-preference) {
  .exp-icon { transition: transform .3s ease, border-color .3s ease; }
  .exp[open] .exp-body { animation: fade-in .35s ease; }
}

.manifesto-text {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 5.2vw, 4.5rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  max-width: 17em;
  margin-top: clamp(56px, 7vw, 104px);
  text-wrap: balance;
}
.manifesto-text em { color: var(--accent); }

/* Календарь встреч */
.calendar { margin-top: clamp(56px, 7vw, 96px); padding-top: clamp(28px, 3vw, 40px); border-top: 1px solid var(--line); }
.calendar-head { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px 24px; min-height: 44px; }
.calendar-head::-webkit-details-marker { display: none; }
.calendar-head h3 { flex: 1 1 auto; transition: color .2s ease; }
.calendar-head:hover h3, .calendar[open] .calendar-head h3 { color: var(--accent); }
.calendar[open] .exp-icon { transform: rotate(45deg); border-color: var(--accent); }
.calendar-head .exp-icon { flex: none; }
.calendar-head h3 { font-family: var(--serif); font-size: clamp(1.75rem, 3vw, 2.5rem); }
.calendar-legend { color: var(--muted); font-size: 0.9375rem; }
.cal-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.cal-dot-off { background: transparent; border: 1px dashed var(--muted); margin-left: 12px; }
.cal-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px clamp(20px, 3vw, 40px);
}
.cal-name { font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.cal-month ul { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cal-month li {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(122, 62, 74, 0.12);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--fg);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}
.cal-month li.off { background: transparent; border: 1px dashed var(--muted); color: var(--muted); text-decoration: line-through; }

/* Темы */
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 32px clamp(32px, 6vw, 96px);
  align-items: end;
}
.section-note { color: var(--muted); max-width: 26em; }


/* Шаги */
.steps {
  list-style: none;
  margin: clamp(48px, 6vw, 88px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 56px);
}
.steps li {
  border-top: 1px solid var(--fg);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.step-num {
  font-family: var(--serif);
  font-size: clamp(3.5rem, 6vw, 5rem);
  line-height: 0.9;
  color: var(--accent);
  font-variant-numeric: lining-nums;
}
.steps h3 { font-family: var(--sans); font-size: 1.1875rem; font-weight: 600; line-height: 1.35; }
.steps p { color: var(--muted); }

/* Ведущая */
.host-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 7vw, 120px);
  align-items: center;
}
.host-photo {
  margin: 0;
  width: 100%;
  max-width: 480px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.photo-placeholder,
.host-photo .photo { width: 100%; max-width: 100%; aspect-ratio: 4 / 5; border-radius: 2px; }
.photo-placeholder {
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  background: linear-gradient(160deg, var(--night-2), #1F1A23);
  color: var(--muted);
  font-size: 1rem;
}
.host-photo .photo { height: auto; object-fit: cover; object-position: 50% 30%; }

.host-text { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.host-name {
  font-family: var(--serif);
  font-size: clamp(3.25rem, 8.5vw, 7rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
}
.host-about { display: flex; flex-direction: column; gap: 14px; max-width: 36em; margin-top: 8px; }
.host-about p { font-size: 1.125rem; line-height: 1.7; }
.host-about p:first-child { font-family: var(--serif); font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.4; }
@media (min-width: 768px) {
  .host-grid { align-items: start; }
  .host-photo { position: sticky; top: calc(var(--header-h) + 32px); }
}
#host { padding-block: clamp(64px, 8vw, 112px); }
#host .host-text { gap: 14px; }
#host .host-name { font-size: clamp(3rem, 6.5vw, 5.5rem); }
#host .roles { margin-top: 8px; }
#host .roles li { padding-block: 10px; font-size: 0.875rem; }
.host-surname { display: block; font-style: italic; color: var(--accent); }
.affiliation { margin-top: 16px; }
.affiliation img { display: block; width: 200px; max-width: 100%; height: auto; }
.roles { list-style: none; margin: 24px 0 0; padding: 0; max-width: 30em; border-top: 1px solid var(--line); }
.roles li {
  padding-block: 18px;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Условия */
.terms {
  margin: clamp(56px, 7vw, 96px) 0 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  column-gap: clamp(24px, 4vw, 56px);
}
.terms > div {
  border-top: 1px solid var(--line);
  padding-block: 24px 36px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.terms dt { font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.terms dd { margin: 0; font-family: var(--serif); font-size: clamp(1.25rem, 1.6vw, 1.5rem); line-height: 1.25; }

/* Вопросы */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 40px clamp(40px, 7vw, 120px);
  align-items: start;
}
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 24px 68px 24px 0;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.2vw, 1.875rem);
  line-height: 1.2;
  transition: color .2s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-family: var(--sans);
  font-size: 1.375rem;
  font-weight: 400;
  line-height: 1;
  color: var(--accent);
}
.faq details[open] summary::after { transform: rotate(45deg); border-color: var(--accent); }
.faq summary:hover { color: var(--accent); }
.faq-answer { padding: 0 68px 28px 0; }
.faq-answer p { max-width: 34em; color: var(--muted); }

@media (prefers-reduced-motion: no-preference) {
  .faq summary::after { transition: transform .3s ease, border-color .3s ease; }
  .faq details[open] .faq-answer { animation: fade-in .35s ease; }
}

/* Финальный призыв */
.final { position: relative; overflow: hidden; padding-block: clamp(80px, 10vw, 152px); }
.glow-final { right: auto; left: -25%; top: auto; bottom: -55%; }
.final-inner { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.final-title {
  font-family: var(--serif);
  font-size: clamp(3rem, 8.5vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: -0.025em;
  max-width: 11em;
}
.final p:not(.booking-note) { max-width: 32em; font-size: 1.1875rem; opacity: 0.92; }
.final .cta-group { margin-top: 12px; }

/* Подвал */
.site-footer { border-top: 1px solid var(--line); padding-block: 36px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.footer-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; color: var(--muted); font-size: 0.9375rem; }
.footer-title .logo { min-height: 0; font-size: 1.625rem; color: var(--fg); }
.legal {
  flex-basis: 100%;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.legal p + p { margin-top: 8px; }
.legal-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.legal-links a { color: var(--muted); text-underline-offset: 3px; }
.legal-links a:hover { color: var(--accent); }
.age-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

/* ---------- Нижняя кнопка на телефоне ---------- */

.mobile-cta { display: none; }

/* ---------- Модальное окно ---------- */

.dialog {
  width: min(580px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--night-2);
  color: var(--fg);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
  overflow: auto;
}
.dialog:not([open]) { display: none; }
.dialog[open] { position: fixed; inset: 0; margin: auto; z-index: 70; }
.dialog::backdrop { background: rgba(14, 11, 16, 0.72); backdrop-filter: blur(4px); }

.dialog-inner { position: relative; padding: 44px 36px 32px; display: flex; flex-direction: column; gap: 16px; }
.dialog h2 { font-family: var(--serif); font-size: 2.125rem; line-height: 1.05; padding-right: 44px; }
.dialog h2:focus, .dialog h2:focus-visible { outline: none; }
.dialog p { color: var(--muted); }

.dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--fg);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease;
}
.dialog-close:hover { border-color: var(--accent); color: var(--accent); }

.field-label { font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }

.dialog textarea {
  width: 100%;
  min-height: 190px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(242, 237, 233, 0.05);
  color: var(--fg);
  font: 1rem/1.6 var(--sans);
  resize: vertical;
}

.dialog-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.copy-status { min-height: 1.5em; font-size: 0.9375rem; }

@media (prefers-reduced-motion: no-preference) {
  .dialog[open] { animation: rise .3s cubic-bezier(.2, .7, .2, 1); }
}

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Адаптивность ---------- */

@media (min-width: 768px) {
  :root { --gutter: 40px; }
}
@media (min-width: 1280px) {
  :root { --gutter: 56px; }
}

@media (max-width: 1023px) {
  .rules { grid-template-columns: minmax(0, 1fr); }
  .facts-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts-list > div { border-left: 0; padding-left: 0; }
  .facts-list > div:nth-child(even) { border-left: 1px solid var(--line); padding-left: 24px; }
  .facts-list > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .section-head { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); max-width: 40em; }
  .terms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 767px) {
  :root { --header-h: 56px; --mobile-cta-h: calc(80px + env(safe-area-inset-bottom, 0px)); }
  body { font-size: 1.0625rem; }

  /* Компактная закреплённая шапка: логотип и меню в одну строку */
  .header-inner { flex-wrap: nowrap; gap: 8px; min-height: var(--header-h); }
  .header-cta { display: none; }
  .logo { font-size: 1.5rem; flex: none; }
  .site-nav { margin-left: auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav ul { flex-wrap: nowrap; gap: 0; }
  .site-nav a { padding: 0 6px; font-size: 0.875rem; color: var(--fg); white-space: nowrap; }

  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-portrait { justify-self: start; max-width: 300px; }
  .rules-list { grid-template-columns: minmax(0, 1fr); }
  .glow { right: -60%; top: -10%; }

  .two-col { grid-template-columns: minmax(0, 1fr); }
  .definition, .rights { grid-template-columns: minmax(0, 1fr); }
  .exp summary { grid-template-columns: minmax(0, 1fr) 44px; }
  .exp summary h3 { grid-column: 1; }
  .exp summary .voice { grid-column: 1; grid-row: 2; }
  .exp-icon { grid-column: 2; grid-row: 1 / span 2; align-self: start; }
  .exp-body { display: block; }
  .exp-body p { max-width: none; }
  .cal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-buttons { flex-direction: column; align-items: stretch; }
  .host-grid { grid-template-columns: minmax(0, 1fr); }
  .host-photo { max-width: 380px; }
  .terms { grid-template-columns: minmax(0, 1fr); }
  .terms > div { padding-block: 18px 22px; }
  .faq summary { padding-right: 60px; }
  .faq-answer { padding-right: 0; }

  .cta-group { align-items: stretch; width: 100%; }
  .cta-group .btn { width: 100%; }

  .mobile-cta {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    padding-top: 12px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
    background: rgba(28, 24, 32, 0.94);
    border-top: 1px solid var(--line);
    transform: translateY(100%);
    visibility: hidden;
  }
  .mobile-cta.is-visible { transform: none; visibility: visible; }
  .mobile-cta .btn { width: 100%; }

  .dialog { border-radius: 16px; }
  .dialog-inner { padding: 40px 20px 24px; }
  .dialog h2 { font-size: 1.875rem; }
  .dialog-actions .btn { flex: 1 1 100%; }
}

@media (max-width: 767px) and (prefers-reduced-motion: no-preference) {
  .mobile-cta { transition: transform .3s ease, visibility .3s; }
}

@media (max-width: 360px) {
  .logo { font-size: 1.3125rem; }
  .header-inner { gap: 4px; }
  .site-nav a { padding: 0 4px; font-size: 0.8125rem; }
}

@media (max-width: 400px) {
  .facts-list { grid-template-columns: minmax(0, 1fr); }
  .facts-list > div:nth-child(even) { border-left: 0; padding-left: 0; }
  .facts-list > div:nth-child(n+2) { border-top: 1px solid var(--line); }
  .facts-list > div { padding-block: 18px 20px; }
}

/* Раскрывающийся календарь на узких экранах */
@media (max-width: 767px) {
  .calendar-head { flex-wrap: wrap; }
  .calendar-legend { order: 3; flex-basis: 100%; }
}
/* Подпись под кнопкой записи */
.cta-sub { font-size: 0.875rem; letter-spacing: 0.04em; color: var(--muted); }

/* Кому группа не подойдёт */
.fit-caution {
  margin-top: 4px;
  padding: 12px 0 12px 16px;
  border-left: 2px solid var(--accent);
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--muted);
}