/* Юрист в кармане — лендинг.
   Палитра: графит + золото. Графит = серьёзность и суд, золото = весы правосудия
   (та же пара, что на аватаре бота). Структура классов общая с сайтом медбота,
   чтобы правки вёрстки переносились между проектами без переучивания. */
:root {
  /* ЕДИНСТВЕННАЯ тема — тёмная (решение владельца 18.08.2026).
     Цвета сняты пипеткой с логотипа: #03131f — поле внутри обода,
     #dfaf64 — обод, #efe9df — текст «ЮРИСТ». Фон страницы чуть светлее
     поля логотипа, иначе круг сливался бы с фоном.
     color-scheme говорит браузеру красить полосы прокрутки и поля ввода
     по-тёмному — без него они остаются белыми. */
  color-scheme: dark;

    --ink: #dfe4ec;
    --ink-dark: #eef1f6;
    --ink-light: #1a2433;
    --ink-soft: #131c28;
    --gold: #dfaf64;
    --gold-dark: #e7bd7c;
    --gold-light: #2a2114;
    --gold-soft: #1b1710;
    --green: #6fb893;
    --orange: #e0a855;
    --red: #e0697a;
    --text: #e4e7ec;
    --text-soft: #a2abb9;
    --gray: #8d95a3;
    --border: #22303f;
    --bg: #0b1725;
    --bg-soft: #0f1d2d;
    --header-bg: rgba(11, 23, 37, 0.88);
    --surface: #132234;
    --ok-bg: rgba(111, 184, 147, 0.16);
    --warn-bg: rgba(224, 168, 85, 0.16);
    --bad-bg: rgba(224, 105, 122, 0.16);
    --note-bg: #1c1a12;
    --note-border: #3a3018;
    --note-text: #d8bd85;
    --ghost-hover: #1a2735;
    --footer-bg: #060f19;
    --footer-text: #93a0b1;
    --max-outline-border: #3a2a5c;
    --max-outline-text: #c9a7ff;
    --max-outline-hover: #1e1533;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.55);

  /* Заливки. Держим ОТДЕЛЬНО от --ink: те работают цветом текста и в тёмной
     теме светлые, а заливке кнопки нужен тёмный фон. Раньше это была одна
     переменная — кнопка Telegram выходила белым по светлому, контраст 1.28. */
  --fill-1: #dfaf64;
  --fill-2: #c8923f;
  --fill-text: #0b1725;
  --panel-1: #0d1b2b;
  --panel-2: #16293d;

  --radius: 16px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  border-radius: 999px;
  padding: 14px 28px;
  font-size: 16px;
  transition: all .2s ease;
  white-space: nowrap;
}
.btn--sm { padding: 10px 20px; font-size: 14px; }
.btn--lg { padding: 17px 34px; font-size: 17px; }

.btn--primary {
  /* Синий Telegram, как у кнопки MAX — фиолетовый MAX. Каждый мессенджер
     в своём фирменном цвете: человек понимает, куда ведёт кнопка, ещё до
     того как прочитал надпись. Раньше кнопка была золотой и про Telegram
     не говорила ничего. */
  background: linear-gradient(135deg, #2aabee, #229ed9);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(30, 42, 58, 0.34); }

.btn--ghost {
  background: var(--ink-light);
  color: var(--ink-dark);
}
.btn--ghost:hover { background: var(--ghost-hover); }

.btn--outline {
  border: 2px solid var(--ink-light);
  color: var(--ink-dark);
  width: 100%;
}
.btn--outline:hover { border-color: var(--gold); background: var(--gold-soft); }

.btn--white {
  background: #fff;
  color: var(--fill-text);
}
.btn--white:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0,0,0,0.18); }

/* MAX — фирменный фиолетовый, чтобы кнопка отличалась от телеграмной */
.btn--max {
  background: linear-gradient(135deg, #8b3ffb, #b24bff);
  color: #fff;
  /* Цветного ореола нет намеренно: холодный фиолетовый светился на тёплой
     кремово-бронзовой палитре и читался как второй акцент. Заливка остаётся —
     это бренд мессенджера, а тень стала нейтральной, как у остальных кнопок. */
  box-shadow: 0 10px 24px rgba(30, 42, 58, 0.18);
}
.btn--max:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(30, 42, 58, 0.26); }


