/* ============================================================
   sait-dlya-svadebnogo-agentstva-n4a — пересборка v3 (ревью Савы 04.11).
   Эталон: olivia-julian (svadebnye/) — фон #FFF, текст #000/#0E0E0E,
   тёплый #EFEFEC, акцент #D8C6AC (sand), контейнер 1080 (снятый max-width
   профиля), радиусы 6/10/50%, кнопка radius 0 pad 18/28, gap 24,
   тень §8 профиля дословно.

   4 источника: паспорт → блоки/фактура; профиль → стиль; РАЗБОР → 1–2
   приёма на блок; КАНОНЫ_01–03 + ПРАВИЛА С1–С13 → типографика/сетка.
   Шрифтовая пара (МАТЧИНГ_ЭТАЛОНЫ): Inter (эталон Inter Variable,
   прямое попадание) + Cormorant (Instrument Serif эталона ≈ Cormorant,
   дисплейная низкоконтрастная антиква, кегли ≥ 24px).
   ============================================================ */

/* ---------- Шрифты (парк ZBCA, OFL, кириллица+латиница) ---------- */
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-400-cyrillic.woff2") format("woff2");
  font-weight: 400; font-style: normal; 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("assets/fonts/inter-400-latin.woff2") format("woff2");
  font-weight: 400; font-style: normal; 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+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-500-cyrillic.woff2") format("woff2");
  font-weight: 500; font-style: normal; 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("assets/fonts/inter-500-latin.woff2") format("woff2");
  font-weight: 500; font-style: normal; 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+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-700-cyrillic.woff2") format("woff2");
  font-weight: 700; font-style: normal; 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("assets/fonts/inter-700-latin.woff2") format("woff2");
  font-weight: 700; font-style: normal; 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+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant";
  src: url("assets/fonts/cormorant-400-cyrillic.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Cormorant";
  src: url("assets/fonts/cormorant-400-latin.woff2") format("woff2");
  font-weight: 400; font-style: normal; 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+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant";
  src: url("assets/fonts/cormorant-500-cyrillic.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Cormorant";
  src: url("assets/fonts/cormorant-500-latin.woff2") format("woff2");
  font-weight: 500; font-style: normal; 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+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant";
  src: url("assets/fonts/cormorant-700-cyrillic.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Cormorant";
  src: url("assets/fonts/cormorant-700-latin.woff2") format("woff2");
  font-weight: 700; font-style: normal; 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+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Знак ₽ (U+20BD): в css2-сабсетах парка нет (РЕЕСТР §Исключения) —
   набирается &#8381;, глиф берётся из fallback-стека system-ui. */

/* ---------- Токены эталона ---------- */
:root {
  --bg: #FFFFFF;
  --fg: #000000;
  --ink: #0E0E0E;               /* «чёрный» эталона: заголовки, тёмные секции */
  --warm: #EFEFEC;              /* тёплый фон секций (частотный фон эталона) */
  --accent: #D8C6AC;            /* sand — единственный хроматический (профиль) */
  --field: #E7DAC4;             /* производный от sand для плашек (текст — ink) */
  --muted: #6B6B6B;             /* вторичный текст эталона (контраст 4.8:1) */
  --line: rgba(0, 0, 0, 0.08);  /* hairline-разделители */
  --on-dark: #FFFFFF;
  --on-dark-muted: rgba(255, 255, 255, 0.72);

  --font-text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Cormorant", Georgia, serif;

  /* тень §8 профиля — дословно */
  --sh-card: rgba(0, 0, 0, 0.17) 0px 0.602187px 1.56569px -1.5px,
             rgba(0, 0, 0, 0.14) 0px 2.28853px 5.95019px -3px,
             rgba(0, 0, 0, 0.02) 0px 10px 26px -4.5px;

  --container: 1080px;          /* снятый max-width профиля (С1 — число из профиля) */
  --pad: 32px;                  /* боковые поля контейнера */
  --gap: 32px;                  /* gap премиальных карточных сеток (padding 24 → 1.33×) */
}

/* ---------- База ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-synthesis: none; /* T-35: без faux-начертаний */
}

h1, h2, h3, p, ul, ol, dl, dd, dt, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea, option { font-family: inherit; }
section { scroll-margin-top: 80px; }

em.accent-serif {
  font-family: var(--font-display);
  font-style: normal; /* курсива нет в парке — без faux-italic (T-35) */
  font-weight: 400;
  letter-spacing: 0;
}

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

.container {
  max-width: calc(var(--container) + var(--pad) * 2);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ---------- Типографика: шкала 1.25 от 16 (С3) ----------
   13 (caption/UI) · 16 (body) · 20 (lead/акценты) · 25 (h3) · 39 (h2) · 61 (display) */
.h2 {
  font-size: 39px;
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}
.section__lead {
  margin-top: 16px;
  font-size: 20px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 46ch;
  text-wrap: pretty;
}

/* ---------- Кнопки (профиль: radius 0, pad 18/28) ---------- */
.btn {
  display: inline-block;
  padding: 18px 28px;
  background: var(--ink);
  color: var(--on-dark);
  font-family: var(--font-text);
  font-size: 13px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.btn:hover { background: #2A2A2A; }
.btn--accent { background: var(--accent); color: var(--ink); }
.btn--accent:hover { background: #C9B694; }

.text-link {
  display: inline-block;
  margin-top: 32px;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  transition: border-color 0.3s ease;
}
.text-link:hover { border-color: var(--ink); }

/* ---------- Шапка (Н6 sticky, Н4 бургер) ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);           /* непрозрачный (Н6) */
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;                    /* служебная высота из шкалы */
}
.logo { line-height: 0; }
.logo img { height: 40px; width: auto; }
.header__right {
  display: flex;
  align-items: center;
  gap: 24px;
}
.header__phone {
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  color: var(--fg);
}
.burger {
  display: none;
  width: 48px;
  height: 48px;
  padding: 12px;
  background: none;
  border: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
}
.nav-panel { display: none; }

/* ---------- Hero (full-bleed фото-хиро; баланс утверждён владельцем; Н3 на мобиле) ---------- */
.hero {
  position: relative;
  background: var(--ink);
  overflow: clip;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.30), rgba(0, 0, 0, 0.55));
}
.hero__inner {
  position: relative; z-index: 1;
  padding-top: 128px;
  padding-bottom: 128px;
  color: var(--on-dark);
}
.hero__brand {
  font-size: 13px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.85);
}
.hero__title {
  margin-top: 24px;
  max-width: 15ch;
  font-size: clamp(44px, 6vw, 61px);
  line-height: 1.02;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--on-dark);
  text-wrap: balance;
}
.hero__title .accent-serif { color: var(--accent); }
.hero__lead {
  margin-top: 24px;
  max-width: 60ch;
  font-size: 20px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
  text-wrap: pretty;
}
.hero__actions {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.hero__phone {
  font-size: 16px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--on-dark);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  padding-bottom: 2px;
}

/* ---------- Секции ---------- */
.section { padding-block: 96px; background: var(--bg); }
.section--warm { background: var(--warm); }
.section--dark { background: var(--ink); color: var(--on-dark); }
.section--dark .h2 { color: var(--on-dark); }

/* ---------- Split 5/7 (бюджет, день по минутам — С4: колонки сетки) ---------- */
.split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 64px;
  align-items: start;
}
.split__head--sticky { position: sticky; top: 96px; }

