/* ============================================================
   ЛОМБАРД РЕСУРС — дизайн-система
   Референс стиля: turbozaim.ru
   Шрифт: Golos Text (400/500/600/700/800/900)
   ============================================================ */
@import url("../fonts/golos.css");

/* ------------------------------------------------------------
   1. ТОКЕНЫ
   ------------------------------------------------------------ */
:root {
  /* Основная палитра (из turbozaim) */
  --navy: #02113b;          /* основной тёмно-синий: текст и кнопки */
  --navy-800: #0a1c4d;
  --navy-700: #103bb0;
  --blue: #206ad4;          /* ссылки, акцент */
  --blue-hover: #1a5cb8;
  --sky: #8acbff;           /* светло-синий акцент на тёмном фоне */
  --tint-blue: #cce1ff;     /* подсветка пунктов меню (hover на референсе) */
  --red: #e5484d;           /* только ошибки форм */

  /* Нейтрали */
  --gray-text: #848a93;     /* вторичный текст */
  --white: #ffffff;
  --bg-light: #f3f8ff;      /* светло-синий фон секций */
  --bg-gray: #f7f8fc;       /* светло-серый фон секций */
  --bg-blue: #e3efff;
  --bg-gray-2: #eeeff2;
  --line: #e4edfa;          /* границы */
  --line-strong: #d5e2f5;

  /* Типографика */
  --font: "Golos Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-h1: 38px;   --lh-h1: 46px;
  --fs-h2: 30px;   --lh-h2: 40px;
  --fs-h3: 20px;   --lh-h3: 28px;
  --fs-body: 16px; --lh-body: 24px;
  --fs-small: 14px;--lh-small: 20px;

  /* Радиусы */
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 30px;
  --r-2xl: 48px;
  --r-pill: 100px;

  /* Тени */
  --shadow: 0 0 16px 0 rgba(0, 0, 0, 0.16);
  --shadow-card: 0 4px 24px rgba(2, 17, 59, 0.06);
  --shadow-hover: 0 12px 32px rgba(2, 17, 59, 0.12);
  --shadow-pop: 0 8px 40px rgba(2, 17, 59, 0.14);

  /* Контейнер */
  --container: 1240px;
  --gutter: 24px;

  /* Высота шапки (меняется на брейкпоинтах) — нужна первому экрану,
     чтобы меняться «под» прозрачной шапкой */
  --header-h: 73px;

  /* Насколько карточка калькулятора наезжает на низ первого экрана */
  --calc-hang: 104px;

  --transition: 0.2s ease;
}

/* ------------------------------------------------------------
   2. БАЗА
   ------------------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-hover); }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

h1, h2, h3, h4, h5 {
  margin: 0;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
}
h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); font-weight: 700; }
h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); font-weight: 600; }
h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: 600; }
p  { margin: 0; }

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

.section { padding: 64px 0; }
.section--gray { background: var(--bg-gray); }
.section--light { background: var(--bg-light); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy h2,
.section--navy h3 { color: var(--white); }

/* Заголовок секции */
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}
.sec-head__text { max-width: 720px; }
.sec-head__links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; }
.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: var(--lh-small);
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.sec-head p {
  margin-top: 12px;
  color: var(--gray-text);
}
.section--navy .sec-head p { color: rgba(255, 255, 255, 0.7); }

/* ------------------------------------------------------------
   3. КНОПКИ (референс: bg navy, radius 30px, weight 600)
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  min-height: 48px;
  border: 0;
  border-radius: var(--r-xl);
  background: var(--navy);
  color: var(--white);
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition),
              box-shadow var(--transition), color var(--transition);
}
.btn:hover {
  background: var(--navy-700);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(16, 59, 176, 0.28);
}
.btn:active { transform: translateY(0); }

.btn--light { background: var(--white); color: var(--navy); }
.btn--light:hover { background: var(--bg-light); color: var(--navy); }

.btn--outline {
  background: transparent;
  color: var(--navy);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
}
.btn--outline:hover {
  background: var(--navy);
  color: var(--white);
  box-shadow: inset 0 0 0 1.5px var(--navy);
}

.btn--white-outline {
  background: transparent;
  color: var(--white);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.4);
}
.btn--white-outline:hover {
  background: var(--white);
  color: var(--navy);
  box-shadow: inset 0 0 0 1.5px var(--white);
}

.btn--blue { background: var(--blue); }
.btn--blue:hover { background: var(--blue-hover); box-shadow: 0 8px 20px rgba(32, 106, 212, 0.3); }

.btn--sm { min-height: 40px; padding: 8px 20px; font-size: var(--fs-small); }
.btn--lg { min-height: 56px; padding: 16px 32px; font-size: 17px; }
.btn--block { width: 100%; }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--blue);
  white-space: nowrap;
}
.link-more::after {
  content: "→";
  transition: transform var(--transition);
}
.link-more:hover::after { transform: translateX(4px); }

/* ------------------------------------------------------------
   4. ВЕРХНЯЯ ПАНЕЛЬ + ХЕДЕР
   ------------------------------------------------------------ */
.topbar {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  min-height: 40px;
}
.topbar a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.85);
}
.topbar a:hover { color: var(--white); }
.topbar svg { flex: none; }

.header {
  position: sticky;
  top: 0;
  /* Лестница слоёв: контент < float-bar 900 < уведомление о
     техработах 920 < шапка 930 < cookie-панель 950 < модалка 1000 */
  z-index: 930;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  transition: background var(--transition), border-color var(--transition),
              box-shadow var(--transition);
}
.header.is-stuck { box-shadow: 0 4px 20px rgba(2, 17, 59, 0.08); }

/* Индекс: шапка прозрачно «надета» на первый экран, как на референсе,
   и становится белой при прокрутке */
.header--over-hero {
  background: transparent;
  border-bottom-color: rgba(255, 255, 255, 0.5);
}
.header--over-hero.is-stuck {
  background: var(--white);
  border-bottom-color: var(--line);
}
/* Пока шапка прозрачная (первый экран): меню и телефон — белые,
   логотип и кнопка — фирменные */
.header--over-hero:not(.is-stuck) .nav__link {
  color: var(--white);
}
.header--over-hero:not(.is-stuck) .header__phone { color: #103bb0; }
.header--over-hero:not(.is-stuck) .header__phone:hover { color: #103bb0; }
.header--over-hero:not(.is-stuck) .header__hours { color: rgba(255, 255, 255, 0.8); }
/* Ховер основных пунктов меню — меняется только цвет текста (navy #02113b) */
.header--over-hero:not(.is-stuck) .nav__link:hover {
  color: var(--navy);
  background: transparent;
}
.header--over-hero:not(.is-stuck) .burger {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.55);
}
.header--over-hero:not(.is-stuck) .burger span { background: var(--white); }

.header__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  color: var(--navy);
}
/* На первом экране логотип лежит прямо на баннере — делаем его белым,
   чтобы читался на синем фоне; на «прилипшей» шапке возвращаем фирменный цвет */
