/* Дизайн-система сайта «AI ДЕБАТЫ».

   Ориентир вёрстки — университетские сайты (harvard.edu): светлая полоса,
   антиква в заголовках, гротеск в тексте, тонкие линейки вместо теней,
   много воздуха и один сдержанный акцентный цвет. Цвета, орнамент и образы
   взяты с афиши мероприятия: терракотовая полоса, латунь орнамента,
   бирюза слова «БИЗНЕСА» и тёмно-кофейный фон.

   Тёмная полоса осталась ровно там, где она работает как акцент: первый
   экран под заголовком (рисунок), финальный разворот и подвал. Всё
   остальное — светлая печатная полоса.

   Ничего внешнего: шрифты локальные, иконок-библиотек нет, вся графика —
   разметка, SVG и градиенты. */

/* ------------------------------------------------------------------ токены */
:root {
  /* тёмное — кофейный фон афиши, а не нейтральный графит */
  --ink: #17110c;
  --ink-2: #211810;
  --ink-3: #2b2016;
  --line-dark: #3d2e21;

  /* светлое — кремовая бумага логотипа */
  --paper: #f7f2e9;
  --paper-2: #fffdf8;
  --line: #e2d8c6;
  --line-soft: #eee7da;

  --text: #1d1611;
  --text-dim: #6d6053;
  --text-invert: #f7f2e9;
  --text-invert-dim: #c6b6a1;

  /* акценты афиши: терракота — главный, латунь — орнамент, бирюза — вторая
     сторона спора. Терракота играет роль малинового у Гарварда. */
  --accent: #b5502a;
  --accent-soft: #cd6238;
  --accent-wash: rgba(181, 80, 42, 0.08);
  --brass: #c08a3e;
  --brass-soft: #d9a45c;
  --brass-wash: rgba(192, 138, 62, 0.12);
  --steel: #4f8698;
  --steel-soft: #86b3c1;
  --danger: #a32718;

  --shell: 1240px;
  --gap: clamp(1rem, 2.4vw, 2rem);
  --pad-x: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(3.75rem, 7.5vw, 7rem);

  --font-text: 'Public Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-display: 'Source Serif 4', Georgia, 'Times New Roman', serif;

  --f-display: clamp(3rem, 8vw, 6.5rem);
  --f-h2: clamp(1.85rem, 3.4vw, 2.85rem);
  --f-h2-xl: clamp(2.2rem, 4.6vw, 3.6rem);
  --f-h3: clamp(1.15rem, 1.7vw, 1.375rem);
  --f-lead: clamp(1.0625rem, 1.5vw, 1.25rem);
  --f-body: 1rem;
  --f-small: 0.875rem;
  --f-label: 0.75rem;

  --radius: 2px;
  --radius-lg: 3px;
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);

  /* Орнаментальная линейка: тот же мотив, что внутри рисунка на первом
     экране. Лежит в data-URI, потому что CSP разрешает картинкам data:,
     а сторонних файлов на сайте нет вовсе. */
  --ornament: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='56'%20height='16'%20viewBox='0%200%2056%2016'%3E%3Cpath%20d='M0.0%208.0%20C1.2%208.0%205.8%208.0%207.0%208.0%20M6.0%208.4%20C6.6%207.5%207.9%204.2%209.5%203.2%20C11.1%202.2%2013.8%201.8%2015.4%202.2%20C17.0%202.6%2018.9%204.3%2019.2%205.6%20C19.5%206.9%2018.4%209.2%2017.4%209.8%20C16.4%2010.4%2014.1%2010.0%2013.4%209.4%20C12.7%208.8%2013.1%206.9%2013.0%206.4%20M56.0%208.0%20C54.8%208.0%2050.2%208.0%2049.0%208.0%20M50.0%208.4%20C49.4%207.5%2048.1%204.2%2046.5%203.2%20C44.9%202.2%2042.2%201.8%2040.6%202.2%20C39.0%202.6%2037.1%204.3%2036.8%205.6%20C36.5%206.9%2037.6%209.2%2038.6%209.8%20C39.6%2010.4%2041.9%2010.0%2042.6%209.4%20C43.3%208.8%2042.9%206.9%2043.0%206.4%20M28.0%202.6%20C29.5%202.6%2032.4%206.2%2032.4%208.0%20C32.4%209.8%2029.5%2013.4%2028.0%2013.4%20C26.5%2013.4%2023.6%209.8%2023.6%208.0%20C23.6%206.2%2026.5%202.6%2028.0%202.6%20Z'%20fill='none'%20stroke='%23c08a3e'%20stroke-width='1.15'%20stroke-linecap='round'/%3E%3C/svg%3E");
}

