/* 8 футов — site.css
   Источник истины: tokens.css (8feet-brand 1.0 «Контейнер»).
   Правила:
     — Радиус 2px на всех контролах и карточках.
     — Никаких теней (исключение: focus-ring на поле).
     — Никаких градиентов, blur, glassmorphism.
     — Без фиолетового, без Inter, без эмодзи-иконок.
     — Один шрифт на одну роль: Unbounded (display), Golos Text (text), JetBrains Mono (mono).
     — Шкала 1,25 от 16, других размеров нет.
     — Шаг отступов 8/16/24/32/48/64/96, других нет.
*/

/* ── сброс ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
ul, ol { margin: 0; padding: 0; }

/* ── база ──────────────────────────────────────────────────────────────── */
html {
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  text-wrap: pretty;
}
body {
  font-size: var(--fs-text);
  line-height: 1.5;
  background: var(--paper);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }

p { margin: 0 0 var(--s-2); max-width: 62ch; }
p:last-child { margin-bottom: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); line-height: 1.05; letter-spacing: -0.02em; }
h2 { font-size: var(--fs-h2); line-height: 1.08; letter-spacing: -0.02em; }
h3 { font-size: var(--fs-h3); line-height: 1.1; letter-spacing: -0.02em; }
h4 { font-size: var(--fs-h4); line-height: 1.15; letter-spacing: -0.01em; }

/* на тёмной поверхности (hero, подвал) */
.surface-ink { color: var(--paper); }
.surface-ink h1, .surface-ink h2, .surface-ink h3, .surface-ink h4 { color: var(--paper); }
.surface-ink p { color: var(--steel-300); }

/* ── контейнер ─────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--s-3);
}
@media (min-width: 768px) {
  .container { padding: 0 var(--s-4); }
}

/* ── шапка ─────────────────────────────────────────────────────────────── */
.site-header {
  border-bottom: var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: var(--s-2) 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand__mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  line-height: 32px;
  text-align: center;
}
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-caption);
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand__latin {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.brand__cn { display: none; }
@media (min-width: 768px) {
  .brand__cn { display: inline; }
}
.site-header__cta {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  border-radius: var(--radius-control);
  padding: var(--s-1) var(--s-2);
  font-size: var(--fs-label);
  font-weight: 500;
  text-decoration: none;
  line-height: 1.4;
  white-space: nowrap;
}
.site-header__cta:hover { background: var(--ink-2); text-decoration: none; }

/* ── hero (тёмная подложка, ≤80vh на десктопе) ─────────────────────────── */
.hero {
  background: var(--ink);
  color: var(--paper);
  padding: var(--s-8) 0 var(--s-6);
}
.hero h1 {
  color: var(--paper);
  margin-bottom: var(--s-3);
}
.hero__sub {
  font-size: var(--fs-sub);
  line-height: 1.5;
  color: var(--steel-300);
  max-width: 62ch;
  margin: 0 0 var(--s-4);
}
.hero__cta {
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: var(--ink);
  border: 1px solid var(--accent);
  border-radius: var(--radius-control);
  padding: 0 var(--s-3);
  height: 48px;
  font-size: var(--fs-text);
  font-weight: 600;
  text-decoration: none;
  line-height: 1;
}
.hero__cta:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: var(--paper); text-decoration: none; }
@media (max-width: 1023px) {
  .hero { padding: var(--s-6) 0 var(--s-4); }
  .hero h1 { font-size: var(--fs-h2); }
}
@media (max-width: 767px) {
  .hero { padding: var(--s-4) 0 var(--s-3); }
  .hero h1 { font-size: var(--fs-h3); }
  .hero__sub { font-size: var(--fs-text); }
}

/* ── секции ────────────────────────────────────────────────────────────── */
.section {
  padding: var(--s-8) 0;
  border-bottom: var(--line);
}
.section:last-child { border-bottom: 0; }
.section__title {
  margin-bottom: var(--s-3);
}
.section__lead {
  font-size: var(--fs-sub);
  color: var(--text-dim);
  margin-bottom: var(--s-6);
  max-width: 62ch;
}
.section--tight { padding: var(--s-6) 0; }