.header--over-hero:not(.is-stuck) .logo__img {
  filter: brightness(0) invert(1);
}
.logo:hover { color: var(--navy); }
.logo__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--navy);
  color: var(--white);
  font-weight: 800;
  font-size: 15px;
}
.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.logo__title { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.logo__sub { font-size: 10.5px; font-weight: 500; color: var(--gray-text); }
.logo__img { display: block; width: auto; height: 45px; }

/* Навигация — как на референсе: капслок 14/22·600, отступы 13×16,
   сразу после логотипа, четыре верхних пункта + «Ещё» с выпадающей панелью */
.nav { display: flex; align-items: center; gap: 0; margin-left: 32px; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 16px;
  border-radius: 0;
  color: var(--navy);
  font-size: 14px;
  line-height: 22px;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.nav__link:hover { background: transparent; color: var(--navy); }
.nav__link[aria-current="page"] { color: var(--blue); font-weight: 600; background: var(--bg-light); }
.nav__caret { transition: transform var(--transition); }
.nav__item:hover .nav__caret { transform: rotate(180deg); }

/* Выпадающая панель: пристыкована к нижней кромке хедера (radius 0 0 16 16),
   пункты — «пилюли» капслоком 14/22·500, hover — светло-синий */
.dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 264px;
  padding: 16px 8px;
  background: var(--white);
  border: 0;
  border-radius: 0 0 var(--r-md) var(--r-md);
  box-shadow: 0 0 20px rgba(2, 17, 59, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}
/* На первом экране панель «стеклянная» с blur — как на референсе */
.header--over-hero:not(.is-stuck) .dropdown {
  background: rgba(255, 255, 255, 0.3);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: none;
}
.header--over-hero:not(.is-stuck) .dropdown a:hover {
  background: var(--white);
  color: var(--navy);
}
.nav__item:last-child .dropdown { left: auto; right: 0; }
.nav__item:hover .dropdown,
.nav__item:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: var(--r-2xl);
  color: var(--navy);
  font-size: 14px;
  line-height: 22px;
  font-weight: 500;
  text-transform: uppercase;
  white-space: normal;
  min-width: 0;
  max-width: 100%;
  transition: background var(--transition), color var(--transition);
}
.dropdown a:hover { background: var(--tint-blue); color: var(--navy-700); }
.dropdown a[aria-current="page"] { color: var(--blue); background: var(--bg-light); }
.dropdown a .dot {
  width: 7px; height: 7px; flex: none;
  border-radius: 50%; background: var(--blue);
}

.header__contacts {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
  margin-left: auto;
}
/* CTA в шапке — залитая navy-пилюля капслоком, как на референсе */
.header__contacts .btn {
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.header__phone {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  color: var(--navy);
  font-size: 17px;
  font-weight: 700;
}
.header__phone:hover { color: var(--blue); }
.header__info { display: flex; flex-direction: column; align-items: flex-end; text-align: right; line-height: 1.15; }
.header__meta { display: flex; align-items: center; gap: 10px; margin-top: 3px; }
.header__email { font-size: 12px; font-weight: 500; color: var(--gray-text); }
.header__email:hover { color: var(--blue); }
.header__social { display: inline-flex; align-items: center; color: var(--gray-text); transition: color var(--transition); }
.header__social:hover { color: var(--blue); }
.header__hours { margin-top: 2px; font-size: 11.5px; font-weight: 400; color: var(--gray-text); }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
}
.burger span {
  display: block;
  width: 18px; height: 2px;
  margin: 3.5px auto;
  border-radius: 2px;
  background: var(--navy);
  transition: transform var(--transition), opacity var(--transition);
}
.burger.is-open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ------------------------------------------------------------
   5. HERO
   ------------------------------------------------------------ */
.hero {
  position: relative;
  z-index: 2;
  overflow: visible;
  padding: 56px 0 184px;
  color: var(--white);
  /* Первый экран — фон-баннер из проекта */
  background-color: #2f7ecd;
  background-image: url("../../banner_bg.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/* Шапка прозрачно «надета» на первый экран (референс: отрицательный
   margin-top = высота шапки, чтобы контент не уходил под неё) */
.hero--over-header {
  margin-top: calc(-1 * var(--header-h));
  padding-top: calc(var(--header-h) + 80px);
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.75fr);
  gap: 48px;
  align-items: center;
}
.hero__content { min-width: 0; max-width: 680px; }
/* Картинка первого экрана — справа, поверх светлой части градиента */
.hero__art { display: flex; justify-content: flex-end; }
.hero__art img {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  filter: drop-shadow(0 30px 55px rgba(2, 17, 59, 0.25));
}
.hero h1 { color: var(--white); margin-bottom: 16px; font-size: 46px; line-height: 54px; }
.hero h1 .accent { color: #02113b; }
.hero__lead {
  max-width: 680px;
  margin-bottom: 24px;
  font-size: 20px;
  line-height: 29px;
  color: rgba(255, 255, 255, 0.9);
}

.hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}
/* Три чипа в одну строку — там, где они ещё помещаются рядом с картинкой */
@media (min-width: 1200px) {
  .hero__points { flex-wrap: nowrap; }
}
/* Стеклянные чипы первого экрана */
.hero__point {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  white-space: nowrap;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.9);
  color: var(--navy);
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 6px 18px rgba(2, 17, 59, 0.08);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.hero__point svg { flex: none; color: var(--blue); }

.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hero__cta .btn { min-height: 56px; padding: 16px 32px; }

/* Статистика — стеклянные карточки, как на референсе */
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}
.hero__stat {
  flex: 1 1 176px;
  min-width: 168px;
  max-width: 240px;
  padding: 18px 20px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 30px rgba(2, 17, 59, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.hero__stat-num {
  font-size: 40px;
  font-weight: 600;
  line-height: 46px;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.hero__stat-num .unit { font-size: 18px; color: var(--blue); }
.hero__stat-label {
  margin-top: 4px;
  font-size: 14px;
  line-height: 20px;
  color: rgba(2, 17, 59, 0.72);
}

/* Крупнее первый экран только на широких экранах */
@media (min-width: 1280px) {
  .hero h1 { font-size: 54px; line-height: 62px; }
  .hero__lead { font-size: 23px; line-height: 32px; }
  .hero__stat-num { font-size: 44px; line-height: 50px; }
}

/* Секция калькулятора: широкая белая карточка под первым экраном,
   наезжает на его нижнюю границу (референс: top: calc(100% - 56px)) */
.calc {
  position: relative;
  z-index: 3;
  margin-top: calc(-1 * var(--calc-hang));
}
.calc-card {
  padding: 28px 32px;
  border-radius: var(--r-md);
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 0 20px rgba(2, 17, 59, 0.1), 0 24px 60px rgba(2, 17, 59, 0.14);
}
.form.calc-form {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
  gap: 40px;
  align-items: start;
}
.calc-fields-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.calc-title {
  font-size: 24px;
  line-height: 30px;
  font-weight: 700;
  color: var(--navy);
}
.calc-title .accent { color: var(--blue); }
.calc-bottom {
  display: grid;
  gap: 14px;
}
.calc-bottom .calc-summary { margin-bottom: 0; }
.calc-fields-col .calc-row { margin-bottom: 0; width: 100%; }
.calc-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 0;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: var(--bg-light);
  color: var(--blue);
  font-size: 12.5px;
  font-weight: 600;
}
.calc-row { margin-bottom: 20px; }
.calc-row__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.calc-row__label { font-size: 13.5px; font-weight: 500; color: var(--gray-text); }
.calc-row__value { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: var(--r-pill);
  background: var(--bg-gray-2);
  outline: none;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--navy);
  border: 4px solid var(--white);
  box-shadow: 0 2px 8px rgba(2, 17, 59, 0.35);
  cursor: pointer;
  transition: transform var(--transition);
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.1); }
input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--navy);
  border: 4px solid var(--white);
  box-shadow: 0 2px 8px rgba(2, 17, 59, 0.35);
  cursor: pointer;
}
.calc-legend {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
  font-size: 12px;
  color: var(--gray-text);
}

.calc-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
  padding: 16px;
  border-radius: var(--r-md);
  background: var(--bg-light);
}
.calc-summary__item span {
  display: block;
  font-size: 12px;
  color: var(--gray-text);
}
.calc-summary__item strong {
  display: block;
  margin-top: 3px;
  font-size: 17px;
  font-weight: 700;
}
.calc-note {
  margin-top: 12px;
  font-size: 11.5px;
  line-height: 16px;
  color: var(--gray-text);
  text-align: center;
}

/* ------------------------------------------------------------
   6. КАРТОЧКИ
   ------------------------------------------------------------ */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card--pad { padding: 24px; }
.card--hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}

