/* ==========================================================================
   ЕдаСобак — общие стили
   Палитра, типографика и сетка — по разделу 6 ТЗ.
   ========================================================================== */

:root {
  /* Палитра */
  --bg: #FDF8F1;
  --bg-warm: #F4EADC;
  --surface: #FFFFFF;
  --accent: #D9722F;
  --ink: #2F4F43;
  --text: #33302C;
  --muted: #6E675E;
  --line: #E5DACA;

  /* Производные оттенки того же акцентного тона (второй яркий цвет не вводим).
     Решение клиента: фирменный #D9722F виден в основных кнопках, поэтому
     текст на акценте — тёмный, а не белый.

     Контраст (WCAG 2.1, порог 4.5:1 для текста):
       --on-accent        #2B1D12 на --accent        #D9722F — 4.97:1  ✓
       белый              #FFFFFF на --accent        #D9722F — 3.28:1  ✗ не используем
       --on-accent-strong #0A0603 на --accent-hover  #C86523 — 5.13:1  ✓
       --on-accent-strong #0A0603 на --accent-active #BF5E1F — 4.65:1  ✓
       --accent-ink       #9A4A18 на --bg            #FDF8F1 — 5.90:1  ✓ (текстовые ссылки)
       --accent-ink       #9A4A18 на --bg-warm       #F4EADC — 5.24:1  ✓
       белый              #FFFFFF на --accent-dark   #B85B20 — 4.61:1  ✓ (резерв под белый текст)
     Заливка при hover/active темнеет — текст темнеет вместе с ней, чтобы порог
     4.5:1 сохранялся. Сам --accent без текста поверх (бейджи, иконки,
     подчёркивания, рамки) даёт 3.11:1 к --bg — достаточно для нетекстового
     декора (порог 3:1). */
  --accent-hover: #C86523;
  --accent-active: #BF5E1F;
  --accent-ink: #9A4A18;
  --accent-dark: #B85B20;
  --accent-deeper: #8A4115;
  --accent-soft: #FBE9DC;
  --on-accent: #2B1D12;
  --on-accent-strong: #0A0603;

  /* Формы и пространство */
  --radius-card: 18px;
  --radius-btn: 13px;
  --radius-pill: 999px;
  --shadow: 0 2px 12px rgba(47, 79, 67, .06);
  --shadow-hover: 0 6px 20px rgba(47, 79, 67, .10);
  --container: 1160px;
  --gutter: 24px;

  /* Шрифты */
  --font-head: "Nunito", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --transition: 170ms ease;
}

/* -------------------------------------------------------------------------
   База
   ------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  /* Чтобы якорные секции каталога не уезжали под липкую шапку */
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 .5em;
  font-weight: 700;
}

h1 { font-size: clamp(30px, 5vw, 48px); letter-spacing: -.01em; }
h2 { font-size: clamp(24px, 3.4vw, 32px); }
h3 { font-size: 21px; font-weight: 600; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent-ink); }

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

ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
li { margin-bottom: .4em; }

/* Ограничение длины строки — не более ~70 знаков */
.lede,
.prose p,
.text-measure {
  max-width: 62ch;
}

.small { font-size: 14px; }
.muted { color: var(--muted); }

/* Видимый фокус для всех интерактивных элементов.
   Обводка лежит на фоне родителя (outline-offset), поэтому цвет зависит
   от подложки: --accent-ink на светлом (5.9:1 к --bg), белый — на тёмном
   (9.05:1 к --ink). */
