/* ==========================================================================
   «В Доме Отца» — страница мероприятия и регистрации
   Прототип вёрстки. Логики нет: форма никуда не отправляется.
   ========================================================================== */

/* ---------- Шрифты (локально, без Google Fonts) ---------- */
@font-face { font-family: "Kurale"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/kurale-400-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Kurale"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/kurale-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

@font-face { font-family: "Ubuntu"; font-style: normal; font-weight: 300; font-display: swap;
  src: url("fonts/ubuntu-300-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Ubuntu"; font-style: normal; font-weight: 300; font-display: swap;
  src: url("fonts/ubuntu-300-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Ubuntu"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/ubuntu-400-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Ubuntu"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/ubuntu-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Ubuntu"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/ubuntu-500-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Ubuntu"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/ubuntu-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Токены ---------- */
:root {
  color-scheme: dark;

  /* Цвета сняты с афиши и обложки */
  --bg:        #1b1a19;   /* фон афиши ~#1d1d1d, чуть теплее */
  --bg-raised: #232120;   /* карточки */
  --bg-input:  #2a2725;   /* поля ввода */
  --line:        rgba(237, 232, 225, .12);
  --line-strong: rgba(237, 232, 225, .26);

  --text:   #ede8e1;      /* основной — тёплый белый */
  --text-2: #b4ada4;      /* вторичный, контраст 7:1 */
  --text-3: #8d867e;      /* подписи, контраст 4.8:1 */

  --accent:       #ef6324; /* оранжевый с афиши */
  --accent-hover: #ff7738;
  --accent-ink:   #1a1512; /* текст на оранжевом — контраст 5.2:1 */

  /* Пятна размытого градиента (обложка «Мое духовное здоровье») */
  --blob-red:   #9b2f22;
  --blob-rust:  #a5582f;
  --blob-olive: #66704f;

  --danger: #ff8a7a;

  --font-display: "Kurale", "Georgia", serif;
  --font-body: "Ubuntu", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(72px, 10vw, 128px);
  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 64px;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--font-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--accent); color: var(--accent-ink); }

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

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

.visually-hidden {
  position: absolute !important; 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: 200;
  background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 8px;
  font-weight: 500; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Пометка «уточняется» (только для прототипа) ----------
   Всё, чего пока нет в исходных данных, помечено классом .tbd.
   Перед публикацией — заменить на реальные данные и удалить класс. */
.tbd {
  display: inline-flex; align-items: center; gap: .4em;
  padding: .05em .6em;
  border: 1px dashed color-mix(in srgb, var(--accent) 70%, transparent);
  border-radius: 999px;
  color: var(--accent);
  font: 400 13px/1.5 var(--font-body);
  letter-spacing: .01em;
  text-transform: none;
  white-space: nowrap;
  vertical-align: middle;
}

/* ---------- Типографика ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font: 500 13px/1.4 var(--font-body);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-2);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--accent); }

.h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.4vw, 64px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .01em;
  text-wrap: balance;
}

.lead { font-size: clamp(19px, 2vw, 23px); line-height: 1.55; color: var(--text); font-weight: 300; text-wrap: pretty; }
.muted { color: var(--text-2); }
.small { font-size: 14px; line-height: 1.5; color: var(--text-3); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  border: 1px solid transparent; border-radius: 999px;
  font: 500 16px/1 var(--font-body); letter-spacing: .02em;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s;
}
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--primary:active { transform: translateY(1px); }
.btn--ghost { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--text); }
.btn--sm { min-height: 42px; padding: 0 20px; font-size: 15px; }
.btn--block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; white-space: nowrap; }
.brand__name { font: 400 22px/1 var(--font-display); letter-spacing: .01em; }
.brand__city { font-size: 13px; color: var(--text-3); letter-spacing: .08em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { font-size: 15px; color: var(--text-2); text-decoration: none; transition: color .2s; }
.nav a:not(.btn):hover { color: var(--text); }
@media (max-width: 720px) {
  .nav a:not(.btn) { display: none; }
  .brand__city { display: none; }
}

/* ---------- Первый экран ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; margin-top: calc(var(--header-h) * -1); padding: calc(var(--header-h) + clamp(40px, 7vw, 88px)) 0 clamp(56px, 7vw, 88px); }
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(38% 46% at 8% 18%,  var(--blob-red)   0%, transparent 72%),
    radial-gradient(30% 40% at 30% 4%,  var(--blob-olive) 0%, transparent 70%),
    radial-gradient(34% 44% at 52% 26%, var(--blob-red)   0%, transparent 72%),
    radial-gradient(26% 36% at 70% 6%,  var(--blob-olive) 0%, transparent 70%),
    radial-gradient(30% 40% at 82% 22%, var(--blob-rust)  0%, transparent 72%),
    radial-gradient(34% 46% at 100% 40%, var(--blob-red)  0%, transparent 72%),
    radial-gradient(40% 40% at 24% 46%, var(--blob-rust)  0%, transparent 70%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 92%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 92%);
  opacity: .9;
}
.hero__org {
  max-width: 34ch; margin: 0 auto clamp(28px, 4vw, 48px);
  text-align: center; font-size: 13px; line-height: 1.5; color: color-mix(in srgb, var(--text) 80%, transparent);
}
.hero__stage { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.hero__title {
  grid-column: 2;
  font-family: var(--font-display);
  font-size: clamp(42px, 9.4vw, 136px);
  line-height: .92;
  letter-spacing: .005em;
  text-transform: uppercase;
  text-align: center;
}
.hero__title span { display: block; }
.hero__side { font-size: clamp(15px, 1.5vw, 20px); line-height: 1.35; color: var(--text); font-weight: 300; white-space: nowrap; }
.hero__side--left  { grid-column: 1; justify-self: start; }
.hero__side--right { grid-column: 3; justify-self: end; text-align: right; }

.hero__meta { margin-top: clamp(40px, 6vw, 72px); display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
.hero__dates {
  font: 300 clamp(48px, 7vw, 96px)/1 var(--font-body);
  letter-spacing: -.01em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.hero__dates small { display: block; margin-top: 10px; font-size: clamp(14px, 1.6vw, 20px); letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); font-weight: 400; }
.hero__dates small span + span::before { content: " · "; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero__speaker { margin-top: -8px; font-size: 17px; color: var(--text-2); }
.hero__speaker a { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.hero__speaker a:hover { color: var(--accent); }

@media (max-width: 560px) {
  .hero__title { font-size: clamp(36px, 13vw, 60px); }
  .hero__dates small span { display: block; }
  .hero__dates small span + span::before { content: none; }
  .hero__actions .btn { flex: 1 1 100%; }
}

@media (max-width: 860px) {
  .hero__stage { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .hero__title { grid-column: 1 / -1; grid-row: 1; }
  .hero__side { grid-row: 2; font-size: 15px; }
  .hero__side--left { grid-column: 1; }
  .hero__side--right { grid-column: 2; }
}

/* ---------- Секции ---------- */
.section { padding-block: var(--section-y); position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.section__head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); max-width: 760px; }

/* ---------- Программа ---------- */
.program { border-top: 1px solid var(--line-strong); }
.day {
  display: grid;
  grid-template-columns: minmax(180px, 3fr) minmax(0, 9fr);
  gap: clamp(20px, 4vw, 64px);
  padding-block: clamp(28px, 4vw, 48px);
  border-bottom: 1px solid var(--line-strong);
}
.day__date { display: flex; flex-direction: column; gap: 6px; }
.day__num { font: 300 clamp(48px, 5.6vw, 72px)/1 var(--font-body); color: var(--accent); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.day__wd { font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); }

.day__kind { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 10px; }
.day__title { font: 400 clamp(28px, 3.4vw, 42px)/1.1 var(--font-display); text-wrap: balance; }

.slots { margin-top: 22px; display: grid; gap: 2px; }
.slot {
  display: grid; grid-template-columns: 128px 1fr; gap: 20px; align-items: baseline;
  padding: 14px 0; border-top: 1px solid var(--line);
}
.slot__time { font-variant-numeric: tabular-nums; color: var(--text); font-weight: 500; font-size: 16px; white-space: nowrap; }
.slot__what { color: var(--text-2); }
.slot__what b { display: block; color: var(--text); font-weight: 400; font-size: 18px; }

.day__place { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; color: var(--text-2); font-size: 15px; }
.day__place svg { width: 18px; height: 18px; color: var(--text-3); flex: none; }

@media (max-width: 720px) {
  .day { grid-template-columns: 1fr; gap: 16px; }
  .day__date { flex-direction: row; align-items: baseline; gap: 14px; }
  .slot { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- Спикер ---------- */
.speaker { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: clamp(28px, 6vw, 96px); align-items: center; }
.speaker__photo {
  margin: 0; position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-raised);
}
/* Цветное фото; низ мягко уходит в фон */
.speaker__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.speaker__photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 55%, color-mix(in srgb, var(--bg) 85%, transparent) 100%);
}
.speaker__name { font: 400 clamp(38px, 5vw, 64px)/1 var(--font-display); margin: 16px 0 14px; text-wrap: balance; }
.speaker__role { color: var(--text-2); font-size: 17px; }
.speaker__role b { color: var(--accent); font-weight: 400; }

.bio { margin: clamp(48px, 6vw, 72px) 0 0; border-top: 1px solid var(--line-strong); }
.bio > div { display: grid; grid-template-columns: minmax(180px, 3fr) minmax(0, 9fr); gap: clamp(16px, 4vw, 64px); padding: 22px 0; border-bottom: 1px solid var(--line); }
.bio dt { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); padding-top: 4px; }
.bio dd { margin: 0; font-size: 18px; line-height: 1.65; color: var(--text); max-width: 68ch; font-weight: 300; }

@media (max-width: 860px) {
  .speaker { grid-template-columns: 1fr; align-items: start; }
  .speaker__photo { max-width: 360px; }
}
@media (max-width: 720px) {
  .bio > div { grid-template-columns: 1fr; gap: 8px; }
  .bio dd { font-size: 17px; }
}

/* ---------- Регистрация ---------- */
.register { overflow: hidden; isolation: isolate; }
.register::before {
  content: ""; position: absolute; z-index: -1;
  width: min(900px, 120vw); aspect-ratio: 1; right: -20%; top: 10%;
  background:
    radial-gradient(closest-side, color-mix(in srgb, var(--blob-red) 75%, transparent), transparent),
    radial-gradient(closest-side at 70% 70%, color-mix(in srgb, var(--blob-olive) 60%, transparent), transparent);
  opacity: .55;
}
.register__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.register__intro { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 22px; }
@media (max-width: 960px) {
  .register__grid { grid-template-columns: 1fr; }
  .register__intro { position: static; }
}

/* ---------- Форма ---------- */
.form-card {
  background: color-mix(in srgb, var(--bg-raised) 92%, transparent);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(22px, 3.6vw, 44px);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .6);
}
.form { display: grid; gap: 22px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: end; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; gap: 22px; } }
.form__hint-top { font-size: 14px; color: var(--text-3); margin-top: -4px; }