/* Карточка категории транспорта */
.cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 20px;
  border-radius: var(--r-lg);
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.cat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}
.cat-card__img {
  position: relative; /* картинка позиционируется абсолютно в коробке: height:100% резолвится гарантированно и contain центрирует фото без обрезки */
  height: auto;
  aspect-ratio: 16 / 9; /* высота под полную ширину картинки — без обрезки */
  margin-bottom: 16px;
  border-radius: var(--r-md);
  background: linear-gradient(160deg, var(--bg-light), var(--bg-blue));
  color: var(--navy);
  overflow: hidden;
}
.cat-card__img img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.cat-card__tag {
  position: absolute;
  top: 32px;
  left: 32px;
  padding: 4px 11px;
  border-radius: var(--r-pill);
  background: var(--navy);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
}
.cat-card__title { font-size: 16.5px; font-weight: 600; margin-bottom: 12px; }
.cat-card__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
}
.cat-card:hover .cat-card__more::after { transform: translateX(4px); }
.cat-card__more::after { content: "→"; transition: transform var(--transition); }

/* ------------------------------------------------------------
   7. ПОШАГОВЫЙ БЛОК «КАК ЭТО РАБОТАЕТ»
   ------------------------------------------------------------ */
.steps { counter-reset: step; }
.steps__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.step {
  position: relative;
  padding: 24px;
  border-radius: var(--r-md);
  background: var(--white);
  border: 1px solid var(--line);
}
.step__num {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: var(--navy);
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
}
.step h3 { font-size: 17.5px; margin-bottom: 10px; }
.step p { font-size: 14.5px; line-height: 21px; color: var(--gray-text); }
.step::after {
  content: "";
  position: absolute;
  top: 44px;
  right: -14px;
  width: 28px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 11px);
}
.step:last-child::after { display: none; }

.steps__foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 28px;
  padding: 22px 26px;
  border-radius: var(--r-lg);
  background: var(--bg-light);
}
.steps__foot-label { font-size: 14.5px; color: var(--gray-text); }
.steps__contacts { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.steps__contacts a.phone {
  font-size: 20px; font-weight: 700; color: var(--navy);
}
.steps__contacts a.phone:hover { color: var(--blue); }

/* Соцкнопки */
.social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--navy);
  transition: transform var(--transition), background var(--transition), color var(--transition);
}
.social:hover { transform: translateY(-2px); background: var(--navy); color: var(--white); }
.social svg { width: 19px; height: 19px; }

/* ------------------------------------------------------------
   8. ПРЕИМУЩЕСТВА
   ------------------------------------------------------------ */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.adv {
  padding: 26px 24px;
  border-radius: var(--r-lg);
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform var(--transition), box-shadow var(--transition);
}
.adv:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.adv__icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  margin-bottom: 18px;
  border-radius: var(--r-md);
  background: var(--bg-light);
  color: var(--blue);
}
.adv h3 { font-size: 17px; margin-bottom: 10px; }
.adv p { font-size: 14.5px; line-height: 21px; color: var(--gray-text); }

/* Доверие / реестр ЦБ */
.trust {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 24px;
  padding: 26px 30px;
  border-radius: var(--r-lg);
  background: var(--navy);
  color: var(--white);
}
.trust__badge {
  display: grid;
  place-items: center;
  flex: none;
  width: 74px; height: 74px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.trust__body h3 { color: var(--white); font-size: 18px; margin-bottom: 6px; }
.trust__body p { font-size: 14.5px; color: rgba(255, 255, 255, 0.72); }

/* ------------------------------------------------------------
   9. ФОРМЫ
   ------------------------------------------------------------ */
.form { display: grid; gap: 14px; }
.form-row { display: grid; gap: 14px; }
.form-row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-text);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 18px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  background: var(--white);
  color: var(--navy);
  font-size: 15.5px;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}
.field textarea { min-height: 120px; resize: vertical; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23848a93' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 44px;
}
.field input::placeholder,
.field textarea::placeholder { color: #a8adb6; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(32, 106, 212, 0.12);
}
.field.is-error input { border-color: var(--red); }
.field.is-error input:focus { box-shadow: 0 0 0 4px rgba(229, 72, 77, 0.12); }
.field__error { display: none; margin-top: 5px; font-size: 12.5px; color: var(--red); }
.field.is-error .field__error { display: block; }

.consent {
  font-size: 12.5px;
  line-height: 17px;
  color: var(--gray-text);
}
.consent a { text-decoration: underline; }

.form-success {
  display: none;
  padding: 22px;
  border-radius: var(--r-md);
  background: rgba(32, 106, 212, 0.1);
  border: 1px solid rgba(32, 106, 212, 0.35);
  color: var(--navy-700);
  font-weight: 600;
  text-align: center;
}
.form-success.is-visible { display: block; }

/* Баннер-CTA с формой */
.cta-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 44px;
  align-items: center;
  padding: 44px;
  border-radius: var(--r-2xl);
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(32, 106, 212, 0.4), transparent 60%),
    var(--navy);
  color: var(--white);
  overflow: hidden;
}
.cta-banner h2 { color: var(--white); margin-bottom: 14px; }
.cta-banner__text { color: rgba(255, 255, 255, 0.75); margin-bottom: 24px; }
.cta-banner__list { display: grid; gap: 10px; }
.cta-banner__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.88);
}
.cta-banner__list svg { flex: none; color: var(--sky); }
.cta-banner .form { padding: 26px; border-radius: var(--r-lg); background: var(--white); }
.cta-banner .form .btn { background: var(--blue); }
.cta-banner .form .btn:hover { background: var(--blue-hover); }

/* ------------------------------------------------------------
   10. КЕЙСЫ КЛИЕНТОВ
   ------------------------------------------------------------ */
.cases {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.case {
  position: relative;
  padding: 24px;
  border-radius: var(--r-lg);
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.case:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.case::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--blue);
}
.case__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.case__car { font-size: 17.5px; font-weight: 700; }
.case__year {
  padding: 4px 11px;
  border-radius: var(--r-pill);
  background: var(--bg-light);
  color: var(--blue);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}
.case__sum-label { font-size: 13px; color: var(--gray-text); }
.case__sum { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin-top: 2px; }
/* Карточка с фото автомобиля слева */
.case--photo {
  display: flex;
  align-items: stretch;
  padding: 0;
}
.case--photo::before { display: none; }
.case__photo {
  width: 150px;
  flex: none;
  object-fit: cover;
}
.case--photo .case__inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px 20px;
}

/* ------------------------------------------------------------
   11. ТАБЫ + ФОРМА ОЦЕНКИ
   ------------------------------------------------------------ */
.evaluate {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  gap: 44px;
  align-items: start;
}
.evaluate__panel {
  padding: 32px;
  border-radius: var(--r-xl);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip {
  padding: 9px 18px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--white);
  color: var(--navy);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
  font-weight: 600;
}

.evaluate__aside {
  display: grid;
  gap: 16px;
}
.assure {
  display: flex;
  gap: 14px;
  padding: 20px;
  border-radius: var(--r-md);
  background: var(--bg-light);
}
.assure__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--white);
  color: var(--blue);
}
.assure h4 { font-size: 15.5px; font-weight: 600; margin-bottom: 4px; }
.assure p { font-size: 13.5px; line-height: 19px; color: var(--gray-text); }

/* ------------------------------------------------------------
   12. ТОРГИ / ДОКУМЕНТЫ
   ------------------------------------------------------------ */
.docs-list { display: grid; gap: 12px; }
.doc {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border-radius: var(--r-md);
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.doc:hover { transform: translateX(4px); box-shadow: var(--shadow-card); border-color: transparent; }
.doc__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--bg-light);
  color: var(--blue);
}
.doc__body { flex: 1; min-width: 0; }
.doc__title { font-size: 15.5px; font-weight: 600; }
.doc__meta { display: block; margin-top: 2px; font-size: 13px; color: var(--gray-text); }
/* Тип файла — плашка справа, дальше кнопка скачивания */
.doc__tag {
  flex: none;
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--bg-light);
  color: var(--gray-text);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.doc__dl {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  transition: background var(--transition), transform var(--transition);
}
.doc__dl svg { display: block; }
.doc:hover .doc__dl { background: var(--blue); transform: translateY(-1px); }