/* ------------------------------------------------------------------ сброс */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-text);
  font-size: var(--f-body);
  line-height: 1.62;
  font-feature-settings: 'kern' 1, 'liga' 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Заголовки — антиквой. Она задаёт весь характер страницы, поэтому
   перечислены все места, где заголовок может оказаться. */
h1, h2, h3, h4,
.hero__title, .section__title, .final__line, .role__name, .point__title,
.step__title, .speaker__name, .expert__name,
.onboard__title, .modal__title, .success__title, .legal__title, .winner__name,
.faq__q, .whytable__topic, .logo__name {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.012em;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.1; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }

/* Заголовок должен читаться целой фразой. text-wrap: balance распределяет
   слова по строкам так, чтобы в последней не оставалось одинокого слова,
   а pretty делает то же самое для абзацев. Браузеры без поддержки просто
   переносят как раньше — вёрстка от этого не ломается. */
h1, h2, h3, .section__title, .hero__title, .final__line,
.point__title, .step__title, .role__name {
  text-wrap: balance;
}
p, li, dd, .section__lead, .whytable__why { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

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

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--accent); color: #fff; padding: 0.75rem 1.25rem; font-weight: 700;
}
.skip:focus { left: 0; }

/* Орнаментальная линейка под заголовком раздела — мотив с афиши. */
.ornament {
  width: 168px; height: 16px; margin: 1.125rem auto 0;
  background: var(--ornament) repeat-x center / 56px 16px;
  opacity: 0.9;
}
.ornament--wide { width: 100%; max-width: 560px; }

/* ------------------------------------------------------------------ кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.875rem 1.625rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  font-size: 0.9375rem; font-weight: 700; letter-spacing: 0.02em;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
              border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-soft); }
.btn--ghost { border-color: currentColor; color: inherit; }
.btn--ghost:hover { background: var(--accent-wash); border-color: var(--accent); color: var(--accent); }
/* На тёмной полосе подсветка светлая: терракота по кофейному не читается. */
.section--final .btn--ghost:hover, .footer .btn--ghost:hover {
  background: rgba(247, 242, 233, 0.12); border-color: var(--brass-soft); color: var(--text-invert);
}
.btn--sm { padding: 0.625rem 1.125rem; font-size: 0.875rem; }
.btn--lg { padding: 1.0625rem 2.125rem; font-size: 1rem; }
.btn--role {
  align-self: flex-start; padding-left: 0; padding-right: 0; border: 0;
  color: var(--text); border-bottom: 2px solid var(--accent); border-radius: 0;
  padding-bottom: 0.25rem;
}
.btn--role:hover { color: var(--accent); background: transparent; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }

.label {
  margin: 0 0 1rem;
  font-size: var(--f-label); font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent);
}
.section--final .label { color: var(--brass-soft); }

/* ------------------------------------------------------------------ шапка */
/* Шапка светлая: знак заказчика нарисован на кремовом фоне и на светлой
   полосе стоит естественно, без чужой подложки под ним. */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 242, 233, 0.94);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex; align-items: center; gap: 1.5rem; min-height: 88px;
}
.header.is-scrolled .header__inner { min-height: 68px; }
.header__inner, .header.is-scrolled .header__inner { transition: min-height 0.25s var(--ease); }
.header__side { display: flex; align-items: center; gap: 0.75rem; margin-left: auto; }

