/* ==========================================================================
   Сайт психолога Анны Ознобишиной
   Структура файла:
     1. Шрифты и переменные
     2. Базовые стили
     3. Общие компоненты (контейнер, секции, кнопки)
     4. Блоки страницы — в порядке появления на странице
     5. Адаптив для планшетов и десктопа (mobile-first)
   ========================================================================== */


/* 1. Шрифты и переменные
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-cyrillic.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215;
}

:root {
  /* Цвета из макета */
  --color-blue-light: #dce5fc;   /* основной фон */
  --color-blue: #315ba6;         /* кнопки, акценты */
  --color-blue-dark: #24488a;    /* кнопки при наведении */
  --color-navy: #102a7a;         /* имя, крупные заголовки */
  --color-cream: #fff3f3;        /* блок записи и низ страницы */
  --color-white: #ffffff;
  --color-text: #1b2233;
  --color-text-muted: #556078;
  --color-line: #c3cde6;
  --color-error: #c0392b;
  --color-success: #2e7d4f;

  /* Типографика: размеры плавно растут вместе с шириной экрана */
  --font-main: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --text-sm: 0.9375rem;
  --text-base: 1.0625rem;
  --text-lg: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  --text-h3: clamp(1.1875rem, 1.05rem + 0.5vw, 1.375rem);
  --text-h2: clamp(1.75rem, 1.3rem + 1.8vw, 2.75rem);
  --text-h1: clamp(2rem, 1.4rem + 2.6vw, 3.5rem);

  /* Отступы и размеры */
  --container: 1200px;
  --gutter: 16px;
  --section-space: clamp(64px, 5vw + 40px, 120px);
  --radius: 20px;
  --radius-pill: 999px;
  --header-height: 64px;

  --shadow-soft: 0 10px 30px rgba(16, 42, 122, 0.08);
  --transition: 0.2s ease;
}


/* 2. Базовые стили
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-main);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-blue-light);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, figure, blockquote {
  margin: 0;
}

h1, h2, h3 {
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

ul, ol {
  padding: 0;
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--color-blue);
  outline-offset: 3px;
}

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


/* 3. Общие компоненты
   ========================================================================== */

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

.container--narrow {
  max-width: calc(800px + var(--gutter) * 2);
}

.section {
  position: relative;
  padding: var(--section-space) 0;
}

.section--white { background: var(--color-white); }
.section--cream { background: var(--color-cream); }

.section__title {
  font-size: var(--text-h2);
  margin-bottom: clamp(32px, 4vw, 56px);
}

.section__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin-top: clamp(40px, 5vw, 64px);
  font-size: var(--text-lg);
}

/* Кнопки */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 14px 32px;
  border: 2px solid var(--color-blue);
  border-radius: var(--radius-pill);
  background: var(--color-blue);
  color: var(--color-white);
  font: inherit;
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.button:hover {
  background: var(--color-blue-dark);
  border-color: var(--color-blue-dark);
}

.button:active {
  transform: translateY(1px);
}

.button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.button--small {
  min-height: 44px;
  padding: 8px 22px;
  font-size: 1rem;
}

.button--outline {
  background: transparent;
  color: var(--color-blue);
}

.button--outline:hover {
  background: var(--color-blue);
  color: var(--color-white);
}


/* 4. Блоки страницы
   ========================================================================== */

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

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-blue-light);
  transition: box-shadow var(--transition);
}

.header--scrolled {
  box-shadow: 0 1px 0 var(--color-line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
}

.header__logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.25;
}

.header__name {
  font-size: 1.125rem;
  font-weight: 500;
}

.header__role {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* Мобильное меню: белая шторка справа на всю высоту экрана,
   остальная страница затемняется. На десктопе — обычная строка меню. */
.nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  width: min(320px, 82vw);
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-height) + 8px) 28px calc(28px + env(safe-area-inset-bottom));
  overflow-y: auto;
  background: var(--color-white);
  box-shadow: -12px 0 40px rgba(16, 42, 122, 0.15);
  visibility: hidden;
  transform: translateX(100%);
  transition: transform 0.3s ease, visibility 0.3s;
}

.nav--open {
  visibility: visible;
  transform: none;
}

.nav__link {
  padding: 16px 0;
  font-size: 1.125rem;
  text-decoration: none;
  border-bottom: 1px solid var(--color-line);
}

.nav__link:active {
  color: var(--color-blue);
}

.nav__cta {
  margin-top: 28px;
}