.notice {
  display: flex;
  gap: 14px;
  margin-bottom: 24px;
  padding: 20px 24px;
  border-radius: var(--r-md);
  background: rgba(32, 106, 212, 0.08);
  border: 1px solid rgba(32, 106, 212, 0.3);
}
.notice svg { flex: none; color: var(--blue); }
.notice p { font-size: 14.5px; line-height: 21px; }

/* ------------------------------------------------------------
   13. FAQ (аккордеон)
   ------------------------------------------------------------ */
.faq { display: grid; gap: 12px; }
.faq__item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.faq__item.is-open { box-shadow: var(--shadow-card); border-color: transparent; }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 20px 24px;
  border: 0;
  background: transparent;
  color: var(--navy);
  font-size: 16.5px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color var(--transition);
}
.faq__q:hover { color: var(--blue); }
.faq__icon {
  position: relative;
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--bg-light);
  transition: background var(--transition);
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 12px; height: 2px;
  border-radius: 2px;
  background: var(--navy);
  transform: translate(-50%, -50%);
  transition: transform var(--transition), background var(--transition);
}
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item.is-open .faq__icon { background: var(--navy); }
.faq__item.is-open .faq__icon::before,
.faq__item.is-open .faq__icon::after { background: var(--white); }
.faq__item.is-open .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq__a-inner {
  padding: 0 24px 22px;
  font-size: 15px;
  line-height: 24px;
  color: var(--gray-text);
}

/* ------------------------------------------------------------
   13b. ВАКАНСИИ — карточка раскрывается по клику (аккордеон FAQ)
   ------------------------------------------------------------ */
.vac-list { display: grid; gap: 10px; }
.vac__head { align-items: center; gap: 20px; }
.vac__head:hover .vac__title { color: var(--blue); }
.vac__main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.vac__title {
  font-size: 18px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--navy);
  transition: color var(--transition);
}
.vac__meta { font-size: 13.5px; line-height: 1.4; color: var(--gray-text); }
.vac__side { display: flex; align-items: center; gap: 18px; flex: none; }
.vac__pay { font-size: 15px; font-weight: 700; color: var(--blue); white-space: nowrap; }
.vac__hint {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-text);
  white-space: nowrap;
}
/* В раскрытой карточке подсказка меняется на «Свернуть» */
.vac__hint--open { display: none; }
.vac.is-open .vac__hint--open { display: inline; }
.vac.is-open .vac__hint--closed { display: none; }
.vac__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 32px;
  margin-bottom: 20px;
}
.vac__block h4 {
  margin-bottom: 9px;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
}
.vac__block ul { display: grid; gap: 7px; }
.vac__block li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  line-height: 22px;
  color: var(--gray-text);
}
.vac__block li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}
.vac__foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.vac__foot-note { font-size: 13.5px; line-height: 1.5; color: var(--gray-text); }
.vac__foot-note a { color: var(--blue); font-weight: 600; }
.vac__foot-note a:hover { color: var(--navy); }

/* ------------------------------------------------------------
   14. НОВОСТИ
   ------------------------------------------------------------ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.news-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.news-card__media {
  position: relative;
  display: grid;
  place-items: center;
  height: 168px;
  background: linear-gradient(150deg, var(--navy), var(--navy-700));
  color: var(--white);
  overflow: hidden;
}
.news-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(300px 160px at 80% 20%, rgba(32, 106, 212, 0.65), transparent 70%);
}
.news-card__media svg { position: relative; z-index: 1; width: 56px; height: 56px; opacity: 0.9; }
.news-card__cat {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  padding: 5px 13px;
  border-radius: var(--r-pill);
  background: var(--white);
  color: var(--navy);
  font-size: 11.5px;
  font-weight: 600;
}
.news-card__body { display: flex; flex-direction: column; flex: 1; padding: 20px; }
.news-card__date { font-size: 13px; color: var(--gray-text); margin-bottom: 8px; }
.news-card__title {
  font-size: 17px;
  font-weight: 600;
  line-height: 24px;
  margin-bottom: 10px;
}
.news-card__title a { color: var(--navy); }
.news-card__title a:hover { color: var(--blue); }
.news-card__excerpt {
  font-size: 14.5px;
  line-height: 21px;
  color: var(--gray-text);
  margin-bottom: 16px;
}
.news-card__more { margin-top: auto; font-size: 14px; font-weight: 600; color: var(--blue); }
.news-card--hidden { display: none; }

/* Главная новость (лид ленты) */
.news-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  overflow: hidden;
  margin-bottom: 34px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--white);
  transition: transform var(--transition), box-shadow var(--transition);
}
.news-hero:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.news-hero__media {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 300px;
  background: linear-gradient(150deg, var(--navy), var(--navy-700));
  color: var(--white);
}
.news-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px 260px at 80% 20%, rgba(32, 106, 212, 0.65), transparent 70%);
}
.news-hero__media svg { position: relative; z-index: 1; width: 84px; height: 84px; opacity: 0.9; }
.news-hero__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 34px 38px;
}
.news-hero__title { font-size: 28px; font-weight: 700; line-height: 1.28; letter-spacing: -0.02em; }
.news-hero__excerpt { font-size: 15.5px; line-height: 25px; color: var(--gray-text); }
.news-hero__foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 4px;
}
.news-hero__meta { font-size: 13.5px; color: var(--gray-text); }

/* Панель фильтров (только при включённом JS) */
.news-toolbar { display: none; }
html.js .news-toolbar { display: grid; gap: 12px; margin-bottom: 26px; }
.news-toolbar__row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; }
.news-toolbar__label {
  flex: none;
  width: 46px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-text);
}
.news-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.news-filters .chip { padding: 8px 16px; font-size: 13.5px; }

/* Служебные блоки ленты */
.news-more { display: flex; justify-content: center; margin-top: 30px; }
.news-more[hidden] { display: none; }
/* [hidden] должен побеждать display у кнопки (авторский стиль важнее UA-правила) */
.btn[hidden] { display: none; }
.news-empty {
  display: none;
  padding: 34px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
  text-align: center;
  color: var(--gray-text);
}
.news-empty.is-visible { display: block; }
.news-archive {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--gray-text);
}
.news-archive__label { font-weight: 600; color: var(--navy); }
.news-archive__item::after { content: "·"; margin-left: 14px; color: var(--line-strong); }
.news-archive__item:last-of-type::after { content: none; }
.news-archive__total { margin-left: auto; font-size: 13px; }
.news-archive__total a { color: var(--blue); font-weight: 600; }
.news-archive__total a:hover { color: var(--navy); }

/* Выбор раздела ленты: Акции / Статьи */
.split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 42px;
}
.split-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 26px 28px;
  border-radius: var(--r-lg);
  background: linear-gradient(140deg, var(--navy), var(--navy-700));
  color: var(--white);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.split-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(340px 180px at 88% 12%, rgba(138, 203, 255, 0.3), transparent 70%);
}
.split-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(2, 17, 59, 0.3); }
.split-card__icon {
  position: relative;
  z-index: 1;
  flex: none;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.12);
  color: var(--sky);
}
.split-card__icon svg { width: 26px; height: 26px; }
.split-card__text { position: relative; z-index: 1; display: block; min-width: 0; }
.split-card__eyebrow {
  display: block;
  margin-bottom: 6px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sky);
}
.split-card__title { display: block; font-size: 21px; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
.split-card__desc { display: block; margin-top: 8px; font-size: 14.5px; line-height: 21px; color: rgba(255, 255, 255, 0.72); }
.split-card__count {
  display: inline-flex;
  margin-top: 14px;
  padding: 5px 13px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.14);
  font-size: 12.5px;
  font-weight: 600;
}
.split-card__arrow {
  position: relative;
  z-index: 1;
  flex: none;
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  transition: transform var(--transition);
}
.split-card:hover .split-card__arrow { transform: translateX(4px); }
.split-card__arrow svg { width: 18px; height: 18px; }
.split-grid--single { grid-template-columns: minmax(0, 1fr); }