.field { display: grid; gap: 8px; }
.field__label { font-size: 15px; font-weight: 500; color: var(--text); }
.field__hint { font-size: 13px; color: var(--text-3); }
.field__error { font-size: 13px; color: var(--danger); }

.input {
  width: 100%; min-height: 54px; padding: 14px 16px;
  background: var(--bg-input);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font: 400 17px/1.3 var(--font-body);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.input::placeholder { color: var(--text-3); opacity: 1; }
.input:hover { border-color: color-mix(in srgb, var(--text) 45%, transparent); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 28%, transparent); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.input:-webkit-autofill { -webkit-text-fill-color: var(--text); -webkit-box-shadow: 0 0 0 100px var(--bg-input) inset; caret-color: var(--text); }

.fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 10px; }
.fieldset legend { padding: 0; margin-bottom: 10px; }

/* Чекбокс */
.check {
  appearance: none; -webkit-appearance: none; margin: 2px 0 0;
  width: 22px; height: 22px; flex: none;
  border: 1.5px solid color-mix(in srgb, var(--text) 50%, transparent);
  border-radius: 6px;
  background: transparent;
  display: grid; place-content: center;
  cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.check::before {
  content: ""; width: 12px; height: 12px;
  background: var(--accent-ink);
  clip-path: polygon(14% 52%, 0 66%, 38% 100%, 100% 22%, 86% 8%, 38% 72%);
  transform: scale(0); transition: transform .15s;
}
.check:checked { background: var(--accent); border-color: var(--accent); }
.check:checked::before { transform: scale(1); }
.check:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Блок пожертвования. Скрывается атрибутом hidden (скрипт в index.html) */
.donation {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 3vw, 24px);
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  background:
    radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--blob-red) 30%, transparent), transparent 60%),
    color-mix(in srgb, var(--accent) 6%, var(--bg-input));
}
.donation[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .donation { animation: reveal .35s ease both; }
}
@keyframes reveal { from { opacity: 0; transform: translateY(-6px); } }
.donation__grid { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; }
.donation__label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; }
.donation__amount { font: 400 24px/1.2 var(--font-display); color: var(--text); margin-bottom: 12px; text-wrap: balance; }
.donation__amount b { font-weight: 400; color: var(--accent); white-space: nowrap; }
.donation__text { font-size: 15px; line-height: 1.55; color: var(--text-2); }
.donation__text + .donation__text { margin-top: 8px; }
.donation__hint--touch { display: none; }
@media (hover: none) and (pointer: coarse) {
  .donation__hint--desk { display: none; }
  .donation__hint--touch { display: block; }
}
.donation__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.donation__offer { font-size: 13px; line-height: 1.5; color: var(--text-3); }
.donation__offer a { color: var(--text-2); text-underline-offset: 3px; }
@media (max-width: 560px) {
  .donation__grid { grid-template-columns: 1fr; justify-items: start; }
}