/* Логотип «AI DEBATES» прозрачный: в светлой шапке знак стоит прямо на
   фоне. В подвале фон тёмный, а тёмно-синяя половина надписи на нём тонет,
   поэтому логотип целиком стоит на кремовой плашке — и уменьшен так, чтобы
   ровно совпадать по высоте со столбцами ссылок рядом. */
.logo { display: inline-flex; align-items: center; gap: 0.75rem; }
.logo__mark { width: 54px; height: 54px; flex: 0 0 54px; }
.logo__full {
  display: block; width: 124px; height: auto; padding: 0.5rem;
  background: var(--paper-2); border-radius: 8px;
}
.logo__text { display: flex; flex-direction: column; }
.logo__name { font-size: 1.125rem; line-height: 1.15; }

.nav__list { display: flex; gap: 1.75rem; }
.nav a {
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-dim); padding: 0.25rem 0; border-bottom: 2px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.nav a:hover { color: var(--text); border-bottom-color: var(--accent); }

.lang { display: inline-flex; align-items: center; gap: 0.125rem; }
.lang__item {
  padding: 0.375rem 0.5rem; font-size: var(--f-small); font-weight: 700;
  color: var(--text-dim); border-bottom: 2px solid transparent;
}
.lang__item:hover { color: var(--text); }
.lang__item.is-active { color: var(--accent); border-bottom-color: var(--accent); }

.burger {
  display: none; width: 44px; height: 44px; padding: 10px;
  flex-direction: column; justify-content: space-between;
  background: transparent; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer;
}
.burger span { display: block; height: 2px; background: currentColor; transition: transform 0.25s var(--ease), opacity 0.2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ------------------------------------------------------------------ первый экран */
/* Заголовок стоит на светлой полосе, а рисунок под ним — тёмный: он и даёт
   тот контраст, который раньше давала тёмная заливка всего экрана. */
.hero {
  position: relative; overflow: hidden;
  background: var(--paper);
  padding: clamp(2.5rem, 5.5vw, 4.5rem) 0 0;
}
.hero__inner { position: relative; display: block; }
.hero__lead { max-width: 78ch; margin: 0 auto; text-align: center; }
.hero__title {
  font-size: var(--f-display); line-height: 0.94; letter-spacing: -0.03em;
  margin-inline: auto;
  overflow-wrap: break-word; hyphens: none;
}
.hero__subtitle {
  margin: 1.5rem auto 0; max-width: 58ch;
  font-size: var(--f-lead); color: var(--text-dim); line-height: 1.55;
}
.hero__actions {
  display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem;
  justify-content: center;
}

.facts {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem 2rem; margin: 2.75rem 0 0; padding-top: 1.75rem;
  border-top: 1px solid var(--line); text-align: center;
}
.facts__label {
  font-size: var(--f-label); letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-dim);
}
.facts__value { margin: 0.375rem 0 0; font-size: 1.0625rem; font-weight: 600; line-height: 1.4; }

/* ------------------------------------------------------------ рисунок героя */
/* Вместо присланной афиши здесь нарисованная сцена: образ ИИ с орнаментом
   и люди напротив него. Это SVG прямо в разметке — ни одного лишнего
   запроса, любой размер экрана и цвета те же, что у остального сайта. */
.art {
  margin: clamp(2.5rem, 5vw, 4rem) 0 0;
  position: relative;
}
.art__frame {
  border: 1px solid var(--line-dark);
  background: var(--ink);
  overflow: hidden;
}
.art__svg { display: block; width: 100%; height: auto; }
.art__caption {
  margin-top: 0.875rem; font-size: var(--f-small); color: var(--text-dim);
  text-align: center; max-width: 76ch; margin-inline: auto;
}

/* ------------------------------------------------------------------ секции */
.section { padding: var(--section-y) 0; }
/* Липкая шапка перекрывала бы заголовок секции при переходе по якорю. */
section[id], main[id] { scroll-margin-top: 104px; }
/* Заголовки секций стоят по центру: так просил заказчик и так заголовок
   читается целой фразой, а не столбиком из отдельных слов. */