/* ------------------------------------------------------------
   14c. АКЦИИ — промо-карточки (не похожи на статьи)
   ------------------------------------------------------------ */
.promo-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 30px;
  margin-bottom: 34px;
  padding: 34px 38px;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--navy), var(--navy-700));
  color: var(--white);
  overflow: hidden;
}
.promo-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(460px 280px at 88% 12%, rgba(138, 203, 255, 0.3), transparent 70%);
}
.promo-hero__body { position: relative; z-index: 1; }
.promo-hero__art {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  align-self: stretch;
  min-height: 210px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.08);
}
.promo-hero__art svg { width: 92px; height: 92px; opacity: 0.9; }
.promo-hero__title { font-size: 30px; font-weight: 700; line-height: 1.25; letter-spacing: -0.02em; color: var(--white); }
.promo-hero__text { max-width: 720px; margin-top: 12px; font-size: 15.5px; line-height: 25px; color: rgba(255, 255, 255, 0.75); }
.promo-hero__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 24px; }
.promo-hero__link { font-size: 14.5px; font-weight: 600; color: var(--sky); }
.promo-hero__link:hover { color: var(--white); }

/* Общие элементы промо-блоков */
.promo-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; }
.promo-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 13px;
  border-radius: var(--r-pill);
  background: var(--white);
  color: var(--navy);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.promo-until { font-size: 13px; font-weight: 600; color: var(--sky); }
.promo-until--past { color: rgba(255, 255, 255, 0.55); font-weight: 500; }
.promo-facts { display: grid; gap: 8px; margin-top: 16px; padding: 0; list-style: none; }
.promo-facts li {
  position: relative;
  padding-left: 26px;
  font-size: 14.5px;
  line-height: 21px;
  color: rgba(255, 255, 255, 0.88);
}
.promo-facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat;
}

/* Сетка промо-карточек */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.promo-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: var(--r-lg);
  background: linear-gradient(150deg, var(--navy), var(--navy-700));
  color: var(--white);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.promo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(300px 190px at 85% 8%, rgba(138, 203, 255, 0.26), transparent 70%);
}
.promo-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(2, 17, 59, 0.3); }
.promo-card > * { position: relative; z-index: 1; }
.promo-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 16px;
}
.promo-card__title { font-size: 18px; font-weight: 700; line-height: 1.35; }
.promo-card__title a { color: var(--white); }
.promo-card__title a:hover { color: var(--sky); }
.promo-card__text { margin-top: 10px; font-size: 14.5px; line-height: 21px; color: rgba(255, 255, 255, 0.7); }
.promo-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
  padding-top: 22px;
}
.promo-card__link { font-size: 14.5px; font-weight: 600; color: var(--sky); }
.promo-card__link:hover { color: var(--white); }

/* ------------------------------------------------------------
   14b. СТРАНИЦА НОВОСТИ
   ------------------------------------------------------------ */
.article { max-width: 800px; margin: 0 auto; }
.article__head { display: grid; gap: 16px; max-width: 800px; margin: 0 auto 30px; }
.article__cat {
  justify-self: start;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: var(--tint-blue);
  color: var(--navy);
  font-size: 12.5px;
  font-weight: 600;
}
.article__title {
  font-size: clamp(27px, 3.6vw, 37px);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.02em;
}
.article__lead { font-size: 17.5px; line-height: 28px; color: var(--gray-text); }
.article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 13.5px;
  color: var(--gray-text);
}
.article__meta span { display: inline-flex; align-items: center; gap: 7px; }
.article__meta span::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--blue);
}
.article__meta span:first-child::before { content: none; }

.article__media {
  position: relative;
  display: grid;
  place-items: center;
  height: 320px;
  margin-bottom: 34px;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: linear-gradient(150deg, var(--navy), var(--navy-700));
  color: var(--white);
}
.article__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(520px 300px at 78% 22%, rgba(32, 106, 212, 0.6), transparent 70%);
}
.article__media svg { position: relative; z-index: 1; width: 96px; height: 96px; opacity: 0.9; }
.article__caption {
  position: absolute;
  left: 20px; bottom: 16px;
  z-index: 2;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.65);
}
.article__foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px 18px;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.article__share { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.article__share-label { font-size: 13px; color: var(--gray-text); margin-right: 4px; }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--white);
  color: var(--navy);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
}
.share-btn:hover { border-color: var(--blue); color: var(--blue); }
.share-btn svg { width: 16px; height: 16px; }

/* Навигация по ленте: предыдущая / следующая публикация */
.article__nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 800px;
  margin: 30px auto 0;
}
.nav-card {
  display: grid;
  gap: 6px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--white);
  transition: box-shadow var(--transition), border-color var(--transition);
}
.nav-card:hover { box-shadow: var(--shadow-card); border-color: transparent; }
.nav-card--next { text-align: right; }
.nav-card__label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-text);
}
.nav-card__title { font-size: 15px; font-weight: 600; line-height: 22px; color: var(--navy); }
.nav-card:hover .nav-card__title { color: var(--blue); }

/* ------------------------------------------------------------
   14d. РЕЙТИНГ И ОТЗЫВЫ (Яндекс Карты / 2ГИС)
   ------------------------------------------------------------ */
.rate-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.rate-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 26px;
  border-radius: var(--r-lg);
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform var(--transition), box-shadow var(--transition);
}
.rate-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.rate-card__logo {
  display: grid;
  place-items: center;
  flex: none;
  width: 56px; height: 56px;
  border-radius: var(--r-md);
  background: var(--navy);
  color: var(--white);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.rate-card__logo--dgis { font-size: 14px; background: var(--blue); }
.rate-card__body { flex: 1; min-width: 0; }
.rate-card__name { font-size: 16.5px; font-weight: 700; }
.rate-card__score {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}
.rate-card__value {
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}
.rate-card__meta { margin-top: 4px; font-size: 13.5px; color: var(--gray-text); }
.rate-card__link {
  flex: none;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--blue);
  white-space: nowrap;
}
.rate-card__link:hover { text-decoration: underline; }

/* Звёзды рейтинга: серый ряд + наложенный синий, обрезанный по --fill */
.stars {
  position: relative;
  display: inline-block;
  line-height: 0;
}
.stars__row {
  display: flex;
  gap: 3px;
}
.stars__row svg {
  width: 18px;
  height: 18px;
}
.stars__row--base { color: var(--line-strong); }
.stars__row--fill {
  position: absolute;
  top: 0; left: 0;
  width: var(--fill, 100%);
  overflow: hidden;
  color: var(--blue);
  white-space: nowrap;
}
.stars--sm .stars__row svg { width: 15px; height: 15px; }

.reviews-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.review {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 26px;
  border-radius: var(--r-lg);
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform var(--transition), box-shadow var(--transition);
}
.review:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.review__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.review__author { font-size: 15.5px; font-weight: 700; }
.review__date { font-size: 13px; color: var(--gray-text); white-space: nowrap; }
.review__text {
  flex: 1;
  font-size: 14.5px;
  line-height: 22px;
  color: #3d4457;
}
.review__src {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gray-text);
}

/* ------------------------------------------------------------
   15. КОНТАКТЫ
   ------------------------------------------------------------ */
