/* ==========================================================================
   Веб Конвейер — таблица стилей
   1. Переменные и сброс
   2. Типографика и контейнер
   3. Кнопки и формы
   4. Шапка, навигация, бургер, подвал
   5. Секции
   6. Медиазапросы и доступность
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Переменные
   -------------------------------------------------------------------------- */

:root {
  --cream:    #FAE8DF;
  --accent:   #F83E1C;
  --accent-h: #E0330F;
  --tang:     #F17F21;
  --tang-h:   #D96D14;
  /* Мандариновый, пригодный для текста на кремовом: сам --tang даёт 2.3:1. */
  --tang-d:   #C0600E;
  --green:    #053626;
  --green-h:  #0A5138;
  --ink:      #5F0E00;
  --white:    #FFFFFF;
  /* Тёмный оттенок акцента для текстовых ссылок: коралловый по белому давал
     2.95:1, по кремовому 2.48:1 — ниже порога AA. Этот даёт 6.6:1 и 5.6:1. */
  --link:     #B32505;
  --line:     #F3DACE;

  --font-d: "Rubik", "Trebuchet MS", "Arial Black", sans-serif;
  --font-b: "Manrope", "Segoe UI", Tahoma, sans-serif;

  --wrap: 1340px;
  --pad: 50px;
  --read: 800px;

  --r-block: 30px;
  --r-card: 20px;
  --r-field: 8px;
  --r-pill: 999px;

  --sec-y: 96px;
  --tile-col: 335px;
  --tile-row: 304px;
}

/* --------------------------------------------------------------------------
   Сброс
   -------------------------------------------------------------------------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-b);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Правило-страховка: атрибут hidden всегда сильнее любого класса. */
[hidden] { display: none !important; }

h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

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

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }

table { border-collapse: collapse; width: 100%; }

address { font-style: normal; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 12px 20px;
  background: var(--accent);
  color: var(--cream);
  font-family: var(--font-d);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
}
.skip:focus { left: 0; }

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

/* --------------------------------------------------------------------------
   2. Типографика
   -------------------------------------------------------------------------- */

.h1, h1 {
  font-family: var(--font-d);
  font-weight: 900;
  font-size: clamp(44px, 6.6vw, 96px);
  line-height: 0.9;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--ink);
  overflow-wrap: break-word;
}

.h2, h2 {
  font-family: var(--font-d);
  font-weight: 900;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 0.9;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--ink);
  overflow-wrap: break-word;
}

.h3, h3 {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: clamp(20px, 1.7vw, 24px);
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--ink);
  overflow-wrap: break-word;
}

.h-accent { color: var(--accent); }
.h-cream  { color: var(--cream); }

.lead {
  font-family: var(--font-b);
  font-weight: 400;
  font-size: clamp(18px, 1.5vw, 20px);
  line-height: 1.5;
}

.txt p + p { margin-top: 18px; }
.txt a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.txt a:hover { color: var(--ink); }
/* Кнопки и стрелки внутри .txt не должны краситься как текстовая ссылка:
   у `.txt a` специфичность выше, чем у `.btn--primary`, и главная кнопка
   на страницах услуг выходила коралловой по красному фону с подчёркиванием. */
.txt .btn, .txt .acircle, .txt .tlink { text-decoration: none; }
.txt .btn--primary { color: var(--cream); }
.txt .acircle, .txt .tlink { color: inherit; }

.small { font-size: 14px; line-height: 1.55; }

.eyebrow {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.num {
  font-family: var(--font-d);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 0.9;
  color: var(--accent);
}

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

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

.sec { padding: var(--sec-y) 0; }
.sec--tight { padding: 56px 0; }
.sec--top0 { padding-top: 0; }
.sec--bot0 { padding-bottom: 0; }

.read { max-width: var(--read); }
.read--center { margin-left: auto; margin-right: auto; }

.sec__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
}
.sec__head--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.sec__head .lead { max-width: 620px; }

/* Цветные блоки во всю ширину окна.
   Блок — прямой потомок main/body, поэтому ширина берётся от полотна,
   а не от 100vw: так полоса прокрутки не создаёт горизонтального переполнения. */
.band {
  position: relative;
  width: 100%;
  padding: 88px 0;
  overflow: hidden;
}
.band--green { background: var(--green); color: var(--cream); }
.band--tang  { background: var(--tang);  color: var(--cream); }
.band--accent{ background: var(--accent);color: var(--cream); }
.band--top    { border-radius: var(--r-block) var(--r-block) 0 0; }
.band--round  { border-radius: var(--r-block); }
.band--bottom { border-radius: 0 0 var(--r-block) var(--r-block); }
.band .h2, .band h2, .band h3 { color: var(--cream); }
.band .wrap { position: relative; z-index: 1; }

.doodle {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hr { height: 1px; background: var(--line); border: 0; margin: 0; }

/* --------------------------------------------------------------------------
   3. Кнопки
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 28px;
  border-radius: var(--r-pill);
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color .18s linear, color .18s linear;
}
.btn svg { flex: 0 0 auto; }

.btn--primary { background: var(--accent); color: var(--cream); }
.btn--primary:hover { background: var(--accent-h); color: var(--cream); }

.btn--cream { background: var(--cream); color: var(--green); }
.btn--cream:hover { background: var(--white); }

.btn--green { background: var(--green); color: var(--cream); }
.btn--green:hover { background: var(--green-h); }

.btn--ghost {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid currentColor;
}
.btn--ghost:hover { background: var(--accent); color: var(--cream); border-color: var(--accent); }

.btn--wide { width: 100%; justify-content: center; }

/* Вторичная — кружок со стрелкой и подписью */
.acircle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: inherit;
}
.acircle__c {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  transition: background-color .18s linear, color .18s linear;
}
.acircle:hover .acircle__c { background: currentColor; }
.acircle:hover .acircle__c svg { color: var(--cream); }
.band .acircle:hover .acircle__c svg { color: var(--green); }

/* Третичная — текстовая ссылка */
.tlink {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.tlink:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Чип-переключатель */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 18px;
  border-radius: var(--r-pill);
  background: var(--cream);
  color: var(--green);
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color .18s linear;
}
.chip:hover { background: var(--white); }