:focus-visible {
  outline: 3px solid var(--accent-ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.cta-bar :focus-visible,
.site-footer :focus-visible {
  outline-color: #fff;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 var(--radius-btn) 0;
  text-decoration: none;
}
.skip-link:focus {
  left: 0;
}

/* -------------------------------------------------------------------------
   Контейнер и секции
   ------------------------------------------------------------------------- */

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

.section {
  padding: 84px 0;
}

.section--warm { background: var(--bg-warm); }
.section--surface { background: var(--surface); }
.section--tight { padding: 56px 0; }

.section-head {
  margin-bottom: 36px;
}

.section-head h2 { margin-bottom: .35em; }

/* Акцентное подчёркивание заголовка секции — декор без текста поверх */
.section-head h2::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  margin-top: 14px;
  border-radius: 2px;
  background: var(--accent);
}

.lede {
  font-size: 18px;
  color: var(--muted);
  margin: 0;
}

.page-head {
  padding: 56px 0 8px;
}

/* -------------------------------------------------------------------------
   Шапка и навигация
   ------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 248, 241, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 21px;
  color: var(--ink);
  text-decoration: none;
  padding: 8px 0;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--on-accent);
  display: grid;
  place-items: center;
  font-size: 17px;
  flex: 0 0 auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list li { margin: 0; }

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: var(--radius-btn);
  color: var(--text);
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--transition), background-color var(--transition);
}

.nav-link:hover {
  color: var(--accent-ink);
  background: var(--bg-warm);
}

/* Активный пункт подчёркнут акцентом — декор без текста поверх */
.nav-link.is-active {
  color: var(--accent-ink);
  font-weight: 600;
  background: var(--bg-warm);
  box-shadow: inset 0 -3px 0 var(--accent);
}

/* Акцентный пункт «Запросить цену» */
.nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  margin-left: 6px;
  border-radius: var(--radius-btn);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--transition), color var(--transition),
              transform var(--transition);
}

.nav-cta:hover,
.nav-cta.is-active {
  background: var(--accent-hover);
  color: var(--on-accent-strong);
}

.nav-cta:active { background: var(--accent-active); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  min-width: 44px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  cursor: pointer;
  transition: background-color var(--transition);
}

.nav-toggle:hover { background: var(--bg-warm); }

.nav-toggle-bars {
  position: relative;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

/* -------------------------------------------------------------------------
   Кнопки и ссылки-действия
   ------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 13px 24px;
  border: 2px solid transparent;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--transition), border-color var(--transition),
              color var(--transition), transform var(--transition);
}

/* Основная кнопка — фирменный оранжевый --accent с тёмным текстом (4.97:1).
   Белый текст на --accent не используем: 3.28:1. */
.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--on-accent-strong);
}

.btn--primary:active {
  background: var(--accent-active);
  border-color: var(--accent-active);
  color: var(--on-accent-strong);
}

/* Второстепенная — рамка акцентом, текст тёмным оттенком акцента */
.btn--secondary {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent-ink);
}

.btn--secondary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.btn--secondary:active {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--on-accent-strong);
}

/* Кнопка в CTA-полосе на тёмном фоне — та же акцентная заливка.
   Сам #D9722F к --ink даёт 2.76:1 — чуть ниже порога 3:1 для границы
   элемента управления, поэтому добавлен светлый контур-волосок (3.2:1). */
.btn--on-dark {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 0 0 1px rgba(253, 248, 241, .48);
}

.btn--on-dark:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--on-accent-strong);
}

.btn--on-dark:active {
  background: var(--accent-active);
  border-color: var(--accent-active);
  color: var(--on-accent-strong);
}

.btn--large {
  min-height: 56px;
  padding: 16px 34px;
  font-size: 18px;
}

.btn--block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* Текстовая ссылка-действие («Запросить цену») */
.link-action {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent-ink);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.link-action:hover {
  color: var(--accent-deeper);
  border-bottom-color: currentColor;
}

.link-more {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 6px;
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
  transition: gap var(--transition), color var(--transition);
}

.link-more:hover {
  color: var(--accent-deeper);
  gap: 11px;
  text-decoration: underline;
}

/* -------------------------------------------------------------------------
   Сетки
   ------------------------------------------------------------------------- */

.grid {
  display: grid;
  gap: 24px;
}

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