.contacts-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 32px;
  align-items: start;
}
.contact-list { display: grid; gap: 14px; margin-bottom: 24px; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--r-md);
  background: var(--white);
  border: 1px solid var(--line);
  transition: box-shadow var(--transition), transform var(--transition);
}
.contact-item:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.contact-item__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px; height: 46px;
  border-radius: 14px;
  background: var(--bg-light);
  color: var(--blue);
}
/* Подпись и контакт — строго в две строки: сверху подпись,
   снизу значение (раньше они шли в одну строку) */
.contact-item__body { display: block; min-width: 0; }
.contact-item__label {
  display: block;
  font-size: 13px;
  line-height: 1.4;
  color: var(--gray-text);
  margin-bottom: 4px;
}
.contact-item__value {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
}
.contact-item__value:hover { color: var(--blue); }
.contact-item__note {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--gray-text);
  font-weight: 400;
}
/* Адрес — одна сущность: вторая строка (этаж, офис, БЦ) идёт тем же
   начертанием, что и улица, — весь адрес выделен целиком */
.contact-item__value-sub {
  display: block;
  margin-top: 2px;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
}
.contact-item__value-sub:hover { color: inherit; }

/* ------------------------------------------------------------
   РЕКВИЗИТЫ КОМПАНИИ (страница контактов)
   ------------------------------------------------------------ */
.req-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.req-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 14px;
  border-radius: var(--r-sm);
  background: var(--white);
  border: 1px solid var(--line);
}
.req-item dt {
  flex: none;
  font-size: 13px;
  line-height: 1.45;
  color: var(--gray-text);
}
.req-item dd {
  margin: 0;
  min-width: 0;
  font-size: 14.5px;
  line-height: 1.45;
  font-weight: 600;
  text-align: right;
  color: var(--navy);
  overflow-wrap: anywhere;
}
.req-item dd a {
  color: var(--navy);
  font-weight: 600;
  transition: color var(--transition);
}
.req-item dd a:hover { color: var(--blue); }
/* Банковские реквизиты: заголовок группы, широкая карточка на всю
   строку и цифры моноширинным начертанием */
.req-group__title {
  margin: 22px 0 10px;
  font-size: 17px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--navy);
}
.req-item--wide { grid-column: 1 / -1; }
.req-item dd.req-num {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.map {
  position: relative;
  height: 440px;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(243, 248, 255, 0.9), rgba(243, 248, 255, 0.9)),
    repeating-linear-gradient(0deg, var(--line) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 40px);
}
.map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ------------------------------------------------------------
   16. ФУТЕР
   ------------------------------------------------------------ */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.72);
  padding: 56px 0 32px;
  font-size: 14.5px;
}
.footer a { color: rgba(255, 255, 255, 0.72); }
.footer a:hover { color: var(--white); }
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer__brand .logo { color: var(--white); margin-bottom: 16px; }
.footer__brand .logo__img { height: 46px; }
.footer__brand .logo__mark { background: var(--white); color: var(--navy); }
.footer__brand .logo__sub { color: rgba(255, 255, 255, 0.55); }
.footer__desc { font-size: 14px; line-height: 21px; margin-bottom: 18px; }
.footer__contacts { display: grid; gap: 9px; font-size: 14.5px; }
.footer__contacts a { font-weight: 600; color: var(--white); }
.footer__col h4 {
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
}
.footer__col ul { display: grid; gap: 11px; font-size: 14.5px; }

.footer__legal {
  padding-top: 28px;
  display: grid;
  gap: 14px;
  font-size: 12.5px;
  line-height: 18px;
  color: rgba(255, 255, 255, 0.5);
}
.footer__legal strong { color: rgba(255, 255, 255, 0.75); font-weight: 600; }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13.5px;
}
.footer__social { display: flex; gap: 10px; }
.footer__social .social {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--white);
}
.footer__social .social:hover { background: var(--white); color: var(--navy); }

/* ------------------------------------------------------------
   17. ВСПЛЫВАЮЩЕЕ ОКНО + ПЛАВАЮЩИЕ КНОПКИ
   ------------------------------------------------------------ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(2, 17, 59, 0.6);
  backdrop-filter: blur(4px);
}
.modal.is-open { display: grid; }
.modal__box {
  position: relative;
  width: 100%;
  max-width: 440px;
  padding: 34px;
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--shadow-pop);
  animation: pop 0.25s ease;
}
@keyframes pop {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}
.modal__title { font-size: 23px; font-weight: 700; margin-bottom: 8px; }
.modal__sub { font-size: 14.5px; color: var(--gray-text); margin-bottom: 22px; }
.modal__close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--bg-light);
  color: var(--navy);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background var(--transition);
}
.modal__close:hover { background: var(--bg-gray-2); }

.float-bar {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.float-bar a,
.float-bar button {
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), color var(--transition);
}
.float-bar a:hover,
.float-bar button:hover { transform: translateY(-3px); background: var(--navy); color: var(--white); }
.float-bar svg { width: 24px; height: 24px; }

/* ------------------------------------------------------------
   17b. УВЕДОМЛЕНИЕ О СОГЛАСИИ НА COOKIE
   ------------------------------------------------------------ */
.cookies {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 950;
  padding: 16px 0;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.78);
  box-shadow: 0 -10px 34px rgba(2, 17, 59, 0.3);
  transform: translateY(100%);
  transition: transform 0.35s ease;
}
.cookies[hidden] { display: none; }
.cookies.is-visible { transform: translateY(0); }
.cookies__inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 26px;
}
.cookies__text { flex: 1 1 460px; min-width: 0; font-size: 13.5px; line-height: 20px; }
.cookies__title {
  display: block;
  margin-bottom: 4px;
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
}
.cookies__text a {
  color: var(--sky);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookies__text a:hover { color: var(--white); }
.cookies__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookies__actions .btn { min-height: 44px; padding: 10px 22px; font-size: 14px; }
/* Пока уведомление открыто, плавающие кнопки поднимаются над ним */
body.cookies-open .float-bar { bottom: calc(var(--cookies-h, 96px) + 22px); }

/* ------------------------------------------------------------
   18. ВСПОМОГАТЕЛЬНОЕ
   ------------------------------------------------------------ */
.page-head {
  padding: 44px 0 40px;
  background: var(--bg-light);
  border-bottom: 1px solid var(--line);
}
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 13.5px;
  color: var(--gray-text);
}
.breadcrumbs a { color: var(--gray-text); }
.breadcrumbs a:hover { color: var(--blue); }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 8px; color: var(--line-strong); }
.breadcrumbs li { display: inline-flex; align-items: center; }
.page-head h1 { max-width: 860px; }
.page-head p { max-width: 720px; margin-top: 14px; color: var(--gray-text); }

/* ------------------------------------------------------------
   18. СТРАНИЦА 404
   Тёмный экран в стиле первого: огромный «вырезанный» номер,
   светлые кнопки и стеклянная карточка с быстрыми ссылками.
   Хлебные крошки на странице не используются.
   ------------------------------------------------------------ */
.hero--404 { padding-bottom: 104px; }

.hero__code {
  display: block;
  margin-bottom: 12px;
  font-size: clamp(64px, 9vw, 116px);
  line-height: 0.92;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.16);
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.5);
}