.btn--max-outline {
  border: 2px solid var(--max-outline-border);
  color: var(--max-outline-text);
  width: 100%;
}
.btn--max-outline:hover { border-color: #8b3ffb; background: var(--max-outline-hover); }

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 20px;
}
.logo {
  font-weight: 800;
  font-size: 19px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-dark);
}
.nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
  margin-right: 20px;
}
.nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-soft);
  transition: color .2s;
}
.nav a:hover { color: var(--gold-dark); }
.header__cta { flex-shrink: 0; }

/* Переключатель языков. Шесть кодов — держим компактно, на узких экранах
   переносим в отдельную строку под шапкой, чтобы не давить меню и кнопки. */
.lang-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
}
.lang-switch a {
  padding: 6px 9px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .3px;
  color: var(--text-soft);
  transition: all .2s;
}
/* Цвет текста берём от фона страницы, а не белым: в тёмной теме --ink
   становится светлым, и белые буквы на нём пропадали бы. */
.lang-switch a.active { background: var(--ink); color: var(--bg); }
.lang-switch a:not(.active):hover { color: var(--gold-dark); background: var(--gold-soft); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 26px;
}
.burger span {
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .2s;
}

/* ===== Hero ===== */
.hero {
  padding: 72px 0 96px;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(180, 136, 75, 0.10), transparent),
    var(--bg);
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.badge {
  display: inline-block;
  background: var(--gold-light);
  color: var(--gold-dark);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: var(--ink-dark);
}
.hero__lead {
  font-size: 18px;
  color: var(--text-soft);
  max-width: 540px;
  margin-bottom: 32px;
}
.hero__cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.hero__trust {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--text-soft);
  font-weight: 500;
}

/* ===== Карточка разбора в hero ===== */
.hero__visual {
  display: flex;
  justify-content: center;
  /* Прижимаем колонку к верхней линии: сетка выравнивает по центру, и знак
     оказывался на 121 px ниже заголовка — правая половина выглядела просевшей. */
  align-self: start;
}
.visual-stack {
  position: relative;
  width: 100%;
  max-width: 340px;
  margin: 36px auto 116px;   /* запас сверху/снизу под плавающие стикеры */
}

/* ===== Знак бренда в первом экране ===== */
/* Стикеров тут больше нет, поэтому огромный нижний запас от .visual-stack
   не нужен — иначе под логотипом повисает 116 пикселей пустоты. */
.visual-stack--logo {
  max-width: none;
  margin: 8px auto 20px;
}
/* <picture> сам по себе inline — без display:block он не центруется
   по auto-полям, и знак прижимается влево. */
.hero__logo-pic { display: block; }
.hero__logo {
  display: block;
  width: clamp(210px, 68%, 300px);
  height: auto;
  aspect-ratio: 1;
  margin: 34px auto 0;   /* чуть ниже верхней линии текста */
  /* тень по кругу, а не по квадрату картинки: у файла прозрачные углы */
  filter: drop-shadow(0 14px 34px rgba(30, 42, 58, 0.26));
}
.report-card {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 24px;
  width: 100%;
  border: 1px solid var(--border);
  transform: rotate(1.5deg);
}
.report-card__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 2px solid var(--gold-light);
  padding-bottom: 12px;
  margin-bottom: 12px;
}
.report-card__title { font-weight: 700; color: var(--ink-dark); font-size: 16px; }
.report-card__date { font-size: 12px; color: var(--gray); }
.report-card__row {
  display: grid;
  grid-template-columns: 1fr 0.85fr 0.85fr;
  align-items: center;
  gap: 6px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}
.report-card__row span { color: var(--text-soft); }
.report-card__row b { font-weight: 700; white-space: nowrap; font-size: 13px; }
.report-card__row em {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  text-align: center;
}
em.ok { background: var(--ok-bg); color: var(--green); }
em.warn { background: var(--warn-bg); color: var(--orange); }
em.bad { background: var(--bad-bg); color: var(--red); }
.report-card__footer {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--gray);
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}