.qr-frame {
  background: #fff; padding: 12px; border-radius: 12px;
  width: max-content; line-height: 0;
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .6);
}
/* Серый фон исходной картинки → белый, модули остаются чёрными */
.qr-frame img { width: 180px; height: 180px; filter: brightness(1.08) contrast(1.1); image-rendering: pixelated; }

.requisites-details { border-top: 1px solid var(--line); padding-top: 14px; }
.requisites-details summary { cursor: pointer; font-size: 15px; color: var(--text); list-style: none; display: flex; align-items: center; gap: 8px; }
.requisites-details summary::-webkit-details-marker { display: none; }
.requisites-details summary::before { content: ""; width: 8px; height: 8px; border-right: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: rotate(-45deg); transition: transform .2s; margin-right: 4px; }
.requisites-details[open] summary::before { transform: rotate(45deg); }
.requisites-details .requisites { margin-top: 14px; }

/* Список реквизитов (форма и оферта) */
.requisites { display: grid; gap: 0; margin: 0; font-size: 14px; }
.requisites > div { display: grid; grid-template-columns: minmax(120px, 2fr) minmax(0, 5fr); gap: 4px 16px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.requisites dt { color: var(--text-3); }
.requisites dd { margin: 0; color: var(--text); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.requisites .copy { user-select: all; -webkit-user-select: all; cursor: text; }
@media (max-width: 480px) { .requisites > div { grid-template-columns: 1fr; } }

/* Согласия */
.consents { display: grid; gap: 14px; padding-top: 22px; border-top: 1px solid var(--line); }
.consent { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; font-size: 15px; line-height: 1.5; color: var(--text-2); cursor: pointer; }
.consent a { color: var(--text); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 80%, transparent); text-underline-offset: 3px; }
.consent a:hover { color: var(--accent); }
.req { color: var(--accent); }

.form__submit { display: grid; gap: 14px; margin-top: 6px; }
.form__legend-req { font-size: 13px; color: var(--text-3); }

/* Состояние после отправки (показывать вместо формы — логика позже) */
.form-success { display: grid; gap: 16px; text-align: center; justify-items: center; padding: 24px 0; }
.form-success[hidden] { display: none; }
.form-success__icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.form-success__icon svg { width: 30px; height: 30px; }
.form-success__title { font: 400 36px/1.1 var(--font-display); }

/* ---------- Подвал ---------- */
.site-footer { border-top: 1px solid var(--line); padding: clamp(48px, 6vw, 72px) 0 32px; font-size: 14px; color: var(--text-3); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); gap: 40px; }
.footer__brand { font: 400 30px/1 var(--font-display); color: var(--text); margin-bottom: 14px; }
.footer__title { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); margin-bottom: 14px; }
.footer__links { display: grid; gap: 10px; }
.footer__links a { color: var(--text-2); text-decoration: none; transition: color .2s; }
.footer__links a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.footer__legal { line-height: 1.6; }
.footer__bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Плашка cookie ---------- */
.cookie {
  position: fixed; inset: auto 16px 16px auto; z-index: 60;
  margin: 0; width: min(440px, calc(100vw - 32px));
  padding: 20px;
  background: var(--bg-raised); color: var(--text-2);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, .7);
  font-size: 14px; line-height: 1.5;
}
.cookie a { color: var(--text); text-underline-offset: 3px; }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.cookie__actions .btn { flex: 1 1 auto; padding: 0 16px; font-size: 14px; }