.nav__social {
  display: flex;
  gap: 24px;
  margin-top: auto;
  padding-top: 28px;
  font-size: var(--text-sm);
}

.nav__social a {
  color: var(--color-blue);
  text-decoration: none;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: rgba(16, 42, 122, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}

.nav--open + .nav-overlay {
  opacity: 1;
  visibility: visible;
}

/* Пока меню открыто, страница под ним не прокручивается */
body:has(.nav--open) {
  overflow: hidden;
}

/* Кнопка-бургер выше шторки: в открытом меню она становится крестиком */
.burger {
  position: relative;
  z-index: 3;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  border: 0;
  background: none;
  cursor: pointer;
}

.burger span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--color-text);
  transition: transform var(--transition);
}

.burger span:first-child { top: 17px; }
.burger span:last-child  { top: 25px; }

.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child  { transform: translateY(-4px) rotate(-45deg); }

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

.hero {
  padding: 24px 0 var(--section-space);
}

/* На телефоне блок текста «растворяется» (display: contents), чтобы кнопку
   можно было поставить под фотографию: заголовок → список → фото → кнопка */
.hero__inner {
  display: flex;
  flex-direction: column;
}

.hero__content {
  display: contents;
}

.hero__photo {
  margin-bottom: 32px;
}

.hero__actions {
  order: 1;
}

.hero__title {
  font-size: var(--text-h1);
  font-weight: 300;
  margin-bottom: 28px;
}

.hero__title strong {
  font-weight: 600;
  color: var(--color-blue);
}

.hero__topics {
  display: grid;
  gap: 8px;
  margin-bottom: 36px;
  font-size: var(--text-base);
}

.hero__topics li {
  position: relative;
  padding-left: 24px;
}

.hero__topics li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 10px;
  height: 2px;
  background: var(--color-blue);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}

.hero__photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
}

/* ---------- Знакомство ---------- */

.intro {
  padding-bottom: 0;
}

.intro__text {
  display: grid;
  gap: 16px;
  max-width: 860px;
  padding-left: clamp(20px, 3vw, 40px);
  border-left: 2px solid var(--color-blue);
}

.intro__lead {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-navy);
}

/* ---------- С чем работаю ---------- */

.topics {
  display: grid;
  gap: 48px;
}

.topic__image {
  width: 100%;
  aspect-ratio: 6 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 24px;
}

.topic__title {
  font-size: var(--text-h3);
  margin-bottom: 14px;
}

.topic__list {
  display: grid;
  gap: 8px;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.topic__list li {
  position: relative;
  padding-left: 18px;
}

.topic__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-blue);
}

/* ---------- Обо мне ---------- */

.about__inner {
  display: grid;
  gap: 32px;
}

.about__title {
  font-size: var(--text-h2);
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 24px;
}

.about__facts {
  display: grid;
  gap: 14px;
  font-size: var(--text-lg);
}

.about__facts li {
  position: relative;
  padding-left: 24px;
}

.about__facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 10px;
  height: 2px;
  background: var(--color-blue);
}

/* Ссылки на сканы документов об образовании */
.about__doc-link {
  color: var(--color-blue);
  text-underline-offset: 3px;
}

.about__doc-link:hover {
  color: var(--color-blue-dark);
}

.about__photo img {
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius);
}

.about__text {
  display: grid;
  gap: 18px;
  padding-top: 32px;
  border-top: 1px solid var(--color-text-muted);
}

/* ---------- Принципы ---------- */

.principles {
  display: grid;
  gap: 32px;
}

.principle__title {
  font-size: var(--text-h3);
  margin-bottom: 10px;
}

.principle p {
  color: var(--color-text-muted);
}

/* ---------- Как начать ---------- */

.steps {
  display: grid;
  gap: 20px;
  counter-reset: step;
}

.step {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--color-white);
  counter-increment: step;
}

.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 16px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-blue);
}

.step__title {
  font-size: var(--text-h3);
  margin-bottom: 10px;
}

.step p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

/* ---------- Стоимость ---------- */

.prices {
  display: grid;
  gap: 20px;
}

.price-card {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius);
  background: var(--color-blue-light);
}

.price-card__title {
  font-size: var(--text-h3);
  margin-bottom: 12px;
}

.price-card__text {
  color: var(--color-text-muted);
  margin-bottom: 28px;
}