.section__head {
  max-width: 70ch; margin: 0 auto clamp(2.25rem, 4vw, 3.5rem); text-align: center;
}
.section__title { font-size: var(--f-h2); }
.section__title--xl { font-size: var(--f-h2-xl); }
.section__lead {
  margin-top: 1.125rem; font-size: var(--f-lead); color: var(--text-dim); line-height: 1.55;
}
.section__cta {
  display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center;
  margin-top: clamp(2rem, 4vw, 3rem);
}
.note {
  margin: 1.75rem auto 0; max-width: 76ch; text-align: center;
  font-size: var(--f-small); color: var(--text-dim);
}
.empty {
  padding: clamp(2rem, 4vw, 3rem); border: 1px dashed var(--line);
  text-align: center; color: var(--text-dim);
}

/* Светлые разделы отделяются волосяной линейкой — как развороты в издании. */
.section + .section { border-top: 1px solid var(--line-soft); }

/* Тёмные полосы: финал и, если понадобится, любая другая секция. */
.section--final {
  background: var(--ink); color: var(--text-invert); border-top: 0;
}
.section--final .section__lead { color: var(--text-invert-dim); }
.section--final .empty { border-color: var(--line-dark); color: var(--text-invert-dim); }

/* ------------------------------------------------------------------ роли */
.roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.role {
  display: flex; flex-direction: column; gap: 0.875rem;
  padding: clamp(1.75rem, 3vw, 2.5rem); background: var(--paper-2);
  text-align: center; align-items: center;
  transition: background-color 0.25s var(--ease);
}
.role:hover { background: #fff; }
.role__index { font-size: var(--f-label); letter-spacing: 0.22em; color: var(--accent); font-weight: 700; }
.role__name { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.role__desc { color: var(--text-dim); flex: 1; }
.role .btn--role { align-self: center; }

/* ------------------------------------------------------------------ формат */
.format { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); }
.format__text { margin-top: 1.5rem; font-size: var(--f-lead); color: var(--text-dim); max-width: 56ch; }
.points { display: grid; gap: 1px; background: var(--line); border-top: 1px solid var(--line); }
.point { padding: 1.5rem 0; background: var(--paper); text-align: center; }
.point__title { font-size: var(--f-h3); }
.point__text { margin-top: 0.5rem; color: var(--text-dim); }

/* ------------------------------------------------------------------ выгоды */
.tabs__bar {
  display: flex; flex-wrap: wrap; gap: 1.75rem; justify-content: center;
  border-bottom: 1px solid var(--line); margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}
.tabs__btn {
  padding: 0.75rem 0; background: transparent; border: 0; border-bottom: 2px solid transparent;
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-dim); cursor: pointer;
}
.tabs__btn:hover { color: var(--text); }
.tabs__btn.is-active { color: var(--accent); border-bottom-color: var(--accent); }
.benefits__list { columns: 2; column-gap: clamp(2rem, 4vw, 4rem); }
.benefits__list li {
  break-inside: avoid; padding: 0.6875rem 0 0.6875rem 1.75rem; position: relative;
  border-bottom: 1px solid var(--line-soft);
}
.benefits__list li::before {
  content: ""; position: absolute; left: 0; top: 1.25rem;
  width: 9px; height: 9px; border: 1px solid var(--accent); transform: rotate(45deg);
}

/* ------------------------------------------------------------------ шаги */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.step { padding: clamp(1.5rem, 2.5vw, 2rem); background: var(--paper-2); text-align: center; }
/* Шагов семь, а колонок четыре: восьмая ячейка иначе зияет в разлиновке
   дырой, поэтому её дорисовывает пустая клетка того же фона. */
.steps::after { content: ""; background: var(--paper-2); }
.step__num {
  font-size: var(--f-label); letter-spacing: 0.2em; color: var(--accent); font-weight: 700;
  display: block; margin-bottom: 0.75rem;
}
.step__title { font-size: var(--f-h3); }
.step__text { margin-top: 0.5rem; color: var(--text-dim); font-size: var(--f-small); }