/* -------------------------------------------------------------------------
   Карточка товара (раздел 4.1 ТЗ)
   ------------------------------------------------------------------------- */

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.card-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--bg-warm);
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 18px 20px 20px;
}

.badge {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.card-desc {
  margin: 0 0 14px;
  font-size: 15px;
  color: var(--muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.tags li { margin: 0; }

.tag {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--bg);
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

/* Прижимает действия к нижней границе — кнопки выровнены в ряд карточек */
.card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 4px;
}

.card-actions .btn {
  min-height: 44px;
  padding: 11px 20px;
  font-size: 15px;
}

/* -------------------------------------------------------------------------
   УТП / принципы / шаги
   ------------------------------------------------------------------------- */

.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 26px 24px;
  box-shadow: var(--shadow);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 13px;
  border: 1px solid var(--accent);
  background: var(--accent-soft);
  font-size: 22px;
  line-height: 1;
}

.feature h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

.feature p {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
}

.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 26px 24px;
}

.step-num {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
}

.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--muted); margin: 0; }

/* -------------------------------------------------------------------------
   Герой
   ------------------------------------------------------------------------- */

.hero {
  padding: 64px 0 76px;
  background: var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero h1 { margin-bottom: .45em; }

.hero-sub {
  font-size: 19px;
  color: var(--muted);
  max-width: 54ch;
  margin-bottom: 30px;
}

.hero-media {
  width: 100%;
  aspect-ratio: 8 / 5;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.hero-note {
  margin-top: 26px;
  font-size: 14px;
  color: var(--muted);
}

/* Компактный герой внутренних страниц */
.hero--compact { padding: 48px 0 56px; }

/* -------------------------------------------------------------------------
   Медиа-блок «фото + текст»
   ------------------------------------------------------------------------- */

.media-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.media-block--reverse .media-block-text { order: -1; }

.media-block img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

/* -------------------------------------------------------------------------
   CTA-полоса
   ------------------------------------------------------------------------- */

.cta-bar {
  background: var(--ink);
  color: #fff;
  padding: 52px 0;
}

.cta-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-bar h2 {
  color: #fff;
  margin: 0 0 8px;
  font-size: clamp(22px, 2.6vw, 28px);
}

.cta-bar p {
  margin: 0;
  color: rgba(255, 255, 255, .85);
  max-width: 58ch;
}

.cta-bar .link-action {
  color: #fff;
}

.cta-bar .link-action:hover {
  color: #fff;
  border-bottom-color: #fff;
}

/* -------------------------------------------------------------------------
   Подсказка / выделенный блок
   ------------------------------------------------------------------------- */

.callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 34px 32px;
  box-shadow: var(--shadow);
}

.callout--center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.callout--center .lede { margin-left: auto; margin-right: auto; }
.callout .btn-row { margin-top: 20px; justify-content: center; }

/* -------------------------------------------------------------------------
   Якорная навигация каталога
   ------------------------------------------------------------------------- */

.anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.anchor-nav li { margin: 0; }

.anchor-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color var(--transition), border-color var(--transition), color var(--transition);
}

.anchor-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.anchor-link:active {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--on-accent-strong);
}

/* -------------------------------------------------------------------------
   Квиз-заглушка (ration.html) — только визуальная, без интерактива
   ------------------------------------------------------------------------- */

.quiz {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 34px 32px;
  box-shadow: var(--shadow);
}

.quiz-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}

.quiz-head h2 { margin: 0; }

.quiz > p { max-width: 62ch; }

.badge-soon {
  display: inline-block;
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.quiz-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 28px;
}

.quiz-step {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 18px;
}

.quiz-step-num {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.quiz-step h3 {
  font-size: 17px;
  margin-bottom: 14px;
}

/* Некликабельные текстовые плашки-варианты */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pills li { margin: 0; }

.pill {
  display: inline-block;
  padding: 6px 13px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
}

.quiz-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.quiz-footer p { margin: 0; color: var(--muted); font-size: 15px; }

/* -------------------------------------------------------------------------
   FAQ
   ------------------------------------------------------------------------- */

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 4px 22px;
  margin-bottom: 14px;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  padding: 10px 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

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

.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 22px;
  color: var(--accent-ink);
  transition: transform var(--transition);
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 16px;
  max-width: 68ch;
}