.price-card__price {
  margin-top: auto;
  margin-bottom: 24px;
  font-size: clamp(2rem, 1.6rem + 1.5vw, 2.75rem);
  font-weight: 700;
  color: var(--color-navy);
}

/* ---------- Частые вопросы ---------- */

.faq {
  border-top: 1px solid var(--color-line);
}

.faq__item {
  border-bottom: 1px solid var(--color-line);
}

.faq__item summary {
  position: relative;
  padding: 22px 48px 22px 0;
  font-size: var(--text-lg);
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

/* Плюс, который превращается в крестик при раскрытии */
.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.75rem;
  font-weight: 300;
  color: var(--color-blue);
  transition: transform var(--transition);
}

.faq__item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq__item p {
  padding-bottom: 24px;
  color: var(--color-text-muted);
}

/* ---------- Запись ---------- */

.booking {
  display: grid;
  gap: 32px;
}

.booking__intro p {
  max-width: 440px;
  font-size: var(--text-lg);
  color: var(--color-text-muted);
}

.form {
  display: grid;
  gap: 20px;
  padding: clamp(24px, 4vw, 44px);
  border-radius: var(--radius);
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
}

.field {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.field__label {
  padding: 0;
  font-size: var(--text-sm);
  font-weight: 500;
}

.field__optional {
  font-weight: 400;
  color: var(--color-text-muted);
}

.field__input {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid var(--color-line);
  border-radius: 12px;
  background: var(--color-white);
  color: var(--color-text);
  font: inherit;
  transition: border-color var(--transition);
}

textarea.field__input {
  resize: vertical;
}

.field__input:focus {
  outline: none;
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(49, 91, 166, 0.15);
}

.field__input[aria-invalid="true"] {
  border-color: var(--color-error);
}

.field__error {
  min-height: 0;
  font-size: 0.8125rem;
  color: var(--color-error);
}

.field__error:empty {
  display: none;
}

/* Переключатель «Онлайн / Очно» */
.choice-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 8px 12px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-pill);
  text-align: center;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.choice input:checked + span {
  border-color: var(--color-blue);
  background: var(--color-blue);
  color: var(--color-white);
}

.choice input:focus-visible + span {
  outline: 3px solid var(--color-blue);
  outline-offset: 2px;
}

.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  cursor: pointer;
}

.consent input {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--color-blue);
}

.form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form__submit {
  width: 100%;
}

.form__status:empty {
  display: none;
}

.form__status--success { color: var(--color-success); font-weight: 500; }
.form__status--error   { color: var(--color-error); }

/* ---------- Всплывающее окно записи ---------- */

.modal {
  width: min(100% - 2 * var(--gutter), 560px);
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--color-cream);
  color: var(--color-text);
  box-shadow: 0 24px 64px rgba(16, 42, 122, 0.25);
}

/* Пока окно открыто, страница под ним не прокручивается */
body:has(.modal[open]) {
  overflow: hidden;
}

.modal::backdrop {
  background: rgba(16, 42, 122, 0.45);
}

.modal[open] {
  animation: modal-in 0.2s ease;
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(12px); }
}

.modal__box {
  position: relative;
  padding: clamp(24px, 5vw, 40px) clamp(16px, 4vw, 32px) clamp(16px, 4vw, 32px);
}

.modal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--color-text-muted);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.modal__close:hover {
  color: var(--color-text);
}

/* Заголовок получает фокус при открытии окна (чтобы не всплывала клавиатура на телефоне) */
.modal__title {
  outline: none;
  font-size: clamp(1.5rem, 1.3rem + 1vw, 2rem);
  margin-bottom: 8px;
  padding-right: 40px;
}

.modal__text {
  margin-bottom: 24px;
  color: var(--color-text-muted);
}

/* ---------- Контакты ---------- */

.contacts {
  padding-bottom: 0;
  overflow: hidden;
}

/* Кремовая полоса внизу блока, на которую «опирается» фотография */
.contacts__band {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 30%;
  background: var(--color-cream);
}

.contacts__inner {
  position: relative;
  display: grid;
  gap: 40px;
}

.contacts__info .section__title {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem);
  margin-bottom: 32px;
}

.contacts__list {
  display: grid;
  gap: 14px;
  margin-top: 40px;
  font-size: var(--text-lg);
}

.contacts__list a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), color var(--transition);
  overflow-wrap: anywhere;
}

.contacts__list a:hover {
  color: var(--color-blue);
  border-color: currentColor;
}

.contacts__photo img {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius) var(--radius) 0 0;
}

