/* ==========================================================================
   2seo.pro — 1. Переменные, сброс, типографика, контейнер, кнопки, формы
   ========================================================================== */

:root {
  /* Палитра */
  --white:        #FFFFFF;
  --gray-05:      #F6F6F6;
  --gray-10:      #EFEFEF;
  --line:         #E3E3E3;
  --line-strong:  #D4D4D4;

  --green:        #389D74;
  --green-dark:   #2E8763;
  --green-light:  #6AB697;
  --mint:         #DEF0E9;

  --black:        #000000;
  --text:         #212121;
  --muted:        #6B6B6B;
  --on-dark:      #FFFFFF;
  --on-dark-mut:  #A0A0A0;
  --dark-line:    #2A2A2A;
  --dark-border:  #3A3A3A;
  --glow-1:       #14382A;
  --glow-2:       #0E261C;

  /* Типографика */
  --font: 'Onest', 'Golos Text', 'Helvetica Neue', Arial, sans-serif;
  --fs-h1:      56px;
  --fs-h1-page: 64px;
  --fs-h2:      40px;
  --fs-h3:      26px;
  --fs-card:    22px;
  --fs-lead:    22px;
  --fs-body:    17px;
  --fs-meta:    15px;
  --fs-small:   14px;

  /* Геометрия */
  --container:   1250px;
  --container-w: 1400px;
  --pad-x:       24px;
  --r-pill:      32px;
  --r-card:      24px;
  --r-block:     32px;
  --r-lg:        40px;
  --r-field:     20px;
  --section-y:   96px;
  --header-h:    64px;
  --shadow-soft: 0 8px 32px rgba(0, 0, 0, .06);
  --shadow-lift: 0 16px 44px rgba(0, 0, 0, .10);
  --ease:        cubic-bezier(.4, 0, .2, 1);
}

/* --------------------------------------------------------- Сброс -------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.55;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ключевое правило: атрибут hidden всегда сильнее любых классов. */
[hidden] { display: none !important; }

h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }

button, input, textarea, select {
  font: inherit;
  color: inherit;
  margin: 0;
}
button { background: none; border: 0; cursor: pointer; }

table { border-collapse: collapse; width: 100%; }

hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

.icon { flex: 0 0 auto; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--green);
  color: #fff;
  border-radius: var(--r-pill);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

body.is-locked { overflow: hidden; }

/* ---------------------------------------------------- Типографика ------- */

h1, .h1 {
  font-size: clamp(34px, 6vw, var(--fs-h1));
  font-weight: 300;
  line-height: 1.1;
  color: var(--black);
  letter-spacing: normal;
}
h2, .h2 {
  font-size: clamp(28px, 4.4vw, var(--fs-h2));
  font-weight: 600;
  line-height: 1.15;
  color: var(--black);
}
h3, .h3 {
  font-size: clamp(21px, 2.6vw, var(--fs-h3));
  font-weight: 600;
  line-height: 1.25;
  color: var(--black);
}
h4 { font-size: 20px; font-weight: 600; line-height: 1.3; color: var(--black); }

p + p { margin-top: 14px; }

.lead {
  font-size: clamp(18px, 2.2vw, var(--fs-lead));
  font-weight: 400;
  line-height: 1.4;
  color: var(--text);
}
.muted { color: var(--muted); }
.meta  { font-size: var(--fs-meta); color: var(--muted); }
.small { font-size: var(--fs-small); color: var(--muted); }

.text-link {
  color: inherit;
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.text-link:hover { border-bottom-color: currentColor; }

.link-green { color: var(--green); }
.link-green:hover { color: var(--green-dark); text-decoration: underline; }

.rich p { margin-bottom: 16px; }
.rich p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------- Контейнер ------ */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
.container--wide { max-width: var(--container-w); }
.container--narrow { max-width: 808px; }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: 64px; }
.section--gray { background: var(--gray-05); }
.section--gray-deep { background: var(--gray-10); }
.section--dark { background: var(--black); color: var(--on-dark); }

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.section__head p { max-width: 640px; color: var(--muted); }
.section__title { max-width: 800px; }
.section__lead { margin-top: 16px; max-width: 680px; color: var(--muted); }

.hairline { height: 1px; background: var(--line); border: 0; }

/* ---------------------------------------------------------- Кнопки ------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 30px;
  border-radius: var(--r-pill);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  border: 0;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease),
              transform .1s var(--ease), border-color .2s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-dark); }

.btn--secondary { background: var(--gray-05); color: var(--text); }
.btn--secondary:hover { background: #E9E9E9; }

.btn--mint { background: var(--mint); color: var(--green-dark); }
.btn--mint:hover { background: #CFE8DE; }

.btn--dark { background: var(--black); color: #fff; max-width: 380px; width: 100%; }
.btn--dark:hover { background: #1A1A1A; }

.btn--dark-mint { background: var(--glow-2); color: var(--green-light); }
.btn--dark-mint:hover { background: #143a2b; }

.btn--outline-light {
  background: transparent;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45);
}
.btn--outline-light:hover { background: rgba(255, 255, 255, .12); }

.btn--ghost-light {
  background: rgba(255, 255, 255, .14);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55);
}
.btn--ghost-light:hover { background: rgba(255, 255, 255, .26); }

.btn--lg { min-height: 56px; padding: 0 34px; font-size: 17px; }
.btn--sm { min-height: 44px; padding: 0 22px; font-size: 15px; }
.btn--block { display: flex; width: 100%; }

/* Кнопка-пилюля с белым круглым чипом-иконкой слева */
.btn--chip { padding-left: 6px; padding-right: 26px; gap: 12px; min-height: 56px; }
.btn__chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #fff;
  color: var(--green);
}

/* Круглая кнопка-стрелка */
.arrow-btn,
.round-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #fff;
  color: var(--green);
  box-shadow: var(--shadow-soft);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.round-btn { cursor: pointer; }
.round-btn:hover,
.round-btn:focus-visible { background: var(--green); color: #fff; }
.round-btn[disabled] { opacity: .4; cursor: default; }
.round-btn--sm { width: 40px; height: 40px; box-shadow: none; background: var(--gray-05); color: var(--muted); }
.round-btn--sm:hover { background: var(--green); color: #fff; }

/* Пилюля-тег */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  font-size: var(--fs-small);
  font-weight: 500;
  background: var(--mint);
  color: var(--green-dark);
}
.pill--gray { background: var(--gray-05); color: var(--muted); }

/* Тёмный чип-ярлык секции */
.section-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 20px 0 14px;
  border-radius: var(--r-pill);
  background: var(--black);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
}
.section-chip .icon { color: #fff; }

/* ----------------------------------------------------------- Формы ------ */

.field { display: block; margin-bottom: 16px; }
.field__label {
  display: block;
  margin-bottom: 8px;
  font-size: var(--fs-small);
  color: var(--muted);
}
.field__control {
  display: block;
  width: 100%;
  min-height: 56px;
  padding: 15px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-field);
  font-size: 16px;
  color: var(--text);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
textarea.field__control { min-height: 120px; resize: vertical; }
.field__control::placeholder { color: #9B9B9B; }
.field__control:hover { border-color: var(--line-strong); }
.field__control:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(56, 157, 116, .18);
}

.field-row { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 18px 0;
  font-size: var(--fs-small);
  line-height: 1.45;
  color: var(--muted);
  cursor: pointer;
}
.consent input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  width: 20px; height: 20px;
  margin-top: 1px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  transition: background-color .15s var(--ease), border-color .15s var(--ease);
}
.consent input[type="checkbox"]:checked {
  background: var(--green) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5.2 5.2L20 7'/%3E%3C/svg%3E") center / 14px no-repeat;
  border-color: var(--green);
}
.consent a { color: var(--green); text-decoration: underline; }