.quick-nav {
  width: 100%;
  max-width: 420px;
  padding: 22px;
  border-radius: var(--r-md);
  background: rgba(2, 17, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px rgba(2, 17, 59, 0.3);
}
.quick-nav__title {
  display: block;
  margin-bottom: 10px;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
.quick-nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border-radius: var(--r-sm);
  color: var(--white);
  font-size: 15px;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
}
.quick-nav__link:hover { background: rgba(255, 255, 255, 0.92); color: var(--navy); }
.quick-nav__link svg { flex: none; opacity: 0.65; }

@media (max-width: 1024px) {
  .hero--404 { padding-bottom: 72px; }
  .quick-nav { margin: 0 auto; }
}
@media (max-width: 720px) {
  /* В отличие от фото первого экрана, карточка ссылок на мобильном остаётся */
  .hero--404 .hero__art { display: flex; }
  .quick-nav { padding: 16px; }
  .quick-nav__link { padding: 12px; font-size: 14.5px; }
}

.text-block { max-width: 860px; }
.text-block h2 { font-size: 24px; margin: 36px 0 14px; }
.text-block h3 { font-size: 19px; margin: 28px 0 10px; }
.text-block p { margin-bottom: 16px; color: #3d4457; }
.text-block ul { display: grid; gap: 10px; margin-bottom: 18px; }
.text-block ul li {
  position: relative;
  padding-left: 26px;
  color: #3d4457;
}
.text-block ul li::before {
  content: "";
  position: absolute;
  top: 8px; left: 4px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--blue);
}
.text-block ol {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
  padding-left: 22px;
  list-style: decimal;
}
.text-block ol li { padding-left: 4px; font-size: 15.5px; line-height: 24px; color: #3d4457; }
.text-block blockquote {
  position: relative;
  margin: 26px 0;
  padding: 20px 24px 20px 26px;
  border-left: 3px solid var(--blue);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  background: var(--bg-light);
  color: var(--navy);
  font-size: 16px;
  line-height: 26px;
}
.text-block blockquote p:last-child { margin-bottom: 0; }
.text-block table {
  width: 100%;
  margin: 22px 0;
  border-collapse: collapse;
  font-size: 15px;
}
.text-block th,
.text-block td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.text-block th {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-text);
}
.text-block td:last-child { font-weight: 600; color: var(--navy); }

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.stat-box {
  padding: 26px 24px;
  border-radius: var(--r-lg);
  background: var(--white);
  border: 1px solid var(--line);
  text-align: center;
}
.stat-box__num {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--navy);
}
.stat-box__num .unit { color: var(--blue); }
.stat-box__label { margin-top: 8px; font-size: 14px; color: var(--gray-text); line-height: 20px; }

/* Скрываем только если JS активен — без него контент виден сразу */
html.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
html.js .reveal.is-in { opacity: 1; transform: none; }

/* Утилита: полностью убрать блок из потока (JS-фильтры новостей) */
.is-hidden { display: none !important; }

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

/* ------------------------------------------------------------
   18а. СТРАНИЦА УСЛУГИ (продающий шаблон)
   Кнопки заявки и цифры условий прямо в шапке страницы услуги.
   ------------------------------------------------------------ */
.page-head__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
.page-head .stats-strip {
  margin-top: 30px;
}
@media (max-width: 720px) {
  /* На телефоне кнопки шапки растягиваются на всю ширину —
     как и другие парные CTA первого экрана */
  .page-head__cta {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .page-head__cta .btn {
    width: 100%;
  }
}

/* ------------------------------------------------------------
   18б. УВЕДОМЛЕНИЕ О ТЕХРАБОТАХ (главная)
   Карточка перед блоком категорий в стиле блока «Находимся
   в Реестре ЦБ» — переиспользует классы .trust (тёмная плашка,
   круглый бейдж, текст). Справа — крестик: по клику блок
   скрывается и не показывается снова в этой вкладке
   (sessionStorage). z-index выше плавающих кнопок связи
   (float-bar = 900), чтобы крестик оставался кликабельным,
   но ниже шапки (930) — при прокрутке блок уходит под неё —
   и ниже cookie-панели (950).
   ------------------------------------------------------------ */
.maint-note {
  position: relative;
  z-index: 920;
  margin-top: 32px; /* отступ от карточки калькулятора — блок не прилипает к ней */
  overflow: hidden;
  max-height: 360px;
  opacity: 1;
  transition: max-height .3s ease, opacity .25s ease;
}
.maint-note[hidden] { display: none; }
.maint-note.is-hiding { max-height: 0; opacity: 0; }
.maint-note .trust { margin-top: 0; }
.maint-note__title {
  display: block;
  margin-bottom: 6px;
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
}
.maint-note .trust__body p a { color: var(--sky); text-decoration: underline; }
.maint-note .trust__body p a:hover { color: var(--white); }
.maint-note__close {
  margin-left: auto;
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.maint-note__close:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
}
.maint-note__close:active { transform: scale(0.94); }
.maint-note__close svg { width: 18px; height: 18px; }
@media (max-width: 720px) {
  /* Как у .trust на телефоне: колонка, крестик — в правом
     верхнем углу карточки, под ним текст не заходит */
  .maint-note { margin-top: 20px; }
  .maint-note .trust {
    position: relative;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 22px 62px 22px 22px;
  }
  .maint-note .trust__badge { width: 60px; height: 60px; }
  .maint-note .trust__badge svg { width: 28px; height: 28px; }
  .maint-note__title { font-size: 16.5px; }
  .maint-note__close {
    position: absolute;
    top: 18px;
    right: 18px;
    margin-left: 0;
    width: 42px;
    height: 42px;
  }
}

/* ------------------------------------------------------------
   18в. СЛАЙДЕР ОТЗЫВОВ (главная)
   Сетка карточек отзывов превращается в слайдер, когда JS
   активен (класс .is-slider + контролы от main.js): лента
   шириной в контейнер, карточка-«окно» считается от --per-view.
   Без JS остаётся обычной сеткой из .reviews-list.
   ------------------------------------------------------------ */
.reviews-slider {
  position: relative;
  overflow: hidden; /* карточки за пределами «окна» не вылезают за контейнер */
  padding-top: 8px;
  margin-top: -8px; /* компенсация: лента внутри начинается на прежнем месте */
}
.reviews-list.is-slider {
  display: flex;
  gap: 20px;
  transition: transform .5s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}
.reviews-list.is-slider .review {
  flex: 0 0 calc((100% - (var(--per-view, 3) - 1) * 20px) / var(--per-view, 3));
}
.reviews-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
}
.reviews-dots {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
}
.reviews-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(2, 17, 59, 0.22);
  cursor: pointer;
  transition: width .2s ease, background .2s ease;
}
.reviews-dot:hover { background: rgba(2, 17, 59, 0.45); }
.reviews-dot.is-active {
  width: 24px;
  border-radius: var(--r-pill);
  background: var(--navy);
}
.reviews-arrow {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, opacity .18s ease;
}
.reviews-arrow:hover { border-color: var(--navy); }
.reviews-arrow[disabled] { opacity: .38; cursor: default; }
.reviews-arrow[disabled]:hover { border-color: var(--line); }
.reviews-arrow svg { width: 20px; height: 20px; }
@media (max-width: 720px) {
  .reviews-arrow { width: 44px; height: 44px; }
  .reviews-controls { margin-top: 22px; }
}

/* ------------------------------------------------------------
   18г. ОКНО «СПАСИБО ЗА ЗАЯВКУ» + сообщение об ошибке отправки
   ------------------------------------------------------------ */
.modal__box--thanks { text-align: center; }
.modal__box--thanks .modal__title { margin-bottom: 6px; }
.modal__box--thanks .modal__sub { margin-bottom: 24px; }
.thanks__icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin: 2px auto 18px;
  border-radius: 50%;
  background: var(--tint-blue);
  color: var(--navy);
}
.thanks__icon svg { width: 34px; height: 34px; }
.form-fail {
  margin-top: 14px;
  padding: 13px 16px;
  border-radius: var(--r-md);
  background: var(--bg-light);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.45;
}

/* ------------------------------------------------------------
   19. АДАПТИВ
   ------------------------------------------------------------ */