/* ── «Как мы работаем» — нумерованные шаги ─────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-3);
}
@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(2, 1fr); gap: var(--s-3) var(--s-4); }
}
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}
.step {
  border-top: 1px solid var(--ink);
  padding: var(--s-3) 0 0;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: var(--s-3);
}
.step__num {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.step__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h4);
  line-height: 1.15;
  margin: 0 0 var(--s-1);
}
.step__body {
  font-size: var(--fs-text);
  color: var(--text-dim);
  margin: 0;
}

/* ── карточки направлений (лендинг /) ──────────────────────────────────── */
.directions {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-3);
}
@media (min-width: 768px) {
  .directions { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .directions { grid-template-columns: repeat(2, 1fr); }
}
.direction {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--steel-300);
  border-radius: var(--radius-card);
  background: var(--paper);
  padding: var(--s-4);
  text-decoration: none;
  color: inherit;
  transition: background var(--t-micro) var(--ease);
}
.direction:hover { background: var(--paper-2); text-decoration: none; }
.direction__tag {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--s-2);
}
.direction__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h4);
  line-height: 1.15;
  margin: 0 0 var(--s-2);
}
.direction__body {
  font-size: var(--fs-text);
  color: var(--text-dim);
  margin: 0;
  flex: 1;
}
.direction__cta {
  margin-top: var(--s-3);
  font-size: var(--fs-caption);
  font-weight: 500;
  color: var(--accent-ink);
}

/* ── «Что получаете» (список-чек) ──────────────────────────────────────── */
.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s-2);
}
.checklist li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: var(--s-2);
  font-size: var(--fs-text);
}
.checklist li::before {
  content: "";
  width: 16px;
  height: 16px;
  margin-top: 6px;
  background: var(--ink);
  border-radius: var(--radius-control);
  position: relative;
}

/* ── таблица «Другие даты» ─────────────────────────────────────────────── */
.dates-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}
.dates-table th, .dates-table td {
  text-align: left;
  padding: var(--s-2) var(--s-2) var(--s-2) 0;
  border-bottom: 1px solid var(--steel-100);
  vertical-align: top;
}
.dates-table th {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 400;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--steel-300);
  border-top: 1px solid var(--ink);
}
.dates-table td.num {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-align: right;
  font-family: var(--font-mono);
}
.dates-table tr.accent { background: var(--accent-wash); }
.dates-table tr.accent td { border-bottom-color: var(--accent-wash); }

/* ── сравнительная таблица ─────────────────────────────────────────────── */
.compare-table {
  width: 100%;
  border-collapse: collapse;
}
.compare-table th, .compare-table td {
  padding: var(--s-2);
  border-bottom: 1px solid var(--steel-100);
  vertical-align: top;
  font-size: var(--fs-caption);
}
.compare-table th {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--steel-300);
  font-weight: 400;
  text-align: left;
}
.compare-table th:not(:first-child), .compare-table td:not(:first-child) {
  width: 30%;
}

/* ── ценовая «декомпозиция» — цифры табличные ──────────────────────────── */
.price {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s-2) var(--s-3);
  align-items: baseline;
  border-top: 1px solid var(--ink);
  padding-top: var(--s-3);
}
.price__row {
  display: contents;
}
.price__label { font-size: var(--fs-text); }
.price__value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--fs-text);
  text-align: right;
}
.price__big {
  grid-column: 1 / -1;
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-top: var(--s-3);
}

/* ── FAQ ──────────────────────────────────────────────────────────────── */
.faq {
  border-top: 1px solid var(--ink);
}
.faq__item {
  border-bottom: 1px solid var(--steel-100);
  padding: var(--s-3) 0;
}
.faq__item summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h4);
  line-height: 1.2;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: var(--fs-h4);
  color: var(--text-dim);
  line-height: 1;
  flex-shrink: 0;
}
.faq__item[open] summary::after { content: "−"; }
.faq__body {
  padding-top: var(--s-2);
  color: var(--text-dim);
  max-width: 62ch;
}
.faq__body p { font-size: var(--fs-text); }