/* ------------------------------------------------------------------ вопросы */
/* Категории вопросов: три плотных столбца. Колонки CSS, а не сетка, —
   строки разной длины тогда не растягивают соседей по ряду. */
.cats {
  columns: 3; column-gap: clamp(1.5rem, 3vw, 2.75rem);
  max-width: 96ch; margin-inline: auto;
  border-top: 1px solid var(--line);
}
.cats__item {
  break-inside: avoid; padding: 0.5rem 0 0.5rem 1.125rem; position: relative;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.9375rem; line-height: 1.35; color: var(--text);
}
.cats__item::before {
  content: ""; position: absolute; left: 0; top: 0.9375rem; width: 6px; height: 6px;
  border: 1px solid var(--brass); transform: rotate(45deg);
}
/* ------------------------------------------------------------------ эксперты */
.speakers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.25rem, 2.2vw, 2rem); }
.speaker { display: flex; flex-direction: column; }
.speaker__photo {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  background: var(--line); filter: grayscale(1) contrast(1.03);
  transition: filter 0.3s var(--ease);
}
.speaker:hover .speaker__photo { filter: grayscale(0); }
.speaker__photo--empty {
  display: grid; place-items: center; font-size: 2rem; font-weight: 700;
  color: var(--text-dim); background: var(--line); filter: none;
}
.speaker__body { padding-top: 0.875rem; }
.speaker__name { font-size: 1.125rem; }
.speaker__role { margin-top: 0.25rem; font-size: var(--f-small); color: var(--text-dim); }
.speaker__expertise { margin-top: 0.5rem; font-size: var(--f-small); line-height: 1.45; }
.speaker__vote { margin-top: 0.875rem; display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-start; }
.btn--vote {
  padding: 0.5rem 1rem; border: 1px solid var(--steel); color: var(--steel);
  font-size: var(--f-small); border-radius: var(--radius);
}
.btn--vote:hover { background: var(--steel); color: #fff; }
.btn--vote.is-voted { border-color: var(--accent); background: var(--accent); color: #fff; }
.speaker__votes { font-size: var(--f-small); color: var(--text-dim); }

/* Приглашённые эксперты: четверо в ряд, карточка — образец того, как
   выглядит утверждённый участник программы. */
.subhead {
  margin: clamp(2.5rem, 5vw, 4rem) 0 clamp(1.5rem, 2.5vw, 2rem); text-align: center;
}
.subhead:first-child { margin-top: 0; }
.subhead__title { font-size: clamp(1.375rem, 2.2vw, 1.75rem); }
.subhead__lead { margin-top: 0.75rem; color: var(--text-dim); max-width: 70ch; margin-inline: auto; }

.experts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.25rem, 2.2vw, 2rem); }
.expert { display: flex; flex-direction: column; background: var(--paper-2); border: 1px solid var(--line); }
/* Пока фотографий нет — белый квадрат с подписью по центру: заказчик
   попросил показать место, куда встанет снимок эксперта. */