/* --------------------------------------------------------------------------
   Формы
   -------------------------------------------------------------------------- */

.form { display: block; }

.field { display: block; margin-bottom: 18px; text-align: left; }

.field__l {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
}

.field__i,
.field__s,
.field__t {
  width: 100%;
  min-height: 50px;
  padding: 13px 16px;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--r-field);
  font-family: var(--font-b);
  font-size: 16px;
  line-height: 1.4;
  transition: border-color .15s linear;
}
.field__t { min-height: 130px; resize: vertical; }
.field__s {
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235F0E00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}
.field__i::placeholder, .field__t::placeholder { color: #B39187; }
.field__i:hover, .field__s:hover, .field__t:hover { border-color: var(--tang); }
.field.is-bad .field__i,
.field.is-bad .field__s,
.field.is-bad .field__t { border-color: var(--accent); }

.field__err {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--accent);
}

.agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 20px;
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
}
.agree input {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.agree a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.agree.is-bad span { color: var(--accent); }

.form__ok {
  margin-top: 18px;
  padding: 16px 20px;
  background: var(--green);
  color: var(--cream);
  border-radius: var(--r-field);
  font-size: 15px;
}

/* --------------------------------------------------------------------------
   4. Шапка: промо-полоса
   -------------------------------------------------------------------------- */

/* Кремовый по мандариновому — 2.27:1: для 14px и 11px это ниже порога AA.
   Текст полосы, кнопку «Подробнее» с её рамкой и крестик красим в --ink (5.0:1).
   Палитра при этом не меняется — оба цвета из :root. */
.promobar { background: var(--tang); color: var(--ink); }
.promobar__in {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 40px;
}
.promobar__badge {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--accent);
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0;
}
.promobar__text {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.promobar__more {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 16px;
  border: 1.5px solid var(--ink);
  border-radius: var(--r-pill);
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background-color .18s linear, color .18s linear;
}
.promobar__more:hover { background: var(--ink); color: var(--cream); }
.promobar__close {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: var(--ink);
  opacity: .8;
}
.promobar__close:hover { opacity: 1; }

/* Утилит-бар */

.utilbar { background: var(--green); color: var(--cream); }
.utilbar__in {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 40px;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.utilbar__geo { display: flex; align-items: center; gap: 8px; }
.utilbar__phone { letter-spacing: 0.03em; }
.utilbar__phone:hover { color: var(--tang); }
.utilbar__act { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.utilbar__link { font: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--cream); }
.utilbar__link:hover { color: var(--tang); }

/* Переключатель города */

.cityswitch { position: relative; }
.cityswitch__btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: inherit;
}
.cityswitch__btn:hover { color: var(--tang); }
.cityswitch__list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 40;
  min-width: 170px;
  padding: 6px;
  background: var(--cream);
  border-radius: 12px;
}
.cityswitch__list--foot { top: auto; bottom: calc(100% + 8px); }
.cityswitch__opt {
  display: block;
  width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  text-align: left;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
}
.cityswitch__opt:hover { background: var(--line); color: var(--accent); }

/* --------------------------------------------------------------------------
   Основная шапка
   -------------------------------------------------------------------------- */

.hdr {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--cream);
  border-bottom: 1px solid transparent;
  transition: border-color .18s linear;
}
.hdr.is-stuck { border-bottom-color: var(--line); }

/* Полотно шапки ограничено --wrap (1340px) минус --pad с двух сторон, то есть 1240px
   на любом широком экране. Русские пункты меню длиннее сербских из референса, поэтому
   базовые размеры подобраны так, чтобы шесть пунктов, логотип и кнопка помещались в 1240:
   при нехватке места ul сжимался ниже своего содержимого и пункты наезжали на логотип. */
.hdr__in {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 70px;
}

.hdr__nav { display: flex; align-items: center; gap: 18px; flex: 1 1 auto; min-width: 0; }
.hdr__nav--right { justify-content: flex-end; }
.hdr__list { display: flex; align-items: center; gap: 18px; min-width: 0; }

.hdr__link {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
  transition: color .15s linear;
}
.hdr__link:hover, .hdr__link.is-active { color: var(--accent); }

.hdr__cta { flex: 0 0 auto; padding: 0 18px; letter-spacing: 0.03em; }

/* Логотип-вордмарк */

.logo {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--font-d);
  font-weight: 900;
  font-size: 20px;
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  white-space: nowrap;
}
.logo__a { color: var(--tang-d); }
.logo__b { color: var(--accent); }
.logo--foot { font-size: 24px; }
.logo__a--foot, .logo__b--foot { color: var(--cream); }
.logo--foot:hover .logo__a--foot { color: var(--tang); }

/* Бургер */

.burger {
  display: none;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 0 6px;
}
.burger__l {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  transition: transform .2s linear, opacity .2s linear;
}
.burger[aria-expanded="true"] .burger__l:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__l:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger__l:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Мобильная панель */

.mobnav {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  padding: 20px 24px 32px;
  overflow-y: auto;
}
.mobnav__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
}
.mobnav__close { color: var(--ink); display: grid; place-items: center; width: 40px; height: 40px; }
.mobnav__nav { margin-top: 24px; flex: 1 1 auto; }
.mobnav__nav ul { display: flex; flex-direction: column; gap: 14px; }
.mobnav__link {
  font-family: var(--font-d);
  font-weight: 900;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--ink);
}
.mobnav__link:hover, .mobnav__link.is-active { color: var(--accent); }
.mobnav__foot {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.mobnav__phone {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 20px;
  color: var(--ink);
}
.mobnav__city {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
body.is-locked { overflow: hidden; }

/* Модалка */

.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal__back { position: absolute; inset: 0; background: rgba(5, 54, 38, .72); }
.modal__box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px 32px 32px;
  background: var(--cream);
  border-radius: var(--r-card);
}
.modal__x {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--ink);
}
.modal__x:hover { color: var(--accent); }
.modal__t {
  font-family: var(--font-d);
  font-weight: 900;
  font-size: 30px;
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--ink);
}
.modal__lead { margin: 12px 0 22px; font-size: 15px; }

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