.form-success {
  padding: 28px;
  border-radius: var(--r-card);
  background: var(--mint);
  color: var(--green-dark);
}
.form-success h3 { color: var(--green-dark); margin-bottom: 8px; }
.form-success p { color: #2c6a52; }

/* ==========================================================================
   2. Шапка, навигация, бургер, мобильное меню, футер
   ========================================================================== */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  height: var(--header-h);
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), transform .3s var(--ease), opacity .2s var(--ease);
}
body.is-scrolled .site-header { border-bottom-color: var(--line); }

/* Плавающая пилюля вместо полосы */
body.is-floating .site-header {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
.site-header__spacer { flex: 1 1 auto; }

/* Отступ под фиксированной шапкой для страниц без полноэкранного героя */
body { padding-top: var(--header-h); }
body.has-cover-hero { padding-top: 0; }

/* -------------------------------------------------------- Логотип ------- */

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
.logo__text {
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  color: var(--black);
  white-space: nowrap;
}
.logo--light .logo__text { color: #fff; }

/* --------------------------------------------------------- Бургер ------- */

.burger,
.floating-bar__burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--gray-05);
  color: var(--black);
  transition: background-color .2s var(--ease);
}
.burger:hover,
.floating-bar__burger:hover { background: #E9E9E9; }

.burger__lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}
.burger__lines span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

/* ------------------------------------------- Выпадающий пункт «Услуги» -- */

.header-dropdown { position: relative; flex: 0 0 auto; }
.header-dropdown__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 8px;
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.header-dropdown__toggle .icon { transition: transform .2s var(--ease); }
.header-dropdown__toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.header-dropdown--active .header-dropdown__toggle {
  color: var(--green);
  border-bottom-color: var(--green);
}
.header-dropdown__list {
  position: absolute;
  top: calc(100% + 10px);
  left: -8px;
  z-index: 5;
  min-width: 288px;
  padding: 12px;
  background: #fff;
  border-radius: var(--r-card);
  box-shadow: var(--shadow-lift);
}
.header-dropdown__list a {
  display: block;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 16px;
  color: var(--text);
  transition: background-color .15s var(--ease), color .15s var(--ease);
}
.header-dropdown__list a:hover { background: var(--gray-05); color: var(--green-dark); }

/* -------------------------------------------------- Правый блок шапки --- */

.header-contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.25;
  flex: 0 0 auto;
}
.header-contacts__phone { font-size: 16px; font-weight: 600; color: var(--black); white-space: nowrap; }
.header-contacts__phone:hover { color: var(--green); }
.header-contacts__mail { font-size: 13px; color: var(--muted); }
.header-contacts__mail:hover { color: var(--green); }

.btn--icon-phone {
  display: none;
  width: 44px; height: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 50%;
  background: var(--gray-05);
  color: var(--black);
}
.btn--icon-phone:hover { background: #E9E9E9; color: var(--green); }

/* --------------------------------------------- Плавающая панель ---------- */

.floating-bar {
  position: fixed;
  top: 12px; left: 0; right: 0;
  z-index: 95;
  display: flex;
  justify-content: center;
  padding-inline: 16px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-14px);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
body.is-floating .floating-bar { opacity: 1; transform: none; }
.floating-bar__pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: var(--r-pill);
  background: #fff;
  box-shadow: var(--shadow-soft);
  pointer-events: auto;
  max-width: 100%;
}
.floating-bar__pill .btn--chip { min-height: 52px; }
.floating-bar__pill .btn__chip { width: 40px; height: 40px; }
.floating-bar__pill .btn--mint .btn__chip { color: var(--green); }