/* ---------- Страницы документов ---------- */
.doc { padding-block: clamp(40px, 6vw, 80px) var(--section-y); }
.doc__back { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); text-decoration: none; font-size: 15px; margin-bottom: clamp(28px, 4vw, 48px); }
.doc__back:hover { color: var(--text); }
.doc__back svg { width: 18px; height: 18px; }
.doc__title { font: 400 clamp(34px, 5vw, 56px)/1.05 var(--font-display); margin: 16px 0 18px; text-wrap: balance; max-width: 22ch; }
.doc__meta { display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--text-3); font-size: 14px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }

.prose { max-width: 70ch; margin-top: 36px; color: var(--text-2); font-size: 17px; line-height: 1.7; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font: 500 21px/1.35 var(--font-body); color: var(--text); margin-top: 2.2em; }
.prose h3 { font: 500 18px/1.4 var(--font-body); color: var(--text); margin-top: 1.6em; }
.prose ol, .prose ul { padding-left: 1.4em; }
.prose ol { list-style: decimal; }
.prose ul { list-style: disc; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--text-3); }
.prose a { color: var(--text); text-decoration-color: var(--accent); text-underline-offset: 3px; }
.prose strong { color: var(--text); font-weight: 500; }

.doc__subtitle { font-size: clamp(17px, 1.8vw, 20px); color: var(--text-2); font-weight: 300; max-width: 60ch; margin: -6px 0 20px; }