.foot {
  position: relative;
  width: 100%;
  background: var(--green);
  color: var(--cream);
  border-radius: var(--r-block) var(--r-block) 0 0;
  padding-top: 72px;
  overflow: hidden;
}
.foot__in { position: relative; z-index: 1; }

.foot__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(250, 232, 223, .18);
}
.foot__phone {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.02em;
}
.foot__phone:hover { color: var(--tang); }

.foot__cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 24px;
  padding: 44px 0 36px;
}

.fcol__h { margin-bottom: 14px; }
.fcol__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tang);
  cursor: default;
}
.fcol__btn svg { display: none; }

.fcol__list { display: flex; flex-direction: column; gap: 10px; }
.fcol__list a {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cream);
  transition: color .15s linear;
}
.fcol__list a:hover { color: var(--tang); }
.fcol__addr {
  font-family: var(--font-b);
  font-weight: 500;
  font-size: 14px;
  text-transform: none;
  letter-spacing: 0;
  color: rgba(250, 232, 223, .82);
}

.fcol--side { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.foot__soc { display: flex; gap: 10px; }
.soc {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1.5px solid rgba(250, 232, 223, .5);
  border-radius: 50%;
  color: var(--cream);
  transition: background-color .18s linear, color .18s linear, border-color .18s linear;
}
.soc:hover { background: var(--tang); border-color: var(--tang); color: var(--green); }

.foot__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0 34px;
  border-top: 1px solid rgba(250, 232, 223, .18);
  font-size: 13px;
  color: rgba(250, 232, 223, .82);
}
.foot__legal { display: flex; gap: 22px; }
.foot__legal a:hover { color: var(--tang); }

.wordmark {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0 var(--pad);
  font-family: var(--font-d);
  font-weight: 900;
  font-size: clamp(64px, 11vw, 156px);
  line-height: 0.85;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
}
.wordmark__a { color: var(--tang); }
.wordmark__b { color: var(--accent); }

/* --------------------------------------------------------------------------
   5. Секции
   -------------------------------------------------------------------------- */

/* Хлебные крошки */
.crumbs { margin-bottom: 22px; }
.crumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(95, 14, 0, .7);
}
.crumbs__item + .crumbs__item::before { content: "/"; margin-right: 8px; opacity: .5; }
.crumbs__item a:hover { color: var(--accent); }
.band .crumbs__list { color: rgba(250, 232, 223, .75); }

/* Шапка внутренней страницы */
.phero { padding: 44px 0 72px; }
.phero__lead { margin-top: 24px; max-width: var(--read); }
.phero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 26px;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Герой главной — фотография во всю ширину */
.hero {
  width: 100%;
  height: clamp(320px, 48vw, 688px);
}
.hero img { width: 100%; height: 100%; object-fit: cover; }

.hero-text { padding: 72px 0 0; }
.hero-text .h1 { max-width: 1100px; }
.hero-text .lead { margin: 28px auto 0; max-width: var(--read); }
.hero-text--center { text-align: center; }
.hero-text--center .h1 { margin: 0 auto; }
.hero-text__act { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; margin-top: 32px; }

/* Сигнатурная плитка типов сайтов */
.tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, var(--tile-col)));
  justify-content: center;
  gap: 0;
}
.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: var(--tile-row);
  padding: 0 12px 40px;
  text-align: center;
}
.tile__img {
  width: 100%;
  height: 220px;
  overflow: hidden;
}
.tile__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .2s linear;
}
.tile__t {
  margin-top: 18px;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color .15s linear;
}
.tile:hover .tile__img img { transform: scale(1.04); }
.tile:hover .tile__t { color: var(--accent); }

/* Показатели */
.stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.stats--4 { grid-template-columns: repeat(4, 1fr); }
.stat { padding: 0 24px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__n { font-family: var(--font-d); font-weight: 900; font-size: clamp(40px, 5vw, 72px); line-height: 0.9; color: var(--accent); font-variant-numeric: tabular-nums; }
.stat__l { margin-top: 12px; font-size: 14px; line-height: 1.4; max-width: 200px; }
.band .stat { border-left-color: rgba(250, 232, 223, .22); }
.band .stat__n { color: var(--cream); }
.band .stat__l { color: rgba(250, 232, 223, .84); }

/* Этапы работы */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.steps--4 { grid-template-columns: repeat(4, 1fr); }
.step { padding-top: 22px; border-top: 1px solid var(--line); }
.step__n { font-family: var(--font-d); font-weight: 900; font-size: 48px; line-height: 0.9; color: var(--accent); }
.step__t { margin-top: 16px; font-family: var(--font-d); font-weight: 700; font-size: 15px; letter-spacing: 0.05em; text-transform: uppercase; }
.step__d { margin-top: 10px; font-size: 15px; line-height: 1.55; }

/* Преимущества */
.advs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.adv {
  position: relative;
  padding: 32px;
  background: var(--white);
  border-radius: var(--r-card);
}
.adv__ic { position: absolute; top: 28px; right: 28px; color: var(--tang); }
.adv__t {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding-right: 44px;
}
.adv__list { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.adv__list li { position: relative; padding-left: 20px; font-size: 15px; line-height: 1.5; }
.adv__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 10px;
  width: 10px; height: 2px;
  background: var(--accent);
}
.advs__more { display: flex; justify-content: center; margin-top: 40px; }

/* Тарифы */
.tariffs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.tar {
  display: flex;
  flex-direction: column;
  padding: 36px 32px;
  background: var(--white);
  border-radius: var(--r-card);
}
.tar--hot { background: var(--green); color: var(--cream); }
.tar__n { font-family: var(--font-d); font-weight: 700; font-size: 18px; letter-spacing: 0.05em; text-transform: uppercase; }
.tar--hot .tar__n { color: var(--cream); }
.tar__who { margin-top: 8px; font-size: 14px; line-height: 1.45; opacity: .8; }
.tar__p { margin-top: 22px; font-family: var(--font-d); font-weight: 900; font-size: 40px; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.tar--hot .tar__p { color: var(--tang); }
.tar__term { margin-top: 8px; font-size: 13px; opacity: .8; }
.tar__list { margin: 24px 0 28px; display: flex; flex-direction: column; gap: 11px; padding-top: 22px; border-top: 1px solid var(--line); }
.tar--hot .tar__list { border-top-color: rgba(250, 232, 223, .22); }
.tar__list li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.45; }
.tar__list svg { flex: 0 0 18px; margin-top: 3px; color: var(--accent); }
.tar--hot .tar__list svg { color: var(--tang); }
.tar__btn { margin-top: auto; }
.tariffs__note { margin-top: 24px; font-size: 13px; opacity: .75; max-width: var(--read); }

/* Портфолио: лента и сетка */
.works { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.works--3 { grid-template-columns: repeat(3, 1fr); }
.work {
  position: relative;
  display: block;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--green);
}
.work__img { aspect-ratio: 4 / 3; overflow: hidden; }
.work__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s linear; }
.work:hover .work__img img { transform: scale(1.04); }
.work__cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  /* Затемнение доводим до самого верха подписи: оранжевый тег «Сайт-визитка»
     на светлом снимке (интерьер клиники) в прежнем градиенте не читался. */
  padding: 46px 20px 20px;
  background: linear-gradient(to top, rgba(5, 54, 38, .95) 0%, rgba(5, 54, 38, .9) 58%, rgba(5, 54, 38, 0) 100%);
  color: var(--cream);
}
.work__tag {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--tang);
}
.work__t {
  margin-top: 6px;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.15;
}