/* мини-карточка документа под основной — «а ещё вы получите документ» */
.mini-doc-card {
  position: absolute;
  z-index: 2;
  bottom: -84px;
  right: 18px;
  width: 48%;
  background: var(--surface);
  border-radius: 14px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 12px 14px 14px;
  transform: rotate(5deg);
}
.mini-doc-card__head {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.floating-chip {
  position: absolute;
  z-index: 2;
  background: var(--surface);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-dark);
  border: 1px solid var(--border);
  line-height: 1.35;
}
.chip-1 { top: -54px; right: -8px; transform: rotate(-3deg); max-width: 62%; }
.chip-2 { bottom: -30px; left: -8px; transform: rotate(2deg); max-width: 46%; }

/* ===== Полоски «текста» на макетах документов ===== */
.paper-lines { display: flex; flex-direction: column; gap: 6px; }
.paper-lines i { display: block; height: 6px; border-radius: 3px; background: #e7ebf1; }
.paper-lines--mini { gap: 5px; }
.paper-lines--mini i { height: 4px; }

/* ===== Sections ===== */
.section { padding: 88px 0; }
.section--soft { background: var(--bg-soft); }
.section__title {
  text-align: center;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink-dark);
  margin-bottom: 12px;
}
.section__subtitle {
  text-align: center;
  color: var(--text-soft);
  font-size: 17px;
  margin-bottom: 56px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Steps ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  position: relative;
  transition: transform .2s, box-shadow .2s;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step__num {
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 13px;
  font-weight: 800;
  color: var(--gold-light);
  background: var(--ink-dark);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step__icon { font-size: 32px; margin-bottom: 16px; }
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--text-soft); }

/* ===== Grid / Cards ===== */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__icon {
  font-size: 30px;
  width: 56px;
  height: 56px;
  background: var(--gold-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card h3 { font-size: 18px; margin-bottom: 10px; }
.card p { font-size: 14.5px; color: var(--text-soft); }
.card--big { padding: 36px; }
.card--big p { font-size: 15.5px; }

/* Ситуации, с которых начинается разговор, — с золотой отбивкой слева */
.cases { margin-bottom: 56px; }
.card--case { border-left: 3px solid var(--gold); }

/* ===== Макеты документов ===== */
.doctypes-lead {
  text-align: center;
  color: var(--text-soft);
  font-size: 15px;
  margin-bottom: 24px;
}
.doc-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.doc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 24px 20px;
  transition: transform .2s, box-shadow .2s;
}
.doc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.doc-card__paper {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 22px;
  box-shadow: inset 0 0 0 1px var(--surface), 0 2px 10px rgba(30,42,58,0.05);
}
/* шапка судебного документа — прижата вправо, как в реальном возражении */
.doc-card__head-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  margin-bottom: 18px;
}
.doc-card__head-block i { display: block; height: 6px; border-radius: 3px; background: #eceff4; }
.doc-card__title {
  text-align: center;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--ink-dark);
  line-height: 1.5;
  margin-bottom: 16px;
}
.doc-card__title small {
  display: block;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .02em;
  color: var(--gray);
  text-transform: none;
}
.doc-card__label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-dark);
  margin: 14px 0 8px;
}
.doc-card__foot {
  font-size: 13.5px;
  color: var(--text-soft);
  padding-top: 14px;
  margin-top: 16px;
  border-top: 1px dashed var(--border);
}

.doctypes-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.doctype-chip {
  background: var(--gold-soft);
  color: var(--gold-dark);
  font-size: 14px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--gold-light);
}