/* ---------- Подвал ---------- */

.footer {
  padding: 28px 0 96px; /* снизу место под плавающую кнопку на мобильных */
  background: var(--color-navy);
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--text-sm);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
}

.footer a:hover {
  color: var(--color-white);
}

/* ---------- Плавающая кнопка записи (только мобильные) ---------- */

.floating-cta {
  position: fixed;
  left: var(--gutter);
  right: var(--gutter);
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 40;
  box-shadow: 0 8px 24px rgba(16, 42, 122, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}

.floating-cta--visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}


/* 5. Адаптив
   ========================================================================== */

/* Крупные телефоны и маленькие планшеты */
@media (min-width: 600px) {
  :root {
    --gutter: 24px;
  }

  .topics {
    grid-template-columns: repeat(2, 1fr);
    gap: 56px 32px;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .prices {
    grid-template-columns: repeat(2, 1fr);
  }

  .section__cta {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 32px;
  }
}

/* Планшеты */
@media (min-width: 768px) {
  .hero__inner {
    display: grid;
    grid-template-columns: 0.85fr 1fr; /* фото | текст */
    align-items: center;
    gap: 48px;
  }

  .hero__content {
    display: block;
  }

  .hero__photo {
    order: -1; /* в макете фото слева */
    margin-bottom: 0;
  }

  .principles {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }

  .booking {
    grid-template-columns: 1fr 1.2fr;
    align-items: start;
    gap: 48px;
  }

  .booking__intro {
    position: sticky;
    top: calc(var(--header-height) + 32px);
  }

  /* Контакты: текст слева, вертикальное фото справа, внизу блока.
     Кремовая полоса фиксированной высоты, а текст заканчивается выше неё,
     чтобы граница цвета не проходила по тексту. */
  .contacts {
    --band-height: 140px;
  }

  .contacts__inner {
    grid-template-columns: 1fr minmax(0, 420px);
    align-items: end;
    gap: 64px;
  }

  .contacts__info {
    padding-bottom: calc(var(--band-height) + 48px);
  }

  .contacts__photo img {
    aspect-ratio: 2 / 3;
  }

  .contacts__band {
    height: var(--band-height);
  }

  /* Обо мне: белый верх и голубой низ, как в макете.
     Голубая подложка привязана к списку методов, поэтому граница цвета
     всегда проходит сразу под заголовком, при любой ширине экрана. */
  .about {
    background: var(--color-white);
    overflow: hidden;
  }

  .about__inner {
    position: relative;
    isolation: isolate;
    grid-template-columns: 1fr 0.7fr;
    gap: 48px 56px;
  }

  .about__content {
    align-self: start;
    padding-top: clamp(48px, 9vw, 160px);
  }

  .about__facts {
    position: relative;
  }

  .about__facts::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -14px;
    left: -100vw;
    right: -100vw;
    height: 3000px;
    background: var(--color-blue-light);
  }

  .about__photo {
    justify-self: end;
  }

  .about__text {
    grid-column: 1 / -1;
    max-width: 920px;
  }
}

/* Ноутбуки и десктоп: обычное меню вместо бургера, без плавающей кнопки */
@media (min-width: 1024px) {
  :root {
    --header-height: 80px;
  }

  .burger,
  .floating-cta,
  .nav-overlay,
  .nav__social {
    display: none;
  }

  .nav {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 32px;
    width: auto;
    padding: 0;
    overflow: visible;
    background: none;
    box-shadow: none;
    visibility: visible;
    transform: none;
    transition: none;
  }

  .nav__link {
    padding: 4px 0;
    font-size: 1rem;
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition);
  }

  .nav__link:hover {
    border-color: currentColor;
  }

  .nav__cta {
    margin-top: 0;
  }

  .footer {
    padding-bottom: 28px;
  }

  .hero {
    padding-top: 48px;
  }

  .hero__inner {
    grid-template-columns: 1fr 1.15fr;
    gap: 72px;
  }

  .topics {
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
  }

  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}


/* 6. Служебные страницы (политика, 404)
   ========================================================================== */

.legal h2 {
  margin: 36px 0 12px;
  font-size: var(--text-h3);
}

.legal p,
.legal ul {
  margin-bottom: 12px;
}

.legal ul {
  padding-left: 20px;
  list-style: disc;
}

.legal .button {
  margin-top: 32px;
}

.not-found {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.not-found p + p {
  margin-top: 32px;
}