/* Фильтр портфолио */
.pfilter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; margin-bottom: 40px; }
.pfilter .field { margin-bottom: 0; min-width: 240px; }
.pfilter__reset {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 50px;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
}
.pfilter__reset:hover { text-decoration: underline; text-underline-offset: 4px; }
.pfilter__count { margin-left: auto; height: 50px; display: flex; align-items: center; font-size: 14px; opacity: .75; }
.loadmore { display: flex; justify-content: center; margin-top: 44px; }
.pempty { padding: 40px 0; text-align: center; font-size: 17px; }

/* Отзывы — лента */
.rev-strip { position: relative; }
.rev-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.rev-track::-webkit-scrollbar { display: none; }
.rev {
  flex: 0 0 calc((100% - 48px) / 3);
  scroll-snap-align: start;
  padding: 32px;
  background: var(--white);
  border-radius: var(--r-card);
  display: flex;
  flex-direction: column;
}
.rev__q { color: var(--tang); margin-bottom: 14px; }
.rev__t { font-size: 17px; line-height: 1.6; flex: 1 1 auto; }
.rev__who { display: flex; align-items: center; gap: 14px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.rev__ph { width: 72px; height: 72px; flex: 0 0 72px; border-radius: 50%; object-fit: cover; }
.rev__n { font-family: var(--font-d); font-weight: 700; font-size: 13px; letter-spacing: 0.05em; text-transform: uppercase; }
.rev__c { margin-top: 4px; font-size: 13px; opacity: .75; }

.rev-ctrl { display: flex; align-items: center; gap: 12px; margin-top: 28px; }
.rev-arrow {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  transition: background-color .18s linear, color .18s linear;
}
.rev-arrow:hover { background: var(--ink); color: var(--cream); }
.rev-dots { display: flex; gap: 8px; margin-left: 8px; }
.rev-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.rev-dot.is-on { background: var(--accent); }

/* Логотипы клиентов */
.logos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
.logos__i {
  display: grid;
  place-items: center;
  min-height: 84px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-field);
  font-family: var(--font-d);
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-align: center;
  /* .42 давало 2.5:1 — название клиента переставало читаться. */
  color: rgba(95, 14, 0, .56);
  transition: color .18s linear, border-color .18s linear;
}
.logos__i:hover { color: var(--accent); border-color: var(--accent); }
.logos__note { margin-top: 24px; font-size: 14px; opacity: .75; text-align: center; }

/* Промо-дуо */
.promoduo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.promo {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 340px;
  padding: 36px;
  border-radius: var(--r-card);
  overflow: hidden;
  color: var(--cream);
}
.promo--tang { background: var(--tang); }
.promo--green { background: var(--green); }
/* Кремовый по мандариновому даёт 2.3:1 и не читается ни в подзаголовке 13px,
   ни в дисплейном заголовке 44px. На этой карточке текст тёмно-коричневый —
   так же, как на мандариновой .mcard--2. */
.promo--tang .promo__s,
.promo--tang .promo__t { color: var(--ink); }
.promo__t {
  position: relative;
  z-index: 2;
  max-width: 58%;
  font-family: var(--font-d);
  font-weight: 900;
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 0.9;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.promo__s {
  position: relative;
  z-index: 2;
  max-width: 52%;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.4;
}
.promo__img {
  position: absolute;
  right: -8%;
  bottom: 0;
  z-index: 1;
  width: 52%;
  height: 88%;
  object-fit: cover;
  border-radius: var(--r-card) 0 var(--r-card) 0;
}

/* FAQ */
.faq { max-width: var(--read); margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq__i { border: 1px solid var(--accent); border-radius: var(--r-pill); overflow: hidden; transition: border-radius .18s linear; }
.faq__i.is-open { border-radius: 26px; }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  min-height: 52px;
  padding: 12px 32px;
  text-align: left;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.25;
  color: var(--accent);
}
.faq__q:hover { background: rgba(248, 62, 28, .06); }
.faq__ic { flex: 0 0 20px; transition: transform .2s linear; }
.faq__i.is-open .faq__ic { transform: rotate(45deg); }
.faq__a { padding: 0 32px 24px; font-size: 15px; line-height: 1.6; color: var(--ink); }

/* Полоса призыва */
.ctaband__in { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.ctaband__t {
  flex: 1 1 auto;
  font-family: var(--font-d);
  font-weight: 900;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 0.9;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--cream);
  max-width: 620px;
}
.ctaband__side { flex: 0 1 420px; }
.ctaband__side p { margin-bottom: 22px; font-size: 17px; line-height: 1.55; color: var(--cream); }

/* Секция заявки */
.leadform__in { text-align: center; }
.leadform__lead { margin: 18px auto 0; max-width: 620px; }
.form--row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 980px;
  margin: 40px auto 0;
}
.form--row .agree { grid-column: 1 / -1; justify-content: center; margin: 0; }
.form--row .leadform__btn { grid-column: 1 / -1; justify-self: center; }
.form--row .form__ok { grid-column: 1 / -1; }
.agree--center { max-width: 620px; margin-inline: auto; }