/* ===== Pricing ===== */
.pricing {
  display: grid;
  /* minmax(0,…) обязателен: иначе колонка не может стать уже своего содержимого,
     и пять карточек выталкивают страницу в горизонтальный скролл */
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 40px;
  align-items: start;
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  position: relative;
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.price-card--featured {
  border: 2px solid var(--gold);
  box-shadow: var(--shadow-lg);
  transform: scale(1.04);
}
.price-card--featured:hover { transform: scale(1.04) translateY(-4px); }
.price-card__ribbon {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.price-card__name { font-weight: 600; color: var(--text-soft); font-size: 14px; margin-bottom: 10px; }
.price-card__price { font-size: 30px; font-weight: 800; color: var(--ink-dark); margin-bottom: 4px; }
.price-card__desc { font-size: 13px; color: var(--gray); margin-bottom: 10px; }
/* Сравнение с ценой юриста: тот же приём, что на экране тарифов в боте —
   человек должен видеть, от чего он отталкивается. */
.price-card__anchor {
  font-size: 12.5px;
  font-style: italic;
  color: var(--gold-dark);
  background: var(--gold-soft);
  border-radius: 10px;
  padding: 8px 10px;
  margin-bottom: 18px;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.price-card__btns { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
/* В узкой карточке подпись должна уметь перенестись, а не распирать колонку */
.price-card .btn {
  white-space: normal;
  padding-left: 14px;
  padding-right: 14px;
  font-size: 15px;
}

.payment-methods {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--text-soft);
}
.payment-methods span:first-child { font-weight: 600; color: var(--text); }
.pm {
  background: var(--ink-soft);
  padding: 8px 16px;
  border-radius: 999px;
}

/* ===== Disclaimer ===== */
.disclaimer { padding: 40px 0; }
.disclaimer__inner {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--note-bg);
  border: 1px solid var(--note-border);
  border-radius: var(--radius);
  padding: 24px 28px;
}
.disclaimer__icon { font-size: 22px; flex-shrink: 0; }
.disclaimer p { font-size: 14.5px; color: var(--note-text); }

/* ===== FAQ ===== */
.faq { max-width: 780px; margin: 0 auto; }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 4px;
  font-size: 16.5px;
  font-weight: 600;
  text-align: left;
  color: var(--text);
}
.faq__icon {
  font-size: 22px;
  color: var(--gold);
  transition: transform .25s;
  flex-shrink: 0;
  margin-left: 16px;
}
.faq__item.open .faq__icon { transform: rotate(45deg); }
.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.faq__a p { padding: 0 4px 22px; color: var(--text-soft); font-size: 15px; max-width: 680px; }
.faq__item.open .faq__a { max-height: 320px; }

/* ===== Final CTA ===== */
.final-cta {
  background: linear-gradient(135deg, var(--panel-1), var(--panel-2));
  padding: 80px 0;
  color: #fff;
  position: relative;
  overflow: hidden;
}
/* золотая полоса сверху — аккуратный акцент, как кант на документе */
.final-cta::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.final-cta__inner { text-align: center; }
.final-cta h2 { font-size: 32px; font-weight: 800; margin-bottom: 14px; }
.final-cta p { font-size: 17px; opacity: .9; margin-bottom: 32px; }
.final-cta .btn { margin: 0 6px 10px; }

/* ===== Footer ===== */
.footer { background: var(--footer-bg); color: var(--footer-text); padding: 56px 0 32px; }
.footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.logo--footer { color: #fff; margin-bottom: 10px; }
.footer__brand p { font-size: 14px; max-width: 280px; }
.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__links a { font-size: 14.5px; transition: color .2s; }
.footer__links a:hover { color: #fff; }
.footer__legal { font-size: 13px; opacity: .8; }
.footer__legal p { margin-bottom: 6px; }

/* ===== Responsive ===== */
@media (max-width: 1180px) {
  .nav { gap: 16px; margin-right: 14px; }
  .nav a { font-size: 14px; }
  .lang-switch a { padding: 6px 7px; font-size: 12px; }
}

@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { order: -1; margin-bottom: 12px; }
  /* Телефон — основной экран. Колонка со знаком уезжает НАД заголовком,
     поэтому знак держим скромным: иначе «Через минуту вы будете знать,
     что делать» и обе кнопки уходят за сгиб. */
  .visual-stack--logo { margin: 0 auto 14px; }
  .hero__logo { width: clamp(150px, 43vw, 190px); margin-top: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .doc-cards { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: repeat(3, 1fr); }
  .price-card--featured { transform: none; }
  .price-card--featured:hover { transform: translateY(-4px); }
  .footer__inner { grid-template-columns: 1fr; }
}

/* Меню уезжает в бургер уже на планшете. С шестью языками в шапке стоят рядом
   логотип, шесть пунктов меню, переключатель и две кнопки — в 800 px это не
   помещается и распирает страницу горизонтальной прокруткой. */
@media (max-width: 1000px) {
  .nav {
    position: absolute;   /* не fixed: высота шапки меняется, top:100% подстроится сам */
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    background: var(--surface);
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 20px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-130%);
    /* Одного z-index:-1 мало: фон шапки полупрозрачный, и закрытое меню
       просвечивало сквозь него — сверху торчал обрезанный пункт. */
    visibility: hidden;
    opacity: 0;
    transition: transform .25s ease, opacity .2s ease, visibility .25s;
    box-shadow: 0 12px 24px rgba(0,0,0,0.06);
    z-index: -1;          /* закрытое меню прячется ЗА шапку, а не поверх неё */
  }
  .nav--open { transform: translateY(0); visibility: visible; opacity: 1; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .nav a:last-child { border-bottom: none; }
  .burger { display: flex; }
  .burger--active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger--active span:nth-child(2) { opacity: 0; }
  .burger--active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  /* Кнопки ботов из шапки убираем — они есть в первом экране и в футере */
  .header__cta { display: none; }
}

@media (max-width: 560px) {
  /* Узкий экран: переключатель языков — отдельной строкой под логотипом */
  .header__inner { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 8px; gap: 12px; }
  /* Название бренда на разных языках разной длины: «Юрист в кармане» влезает
     рядом с бургером, а таджикское «Ҳуқуқшинос дар кисаи шумо» — 323 px из
     327 доступных, и бургер переносился на свою строку. Даём логотипу
     сжиматься и обрезаться многоточием, бургеру — не сжиматься никогда. */
  .logo { font-size: 16px; min-width: 0; flex: 1 1 auto; gap: 6px; }
  .logo span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .burger { flex: 0 0 auto; }
  .lang-switch { order: 3; width: 100%; justify-content: center; border: none; gap: 2px; }
  /* Цель для пальца: было 33×33 при норме 44 — по TJ вообще 31 px.
     Поднимаем высоту и кегль, ширину держим гибкой, чтобы шесть кодов
     по-прежнему помещались в строку. Правка только для телефона. */
  .lang-switch a {
    border: 1px solid var(--border);
    border-radius: 999px;
    min-width: 46px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13.5px;
    padding: 0 6px;
  }
}

@media (max-width: 720px) {
  .hero h1 { font-size: 31px; }
  .hero__lead { font-size: 16px; }
  .section { padding: 60px 0; }
  .section__title { font-size: 27px; }
  .steps { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: 1fr; }
  .grid--2 { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; }
  .price-card__anchor { min-height: 0; }
  .visual-stack { max-width: 300px; margin: 40px auto 106px; }
  /* Запас 40/106 px оставлен для стопки со стикерами. Со знаком стикеров нет,
     и этот запас превращался в 174 px пустоты между логотипом и заголовком
     (замерено на 375×812). Правило обязано стоять ПОСЛЕ .visual-stack — оно
     той же силы, и решает порядок в файле. */
  .visual-stack--logo { max-width: none; margin: 0 auto 8px; }

  /* ===== Первый экран на телефоне ===== */
  /* Телефон — основной экран, а до правки кнопки уезжали за сгиб: при окне
     812 px ряд кнопок начинался на 752-й. Замеры показали, куда уходит место —
     зазор сетки 56 px, верхний отступ героя 72 px и сам знак. Ужимаем всё
     трое, чтобы заголовок и обе кнопки помещались без прокрутки. */
  .hero { padding-top: 18px; padding-bottom: 48px; }
  /* Кнопки на телефоне компактнее: освобождаем место под крупный знак,
     не выталкивая ряд кнопок за сгиб. Высота падает с 61 до ~52 px. */
  .hero__cta .btn--lg { padding: 13px 24px; font-size: 15.5px; }
  .hero__cta { gap: 10px; margin-bottom: 18px; }
  .hero__inner { gap: 10px; }
  .hero__visual { margin-bottom: 4px; }
  .hero__logo { width: clamp(150px, 43vw, 190px); margin-top: 0; }
  .hero__lead { margin-bottom: 14px; }
  .badge { margin-bottom: 12px; }
  .hero h1 { margin-bottom: 12px; }

  .chip-1 { top: -46px; font-size: 12px; padding: 8px 12px; max-width: 64%; }
  .chip-2 { bottom: -26px; font-size: 12px; padding: 8px 12px; max-width: 48%; }
  .mini-doc-card { bottom: -74px; right: 8px; }
}