@media (max-width: 1180px) {
  .steps__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step:nth-child(2)::after { display: none; }
  .adv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* На компактных десктопах пункты меню делаем плотнее; email и соцсети
   в шапке показываем только на широких экранах — место занимает CTA-кнопка */
@media (max-width: 1599px) {
  .nav { margin-left: 18px; }
  .nav__link { padding: 13px 11px; font-size: 13px; }
}
@media (max-width: 1439px) {
  .header__contacts { gap: 12px; }
  .header__meta { display: none; }
}

/* Полная навигация — только на широких экранах (ниже — бургер) */
@media (max-width: 1365px) {
  :root { --header-h: 65px; }
  .nav { display: none; }
  .burger { display: block; }
  .header__inner { min-height: 64px; justify-content: space-between; }
  .header__contacts { margin-left: auto; }

  .nav.is-open {
    display: flex;
    position: absolute;
    top: 100%; left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px;
    max-height: calc(100vh - 104px);
    overflow-y: auto;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-pop);
  }
  .nav.is-open .nav__link,
  .header--over-hero .nav.is-open .nav__link { color: var(--navy); justify-content: space-between; padding: 13px 14px; font-size: 16px; }
  .nav.is-open .dropdown a { white-space: normal; border-radius: 10px; }
  .nav.is-open .dropdown {
    position: static;
    display: none;
    min-width: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    background: var(--bg-light);
    margin: 4px 0 8px;
  }
  .nav.is-open .nav__item.is-open .dropdown { display: block; }
}

@media (max-width: 1024px) {
  /* На мобильной вёрстке калькулятор сильно не поднимаем — иначе он
     наедет на чипы первого экрана */
  :root { --fs-h1: 32px; --lh-h1: 40px; --fs-h2: 26px; --lh-h2: 34px; --calc-hang: 56px; }
  .header__hours { display: none; }

  /* На узких экранах — мобильный вариант фона-баннера */
  .hero {
    padding: 44px 0 72px;
    background-image: url("../../assets/ref/banner_bg_mobile.webp");
    background-size: cover;
    background-position: center;
  }
  /* Мобильный баннер светлый сверху, а текст первого экрана белый —
     гасим светлую часть вуалью, чтобы контраст оставался как на десктопе */
  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      180deg,
      rgba(2, 17, 59, 0.88) 0%,
      rgba(2, 17, 59, 0.74) 42%,
      rgba(2, 17, 59, 0.5) 100%
    );
    z-index: 0;
  }
  .hero--over-header { padding-top: calc(var(--header-h) + 44px); }
  .hero h1 { font-size: 34px; line-height: 42px; }
  .hero__inner { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hero__art { justify-content: center; }
  .hero__art img { max-width: 460px; }
  .form.calc-form { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .cta-banner { grid-template-columns: minmax(0, 1fr); padding: 32px; }
  .evaluate { grid-template-columns: minmax(0, 1fr); }
  .contacts-grid { grid-template-columns: minmax(0, 1fr); }
  .grid--4, .grid--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cases, .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .promo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reviews-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .promo-hero { grid-template-columns: minmax(0, 1fr); padding: 30px; }
  .promo-hero__art { display: none; }
  .news-hero { grid-template-columns: minmax(0, 1fr); }
  .news-hero__media { min-height: 220px; }
  .article__media { height: 260px; }
}

@media (max-width: 720px) {
  :root { --gutter: 16px; --fs-h1: 27px; --lh-h1: 34px; --fs-h2: 22px; --lh-h2: 29px; }
  .section { padding: 44px 0; }
  .topbar__inner { justify-content: center; gap: 14px; font-size: 12px; }
  .header__phone { display: none; }
  .header__info { display: none; }
  .header__cta { display: none; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 26px; }

  .grid--2, .grid--3, .grid--4, .grid--6,
  .cases, .news-grid, .steps__grid, .adv-grid,
  .stats-strip, .req-list { grid-template-columns: minmax(0, 1fr); }

  /* Реквизиты: в одну колонку подпись уходит над значением,
     иначе длинные значения зажимаются в узкую колонку */
  .req-item { flex-direction: column; align-items: flex-start; gap: 2px; }
  .req-item dd { text-align: left; }

  .hero__stats { gap: 12px; }
  .hero__stat { flex: 1 1 140px; min-width: 0; max-width: none; padding: 15px 16px; }
  .hero__stat-num { font-size: 28px; line-height: 34px; }
  .hero__stat-num .unit { font-size: 15px; }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; }
  .hero__art { display: none; }
  .hero h1 { font-size: 28px; line-height: 34px; }
  .hero__lead { font-size: 17px; line-height: 25px; }
  .calc-card { padding: 20px 16px; }
  .step::after { display: none; }

  .form-row--2 { grid-template-columns: minmax(0, 1fr); }
  .cta-banner { padding: 26px 20px; border-radius: var(--r-lg); }
  .cta-banner .form { padding: 20px; }
  .evaluate__panel { padding: 22px; }
  .trust { flex-direction: column; align-items: flex-start; gap: 18px; padding: 24px 22px; }
  .map { height: 300px; }
  .footer__top { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .faq__q { padding: 17px 18px; font-size: 15.5px; }
  .faq__a-inner { padding: 0 18px 18px; }
  .vac__head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .vac__side { width: 100%; justify-content: space-between; gap: 12px; }
  .vac__hint { display: none; }
  .vac__grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .vac__foot .btn { width: 100%; }

  .doc { gap: 12px; padding: 14px 16px; }
  .doc__icon { width: 40px; height: 40px; border-radius: 10px; }
  .doc__dl { width: 36px; height: 36px; }

  .news-hero { margin-bottom: 26px; }
  .news-hero__media { min-height: 170px; }
  .news-hero__body { padding: 22px 20px; gap: 12px; }
  .news-hero__title { font-size: 22px; line-height: 1.3; }
  .news-hero__excerpt { font-size: 15px; line-height: 23px; }
  .news-toolbar__row { align-items: flex-start; flex-direction: column; gap: 8px; }
  .news-toolbar__label { width: auto; }
  .news-archive__total { margin-left: 0; width: 100%; }

  .split-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; margin-bottom: 30px; }
  .split-card { display: block; padding: 20px 18px; }
  .split-card__icon { width: 46px; height: 46px; margin-bottom: 14px; }
  .split-card__icon svg { width: 22px; height: 22px; }
  .split-card__title { font-size: 19px; }
  .split-card__desc { font-size: 14px; line-height: 20px; }
  .split-card__arrow { position: absolute; top: 18px; right: 18px; width: 38px; height: 38px; }
  .split-card:hover .split-card__arrow { transform: none; }

  .promo-grid { grid-template-columns: minmax(0, 1fr); }
  .rate-grid, .reviews-list { grid-template-columns: minmax(0, 1fr); }
  .rate-card { flex-wrap: wrap; gap: 14px; }
  .rate-card__link { width: 100%; }
  .promo-hero { padding: 24px 20px; margin-bottom: 26px; }
  .promo-hero__title { font-size: 22px; line-height: 30px; }
  .promo-card { padding: 22px 20px; }
  .promo-card__foot { flex-direction: column; align-items: stretch; }
  .promo-card__foot .btn { width: 100%; }

  .article__lead { font-size: 16px; line-height: 25px; }
  .article__media { height: 190px; margin-bottom: 26px; }
  .article__media svg { width: 68px; height: 68px; }
  .article__foot { flex-direction: column; align-items: flex-start; }
  .article__nav { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .nav-card--next { text-align: left; }
  .modal__box { padding: 26px 20px; }
  .float-bar { right: 14px; bottom: 14px; }
  .float-bar a, .float-bar button { width: 48px; height: 48px; }

  .cookies { padding: 14px 0; }
  .cookies__inner { flex-direction: column; align-items: stretch; gap: 12px; }
  .cookies__text { flex: none; }
  .cookies__actions { width: 100%; }
  .cookies__actions .btn { flex: 1 1 0; padding: 10px 12px; font-size: 13.5px; }
  body.cookies-open .float-bar { bottom: calc(var(--cookies-h, 150px) + 14px); }
  .page-head { padding: 32px 0; }
}

@media print {
  html.js .reveal { opacity: 1 !important; transform: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  html.js .reveal { opacity: 1; transform: none; }
}