.expert__photo {
  position: relative; width: 100%; aspect-ratio: 1 / 1; background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.expert__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.expert__photo-note {
  text-align: center; font-size: var(--f-small); color: var(--text-dim);
  max-width: 18ch; line-height: 1.4;
}
.expert__badge {
  position: absolute; left: 0; top: 0;
  padding: 0.3125rem 0.625rem; background: var(--brass); color: #17110c;
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
}
.expert__body { padding: clamp(1rem, 1.6vw, 1.375rem); display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.expert__name { font-size: 1.1875rem; }
.expert__role { font-size: var(--f-small); color: var(--accent); font-weight: 600; }
.expert__intro { font-size: var(--f-small); color: var(--text-dim); line-height: 1.5; }
.expert__regalia { margin-top: auto; padding-top: 0.75rem; border-top: 1px solid var(--line-soft); display: grid; gap: 0.375rem; }
.expert__regalia li { position: relative; padding-left: 0.9375rem; font-size: 0.8125rem; color: var(--text-dim); }
.expert__regalia li::before {
  content: ""; position: absolute; left: 0; top: 0.5rem; width: 6px; height: 6px;
  border: 1px solid var(--brass); transform: rotate(45deg);
}

.winner {
  margin-top: clamp(2rem, 4vw, 3rem); padding: clamp(1.75rem, 3vw, 2.5rem);
  border: 1px solid var(--accent); background: var(--accent-wash); text-align: center;
}
.winner__name { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.winner__label { margin-top: 0.5rem; color: var(--text-dim); }
.winner__votes { margin-top: 0.75rem; font-size: var(--f-small); color: var(--accent); font-weight: 700; }
.disclaimer {
  margin: 1.5rem auto 0; font-size: var(--f-small); color: var(--text-dim);
  max-width: 72ch; text-align: center;
}

/* ------------------------------------------------------------- регистрация */
.register { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.register__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.onboard { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); counter-reset: onboard; }
.onboard__item { padding: clamp(1.25rem, 2.2vw, 1.75rem); background: var(--paper-2); counter-increment: onboard; }
.onboard__title { font-size: var(--f-h3); }
.onboard__title::before {
  content: counter(onboard, decimal-leading-zero);
  display: block; font-family: var(--font-text); font-size: var(--f-label);
  letter-spacing: 0.2em; color: var(--accent); font-weight: 700; margin-bottom: 0.5rem;
}
.onboard__text { margin-top: 0.5rem; color: var(--text-dim); font-size: var(--f-small); }

/* ------------------------------------------------------------------ календарь */
.calendar {
  display: flex; flex-wrap: wrap; gap: var(--gap); align-items: center; justify-content: center;
  text-align: center; padding: clamp(2rem, 4vw, 3rem); border: 1px solid var(--line);
  background: var(--paper-2);
}
.calendar__links { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }

/* ------------------------------------------------------------------ финал */
/* Фраза заказчика идёт во всю ширину полосы и стоит по центру: узкой
   колонки в 48 знаков здесь больше нет. */
.final { text-align: center; }
.final__line { font-size: var(--f-h2); line-height: 1.14; text-wrap: balance; }
.final__line--2 { margin-top: 0.5rem; color: var(--brass-soft); }
.final__actions {
  display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.5rem; justify-content: center;
}

/* ------------------------------------------------------------- вопрос-ответ */
.faq { border-top: 1px solid var(--line); max-width: 90ch; margin-inline: auto; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem 0; font-size: 1.125rem; cursor: pointer; list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: "+"; font-family: var(--font-text); font-size: 1.5rem; font-weight: 400;
  color: var(--accent); transition: transform 0.2s var(--ease);
}
.faq__item[open] .faq__q::after { transform: rotate(45deg); }
.faq__a { padding-bottom: 1.5rem; color: var(--text-dim); max-width: 76ch; }

/* ------------------------------------------------------- нас поддержали */
.partners {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  max-width: 100ch; margin-inline: auto;
}
.partner {
  display: flex; flex-direction: column; gap: 0.5rem; justify-content: space-between;
  padding: clamp(1.125rem, 2vw, 1.5rem); background: var(--paper-2); text-align: center;
}
.partner__name { font-size: 0.9375rem; line-height: 1.4; }
.partner__site {
  font-size: var(--f-small); font-weight: 700; letter-spacing: 0.08em;
  text-transform: lowercase; color: var(--accent);
}
.partner__site:hover { text-decoration: underline; }

/* ------------------------------------------------------------------ подвал */
.footer {
  background: var(--ink); color: var(--text-invert);
  padding-top: clamp(3rem, 6vw, 4.5rem);
  border-top: 4px solid var(--accent);
}
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--gap); padding-bottom: 3rem; }
.footer__about { margin-top: 1.25rem; color: var(--text-invert-dim); font-size: var(--f-small); max-width: 42ch; }
.footer .lang--footer { margin-top: 1.5rem; }
.footer .lang__item { color: var(--text-invert-dim); }
.footer .lang__item:hover { color: var(--text-invert); }
.footer .lang__item.is-active { color: var(--brass-soft); border-bottom-color: var(--brass-soft); }
.footer__title { font-size: var(--f-label); letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass-soft); margin-bottom: 1rem; }
.footer__list { display: grid; gap: 0.625rem; font-size: var(--f-small); color: var(--text-invert-dim); }
.footer__list a:hover { color: var(--brass-soft); }
.footer__bottom {
  border-top: 1px solid var(--line-dark); padding-top: 1.5rem; padding-bottom: 2rem;
  font-size: var(--f-small); color: var(--text-invert-dim);
}