/* --------------------------------------------- Полноэкранное меню ------- */

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  background: var(--white);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.nav-overlay__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-h);
  flex: 0 0 auto;
  max-width: var(--container-w);
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--pad-x);
  border-bottom: 1px solid var(--line);
}
.nav-overlay__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--gray-05);
  color: var(--black);
  transition: background-color .2s var(--ease);
}
.nav-overlay__close:hover { background: #E9E9E9; }

.nav-overlay__body {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding: 48px var(--pad-x) 64px;
}
.nav-overlay__label {
  margin-bottom: 18px;
  font-size: var(--fs-small);
  color: var(--muted);
}
.nav-overlay__list li + li { margin-top: 4px; }
.nav-overlay__list a {
  display: inline-block;
  padding: 6px 0;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--black);
  border-bottom: 2px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.nav-overlay__list a:hover { color: var(--green); }
.nav-overlay__list a.is-active { color: var(--green); border-bottom-color: var(--green); }
.nav-overlay__list--services a { font-size: 20px; font-weight: 400; color: var(--text); }

.nav-overlay__phone {
  display: block;
  font-size: 28px;
  font-weight: 300;
  color: var(--black);
}
.nav-overlay__phone:hover { color: var(--green); }
.nav-overlay__mail {
  display: block;
  margin-top: 8px;
  font-size: 20px;
  color: var(--text);
}
.nav-overlay__mail:hover { color: var(--green); }
.nav-overlay__note { margin-top: 16px; font-size: var(--fs-meta); color: var(--muted); }

/* ------------------------------------------------------- Соцсети -------- */

.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--muted);
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.socials__item:hover { background: var(--green); border-color: var(--green); color: #fff; }
.socials__item--dark { width: 32px; height: 32px; border-color: var(--dark-border); color: #fff; }
.socials__item--dark:hover { background: var(--green); border-color: var(--green); }

/* ---------------------------------------------------------- Футер ------- */

.site-footer {
  position: relative;
  padding: 64px 0 24px;
  background:
    radial-gradient(120% 70% at 50% 118%, var(--glow-1) 0%, var(--glow-2) 34%, var(--black) 72%),
    var(--black);
  color: var(--on-dark);
  overflow: hidden;
}
.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.site-footer__chevron { color: var(--on-dark-mut); font-size: 18px; }
.site-footer__page { color: var(--on-dark-mut); font-size: 16px; }

.site-footer__rule { border-top: 1px solid var(--dark-line); }

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1.1fr auto;
  gap: 32px;
  padding: 40px 0;
}
.site-footer__label {
  margin-bottom: 16px;
  font-size: var(--fs-meta);
  color: var(--muted);
}
.site-footer__col ul li + li { margin-top: 10px; }
.site-footer__col a {
  font-size: 16px;
  color: #fff;
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.site-footer__col a:hover { border-bottom-color: #fff; }

.site-footer__socials { display: flex; gap: 10px; align-items: flex-start; }

.site-footer__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}
.site-footer__actions .btn { justify-content: flex-start; }
.site-footer__actions .btn--dark-mint .btn__chip { color: var(--green); }

.site-footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  padding: 24px 0 44px;
}
.site-footer__contacts a {
  font-size: 32px;
  font-weight: 300;
  line-height: 1.2;
  color: #fff;
  transition: color .2s var(--ease);
}
.site-footer__contacts a:hover { color: var(--green-light); }

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 20px;
}
.site-footer__copy,
.site-footer__geo { font-size: var(--fs-small); color: var(--on-dark-mut); }
.site-footer__legal {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.site-footer__legal a {
  font-size: var(--fs-small);
  color: var(--on-dark-mut);
  transition: color .2s var(--ease);
}
.site-footer__legal a:hover { color: #fff; }

/* ==========================================================================
   3. Секции
   ========================================================================== */

/* ------------------------------------------- Первый экран на всю высоту -- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, .18);
}
.hero__inner {
  width: 100%;
  max-width: 960px;
  padding: 120px var(--pad-x) 140px;
  text-align: center;
  color: #fff;
}
.hero__title { color: #fff; font-weight: 300; }
.hero__lead {
  margin: 22px auto 0;
  max-width: 640px;
  font-size: clamp(17px, 2vw, var(--fs-lead));
  color: rgba(255, 255, 255, .92);
}
.hero__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 34px;
}
.hero__chip {
  position: absolute;
  left: 24px;
  bottom: 28px;
  z-index: 2;
}

/* ---------------------------------------- Первый экран внутренней стр. --- */

.page-hero { position: relative; }

.page-hero--photo {
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
}
.page-hero--photo .page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero--photo .page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero--photo::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,.30) 0%, rgba(0,0,0,.18) 45%, rgba(0,0,0,.42) 100%);
}
.page-hero--photo .page-hero__inner { padding-block: 56px 48px; }
.page-hero--photo h1 { color: #fff; }
.page-hero--photo .page-hero__lead { color: rgba(255, 255, 255, .9); }

.page-hero--plain { background: var(--white); }
.page-hero--plain .page-hero__inner { padding-block: 40px 24px; }
.page-hero--plain h1 {
  font-size: clamp(36px, 6.4vw, var(--fs-h1-page));
  font-weight: 600;
}

.page-hero__lead { margin-top: 20px; max-width: 640px; }
.page-hero__actions { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }

/* --------------------------------------------------- Хлебные крошки ----- */

.breadcrumbs { font-size: var(--fs-small); }
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.breadcrumbs li { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.breadcrumbs a { color: var(--text); transition: color .2s var(--ease); }
.breadcrumbs a:hover { color: var(--green); }
.breadcrumbs__sep { color: var(--line-strong); }
.breadcrumbs--light li { color: rgba(255, 255, 255, .7); }
.breadcrumbs--light a { color: #fff; }
.breadcrumbs--light a:hover { color: var(--mint); }
.breadcrumbs--light .breadcrumbs__sep { color: rgba(255, 255, 255, .45); }
.breadcrumbs--standalone { padding-block: 20px 0; }

/* --------------------------------------------------- Строка фактов ------ */

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.stats-row--3 { grid-template-columns: repeat(3, 1fr); }
.stat__value {
  font-size: clamp(44px, 5.4vw, 72px);
  font-weight: 300;
  line-height: 1;
  color: var(--black);
  letter-spacing: -.01em;
}
.stat__label { margin-top: 12px; font-size: var(--fs-meta); color: var(--muted); max-width: 240px; }

.split {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: start;
}
.split__text p { color: var(--muted); margin-top: 18px; }
.split .stats-row { grid-template-columns: repeat(2, 1fr); gap: 40px 32px; }

/* -------------------------------------------------- Карточка-превью ----- */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.cards-grid--2 { grid-template-columns: repeat(2, 1fr); gap: 20px; }
.cards-grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--gray-05);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }

.card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--gray-10);
  border-radius: var(--r-card);
  overflow: visible;
}
.card__media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: var(--r-card);
}
.card__media .arrow-btn {
  position: absolute;
  right: 18px;
  bottom: -24px;
  z-index: 2;
}
.card:hover .card__media .arrow-btn { background: var(--green); color: #fff; }

.card__body { padding: 40px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1 1 auto; }
.card__meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.card__date { font-size: var(--fs-small); color: var(--muted); }
.card__title { font-size: clamp(19px, 2.1vw, var(--fs-card)); font-weight: 600; line-height: 1.25; color: var(--black); }
.card__text { font-size: 15px; color: var(--muted); }
.card__price { margin-top: auto; padding-top: 8px; font-size: 16px; font-weight: 600; color: var(--black); }
.card__price span { color: var(--muted); font-weight: 400; font-size: 14px; }

.card__link {
  position: absolute;
  inset: 0;
  z-index: 3;
}
.card__link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.card--lg .card__media { aspect-ratio: 16 / 9; }
.card--lg .card__title { font-size: clamp(21px, 2.6vw, var(--fs-h3)); }

/* ------------------------------------------------ Плоские блоки-фичи ---- */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
}
.features--2 { grid-template-columns: repeat(2, 1fr); }
.feature__icon { color: var(--muted); }
.feature__rule { margin: 16px 0 16px; height: 1px; background: var(--line); }
.feature__title { font-size: clamp(20px, 2.4vw, var(--fs-h3)); font-weight: 600; color: var(--black); }
.feature__text { margin-top: 12px; color: var(--muted); }
.features--on-photo .feature__icon { color: rgba(255,255,255,.85); }
.features--on-photo .feature__title { color: #fff; }
.features--on-photo .feature__text { color: rgba(255,255,255,.8); }
.features--on-photo .feature__rule { background: rgba(255,255,255,.28); }

.photo-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--r-lg);
  padding: 72px 0;
  color: #fff;
}
.photo-band__media { position: absolute; inset: 0; z-index: -2; }
.photo-band__media img { width: 100%; height: 100%; object-fit: cover; }
.photo-band::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(0, 0, 0, .42);
}
.photo-band h2 { color: #fff; }
.photo-band .section__lead { color: rgba(255,255,255,.8); }

/* --------------------------------------------------- Этапы работы ------- */

.steps { border-top: 1px solid var(--line); }
.step {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}
.step__num {
  font-size: 48px;
  font-weight: 300;
  line-height: 1;
  color: var(--green);
}
.step__title { font-size: clamp(20px, 2.4vw, var(--fs-h3)); font-weight: 600; color: var(--black); }
.step__text { margin-top: 10px; color: var(--muted); max-width: 760px; }
.step__result { margin-top: 16px; display: flex; gap: 8px; flex-wrap: wrap; }

.steps--compact {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 0;
}
.steps--compact .step {
  display: block;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}
.steps--compact .step__num { font-size: 40px; margin-bottom: 14px; }
.steps--compact .step__title { font-size: 20px; }
.steps--compact .step__text { font-size: 15px; }

/* Тёмный блок с этапами */
.dark-block {
  position: relative;
  border-radius: var(--r-lg);
  padding: 72px 48px;
  background:
    radial-gradient(110% 80% at 20% 120%, var(--glow-1) 0%, var(--glow-2) 40%, var(--black) 78%),
    var(--black);
  color: var(--on-dark);
  overflow: hidden;
}
.dark-block h2, .dark-block h3 { color: #fff; }
.dark-block p { color: var(--on-dark-mut); }
.dark-block__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}
.dark-steps li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--dark-line);
}
.dark-steps li:first-child { border-top: 0; padding-top: 0; }
.dark-steps__num { font-size: 32px; font-weight: 300; color: var(--green-light); line-height: 1.1; }
.dark-steps__title { font-size: 20px; font-weight: 600; color: #fff; }
.dark-steps__text { margin-top: 6px; font-size: 15px; color: var(--on-dark-mut); }

/* --------------------------------------------------------- Табы --------- */

.tabs__list {
  display: inline-flex;
  gap: 4px;
  padding: 6px;
  border-radius: var(--r-pill);
  background: var(--gray-05);
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs__list::-webkit-scrollbar { display: none; }
.tabs__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  background: transparent;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.tabs__btn:hover { color: var(--green-dark); }
.tabs__btn[aria-selected="true"] { background: #fff; color: var(--black); box-shadow: var(--shadow-soft); }
.tabs__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px; height: 24px;
  padding: 0 7px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
  background: var(--line-strong);
  color: #fff;
}
.tabs__btn[aria-selected="true"] .tabs__count { background: var(--green); }

.tabs__panels { margin-top: 40px; }
.tab-panel {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  align-items: center;
}
.tab-panel__text p { color: var(--muted); margin-top: 16px; }
.tab-panel__list { margin-top: 22px; }
.tab-panel__list li {
  position: relative;
  padding-left: 26px;
  margin-top: 10px;
  color: var(--text);
}
.tab-panel__list li::before {
  content: "";
  position: absolute;
  left: 4px; top: 10px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
}
.tab-panel__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-block);
}