/* Тёмный блок «о студии» */
.aboutstrip__in { display: grid; grid-template-columns: 44% 1fr; gap: 56px; align-items: center; }
.aboutstrip__img { border-radius: var(--r-card); overflow: hidden; aspect-ratio: 4 / 3; }
.aboutstrip__img img { width: 100%; height: 100%; object-fit: cover; }
.aboutstrip__txt p { margin-top: 18px; font-size: 16px; line-height: 1.65; color: rgba(250, 232, 223, .88); }
.aboutstrip__act { margin-top: 30px; }

/* Карточки услуг маркетинга */
.mcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mcard {
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 32px;
  border-radius: var(--r-card);
  color: var(--cream);
}
.mcard--1 { background: var(--accent); }
.mcard--2 { background: var(--tang); }
.mcard--3 { background: var(--green); }
.mcard__ic { margin-bottom: 20px; }
.mcard__t { font-family: var(--font-d); font-weight: 900; font-size: 26px; line-height: 1; text-transform: uppercase; }
.mcard__d { margin-top: 14px; font-size: 15px; line-height: 1.55; color: var(--cream); }
.mcard__p { margin-top: 20px; font-family: var(--font-d); font-weight: 700; font-size: 20px; }
.mcard__act { margin-top: auto; padding-top: 24px; }
/* Заголовок карточки — h3, а `.h3, h3 { color: var(--ink) }` перебивает
   наследование от .mcard. На красной и мандариновой плашке тёмный заголовок
   как раз читается лучше всего (3.7:1 и 5.0:1), а на тёмно-зелёной давал 1.01:1
   — буквы сливались с фоном. */
.mcard--3 .mcard__t { color: var(--cream); }
/* Кремовый по мандариновому — 2.27:1. Мелкий текст, цену, иконку и стрелку
   на оранжевой карточке красим в --ink: та же палитра, 5.0:1. */
.mcard--2 { color: var(--ink); }
.mcard--2 .mcard__d { color: var(--ink); }

/* Хаб услуг: тезисы и таблица */
.theses { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 44px; }
.thesis { padding-top: 20px; border-top: 1px solid var(--line); }
.thesis__n { font-family: var(--font-d); font-weight: 900; font-size: 30px; line-height: 1; color: var(--accent); text-transform: uppercase; }
.thesis__d { margin-top: 10px; font-size: 14px; line-height: 1.5; }

.ctable-wrap { overflow-x: auto; }
.ctable { min-width: 760px; font-size: 15px; }
.ctable th, .ctable td { padding: 16px 18px; text-align: left; vertical-align: top; }
.ctable thead th {
  background: var(--tang);
  color: var(--ink);
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.ctable thead th:first-child { border-radius: var(--r-field) 0 0 0; }
.ctable thead th:last-child { border-radius: 0 var(--r-field) 0 0; }
.ctable tbody tr { border-bottom: 1px solid var(--line); }
.ctable tbody a { font-family: var(--font-d); font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: 0.03em; }
.ctable tbody a:hover { color: var(--accent); }
.ctable__price { font-family: var(--font-d); font-weight: 700; color: var(--accent); white-space: nowrap; }
.ctable__lbl { display: none; }

/* Страница услуги */
.slead { display: grid; grid-template-columns: 1fr 44%; gap: 56px; align-items: center; }
.slead__act { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 32px; }
.slead__img { border-radius: var(--r-card); overflow: hidden; aspect-ratio: 4 / 3; }
.slead__img img { width: 100%; height: 100%; object-fit: cover; }

.incl { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.incl li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  line-height: 1.5;
}
.incl svg { flex: 0 0 20px; margin-top: 2px; color: var(--accent); }

.terms__in { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.terms__list { display: flex; flex-direction: column; gap: 26px; }
.term { display: flex; align-items: baseline; gap: 16px; }
.term__n { font-family: var(--font-d); font-weight: 900; font-size: 56px; line-height: 0.9; color: var(--tang); font-variant-numeric: tabular-nums; }
.term__u { font-family: var(--font-d); font-weight: 700; font-size: 13px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--tang); }
.term__d { font-size: 15px; line-height: 1.5; color: rgba(250, 232, 223, .9); }
.needs li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(250, 232, 223, .2);
  font-size: 15px;
  color: rgba(250, 232, 223, .92);
}
.needs svg { flex: 0 0 18px; margin-top: 3px; color: var(--tang); }

/* Кейс */
.csum { background: var(--white); border-radius: var(--r-card); padding: 32px; }
.csum__r { display: flex; justify-content: space-between; gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.csum__r:last-child { border-bottom: 0; }
.csum__k { font-family: var(--font-d); font-weight: 700; font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent-h); flex: 0 0 40%; }
.csum__v { text-align: right; min-width: 0; overflow-wrap: break-word; }
.csum__v a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }

.cshots__main { border-radius: var(--r-card); overflow: hidden; margin-bottom: 24px; }
.cshots__main img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.cshots__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.cshot { border-radius: var(--r-card); overflow: hidden; cursor: zoom-in; }
.cshot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .2s linear; }
.cshot:hover img { transform: scale(1.03); }