/* --------------------------------------------------- страница «Вопросы» */
/* Списка вопросов на странице больше нет: заказчик оставил на ней только
   категории и темы, вокруг которых спор острее всего. */
.qpage .section { padding: clamp(2.5rem, 5vw, 4.5rem) 0; }
.qpage .section--qintro { padding-top: clamp(3rem, 6vw, 5rem); }

.toc { margin-top: 2rem; }
.toc__list {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 0.75rem;
}
.toc__list a {
  display: inline-block; padding: 0.5rem 1.125rem; border: 1px solid var(--line);
  border-radius: 999px; font-size: var(--f-small); color: var(--text-dim);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.toc__list a:hover { border-color: var(--accent); color: var(--accent); }

.whytable { max-width: 96ch; margin: 0 auto; border-top: 1px solid var(--line); }
.whytable__row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.1fr); gap: 1.5rem;
  padding: 1.125rem 0; border-bottom: 1px solid var(--line); align-items: baseline;
}
.whytable__row--head {
  font-family: var(--font-text); font-size: var(--f-label); letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent);
}
.whytable__row--head .whytable__topic { font-family: var(--font-text); }
.whytable__topic { font-size: 1.0625rem; }
.whytable__why { color: var(--text-dim); }

/* Подзаголовок внутри формы: делит длинную форму на понятные части. */
.form__group {
  margin: 1.5rem 0 0.25rem; font-size: var(--f-label); letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent); font-weight: 700;
}
.form__group:first-child { margin-top: 0; }

/* ------------------------------------------------------- правовые страницы */
.legal { padding: clamp(3rem, 6vw, 5rem) 0 clamp(3.5rem, 7vw, 6rem); }
.legal__inner { max-width: 74ch; margin-inline: auto; }
.legal__title { font-size: var(--f-h2); text-align: center; }
.legal__updated { margin-top: 0.75rem; font-size: var(--f-small); color: var(--text-dim); text-align: center; }
.legal__block { margin-top: clamp(2rem, 3vw, 2.75rem); }
.legal__block h2 { font-size: var(--f-h3); margin-bottom: 0.625rem; text-align: center; }
.legal__block p { color: var(--text-dim); }
.legal__back { margin-top: clamp(2.5rem, 4vw, 3.5rem); text-align: center; }

/* ------------------------------------------------------------------ формы */
.modal {
  width: min(760px, calc(100vw - 2rem)); max-height: min(88vh, 1000px);
  padding: 0; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--paper-2); color: var(--text); overflow: auto;
}
.modal::backdrop { background: rgba(23, 17, 12, 0.74); backdrop-filter: blur(2px); }
.modal__inner { padding: clamp(1.5rem, 3vw, 2.5rem); position: relative; }
.modal__close {
  position: absolute; top: 0.75rem; right: 0.75rem; width: 40px; height: 40px;
  display: grid; place-items: center; font-size: 1.75rem; line-height: 1;
  background: transparent; border: 1px solid transparent; border-radius: var(--radius); cursor: pointer;
}
.modal__close:hover { border-color: var(--line); }
.modal__title { font-size: clamp(1.5rem, 3vw, 2rem); padding-right: 3rem; }
.modal__lead { margin-top: 0.75rem; color: var(--text-dim); }