/* --------------------------------------- Фильтры-пилюли со счётчиками --- */

.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.filters__group {
  display: inline-flex;
  gap: 4px;
  padding: 6px;
  border-radius: var(--r-pill);
  background: var(--gray-05);
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.filters__group::-webkit-scrollbar { display: none; }

/* --------------------------------------------- Список-таблица направл. -- */

.dir-list { border-top: 1px solid var(--line); }
.dir-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px 40px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}
.dir-row__title { font-size: clamp(20px, 2.4vw, var(--fs-h3)); font-weight: 600; color: var(--black); }
.dir-row__links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 32px;
}
.dir-row__links a { color: var(--text); border-bottom: 1px solid transparent; transition: color .2s var(--ease), border-color .2s var(--ease); }
.dir-row__links a:hover { color: var(--green); border-bottom-color: var(--green); }

/* ------------------------------------------------- Оверлей-слайдер ------ */

.slider { position: relative; }
.slider__stage {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--r-lg);
}
.slider__media { position: absolute; inset: 0; z-index: -1; }
.slider__media img { width: 100%; height: 100%; object-fit: cover; }
.slider__inner { width: 100%; padding: 32px; display: flex; justify-content: flex-end; }

.overlay-card {
  width: min(520px, 100%);
  padding: 32px;
  border-radius: var(--r-block);
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.overlay-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.overlay-card__title { font-size: clamp(20px, 2.4vw, var(--fs-h3)); font-weight: 600; color: var(--black); }
.overlay-card__nav { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.overlay-card__counter { font-size: var(--fs-meta); color: var(--muted); min-width: 34px; text-align: center; }
.overlay-card__rule { margin: 20px 0 16px; height: 1px; background: var(--line); }
.overlay-card__text { color: var(--muted); }

/* ------------------------------------------------------- Аккордеон ------ */

.accordion { border-top: 1px solid var(--line); }
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__btn {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 24px 0;
  text-align: left;
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 600;
  color: var(--black);
  transition: color .2s var(--ease);
}
.accordion__btn:hover { color: var(--green-dark); }
.accordion__sign {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--gray-05);
  color: var(--green);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.accordion__btn[aria-expanded="true"] .accordion__sign { background: var(--green); color: #fff; }
.accordion__btn[aria-expanded="true"] .accordion__sign .icon--plus { display: none; }
.accordion__btn[aria-expanded="false"] .accordion__sign .icon--minus { display: none; }
.accordion__panel { padding: 0 60px 26px 0; color: var(--muted); max-width: 900px; }

.faq-group + .faq-group { margin-top: 56px; }
.faq-group__title { margin-bottom: 20px; }

.anchor-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.anchor-pills a {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--r-pill);
  background: var(--gray-05);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.anchor-pills a:hover { background: var(--green); color: #fff; }

/* ------------------------------------------------ Таблица тарифов ------- */

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pricing-table { min-width: 900px; font-variant-numeric: tabular-nums; }
.pricing-table th, .pricing-table td {
  padding: 18px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.pricing-table thead th { border-bottom: 1px solid var(--line-strong); }
.pricing-table th:first-child, .pricing-table td:first-child {
  width: 34%;
  color: var(--text);
  font-weight: 400;
}
.pricing-table thead th { font-weight: 600; font-size: 20px; color: var(--black); }
.pricing-table thead th span {
  display: block;
  margin-top: 6px;
  font-size: var(--fs-small);
  font-weight: 400;
  color: var(--muted);
}
.pricing-table td { font-size: var(--fs-meta); color: var(--muted); }
.pricing-table .is-yes { color: var(--green); }
.pricing-table .is-no  { color: var(--line-strong); }
.pricing-table .col-featured { background: var(--gray-05); }
.pricing-table thead .col-featured { box-shadow: inset 0 3px 0 var(--green); }
.pricing-table .row-price td { font-size: 22px; font-weight: 600; color: var(--black); }
.pricing-table .row-price td span { font-size: var(--fs-small); font-weight: 400; color: var(--muted); display: block; }
.pricing-table .row-action td { border-bottom: 0; }

.price-list { border-top: 1px solid var(--line); }
.price-list__row {
  display: grid;
  grid-template-columns: 1fr 200px 180px;
  gap: 16px 24px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.price-list__name { font-size: 18px; font-weight: 500; color: var(--black); }
.price-list__term { font-size: var(--fs-meta); color: var(--muted); }
.price-list__price { font-size: 20px; font-weight: 600; color: var(--black); text-align: right; }

/* --------------------------------------------------- Карты и блоки ------ */

.white-card {
  background: #fff;
  border-radius: var(--r-block);
  padding: 40px;
  box-shadow: var(--shadow-soft);
}
.white-card--flat { box-shadow: none; border: 1px solid var(--line); }
.gray-card {
  background: var(--gray-05);
  border-radius: var(--r-block);
  padding: 40px;
}
.two-cards {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.two-cards .dark-block { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.two-cards .dark-block .btn { margin-top: 24px; align-self: flex-start; }

.two-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}
.marker-list li {
  position: relative;
  padding-left: 28px;
  margin-top: 12px;
  color: var(--text);
}
.marker-list li::before {
  content: "";
  position: absolute;
  left: 4px; top: 9px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--green);
}
.marker-list--gray li::before { background: var(--line-strong); }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 12px; }
.tag-cloud span {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 22px;
  border-radius: var(--r-pill);
  background: var(--gray-05);
  font-size: 16px;
  color: var(--text);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.tools-grid__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 24px;
  border-radius: var(--r-card);
  background: var(--gray-05);
}
.tools-grid__item .icon { color: var(--green); }
.tools-grid__name { font-size: 17px; font-weight: 600; color: var(--black); }
.tools-grid__note { font-size: var(--fs-small); color: var(--muted); }

.timeline { border-top: 1px solid var(--line); }
.timeline__row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px 40px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.timeline__year { font-size: 48px; font-weight: 300; line-height: 1; color: var(--black); }
.timeline__text { color: var(--muted); max-width: 760px; }

.role-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border-radius: var(--r-card);
  background: var(--gray-05);
  height: 100%;
}
.role-card .icon { color: var(--green); }
.role-card__title { font-size: 20px; font-weight: 600; color: var(--black); }
.role-card__text { font-size: 15px; color: var(--muted); }
.role-card__ask { font-size: var(--fs-small); color: var(--green-dark); margin-top: auto; padding-top: 8px; }

.data-table th, .data-table td {
  padding: 16px 0;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.data-table th { width: 34%; font-weight: 400; color: var(--muted); font-size: var(--fs-meta); }
.data-table td { color: var(--text); }

.quick-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.quick-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 28px;
  border-radius: var(--r-card);
  background: var(--gray-05);
  font-size: 18px;
  font-weight: 500;
  color: var(--black);
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.quick-links a:hover { background: var(--mint); transform: translateY(-3px); }
.quick-links .icon { color: var(--green); }

/* ------------------------------------------------------ Карта ----------- */

.map-block { position: relative; }
.map-frame {
  position: relative;
  aspect-ratio: 21 / 9;
  min-height: 420px;
  background: var(--gray-10);
  overflow: hidden;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }
.map-block__overlay {
  position: absolute;
  left: 0; right: 0;
  top: 40px;
  pointer-events: none;
}
.map-block__overlay .container { display: flex; }
.map-card {
  pointer-events: auto;
  width: min(440px, 100%);
  padding: 32px;
  border-radius: var(--r-block);
  background: #fff;
  box-shadow: var(--shadow-lift);
}
.map-card h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 600; margin-bottom: 20px; }
.map-card__phone, .map-card__mail {
  display: block;
  font-size: 28px;
  font-weight: 300;
  color: var(--black);
  line-height: 1.3;
}
.map-card__mail { font-size: 22px; }
.map-card__phone:hover, .map-card__mail:hover { color: var(--green); }
.map-card__note { margin-top: 16px; font-size: var(--fs-meta); color: var(--muted); }
.map-card .btn { margin-top: 22px; }
.map-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; color: var(--green); }
.map-link:hover { text-decoration: underline; }

/* ------------------------------------------------------ Формы-секции ---- */

.lead-form__card {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  padding: 48px;
  border-radius: var(--r-block);
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.lead-form__aside h2 { font-size: clamp(21px, 2.6vw, var(--fs-h3)); }
.lead-form__aside p { margin-top: 16px; color: var(--muted); }
.lead-form__contacts { margin-top: 24px; display: flex; flex-direction: column; gap: 6px; }
.lead-form__contacts a { font-size: 20px; font-weight: 600; color: var(--black); }
.lead-form__contacts a:hover { color: var(--green); }

.subscribe {
  padding: 40px;
  border-radius: var(--r-block);
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.subscribe__title { font-size: clamp(20px, 2.4vw, var(--fs-h3)); }
.subscribe p { margin-top: 12px; color: var(--muted); }
.subscribe form { margin-top: 22px; }
.subscribe--side { padding: 32px; }

.split-form { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.split-form__media img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; border-radius: var(--r-block); }

/* ------------------------------------------------------ CTA-полоса ------ */

.cta-band { padding-bottom: 0; }
.cta-band__inner {
  display: grid;
  grid-template-columns: 1.2fr auto;
  gap: 40px;
  align-items: center;
  padding: 72px 56px;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  background:
    radial-gradient(100% 90% at 30% 130%, var(--glow-1) 0%, var(--glow-2) 42%, var(--black) 80%),
    var(--black);
  color: #fff;
}
.cta-band__inner h2 { color: #fff; max-width: 640px; }
.cta-band__inner p { margin-top: 16px; color: var(--on-dark-mut); max-width: 560px; }
.cta-band__actions { display: flex; flex-direction: column; gap: 12px; }
.cta-band__actions .btn { justify-content: flex-start; }

/* -------------------------------------------------------- Модалка ------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}
.modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); }
.modal__card {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  padding: 40px;
  border-radius: var(--r-block);
  background: #fff;
  box-shadow: var(--shadow-lift);
  margin: auto;
}
.modal__close {
  position: absolute;
  top: 18px; right: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--gray-05);
  color: var(--black);
  transition: background-color .2s var(--ease);
}
.modal__close:hover { background: #E9E9E9; }
.modal__title { font-size: clamp(20px, 2.4vw, var(--fs-h3)); margin-bottom: 10px; padding-right: 44px; }
.modal__note { color: var(--muted); font-size: var(--fs-meta); margin-bottom: 22px; }

/* -------------------------------------------------------- Статья -------- */

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) 280px;
  gap: 48px;
  justify-content: center;
  align-items: start;
}
.article-head { max-width: 760px; margin-inline: auto; }
.article-head__meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.article-head h1 { font-size: clamp(28px, 4.4vw, var(--fs-h2)); font-weight: 600; }
.article-head__sub {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
  font-size: var(--fs-small);
  color: var(--muted);
}
.article-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-card); }
.article-intro {
  padding: 28px;
  border-radius: var(--r-card);
  background: var(--gray-05);
  font-size: 20px;
  line-height: 1.5;
  color: var(--text);
}

.article-body { font-size: var(--fs-body); line-height: 1.6; }
.article-body h2 { margin: 44px 0 16px; font-size: clamp(24px, 3vw, 30px); }
.article-body h3 { margin: 32px 0 12px; font-size: 22px; }
.article-body p { margin-bottom: 16px; color: var(--text); }
.article-body ul { margin: 0 0 20px; }
.article-body ul li { position: relative; padding-left: 26px; margin-bottom: 10px; }
.article-body ul li::before {
  content: ""; position: absolute; left: 4px; top: 10px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
}
.article-body ol { margin: 0 0 20px; padding-left: 22px; list-style: decimal; }
.article-body ol li { margin-bottom: 10px; padding-left: 6px; }
.article-body blockquote {
  margin: 28px 0;
  padding: 4px 0 4px 24px;
  border-left: 3px solid var(--green);
  font-size: 19px;
  color: var(--text);
}
.article-body figure { margin: 28px 0; }
.article-body figure img { width: 100%; border-radius: var(--r-card); }
.article-body figcaption { margin-top: 10px; font-size: var(--fs-small); color: var(--muted); }
.article-body .table-scroll table { min-width: 560px; }
.article-body .table-scroll th,
.article-body .table-scroll td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-meta);
}
.article-body .table-scroll th { font-weight: 600; color: var(--black); }