/* ── форма ─────────────────────────────────────────────────────────────── */
.form-wrap {
  background: var(--paper-2);
  border-radius: var(--radius-card);
  padding: var(--s-4);
}
@media (min-width: 768px) {
  .form-wrap { padding: var(--s-6); }
}
.form {
  display: grid;
  gap: var(--s-3);
}
.form__row {
  display: grid;
  gap: var(--s-1);
}
.form__label {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.form__input,
.form__textarea {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--steel-300);
  border-radius: var(--radius-control);
  height: 48px;
  padding: 0 var(--s-2);
  font-size: var(--fs-text);
  color: var(--ink);
}
.form__textarea {
  height: auto;
  min-height: 96px;
  padding: var(--s-2);
  resize: vertical;
  font-family: var(--font-text);
}
.form__input:focus,
.form__textarea:focus {
  outline: 0;
  border-color: var(--ink);
  box-shadow: 0 0 0 2px var(--accent-wash);
}
.form__input::placeholder,
.form__textarea::placeholder {
  color: var(--steel-500);
}
.form__input:disabled,
.form__textarea:disabled {
  background: var(--paper-2);
  cursor: not-allowed;
  color: var(--steel-500);
}
.form__field-error {
  font-size: var(--fs-caption);
  color: var(--accent-ink);
  min-height: 0;
}
.form__field-error:empty { display: none; }
.form__check {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: var(--s-2);
  align-items: start;
}
.form__check input {
  width: 24px;
  height: 24px;
  margin-top: 2px;
  accent-color: var(--accent);
  cursor: pointer;
}
.form__check-text {
  font-size: var(--fs-caption);
  color: var(--text-dim);
}
.form__check-text a {
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.form__submit {
  background: var(--accent);
  color: var(--ink);
  border: 1px solid var(--accent);
  border-radius: var(--radius-control);
  height: 48px;
  padding: 0 var(--s-3);
  font-size: var(--fs-text);
  font-weight: 600;
  cursor: pointer;
  margin-top: var(--s-1);
}
.form__submit:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: var(--paper); }
.form__submit:disabled {
  background: var(--paper);
  color: var(--steel-500);
  border-color: var(--steel-300);
  cursor: not-allowed;
  font-weight: 500;
}
.form__note {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: var(--s-2);
}
.form__error {
  font-size: var(--fs-caption);
  color: var(--accent-ink);
  border-left: 2px solid var(--accent-ink);
  padding-left: var(--s-2);
}
.form__success {
  display: none;
  border: 1px solid var(--ink);
  border-radius: var(--radius-card);
  background: var(--paper);
  padding: var(--s-4);
}
.form__success.is-shown { display: block; }
.form__success h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  margin-bottom: var(--s-2);
}
.form__success p {
  color: var(--text-dim);
  margin: 0;
}

/* радиокнопка для «что вам нужно» — нативная, со своим стилем */
.form__radios {
  display: grid;
  gap: var(--s-1);
  border: 1px solid var(--steel-300);
  border-radius: var(--radius-control);
  background: var(--paper);
  padding: var(--s-2);
}
.form__radio {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: var(--s-2);
  align-items: start;
  font-size: var(--fs-text);
  cursor: pointer;
  padding: var(--s-1) 0;
}
.form__radio input { margin-top: 4px; width: 24px; height: 24px; accent-color: var(--accent); }
.form__radio-sublist {
  margin: var(--s-1) 0 var(--s-1) var(--s-4);
  padding: var(--s-2);
  border-left: 1px solid var(--steel-300);
  display: grid;
  gap: var(--s-1);
}
.form__radio input[type="radio"]:checked ~ .form__radio-body {
  /* оставляем простую визуальную иерархию — нативные радиокнопки */
}

/* ── две колонки (hero+form, контент+сайдбар) ──────────────────────────── */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
}
@media (min-width: 1024px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--s-6); align-items: start; }
}
.split--narrow {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
}
@media (min-width: 1024px) {
  .split--narrow { grid-template-columns: 2fr 3fr; gap: var(--s-6); align-items: start; }
}

/* ── подвал ───────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--paper);
  border-top: var(--line);
  padding: var(--s-6) 0 var(--s-4);
}
.site-footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
  margin-bottom: var(--s-4);
}
@media (min-width: 768px) {
  .site-footer__top { grid-template-columns: 1fr 1fr; gap: var(--s-6); }
}
.site-footer__brand {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--s-2);
}
.site-footer__legal {
  font-size: var(--fs-caption);
  color: var(--text-dim);
  line-height: 1.5;
}
.site-footer__legal p { margin: 0 0 var(--s-1); max-width: none; }
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-2);
  font-size: var(--fs-caption);
}
.site-footer__links a { color: var(--accent-ink); }
.site-footer__bottom {
  border-top: 1px solid var(--steel-300);
  padding-top: var(--s-2);
  font-size: var(--fs-caption);
  color: var(--text-dim);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-2);
}

/* ── простые текстовые блоки (offer, privacy, thanks) ─────────────────── */
.prose {
  max-width: 720px;
}
.prose h2 { margin: var(--s-6) 0 var(--s-3); }
.prose h3 { margin: var(--s-4) 0 var(--s-2); }
.prose h4 { margin: var(--s-3) 0 var(--s-2); }
.prose p { margin: 0 0 var(--s-2); max-width: none; }
.prose ul, .prose ol { margin: 0 0 var(--s-2); padding-left: var(--s-3); }
.prose li { margin-bottom: var(--s-1); }
.prose hr { border: 0; border-top: 1px solid var(--steel-300); margin: var(--s-4) 0; }

/* ── печать: уважаем prefers-reduced-motion ─────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0ms !important;
    animation-duration: 0ms !important;
  }
}

/* ── печать: уважаем prefers-color-scheme: dark (НЕ цель — пока paper) ── */
@media (prefers-color-scheme: dark) {
  html { color-scheme: light; }
}