.cres { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.cres__n { font-family: var(--font-d); font-weight: 900; font-size: clamp(40px, 5vw, 72px); line-height: 0.9; color: var(--cream); font-variant-numeric: tabular-nums; }
.cres__l { margin-top: 12px; font-size: 14px; line-height: 1.45; color: rgba(250, 232, 223, .88); }

.crev { display: grid; grid-template-columns: 96px 1fr; gap: 28px; align-items: start; max-width: 900px; }
.crev__ph { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.crev__t { font-size: 18px; line-height: 1.6; }
.crev__n { margin-top: 18px; font-family: var(--font-d); font-weight: 700; font-size: 13px; letter-spacing: 0.05em; text-transform: uppercase; }
.crev__p { margin-top: 4px; font-size: 13px; opacity: .75; }

.cnav { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.cnav__i { display: flex; align-items: center; gap: 18px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-card); }
.cnav__i--next { flex-direction: row-reverse; text-align: right; }
.cnav__i:hover { border-color: var(--accent); }
.cnav__th { width: 88px; height: 66px; flex: 0 0 88px; border-radius: 10px; object-fit: cover; }
.cnav__d { font-family: var(--font-d); font-weight: 700; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--tang); }
.cnav__t { margin-top: 6px; font-family: var(--font-d); font-weight: 700; font-size: 15px; text-transform: uppercase; line-height: 1.2; }

/* Лайтбокс */
.lightbox { position: fixed; inset: 0; z-index: 95; display: flex; align-items: center; justify-content: center; padding: 24px; }
.lightbox__back { position: absolute; inset: 0; background: rgba(5, 54, 38, .9); }
.lightbox__img { position: relative; z-index: 1; max-width: 92vw; max-height: 88vh; border-radius: 12px; object-fit: contain; }
.lightbox__x { position: absolute; top: 20px; right: 24px; z-index: 2; color: var(--cream); display: grid; place-items: center; width: 44px; height: 44px; border: 1.5px solid var(--cream); border-radius: 50%; }

/* Почему мы */
.story { position: relative; }
.story__h { position: relative; z-index: 1; }
.bubbles { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.bubble { position: absolute; width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.bubble--1 { top: 4%; right: 12%; }
.bubble--2 { top: 34%; right: 3%; width: 80px; height: 80px; }
.bubble--3 { top: 12%; left: 46%; width: 84px; height: 84px; }

.guars { display: flex; flex-direction: column; }
.guar { display: grid; grid-template-columns: 92px 1fr; gap: 28px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.guar__n { font-family: var(--font-d); font-weight: 900; font-size: 56px; line-height: 0.9; color: var(--accent); }
.guar__t { font-family: var(--font-d); font-weight: 700; font-size: 18px; letter-spacing: 0.03em; text-transform: uppercase; }
.guar__d { margin-top: 10px; font-size: 16px; line-height: 1.6; max-width: 720px; }

.mission { text-align: center; }
.mission__t {
  font-family: var(--font-d);
  font-weight: 900;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--cream);
  max-width: 980px;
  margin: 0 auto;
}

/* Рекомендации */
.letters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.letter { display: block; text-align: left; background: var(--white); border-radius: var(--r-card); padding: 26px 24px; }
.letter__ic { display: block; color: var(--accent-h); margin-bottom: 16px; }
.letter__n { margin-top: 0; font-family: var(--font-d); font-weight: 700; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; }
.letter__m { margin-top: 4px; font-size: 13px; opacity: .72; }
.letter__q { margin-top: 12px; font-size: 14px; line-height: 1.55; }

.tlist { display: flex; flex-direction: column; gap: 24px; }
.tcard { display: grid; grid-template-columns: 96px 1fr; gap: 28px; padding: 32px; border-radius: var(--r-card); background: var(--white); }
.tcard--alt { background: var(--tang); color: var(--ink); }
.tcard__ph { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.tcard__t { font-size: 18px; line-height: 1.65; }
.tcard__n { margin-top: 18px; font-family: var(--font-d); font-weight: 700; font-size: 13px; letter-spacing: 0.05em; text-transform: uppercase; }
.tcard__c { margin-top: 4px; font-size: 13px; opacity: .8; }

/* Контакты */
.ccards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.ccard { padding: 28px; background: var(--white); border-radius: var(--r-card); }
.ccard__ic { color: var(--accent-h); margin-bottom: 16px; }
.ccard__k { font-family: var(--font-d); font-weight: 700; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-h); }
.ccard__v { margin-top: 10px; font-size: 17px; line-height: 1.45; }
.ccard__v a { color: var(--link); }
.ccard__v a:hover { color: var(--ink); }

.map { border-radius: var(--r-card); overflow: hidden; aspect-ratio: 16 / 7; background: var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map__link { display: inline-flex; margin-top: 16px; }

.reqs { background: var(--white); border-radius: var(--r-card); padding: 32px; }
.reqs__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.reqs__r { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.reqs__k { font-family: var(--font-d); font-weight: 700; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-h); }

.privacy { max-width: var(--read); font-size: 15px; line-height: 1.65; }
.privacy p + p { margin-top: 14px; }

/* Карта сайта */
.stree { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 24px; }
.stree__h { font-family: var(--font-d); font-weight: 700; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--link); margin-bottom: 14px; }
.stree__l { display: flex; flex-direction: column; gap: 9px; font-size: 16px; }
.stree__l a:hover { color: var(--accent); }
.stree__sub { margin-top: 9px; display: flex; flex-direction: column; gap: 9px; padding-left: 18px; }
.stree__sub li { position: relative; }
.stree__sub li::before { content: ""; position: absolute; left: -18px; top: 12px; width: 9px; height: 1px; background: var(--tang); }

/* 404 */
.nf { text-align: center; padding: 64px 0 24px; }
.nf__n {
  font-family: var(--font-d);
  font-weight: 900;
  font-size: clamp(110px, 20vw, 220px);
  line-height: 0.8;
  letter-spacing: -0.03em;
  color: var(--accent);
}
.nf__t { margin-top: 20px; font-family: var(--font-d); font-weight: 900; font-size: clamp(22px, 3vw, 34px); text-transform: uppercase; line-height: 1; }
.nf__act { display: flex; justify-content: center; margin-top: 30px; }
.nf__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; margin-top: 26px; }

/* Появление при скролле */
.rise { opacity: 0; transform: translateY(16px); transition: opacity .45s ease-out, transform .45s ease-out; }
.rise.is-in { opacity: 1; transform: none; }


/* Дополнения секций: отступы вместо строчных стилей */
.terms__in .terms__list,
.terms__in .needs { margin-top: 32px; }
.incl--single { grid-template-columns: 1fr; }
.case-task { margin-top: 20px; }
.case-subh {
  margin-top: 34px;
  margin-bottom: 6px;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.story__txt { margin-top: 36px; }
.stree__h--next { margin-top: 30px; }
.mcard__d { min-height: 0; }

/* Расширенная форма заявки в две колонки */
.form--big {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
  max-width: 900px;
}
.form--big .field--wide,
.form--big .agree,
.form--big .btn,
.form--big .form__ok { grid-column: 1 / -1; }
.form--big .btn { justify-self: start; margin-top: 8px; }
.form--big .agree { margin: 6px 0 4px; }

@media (max-width: 720px) {
  .form--big { grid-template-columns: 1fr; }
}


/* Строчные элементы внутри ссылок и кнопок должны вести себя как блоки */
.work__tag, .work__t,
.rev__n, .rev__c,
.letter__n, .letter__m, .letter__q,
.term__u, .term__d,
.cnav__d, .cnav__t,
.tile__t { display: block; }
.rev__who > span,
.term > span:last-child,
.cnav__i > span { display: block; min-width: 0; }

/* --------------------------------------------------------------------------
   6. Медиазапросы
   -------------------------------------------------------------------------- */

/* Порог 1360, а не 1280: выше 1340 полотно упирается в --wrap и ширина шапки перестаёт
   расти, а между 1281 и 1340 полотно ещё уже (W − 2×--pad) — там базовые размеры
   не помещались и меню наезжало на логотип. */
@media (max-width: 1360px) {
  .hdr__in { gap: 16px; }
  .hdr__nav, .hdr__list { gap: 15px; }
  .hdr__link { font-size: 11px; letter-spacing: 0.02em; }
  .logo { font-size: 18px; }
  .hdr__cta { padding: 0 16px; font-size: 11px; letter-spacing: 0.03em; }
  .hdr__cta svg { display: none; }
}

@media (max-width: 1280px) {
  :root { --pad: 36px; --tile-col: 300px; }
}

@media (max-width: 1160px) {
  .hdr__in, .hdr__nav, .hdr__list { gap: 12px; }
  .hdr__link { font-size: 10.5px; letter-spacing: 0.01em; }
}

/* Ниже 1120px шесть русских пунктов в строку уже не помещаются — уходим в бургер.
   Раньше порог был 900px, и на 901–1024 меню наезжало на логотип и кнопку. */
@media (max-width: 1120px) {
  .hdr__nav--left { display: none; }
  .hdr__list { display: none; }
  .hdr__nav--right { flex: 0 0 auto; gap: 12px; }
  .hdr__in { justify-content: space-between; gap: 12px; }
  .logo { order: -1; margin-right: auto; font-size: 20px; }
  .hdr__cta { display: inline-flex; padding: 0 20px; font-size: 12px; }
  .burger { display: flex; }
}

@media (max-width: 1024px) {
  :root { --sec-y: 80px; }
  .stats { grid-template-columns: repeat(3, 1fr); row-gap: 32px; }
  .stat:nth-child(3n+1) { border-left: 0; padding-left: 0; }
  .steps, .steps--4 { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .advs { grid-template-columns: repeat(2, 1fr); }
  .tariffs { grid-template-columns: 1fr; }
  .works, .works--3 { grid-template-columns: repeat(2, 1fr); }
  .rev { flex: 0 0 calc((100% - 24px) / 2); }
  .logos { grid-template-columns: repeat(4, 1fr); }
  .letters { grid-template-columns: repeat(3, 1fr); }
  .ccards { grid-template-columns: repeat(2, 1fr); }
  .theses { grid-template-columns: repeat(2, 1fr); }
  .cres { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .stree { grid-template-columns: repeat(2, 1fr); }
  .foot__cols { grid-template-columns: repeat(3, 1fr); }
  .fcol--side { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; }
  .mcards { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .promobar { display: none; }
  .utilbar__geo, .utilbar__act { display: none; }
  .utilbar__in { justify-content: center; }
  .utilbar__phone { margin: 0 auto; }

  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slead, .aboutstrip__in { grid-template-columns: 1fr; gap: 32px; }
  .aboutstrip__img { order: -1; }
  .incl { grid-template-columns: 1fr; }
  .terms__in { grid-template-columns: 1fr; gap: 36px; }
  .cshots__grid { grid-template-columns: 1fr; }
  .cnav { grid-template-columns: 1fr; }
  .promoduo { grid-template-columns: 1fr; }
  .ctaband__in { flex-direction: column; align-items: flex-start; gap: 28px; }
  .ctaband__side { flex: 1 1 auto; }
  .form--row { grid-template-columns: 1fr; }
  .reqs__grid { grid-template-columns: 1fr; }
  .tcard { grid-template-columns: 1fr; gap: 18px; }
  .crev { grid-template-columns: 1fr; gap: 18px; }
  .bubbles { display: none; }

  /* Подвал: колонки складываются в аккордеон */
  .foot__cols { grid-template-columns: 1fr; gap: 0; padding: 24px 0; }
  .fcol { border-bottom: 1px solid rgba(250, 232, 223, .18); }
  .fcol__h { margin-bottom: 0; }
  .fcol__btn { padding: 16px 0; cursor: pointer; }
  .fcol__btn svg { display: block; transition: transform .2s linear; }
  .fcol__btn[aria-expanded="true"] svg { transform: rotate(180deg); }
  .fcol__list { padding-bottom: 18px; }
  .fcol--side { border-bottom: 0; padding: 22px 0 0; flex-wrap: wrap; gap: 16px; }
}

@media (max-width: 720px) {
  :root { --pad: 24px; --sec-y: 56px; --r-block: 24px; }
  .sec__head { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 32px; }
  .band { padding: 56px 0; }
  .stats, .stats--4 { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .stat { padding: 0 12px; }
  .stat:nth-child(3n+1) { border-left: 1px solid var(--line); padding-left: 12px; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .band .stat:nth-child(3n+1) { border-left-color: rgba(250, 232, 223, .22); }
  .band .stat:nth-child(odd) { border-left: 0; }
  .steps, .steps--4 { grid-template-columns: 1fr; gap: 24px; }
  .advs { grid-template-columns: 1fr; }
  .works, .works--3 { grid-template-columns: 1fr; }
  .rev { flex: 0 0 88%; padding: 26px; }
  .logos { grid-template-columns: repeat(3, 1fr); }
  .letters { grid-template-columns: repeat(2, 1fr); }
  .ccards { grid-template-columns: 1fr; }
  .theses { grid-template-columns: 1fr; }
  .cres { grid-template-columns: 1fr; }
  .stree { grid-template-columns: 1fr; }
  .guar { grid-template-columns: 1fr; gap: 10px; padding: 22px 0; }
  .guar__n { font-size: 40px; }
  .promo { min-height: 300px; padding: 26px; }
  .promo__t, .promo__s { max-width: 100%; }
  .promo__img { position: relative; right: auto; width: 100%; height: 180px; margin-top: 22px; border-radius: var(--r-card); }
  .faq__q { padding: 12px 22px; font-size: 14px; }
  .faq__a { padding: 0 22px 20px; }
  .foot__top { flex-direction: column; align-items: flex-start; gap: 12px; }
  .foot__bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
  .foot__legal { flex-direction: column; gap: 6px; }
  .wordmark { font-size: 64px; padding: 0 16px; }
  .modal__box { padding: 30px 22px 24px; }
  .pfilter { flex-direction: column; align-items: stretch; }
  .pfilter .field { min-width: 0; }
  .pfilter__count { margin-left: 0; height: auto; }

  /* Сравнительная таблица превращается в карточки */
  .ctable-wrap { overflow: visible; }
  .ctable { min-width: 0; display: block; }
  .ctable thead { display: none; }
  .ctable tbody, .ctable tr, .ctable td { display: block; width: 100%; }
  .ctable tbody tr {
    background: var(--white);
    border: 0;
    border-radius: var(--r-card);
    padding: 18px 20px;
    margin-bottom: 14px;
  }
  .ctable td { padding: 7px 0; border-bottom: 1px solid var(--line); }
  .ctable td:last-child { border-bottom: 0; }
  .ctable__lbl {
    display: block;
    font-family: var(--font-d);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--tang);
    margin-bottom: 3px;
  }
}

@media (max-width: 480px) {
  /* Заголовок в 32px не влезает в 375px: слово «БЛАГОДАРСТВЕННЫЕ» шире полотна.
     Ниже 480 масштабируем от ширины окна, а не от фиксированного минимума. */
  .h2, h2 { font-size: clamp(22px, 6.6vw, 32px); }
  /* «НАС РЕКОМЕНДУЮТ» в 44px не влезало в строку и рвалось посреди слова */
  .h1, h1, .hero-text .h1 { font-size: clamp(26px, 8.4vw, 44px); }

  .tiles { grid-template-columns: minmax(0, 1fr); }
  .tile__img { height: 190px; }
  .letters { grid-template-columns: 1fr; }
  .logos { grid-template-columns: repeat(2, 1fr); }
  /* Логотип + CTA + бургер в одну строку: на 375px прежние размеры давали +2px прокрутки */
  .hdr__in { gap: 10px; }
  .logo { font-size: 16px; }
  .hdr__cta { padding: 0 12px; font-size: 11px; letter-spacing: 0.02em; }
  .hdr__cta svg { display: none; }
  .mobnav__link { font-size: 24px; }
  .csum, .reqs, .adv, .tar { padding: 24px 20px; }
  /* «Красногвардейский», «adm-poselenie.ru» не помещались в правую колонку строки —
     на узком экране пара «ключ / значение» встаёт в два ряда. */
  .csum__r { flex-direction: column; gap: 4px; }
  .csum__k { flex: 0 0 auto; }
  .csum__v { text-align: left; }
}

/* Ниже 360px (iPhone SE 1-го поколения, внешний экран Galaxy Fold) шапка
   не складывалась: логотип 128 + кнопка 121 + бургер 40 + отступы = 357px
   при окне 320px, страница получала прокрутку, а бургер уезжал за край.
   Кнопку в шапке прячем — она есть в мобильной панели и в подвале. */
@media (max-width: 360px) {
  .hdr__cta { display: none; }
  .logo { font-size: 15px; }
  /* «КОНФИДЕНЦИАЛЬНОСТИ» одним словом шире полотна: overflow-wrap: break-word
     не влияет на min-content ширину внутри флекс-контейнера .sec__head. */
  .h1, h1, .h2, h2, .h3, h3 { overflow-wrap: anywhere; }
  .sec__head > * { min-width: 0; }
}

/* --------------------------------------------------------------------------
   Доступность
   -------------------------------------------------------------------------- */

:focus { outline: none; }

:focus-visible {
  outline: 3px solid var(--tang);
  outline-offset: 2px;
  border-radius: 2px;
}

.band :focus-visible,
.foot :focus-visible,
.utilbar :focus-visible,
.promobar :focus-visible,
.tar--hot :focus-visible,
.promo :focus-visible,
.mcard :focus-visible,
.tcard--alt :focus-visible {
  outline: 3px solid var(--cream);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .rev-track { scroll-behavior: auto; }
  .rise { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   Печать
   -------------------------------------------------------------------------- */

@media print {
  .promobar, .utilbar, .hdr, .burger, .mobnav, .modal, .lightbox,
  .foot__cols, .foot__soc, .wordmark, .leadform, .ctaband, .rev-ctrl,
  .loadmore, .pfilter, .skip { display: none !important; }

  body { background: #fff; color: #000; font-size: 12pt; }
  .band, .foot { background: #fff !important; color: #000 !important; width: auto; margin-left: 0; border-radius: 0; }
  .band .h2, .band h2, .band h3, .foot * { color: #000 !important; }
  .wrap { max-width: none; padding: 0; }
  .sec { padding: 12pt 0; }
  a { color: #000; text-decoration: underline; }
  .h1, h1 { font-size: 24pt; }
  .h2, h2 { font-size: 18pt; }
  .faq__a { display: block !important; }
  img { max-width: 100%; }
  .rise { opacity: 1; transform: none; }
}