.toc {
  position: sticky;
  top: 88px;
  padding: 24px;
  border-radius: var(--r-card);
  background: #fff;
  border: 1px solid var(--line);
}
.toc__title { font-size: var(--fs-small); color: var(--muted); margin-bottom: 14px; }
.toc a {
  display: block;
  padding: 7px 0;
  font-size: 15px;
  color: var(--text);
  transition: color .2s var(--ease);
}
.toc a:hover, .toc a.is-active { color: var(--green); }

/* ------------------------------------------------ Популярное / список --- */

.mini-list li + li { margin-top: 18px; }
.mini-post {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 18px;
  align-items: center;
}
.mini-post img { width: 200px; height: 90px; object-fit: cover; border-radius: 16px; }
.mini-post__title { font-size: 17px; font-weight: 500; color: var(--black); line-height: 1.3; }
.mini-post:hover .mini-post__title { color: var(--green); }
.mini-post__meta { margin-top: 8px; font-size: var(--fs-small); color: var(--muted); }

/* ----------------------------------------------------- Пагинация -------- */

.pagination { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.pagination__page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px; height: 44px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  background: var(--gray-05);
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.pagination__page:hover { background: #E9E9E9; }
.pagination__page.is-active { background: var(--green); color: #fff; }
.pagination__dots { color: var(--muted); padding: 0 4px; }

/* ---------------------------------------------------------- 404 --------- */

.notfound {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--gray-05);
  padding-block: 80px;
}
.notfound__code {
  font-size: clamp(72px, 16vw, 120px);
  font-weight: 300;
  line-height: 1;
  color: var(--black);
}
.notfound__title { margin-top: 18px; }
.notfound p { margin-top: 14px; color: var(--muted); max-width: 520px; margin-inline: auto; }
.notfound__actions { margin-top: 30px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* --------------------------------------------------- Карта сайта -------- */

.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.sitemap-grid h2 { font-size: var(--fs-meta); font-weight: 400; color: var(--muted); margin-bottom: 16px; }
.sitemap-grid li { margin-bottom: 10px; }
.sitemap-grid a {
  position: relative;
  padding-left: 18px;
  color: var(--text);
  transition: color .2s var(--ease);
}
.sitemap-grid a::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--line-strong);
  transition: background-color .2s var(--ease);
}
.sitemap-grid a:hover { color: var(--green); }
.sitemap-grid a:hover::before { background: var(--green); }

/* ------------------------------------------- Появление при скролле ------ */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   4. Адаптив, доступность, печать
   ========================================================================== */

/* ------------------------------------------------------ до 1280px ------- */

@media (max-width: 1280px) {
  :root { --section-y: 80px; }

  .header-contacts__mail { display: none; }
  .split { grid-template-columns: 1fr 1fr; gap: 40px; }
  .dark-block { padding: 56px 36px; }
  .cta-band__inner { padding: 56px 40px; }
  .lead-form__card { padding: 40px; gap: 36px; }
  .article-layout { grid-template-columns: minmax(0, 720px) 260px; gap: 36px; }
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ------------------------------------------------------- до 1100px ------ */

@media (max-width: 1100px) {
  .site-header__inner { gap: 10px; }
  .header-dropdown { display: none; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .site-footer__socials { order: 3; }
  .site-footer__actions { order: 4; align-items: flex-start; }
}

/* -------------------------------------------------------- до 900px ------ */

@media (max-width: 900px) {
  :root { --section-y: 64px; --pad-x: 20px; }

  .header-contacts { display: none; }
  .btn--icon-phone { display: inline-flex; }
  .site-header__inner > .btn--primary,
  .site-header__inner > .header-contact-link { display: none; }

  .nav-overlay__body { grid-template-columns: 1fr; gap: 32px; padding-bottom: 48px; }
  .nav-overlay__list a { font-size: 24px; }

  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split .stats-row { grid-template-columns: repeat(2, 1fr); }

  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .features, .features--2 { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .steps--compact { grid-template-columns: repeat(2, 1fr); }

  .dark-block__grid { grid-template-columns: 1fr; gap: 32px; }
  .tab-panel { grid-template-columns: 1fr; gap: 28px; }
  .tab-panel__media { order: -1; }

  .dir-row { grid-template-columns: 1fr; gap: 16px; }
  .two-cards { grid-template-columns: 1fr; }
  .two-cols { grid-template-columns: 1fr; gap: 28px; }
  .quick-links { grid-template-columns: repeat(2, 1fr); }
  .split-form { grid-template-columns: 1fr; }
  .split-form__media img { min-height: 260px; }

  .lead-form__card { grid-template-columns: 1fr; padding: 32px; gap: 28px; }
  .cta-band__inner { grid-template-columns: 1fr; padding: 48px 28px; }
  .cta-band__actions { flex-direction: row; flex-wrap: wrap; }

  .slider__stage { min-height: 460px; }
  .slider__inner { padding: 20px; }
  .overlay-card { width: 100%; padding: 26px; }

  .article-layout { grid-template-columns: 1fr; gap: 28px; }
  .toc { position: static; order: -1; }

  .timeline__row { grid-template-columns: 1fr; gap: 10px; }
  .timeline__year { font-size: 36px; }
  .price-list__row { grid-template-columns: 1fr auto; }
  .price-list__term { grid-column: 1 / -1; }
  .price-list__price { text-align: left; }

  .sitemap-grid { grid-template-columns: repeat(2, 1fr); }
  .map-frame { min-height: 340px; aspect-ratio: 4 / 3; }
  .map-block__overlay { position: static; margin-top: -80px; }
  .map-card { width: 100%; }

  .site-footer__contacts a { font-size: 24px; }
}

/* -------------------------------------------------------- до 600px ------ */

@media (max-width: 600px) {
  :root { --section-y: 48px; --pad-x: 16px; --r-block: 24px; --r-lg: 28px; }

  body { font-size: 16px; }

  .hero__inner { padding: 100px var(--pad-x) 120px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .hero__chip { left: 16px; bottom: 20px; }

  .page-hero--photo { min-height: 280px; }
  .page-hero--photo .page-hero__inner { padding-block: 32px 28px; }

  .floating-bar__pill { gap: 6px; padding: 5px; }
  .floating-bar__pill .btn--chip { min-height: 46px; padding-right: 18px; font-size: 15px; }
  .floating-bar__pill .btn__chip { width: 36px; height: 36px; }
  .floating-bar__burger { width: 44px; height: 44px; }

  .stats-row, .stats-row--3, .split .stats-row { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .stat__value { font-size: 40px; }

  .cards-grid, .cards-grid--2, .cards-grid--4 { grid-template-columns: 1fr; }
  .features, .features--2 { grid-template-columns: 1fr; }
  .steps--compact { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; gap: 8px; }
  .step__num { font-size: 36px; }

  .dir-row__links { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: 1fr; }
  .quick-links { grid-template-columns: 1fr; }
  .sitemap-grid { grid-template-columns: 1fr; }

  .white-card, .gray-card { padding: 26px; }
  .dark-block { padding: 32px 24px; }
  .two-cards .dark-block { padding: 28px 24px; }
  .modal__card { padding: 28px 22px; }
  .subscribe { padding: 26px; }
  .lead-form__card { padding: 24px; }
  .cta-band__inner { padding: 36px 22px; }
  .cta-band__actions { flex-direction: column; }
  .cta-band__actions .btn { width: 100%; }

  .field-row { grid-template-columns: 1fr; }
  .accordion__panel { padding-right: 0; }
  .accordion__btn { gap: 16px; }

  .slider__stage { min-height: 420px; }
  .overlay-card__head { flex-direction: column; gap: 14px; }

  .mini-post { grid-template-columns: 120px 1fr; }
  .mini-post img { width: 120px; height: 72px; }

  .article-intro { padding: 20px; font-size: 18px; }
  .article-body blockquote { padding-left: 18px; font-size: 17px; }

  .site-footer { padding-top: 48px; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 28px; padding: 28px 0; }
  .site-footer__socials { order: 3; }
  .site-footer__actions { order: 4; width: 100%; }
  .site-footer__actions .btn { width: 100%; }
  .site-footer__contacts { padding-bottom: 32px; }
  .site-footer__contacts a { font-size: 24px; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; gap: 14px; }
  .site-footer__legal { justify-content: flex-start; gap: 14px; }
}

/* -------------------------------------------------------- до 380px ------ */

@media (max-width: 380px) {
  .logo__text { font-size: 19px; }
  .site-header__inner { gap: 8px; }
  .stats-row, .stats-row--3, .split .stats-row { grid-template-columns: 1fr; }
  .floating-bar__pill .btn--chip span:not(.btn__chip) { font-size: 14px; }
}

/* --------------------------------------------------- Фокус клавиатуры --- */

:focus-visible {
  outline: 3px solid rgba(56, 157, 116, .45);
  outline-offset: 2px;
  border-radius: 4px;
}
.btn:focus-visible,
.round-btn:focus-visible,
.arrow-btn:focus-visible,
.burger:focus-visible,
.floating-bar__burger:focus-visible,
.socials__item:focus-visible,
.pagination__page:focus-visible,
.anchor-pills a:focus-visible,
.tabs__btn:focus-visible {
  outline: 3px solid rgba(56, 157, 116, .45);
  outline-offset: 2px;
  border-radius: var(--r-pill);
}
.field__control:focus-visible { outline: none; }
.card__link:focus-visible { outline: 3px solid rgba(56, 157, 116, .55); outline-offset: -3px; border-radius: var(--r-card); }
.site-footer a:focus-visible,
.hero a:focus-visible, .hero button:focus-visible,
.page-hero--photo a:focus-visible,
.photo-band a:focus-visible {
  outline-color: rgba(255, 255, 255, .8);
}

/* --------------------------------------------- Уменьшенная анимация ----- */

@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;
  }
  .reveal { opacity: 1; transform: none; }
  .card:hover { transform: none; }
  .quick-links a:hover { transform: none; }
}

/* ---------------------------------------------------------- Печать ------ */

@media print {
  .site-header,
  .floating-bar,
  .nav-overlay,
  .modal,
  .cta-band,
  .site-footer__actions,
  .site-footer__socials,
  .skip-link,
  .lead-form,
  .subscribe,
  .pagination,
  .toc { display: none !important; }

  body { padding-top: 0; background: #fff; color: #000; font-size: 12pt; }
  .section { padding-block: 16pt; }
  .hero, .page-hero--photo { min-height: auto; color: #000; }
  .hero::after, .page-hero--photo::after { display: none; }
  .hero__media, .page-hero__media { display: none; }
  .hero__title, .page-hero--photo h1, .page-hero--photo .page-hero__lead { color: #000; }
  .site-footer {
    background: #fff !important;
    color: #000;
    padding: 12pt 0;
  }
  .site-footer a, .site-footer__page, .site-footer__copy, .site-footer__geo { color: #000; }
  .logo__text { color: #000 !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
  .card, .white-card, .gray-card { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
  .accordion__panel { display: block !important; }
  .table-scroll { overflow: visible; }
  .pricing-table { min-width: 0; }
}

/* Пилюли-фильтры, реализованные кнопкой-переключателем или ссылкой:
   aria-selected допустим только у role="tab", поэтому активность помечается
   aria-pressed (кнопка) или классом is-active + aria-current (ссылка). */
.tabs__btn[aria-pressed="true"],
a.tabs__btn.is-active {
  background: #fff;
  color: var(--black);
  box-shadow: var(--shadow-soft);
}
.tabs__btn[aria-pressed="true"] .tabs__count,
a.tabs__btn.is-active .tabs__count { background: var(--green); }
a.tabs__btn { text-decoration: none; }

/* ==========================================================================
   5. Правки после инструментальной проверки вёрстки
   ========================================================================== */

/* Внутренняя прокрутка широкой таблицы не должна расширять документ.
   overflow-x:hidden на body пробрасывается во вьюпорт и оставляет body
   нескроллируемым, поэтому клипуем и корневой элемент. */
html { overflow-x: clip; }

/* Плавающая панель при скрытом состоянии не должна перехватывать клики
   по логотипу и кнопкам обычной шапки. */
.floating-bar {
  visibility: hidden;
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s;
}
body.is-floating .floating-bar {
  visibility: visible;
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s;
}

/* Карта: сочетание min-height и aspect-ratio раздувало фрейм шире экрана. */
@media (max-width: 900px) {
  .map-frame { min-height: 0; aspect-ratio: 4 / 3; }
}
@media (max-width: 600px) {
  .map-frame { aspect-ratio: 1 / 1; }
}

/* Узкие экраны: в плавающей пилюле «Связаться» остаётся только чип-иконка. */
@media (max-width: 420px) {
  .floating-bar__pill .btn--mint.btn--chip {
    font-size: 0;
    gap: 0;
    padding-left: 5px;
    padding-right: 5px;
  }
}

/* Скрытые подписи внутри широкой таблицы позиционируются абсолютно; без
   position:relative их содержащим блоком становится вьюпорт, и они
   расширяют документ на всю ширину таблицы. */
.table-scroll { position: relative; }

/* Заголовки колонок футера: #6B6B6B на почти чёрном даёт 3.9:1 — ниже AA.
   Осветляем до серого «на тёмном», роль подписи при этом сохраняется. */
.site-footer__label { color: var(--on-dark-mut); }

/* Заголовок первого экрана внутренней страницы попадал на светлые участки
   фотографии (экран ноутбука, окно) — усиливаем затемняющий слой. */
.page-hero--photo::after {
  background: linear-gradient(180deg,
    rgba(0, 0, 0, .46) 0%,
    rgba(0, 0, 0, .40) 45%,
    rgba(0, 0, 0, .58) 100%);
}

/* Шапка статьи лежит в той же колонке, что и текст: иначе заголовок и обложка
   визуально не совпадают с левым краем абзацев. */
.article-head { max-width: none; margin-inline: 0; }
.article-head__sub > span,
.article-head__sub > a { display: inline-flex; align-items: center; gap: 8px; }

/* Рекомендованная колонка тарифа заливается #F6F6F6 — на серой секции она
   сливалась с фоном; там выделяем её белым. */
.section--gray .pricing-table .col-featured { background: var(--white); }

/* Белый h1 первого экрана ложится на светлые участки фотографии (потолок,
   пол, окна) — базового слоя .18 не хватает для читаемости на мобильных. */
.hero::after {
  background: linear-gradient(180deg,
    rgba(0, 0, 0, .52) 0%,
    rgba(0, 0, 0, .64) 48%,
    rgba(0, 0, 0, .60) 100%);
}

/* ==========================================================================
   6. Правки по итогам ревизии: контраст, «серое на сером», липкое оглавление
   ========================================================================== */

/* --- Вторичная кнопка. Заливка #F6F6F6 совпадает с фоном section--gray и
   .notfound, поэтому три из четырёх кнопок «Выбрать» в таблице тарифов и
   кнопка «Все услуги» на 404 не читались как кнопки вовсе. Даём форму
   собственной рамкой, а на серых секциях — ещё и белую заливку. */
.btn--secondary { box-shadow: inset 0 0 0 1px var(--line-strong); }
.section--gray .btn--secondary,
.notfound .btn--secondary { background: var(--white); }
.section--gray .btn--secondary:hover,
.notfound .btn--secondary:hover { background: var(--gray-10); }

/* --- Плашки внутри серых секций. Тот же #F6F6F6 на #F6F6F6 съедал сетку
   инструментов, облако тегов, быстрые ссылки и карточки: скругления и
   паддинги были на месте, а границ блока видно не было. */
.section--gray .tools-grid__item,
.section--gray .tag-cloud span,
.section--gray .quick-links a,
.section--gray .card,
.section--gray .role-card,
.section--gray .gray-card,
.section--gray .article-intro,
.section--gray .anchor-pills a { background: var(--white); }
.section--gray .quick-links a:hover { background: var(--mint); }
.section--gray .anchor-pills a:hover { background: var(--mint); }

/* --- Липкое оглавление статьи. position:sticky стоял на самом .toc, а его
   содержащий блок — <aside> высотой ровно в оглавление, двигаться было
   некуда. Липкость переносим на грид-элемент. */
.article-layout > aside {
  position: sticky;
  top: 88px;
  align-self: start;
}
.toc { position: static; }

/* --- Заголовок и следующий за ним абзац. Сброс обнуляет margin, а правило
   было только для «абзац после абзаца», поэтому в тёмных блоках строки
   заголовка и текста слипались. Классовые пары не трогаем — у них свои
   отступы. */
h2:not([class]) + p:not([class]),
h3:not([class]) + p:not([class]) { margin-top: 16px; }

/* --- Счётчики в фильтрах: белым по #D4D4D4 давало 1.48:1. */
.tabs__count { background: var(--gray-10); color: var(--muted); }

/* --- Затемнение под белым текстом на фотографиях. Замер по живому рендеру
   давал 2.89:1 в крошке фото-героя и 3.13:1 в фото-полосе отчётности. */
.page-hero--photo::after {
  background: linear-gradient(180deg,
    rgba(0, 0, 0, .54) 0%,
    rgba(0, 0, 0, .62) 40%,
    rgba(0, 0, 0, .82) 100%);
}
.photo-band::after {
  background: linear-gradient(180deg, rgba(0,0,0,.64) 0%, rgba(0,0,0,.60) 55%, rgba(0,0,0,.66) 100%);
}

/* --- Фирменный зелёный в интерактивных ролях не дотягивал до AA:
   белый на #389D74 — 3.36:1, мятная пилюля — 3.73:1, зелёная ссылка — 3.11:1.
   Затемняем только заливку и текст интерактива; --green как декоративный
   акцент (иконки, маркеры, кружки) остаётся прежним. */
:root {
  --green-btn:  #2B7F5C;   /* белый текст: 4.89:1 */
  --green-text: #25664A;   /* текст на белом, #F6F6F6 и мятном фоне: 5.7–6.8:1 */
}
.btn--primary { background: var(--green-btn); }
.btn--primary:hover { background: var(--green-text); }
.pagination__page.is-active { background: var(--green-btn); }
.skip-link { background: var(--green-btn); }
.pill:not(.pill--gray) { color: var(--green-text); }
.btn--mint { color: var(--green-text); }
.link-green { color: var(--green-text); }
.link-green:hover { color: var(--green-btn); }
.consent a { color: var(--green-text); }
.role-card__ask { color: var(--green-text); }
.form-success,
.form-success h3,
.form-success p { color: var(--green-text); }

/* --- Карта сайта: отступ 18px под маркер задан padding-left на инлайновом
   <a>, поэтому вторая строка переноса уезжала влево под сам маркер. */
.sitemap-grid a { display: inline-block; }

/* Подпись в первой колонке подвала (когда блока соцсетей нет). */
.site-footer__note { font-size: 15px; color: var(--on-dark-mut); line-height: 1.5; }

/* body{overflow-x:hidden} превращал body в скролл-контейнер (overflow-y
   вычислялся в auto), при том что прокручивается html. Из-за этого ни один
   position:sticky внутри страницы не срабатывал — оглавление статьи уезжало
   вверх. overflow-x:clip обрезает так же, но скролл-контейнер не создаёт. */
body { overflow-x: clip; overflow-y: visible; }