/* -------------------------------------------------------------------------
   Контакты и информационные карточки
   ------------------------------------------------------------------------- */

.info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 26px 24px;
  box-shadow: var(--shadow);
}

.info-card h3 {
  font-size: 17px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 10px;
}

.info-value {
  font-family: var(--font-head);
  font-size: 21px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  transition: color var(--transition);
}

a.info-value:hover { color: var(--accent-ink); }

.info-note {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 14px;
  max-width: 64ch;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: .6em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.detail-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.detail-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  margin: 0;
}

.detail-list li:last-child { border-bottom: 0; }

.detail-list dt,
.detail-term {
  flex: 0 0 190px;
  font-weight: 600;
  color: var(--ink);
}

.detail-desc {
  flex: 1 1 320px;
  max-width: 62ch;
  color: var(--muted);
  margin: 0;
}

.disclaimer {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 18px;
  color: var(--muted);
  max-width: 64ch;
}

/* -------------------------------------------------------------------------
   Футер
   ------------------------------------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, .82);
  padding: 56px 0 28px;
  font-size: 15px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}

.site-footer h3 {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.site-footer .logo {
  color: #fff;
  margin-bottom: 14px;
}

.site-footer p { color: rgba(255, 255, 255, .78); max-width: 42ch; }

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-list li { margin: 0; }

.footer-list a,
.footer-contact a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: rgba(255, 255, 255, .82);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-list a:hover,
.footer-contact a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { margin: 0; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .16);
  font-size: 14px;
  color: rgba(255, 255, 255, .65);
}

/* -------------------------------------------------------------------------
   Адаптив: 1160 / 1060 / 900 / 600
   ------------------------------------------------------------------------- */

@media (max-width: 1160px) {
  .section { padding: 72px 0; }
  .hero-grid { gap: 36px; }
  .media-block { gap: 36px; }
}

/* Бургер включается с 1060px: строка «логотип + 6 пунктов + CTA» требует
   ~1015px по ширине окна, поэтому при 981–1039px кнопка «Запросить цену»
   вылезала за правый край. Запас ~45px взят на разброс рендеринга шрифта. */
@media (max-width: 1060px) {
  /* Мобильное меню: вертикальный список, раскрывается кнопкой */
  .nav-toggle { display: inline-flex; }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    padding: 12px var(--gutter) 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open { display: block; }

  .header-inner { position: relative; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav-link,
  .nav-cta {
    width: 100%;
    justify-content: flex-start;
    margin-left: 0;
  }

  .nav-cta { margin-top: 8px; justify-content: center; }
}

@media (max-width: 900px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .quiz-steps { grid-template-columns: repeat(2, 1fr); }

  .hero-grid,
  .media-block {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .media-block--reverse .media-block-text { order: 0; }

  .hero { padding: 44px 0 56px; }
  .section { padding: 60px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }

  .section,
  .section--tight { padding: 50px 0; }

  .hero { padding: 36px 0 48px; }

  .grid--4,
  .grid--3,
  .grid--2,
  .quiz-steps {
    grid-template-columns: 1fr;
  }

  .grid { gap: 18px; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }

  .callout,
  .quiz { padding: 26px 20px; }

  .btn { width: 100%; }
  .btn-row { gap: 10px; }
  .card-actions { flex-direction: column-reverse; align-items: stretch; }
  .card-actions .btn { width: 100%; }
  .card-actions .link-action { justify-content: center; }
  .cta-bar .btn-row { width: 100%; }
  .detail-list dt, .detail-term { flex: 1 1 100%; }
  .hero-sub { font-size: 17px; }
}

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