/* ---------- Кейсы ---------- */
.cases {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.case {
  background: var(--bg);
  border-radius: 10px;            /* радиус профиля = радиус медиа (С6) */
  overflow: hidden;
  box-shadow: var(--sh-card);     /* тень §8 дословно */
  display: flex;
  flex-direction: column;
}
.case__media { aspect-ratio: 4 / 3; overflow: hidden; }
.case__media img { width: 100%; height: 100%; object-fit: cover; }
.case__body { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.case__names {
  font-family: var(--font-display);
  font-size: 25px;
  line-height: 1.15;
  font-weight: 400;
  color: var(--ink);
}
.case__meta {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.case__list { display: flex; flex-direction: column; gap: 8px; }
.case__list li {
  position: relative;
  padding-left: 16px;
  font-size: 16px;
  line-height: 1.5;
}
.case__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* План Б — плашка на всю ширину сетки (С4) */
.planb {
  margin-top: 32px;
  padding: 24px 32px;
  background: var(--field);
  border-radius: 10px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
}
.planb strong { font-weight: 500; }

/* ---------- Бюджет: стат-строки на колонке 7fr ---------- */
.stats { margin: 0; }
.stats__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding-block: 16px;
  border-bottom: 1px solid var(--line);
}
.stats__row:first-child { border-top: 1px solid var(--line); }
.stats__name { font-size: 16px; line-height: 1.5; }
.stats__val {
  font-size: 20px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  white-space: nowrap;
}

/* ---------- День по минутам ---------- */
.timeline__item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 24px;
  padding-block: 16px;
  border-bottom: 1px solid var(--line);
}
.timeline__item:first-child { border-top: 1px solid var(--line); }
.timeline__time {
  font-size: 20px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.timeline__event { font-size: 16px; line-height: 1.5; color: var(--fg); }
.timeline__team { margin-top: 4px; font-size: 13px; line-height: 1.5; color: var(--muted); }

/* ---------- Фото-лента: full-bleed медиа (брейк-аут, С1/С7/С8) ---------- */
.strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: var(--ink);
}
.strip__item { aspect-ratio: 4 / 3; overflow: hidden; }
.strip__item img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Услуги с ценами ---------- */
.price {
  margin-top: 48px;
  width: 100%;
  border-collapse: collapse;
}
.price td {
  padding-block: 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: baseline;
}
.price tr:first-child td { border-top: 1px solid var(--line); }
.price__name { font-size: 16px; line-height: 1.5; padding-right: 24px; }
.price__val {
  width: 1%;
  white-space: nowrap;
  text-align: right;
  font-size: 20px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.services__note {
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.services__note p { max-width: 56ch; font-size: 16px; line-height: 1.5; color: var(--muted); }

/* ---------- Преимущества: бенто 2×2 + широкая плашка (С4) ---------- */
.adv {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
}
.adv__item {
  background: var(--bg);
  border-radius: 10px;
  padding: 24px;
}
.adv__item--wide { grid-column: 1 / -1; }
.adv__title { font-size: 25px; line-height: 1.2; font-weight: 500; color: var(--ink); text-wrap: balance; }
.adv__text { margin-top: 12px; font-size: 16px; line-height: 1.5; color: var(--muted); max-width: 60ch; }

/* ---------- Процесс ---------- */
.steps {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.step { border-top: 2px solid var(--ink); padding-top: 16px; }
.step__num {
  font-family: var(--font-display);
  font-size: 61px;
  line-height: 1;
  color: var(--ink);
}
.step__title { margin-top: 16px; font-size: 20px; line-height: 1.3; font-weight: 500; color: var(--ink); text-wrap: balance; }
.step__text { margin-top: 8px; font-size: 16px; line-height: 1.5; color: var(--muted); }

/* ---------- Команда ---------- */
.team {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}
.member {
  background: var(--bg);
  border-radius: 10px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.member__avatar {
  width: 64px; height: 64px;
  border-radius: 50%;             /* радиус 50% профиля */
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 25px;
  font-weight: 500;
  color: var(--ink);
}
.member__role { font-size: 16px; line-height: 1.4; font-weight: 500; color: var(--ink); }
.team__note { margin-top: 24px; font-size: 16px; line-height: 1.5; color: var(--muted); }

/* ---------- Отзывы ---------- */
.reviews {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.review {
  background: var(--warm);
  border-radius: 10px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.review__text { font-size: 16px; line-height: 1.5; color: var(--fg); }
.review__author { margin-top: auto; font-size: 13px; font-weight: 500; color: var(--muted); }

/* ---------- FAQ: лево + вся ширина сетки (С5) ---------- */
.faq { margin-top: 48px; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item:first-child { border-top: 1px solid var(--line); }
.faq__q {
  position: relative;
  padding: 20px 40px 20px 0;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  text-wrap: balance;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 400;
  color: var(--muted);
}
.faq__item[open] .faq__q::after { content: "−"; }
.faq__a {
  padding: 0 40px 20px 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 62ch;
}

/* ---------- Форма (тёмная секция) ---------- */
.request__head { max-width: 62ch; }
.request__sub { margin-top: 16px; font-size: 20px; line-height: 1.5; color: var(--on-dark-muted); }
.form { margin-top: 48px; }
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.form__field { display: flex; flex-direction: column; gap: 8px; }
.form__label {
  font-size: 13px;
  line-height: 1.4;
  color: var(--on-dark-muted);
}
.form__input {
  width: 100%;
  padding: 12px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 0;
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.5;
  color: var(--on-dark);
  outline: none;
  transition: border-color 0.3s ease;
}
.form__input::placeholder { color: rgba(255, 255, 255, 0.35); }
.form__input:focus { border-bottom-color: var(--accent); }
select.form__select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, rgba(255,255,255,0.6) 50%),
                    linear-gradient(135deg, rgba(255,255,255,0.6) 50%, transparent 50%);
  background-position: calc(100% - 14px) 55%, calc(100% - 8px) 55%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}
select.form__select option { color: var(--fg); font-family: var(--font-text); }
.form__checkbox-wrap { justify-content: flex-end; padding-bottom: 12px; }
.form__checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 16px;
  color: var(--on-dark);
}
.form__checkbox input { position: absolute; opacity: 0; width: 0; height: 0; }
.form__checkbox-box {
  width: 20px; height: 20px;
  flex: none;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  background: transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.form__checkbox input:checked + .form__checkbox-box {
  background: var(--accent);
  border-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1 5.5 4.2 8.5 11 1.5' fill='none' stroke='%230E0E0E' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 10px;
}
.form__checkbox input:focus-visible + .form__checkbox-box { border-color: var(--accent); }
.form__submit {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.form__hint { font-size: 13px; color: var(--on-dark-muted); }
.form__phone {
  color: var(--on-dark);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

/* ---------- Контакты ---------- */
.contacts {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 64px;
  align-items: start;
}
.contacts__phone {
  display: inline-block;
  margin-top: 24px;
  font-size: 25px;
  line-height: 1.2;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  text-decoration: none;
}
.contacts__hours { margin-top: 12px; font-size: 16px; line-height: 1.5; color: var(--fg); }
.contacts__note { margin-top: 4px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.contacts__info { padding-top: 8px; }
.contacts__addr { font-size: 20px; line-height: 1.5; color: var(--ink); }
.contacts__info .text-link { margin-top: 24px; }

/* ---------- Футер (Н7: «Сайт разработан ZBCA» → zbca.ru) ---------- */
.footer {
  background: var(--ink);
  color: var(--on-dark);
  padding-block: 64px 32px;
}
.footer__line {
  font-size: 39px;
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--on-dark);
  text-wrap: balance;
}
.footer__line .accent-serif { color: var(--accent); }
.footer__grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer__brand { font-family: var(--font-display); font-size: 25px; line-height: 1.2; color: var(--on-dark); }
.footer__muted { margin-top: 12px; font-size: 13px; line-height: 1.6; color: var(--on-dark-muted); }
.footer__col .footer__muted:first-child { margin-top: 0; }
.footer__link {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  color: var(--on-dark);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 1px;
}
.footer__link:first-child { margin-top: 0; }
.footer__bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__bottom .footer__muted { margin-top: 0; }
.footer__bottom .footer__link { border-bottom-color: rgba(255, 255, 255, 0.3); }
.footer__bottom .footer__link:hover { border-bottom-color: var(--on-dark); }

/* ---------- Адаптив: планшет 768–1023 ---------- */
@media (max-width: 1023px) {
  .cases { grid-template-columns: repeat(2, 1fr); }
  .team { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .reviews { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split__head--sticky { position: static; }
  .contacts { grid-template-columns: 1fr; gap: 32px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .hero__inner { padding-top: 96px; padding-bottom: 96px; }
}

/* ---------- Адаптив: мобилка ≤767 (Н2/Н3/Н4, СР-27/28) ---------- */
@media (max-width: 767px) {
  :root { --pad: 20px; --gap: 16px; }
  .section { padding-block: 64px; }
  .h2 { font-size: 31px; }          /* соседняя ступень шкалы 39/1.25 */
  .section__lead { font-size: 16px; }

  .header__inner { height: 64px; }
  .header__phone { display: none; }  /* телефон — в панель бургера (Н4) */
  .burger { display: flex; }
  .nav-panel {
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 16px 20px 32px;
  }
  .header:has(.burger:focus) .nav-panel,
  .header:has(.nav-panel:focus-within) .nav-panel,
  .nav-panel.is-open { display: block; }
  .nav-panel a {
    display: block;
    padding-block: 12px;
    font-size: 20px;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid var(--line);
  }
  .nav-panel .nav-panel__phone { font-weight: 500; font-variant-numeric: tabular-nums; }
  .nav-panel .btn { margin-top: 24px; text-align: center; }

  /* Н3: сначала смысл — текст, CTA, потом фото */
  .hero { display: flex; flex-direction: column; }
  .hero__media {
    position: static;
    order: 2;
    height: 400px; /* ≤ 55% высоты экрана 844 */
  }
  .hero__overlay { display: none; }
  .hero__inner {
    order: 1;
    padding-top: 48px;
    padding-bottom: 48px;
  }
  .hero__title { font-size: clamp(40px, 10.5vw, 44px); }
  .hero__lead { font-size: 16px; }
  .hero__actions { margin-top: 24px; }
  .hero__actions .btn { width: 100%; text-align: center; }
  .hero__phone { margin-inline: auto; }

  .cases { grid-template-columns: 1fr; margin-top: 32px; }
  .planb { margin-top: 24px; padding: 24px; }
  .stats { margin-top: 32px; }
  .timeline { margin-top: 32px; }
  .timeline__item { grid-template-columns: 72px 1fr; gap: 16px; }
  .strip { grid-template-columns: 1fr; }
  .price { margin-top: 32px; }
  .price td { display: block; padding-block: 0; }
  .price tr { display: block; padding-block: 16px; border-bottom: 1px solid var(--line); }
  .price tr:first-child { border-top: 1px solid var(--line); }
  .price__name { padding-right: 0; }
  .price__val { width: auto; text-align: left; margin-top: 4px; }
  .services__note { margin-top: 24px; }
  .services__note .btn,
  .form__submit .btn { width: 100%; text-align: center; }
  .adv { grid-template-columns: 1fr; margin-top: 32px; }
  .steps { margin-top: 32px; }
  .team { grid-template-columns: 1fr; margin-top: 32px; }
  .reviews { margin-top: 32px; }
  .faq { margin-top: 32px; }
  .form__row { grid-template-columns: 1fr; gap: 24px; margin-bottom: 0; }
  .form__row .form__field { margin-bottom: 24px; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__line { font-size: 31px; }
}