.doc-layout { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.doc-layout .prose { margin-top: 36px; }
.doc-toc { position: sticky; top: calc(var(--header-h) + 24px); margin-top: 36px; font-size: 14px; max-height: calc(100vh - var(--header-h) - 48px); overflow: auto; }
.doc-toc summary { list-style: none; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; cursor: default; }
.doc-toc summary::-webkit-details-marker { display: none; }
.doc-toc ol { display: grid; gap: 2px; }
.doc-toc a { display: block; padding: 6px 0 6px 12px; border-left: 1px solid var(--line); color: var(--text-2); text-decoration: none; line-height: 1.4; transition: color .2s, border-color .2s; }
.doc-toc a:hover { color: var(--text); border-left-color: var(--accent); }
@media (max-width: 960px) {
  .doc-layout { grid-template-columns: 1fr; gap: 0; }
  .doc-toc { position: static; max-height: none; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); }
  .doc-toc summary { cursor: pointer; margin-bottom: 0; }
  .doc-toc details[open] summary { margin-bottom: 12px; }
}

.prose h2[id] { scroll-margin-top: calc(var(--header-h) + 24px); }
.prose .clause { position: relative; padding-left: 3.2em; }
.clause__num { position: absolute; left: 0; color: var(--text-3); font-variant-numeric: tabular-nums; }
.prose .doc-sign { margin-top: 2.5em; padding-top: 1.2em; border-top: 1px solid var(--line); color: var(--text-3); font-size: 15px; }

.prose ol.doc-ol { list-style: none; padding-left: 0; counter-reset: item; }
.prose ol.doc-ol > li { counter-increment: item; position: relative; padding-left: 2.4em; }
.prose ol.doc-ol > li::before { content: counter(item) "."; position: absolute; left: 0; color: var(--text-3); font-variant-numeric: tabular-nums; }
.prose ol.doc-ol > li + li { margin-top: .8em; }
.prose .requisites { font-size: 15px; margin-top: 1.2em; }

.doc-qr { margin: 2.4em 0 0; display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; }
.doc-qr .qr-frame img { width: 180px; height: 180px; }
.doc-qr figcaption { font-size: 15px; color: var(--text-2); }
@media (max-width: 560px) { .doc-qr { grid-template-columns: 1fr; } }

.footer__links--row { display: flex; flex-wrap: wrap; gap: 8px 24px; }

.placeholder {
  border: 1px dashed color-mix(in srgb, var(--accent) 60%, transparent);
  border-radius: var(--radius);
  padding: 24px;
  color: var(--text-2);
  background: color-mix(in srgb, var(--accent) 5%, transparent);
}
.placeholder strong { color: var(--accent); font-weight: 500; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