.form { margin-top: 1.75rem; display: grid; gap: 1.125rem; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.125rem; }
.field { display: grid; gap: 0.375rem; margin: 0; }
.field__label { font-size: var(--f-small); font-weight: 600; }
.field__opt { color: var(--text-dim); font-weight: 400; }
.field__hint { font-size: 0.8125rem; color: var(--text-dim); }
.field__error { font-size: 0.8125rem; color: var(--danger); min-height: 1em; }
.input {
  width: 100%; padding: 0.75rem 0.875rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; color: var(--text); font: inherit;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(181, 80, 42, 0.16); outline: none; }
.input:disabled { background: var(--paper); }
textarea.input { resize: vertical; min-height: 5rem; }
.input--file { padding: 0.5rem; background: var(--paper); }
.field.is-error .input { border-color: var(--danger); }

.check { display: grid; grid-template-columns: auto 1fr; gap: 0.625rem 0.75rem; align-items: start; margin: 0; }
.check__input { width: 20px; height: 20px; margin: 0.125rem 0 0; accent-color: var(--accent); }
.check__label { font-size: var(--f-small); }
.check .field__error { grid-column: 2; }

.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 0.5rem; }
.form__status { font-size: var(--f-small); color: var(--text-dim); }
.form__status.is-error { color: var(--danger); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.success { padding: clamp(1.5rem, 3vw, 2.5rem); display: grid; gap: 1.25rem; }
.success__title { font-size: clamp(1.5rem, 3vw, 2rem); }
.success__text { color: var(--text-dim); }
.success__step { padding-top: 1.25rem; border-top: 1px solid var(--line); display: grid; gap: 0.625rem; justify-items: start; }
.success__step h3 { font-size: var(--f-h3); }
.success__step p { color: var(--text-dim); font-size: var(--f-small); }
.success__note { color: var(--accent) !important; font-weight: 600; }

/* ------------------------------------------------------------------ адаптив */
@media (max-width: 1100px) {
  .hero__title { font-size: clamp(2.75rem, 11vw, 4.5rem); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .format { grid-template-columns: 1fr; }
  .register { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .speakers, .experts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cats { columns: 2; }
  .partners { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .nav {
    position: fixed; inset: 88px 0 auto; z-index: 40;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 1rem var(--pad-x) 1.5rem;
    display: none;
  }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav a { display: block; padding: 0.875rem 0; border-bottom: 1px solid var(--line); }
  .burger { display: flex; }
  .header__cta { display: none; }
  .roles { grid-template-columns: 1fr; }
  .benefits__list { columns: 1; }
  .whytable__row { grid-template-columns: 1fr; gap: 0.375rem; }
  .whytable__row--head { display: none; }
}

@media (max-width: 640px) {
  .steps::after { display: none; }
  .logo__name { font-size: 1rem; }
  .logo__mark { width: 44px; height: 44px; flex-basis: 44px; }
  .logo__full { width: 124px; }
  .header__inner { min-height: 68px; gap: 0.5rem; }
  .nav { inset: 68px 0 auto; }
  .lang__item { padding: 0.375rem 0.3125rem; }
  .facts { grid-template-columns: 1fr; gap: 1rem; }
  .steps { grid-template-columns: 1fr; }
  .cats { columns: 1; }
  .speakers, .experts { grid-template-columns: 1fr; }
  .partners { grid-template-columns: 1fr; }
  .grid2 { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .calendar { flex-direction: column; align-items: center; }
  .modal { width: 100%; max-width: 100%; max-height: 100vh; height: 100%; border-radius: 0; border: 0; margin: 0; }
  .btn { width: 100%; }
  .btn--role, .tabs__btn, .lang__item, .modal__close { width: auto; }
  .hero__actions .btn, .final__actions .btn, .register__actions .btn,
  .calendar__links .btn, .section__cta .btn { width: 100%; }
}

/* Анимации появления — сдержанные и отключаемые. */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .header, .footer, .modal, .btn { display: none !important; }
  body { background: #fff; color: #000; }
  .section, .hero { padding: 1rem 0; }
  .art { display: none; }
}
