/* ============================================================
   Администратор фондов — СД ИНФИНИТУМ
   Главная страница. Версия 2
   ============================================================ */

:root {
  /* Brand */
  --red: #E52D2F;
  --red-dark: #B21616;
  --red-hover: #C71F25;

  /* Surfaces */
  --hero-bg: #090B10;
  --footer-bg: #05070B;
  --surface-dark: #0B0F16;
  --page-bg: #FFFFFF;
  --page-bg-alt: #F8F9FB;
  --pink: #FDECEC;

  /* Text */
  --text: #111111;
  --text-2: #3C4559;
  --text-3: #6B7280;
  --text-light: #F5F5F5;
  --text-light-2: #C9CDD3;

  /* Lines */
  --border: #E6E8EC;
  --border-2: #ECECEC;
  --line-dark: #2A2F38;

  /* Shadows */
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-soft: 0 4px 18px rgba(0, 0, 0, 0.06);
  --shadow-red: 0 18px 45px rgba(229, 45, 47, 0.20);

  --maxw: 1200px;
  --radius: 14px;
  --radius-sm: 10px;

  --font: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  --font-inter: 'Inter', 'Segoe UI', Arial, sans-serif;
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* Любой display в правилах ниже перебивает атрибут hidden — возвращаем ему силу,
   иначе скрытые блоки (например «требуется консультация») видны всегда */
[hidden] { display: none !important; }

/* iOS Safari навязывает полям свои скругления, тени и шрифт — сбрасываем,
   иначе форма и калькулятор выглядят иначе, чем в десктопных браузерах */
input, textarea, select, button {
  font: inherit;
  color: inherit;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
  background-clip: padding-box;
}
input, textarea {
  -webkit-tap-highlight-color: transparent;
}
textarea { -webkit-appearance: none; }
button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
a { -webkit-tap-highlight-color: rgba(229, 45, 47, .12); }
/* Safari масштабирует текст при повороте экрана */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--font-inter);
  color: var(--text);
  background: var(--page-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
svg { display: block; }

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

/* ---------- Typography helpers ---------- */
.section-title {
  font-family: var(--font);
  font-weight: 800;
  font-size: clamp(34px, 5vw, 60px);
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 40px;
}
.section-title--sm { font-size: clamp(30px, 4vw, 48px); margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 18px;
  color: #fff;
  background: var(--red);
  border-radius: 10px;
  padding: 15px 30px;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
  text-align: center;
}
.btn--primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(229,45,47,.3); }
.btn--lg { font-size: 22px; padding: 19px 44px; }
.btn--block { width: 100%; }
.btn--outline-light {
  background: transparent;
  border: 1.6px solid rgba(255,255,255,.5);
  color: #fff;
}
.btn--outline-light:hover { background: rgba(255,255,255,.08); border-color: #fff; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 11, 16, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 74px;
}
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo__img { height: 42px; width: auto; }
.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 26px; }
.nav__item { position: relative; }
.nav__link {
  font-family: var(--font);
  font-weight: 500;
  font-size: 16px;
  color: #E8E9EC;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 0;
  transition: color .2s;
}
.nav__link:hover { color: var(--red); }
.nav__caret { transition: transform .2s; }
.nav__item--has-drop:hover .nav__caret { transform: rotate(180deg); }
.nav__drop {
  position: absolute;
  top: 100%;
  left: -16px;
  min-width: 260px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,.22);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .22s ease;
}
.nav__item--has-drop:hover .nav__drop { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__drop a {
  display: block;
  font-family: var(--font);
  font-weight: 500;
  font-size: 15px;
  color: var(--text);
  padding: 11px 14px;
  border-radius: 8px;
  transition: background .18s, color .18s;
}
.nav__drop a:hover { background: var(--pink); color: var(--red); }

.header__phone {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 16px;
  color: #fff;
  flex-shrink: 0;
}
.header__phone svg { color: var(--red); }
.header__phone:hover { color: var(--red); }

/* Телефон дублируется в мобильном меню — в десктопной шапке он уже есть */
.nav__item--phone { display: none; }

.burger { display: none; flex-direction: column; gap: 5px; padding: 6px; margin-left: auto; }
.burger span { width: 26px; height: 2.5px; background: #fff; border-radius: 2px; transition: .3s; }
.burger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============================================================
   BLOCK 1 — HERO
   ============================================================ */
.hero {
  position: relative;
  background: var(--hero-bg);
  color: #fff;
  overflow: hidden;
  padding-top: 60px;
}
.hero__bg {
  position: absolute;
  top: 0; right: 0;
  width: 68%;
  height: 88%;
  z-index: 0;
  pointer-events: none;
}
.hero__bg-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: .95;
}
.hero__bg-fade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--hero-bg) 0%, rgba(9,11,16,.6) 22%, rgba(9,11,16,0) 55%),
    linear-gradient(0deg, var(--hero-bg) 2%, rgba(9,11,16,0) 30%);
}
.hero__inner { position: relative; z-index: 2; }
.hero__content { max-width: 640px; padding: 30px 0 40px; }
.hero__title {
  font-family: var(--font);
  font-weight: 800;
  font-size: clamp(33px, 6.4vw, 78px);
  line-height: 1.03;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}
.hero__subtitle {
  font-family: var(--font);
  font-weight: 400;
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.3;
  color: #E7E8EB;
  max-width: 520px;
  margin-bottom: 34px;
}
.hero__badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px 26px; margin-bottom: 40px; max-width: 640px; }
.badge { display: flex; gap: 12px; }
.badge__icon {
  flex-shrink: 0;
  width: 26px; height: 26px;
  color: var(--red);
}
.badge__icon svg { width: 26px; height: 26px; }
.badge__text {
  font-family: var(--font);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.35;
  color: #D7D9DD;
}

/* Закрепленная боковая панель: компактная, подпись выезжает при наведении */
.dock {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  border-radius: 12px 0 0 12px;
  overflow: hidden;
  box-shadow: -6px 10px 28px rgba(0, 0, 0, .22);
}
.dock__btn {
  display: flex;
  align-items: center;
  gap: 0;
  width: 52px;
  height: 52px;
  padding: 0;
  background: var(--red);
  color: #fff;
  font-family: var(--font);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  transition: width .28s cubic-bezier(.4, 0, .2, 1), gap .28s, padding .28s, background .2s;
}
/* все кнопки одного цвета, разделяет их только тонкая линия */
.dock__btn + .dock__btn { border-top: 1px solid rgba(255, 255, 255, .22); }
.dock__btn:hover { background: var(--red-dark); }
.dock__icon {
  flex-shrink: 0;
  width: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dock__icon svg { width: 22px; height: 22px; }
.dock__text {
  max-width: 0;
  opacity: 0;
  transition: max-width .28s cubic-bezier(.4, 0, .2, 1), opacity .2s ease;
}
/* раскрываем всю панель целиком, чтобы кнопки не «прыгали» по одной */
.dock:hover .dock__btn,
.dock:focus-within .dock__btn { width: 218px; }
.dock:hover .dock__text,
.dock:focus-within .dock__text { max-width: 170px; opacity: 1; padding-right: 18px; }

.hero__foot {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 34px 0 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 60px;
  max-width: 980px;
}
.hero__foot p {
  font-family: var(--font-inter);
  font-size: 16px;
  line-height: 1.55;
  color: #C3C6CC;
}

/* ============================================================
   BLOCK 2 — TIMELINE
   ============================================================ */
.market { background: #fff; padding: 84px 0 96px; }
.timeline { position: relative; padding-top: 20px; }
.timeline__track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: center;
  height: 60px;
  margin-bottom: 10px;
}
.timeline__line {
  position: absolute;
  left: 4%; right: 4%;
  top: 50%;
  height: 3px;
  background: #BFC3C9;
  border-radius: 2px;
}
/* Красная часть шкалы начинается ровно от ключевой точки (4-я из 6),
   центр ее колонки приходится на 58.33% ширины трека */
.timeline__line--active {
  left: 58.33%;
  right: 4%;
  width: auto;
  background: var(--red);
}
.tl-node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  height: 100%;
  justify-content: center;
}
.tl-node__dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #BFC3C9;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px #BFC3C9;
  transition: all .2s;
  order: 2;
}
.tl-node__date {
  font-family: var(--font);
  font-weight: 600;
  font-size: clamp(15px, 1.6vw, 20px);
  color: #8A9099;
  order: 1;
  position: absolute;
  top: -6px;
  white-space: nowrap;
  transition: color .2s;
}
.tl-node:hover .tl-node__dot { transform: scale(1.15); }
.tl-node.is-active .tl-node__dot,
.tl-node--key .tl-node__dot {
  background: var(--red);
  box-shadow: 0 0 0 2px var(--red), 0 0 0 6px rgba(229,45,47,.18);
}
.tl-node.is-active .tl-node__date { color: var(--red); }
.tl-node--future .tl-node__dot { background: var(--red); box-shadow: 0 0 0 2px var(--red); }
.tl-node--future .tl-node__date { color: var(--red); }
.tl-node--key .tl-node__dot { width: 18px; height: 18px; }
/* Ключевая дата — главная на шкале, показываем ее всегда и с акцентом */
.tl-node__date--key { display: block; color: var(--red); font-weight: 700; }

/* Card — скользит под активный год */
.timeline__card-wrap {
  position: relative;
  transition: height .3s ease;
}
.tl-card {
  position: absolute;
  top: 8px;
  left: 0;
  width: 420px;
  max-width: 100%;
  background: #fff;
  border: 1px solid var(--border-2);
  border-top: 4px solid var(--red);
  border-radius: 14px;
  padding: 26px 28px 28px;
  box-shadow: 0 16px 40px rgba(0,0,0,.08);
  transition: left .38s cubic-bezier(.4, 0, .2, 1),
              opacity .25s ease,
              transform .25s ease;
}
.tl-card::before {
  content: "";
  position: absolute;
  top: -12px;
  left: var(--arrow-x, 50%);
  transform: translateX(-50%) rotate(45deg);
  width: 20px; height: 20px;
  background: var(--red);
  border-radius: 3px;
  transition: left .38s cubic-bezier(.4, 0, .2, 1);
}
.tl-card__date {
  display: inline-block;
  font-family: var(--font);
  font-weight: 700;
  font-size: 20px;
  color: var(--red);
  margin-bottom: 12px;
}
.tl-card__title {
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(19px, 2vw, 23px);
  line-height: 1.25;
  color: #111;
  margin-bottom: 12px;
}
.tl-card__text {
  font-family: var(--font-inter);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-2);
}
.tl-card__par { display: block; }
.tl-card__par + .tl-card__par { margin-top: 10px; }
.tl-card__par--accent {
  color: var(--red);
  font-weight: 600;
}
.tl-card.is-anim { opacity: 0; transform: translateY(8px); }

/* ============================================================
   BLOCK 3 — KEY ADVANTAGES
   ============================================================ */
.advantages { background: #fff; padding: 20px 0 96px; }
.adv-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface-dark);
  color: #fff;
  border-radius: 12px;
  padding: 20px 28px;
  font-family: var(--font);
  font-weight: 600;
  font-size: clamp(20px, 2.4vw, 32px);
  letter-spacing: .01em;
  margin-bottom: 28px;
}
.adv-bar:not(:first-of-type) { margin-top: 44px; }
.adv-bar__icon { width: 34px; height: 34px; color: var(--red); flex-shrink: 0; }
.adv-bar__icon svg { width: 34px; height: 34px; }

.adv-grid { display: grid; gap: 24px; }
.adv-grid--3 { grid-template-columns: repeat(3, 1fr); }
.adv-grid--2 { grid-template-columns: repeat(2, 1fr); }

/* Плейсхолдер держит место в сетке: высота фиксируется по свернутому виду,
   поэтому раскрытие не двигает соседние карточки и блоки ниже. */
.adv-card {
  position: relative;
  min-height: 132px;
  cursor: default;
}
.adv-card__inner {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  background: #fff;
  border: 1px solid var(--border-2);
  border-radius: 14px;
  padding: 28px 30px;
  box-shadow: 0 4px 14px rgba(0,0,0,.06);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.adv-card__head {
  display: flex;
  align-items: center;
  gap: 22px;
}
.adv-card__icon {
  width: 46px; height: 46px;
  color: var(--red);
  flex-shrink: 0;
}
.adv-card__icon svg { width: 46px; height: 46px; }
.adv-card__title {
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(19px, 1.9vw, 23px);
  line-height: 1.2;
  color: #111;
}
/* Раскрытие ровно на высоту текста — без рывка в конце, как было с max-height */
.adv-card__reveal {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s ease, opacity .3s ease;
  opacity: 0;
}
.adv-card__text {
  overflow: hidden;
  font-family: var(--font-inter);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-2);
}

.adv-card:hover .adv-card__inner,
.adv-card:focus-within .adv-card__inner {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: var(--shadow-red);
  z-index: 5;
}
.adv-card:hover .adv-card__reveal,
.adv-card:focus-within .adv-card__reveal {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 14px;
}

/* ============================================================
   BLOCK 4 — REVIEWS + CALCULATOR
   ============================================================ */
.rc { background: var(--page-bg-alt); padding: 84px 0 96px; }
.rc__grid {
  display: grid;
  grid-template-columns: 1fr 1.04fr;
  gap: 30px;
  align-items: stretch;
}
/* иначе длинный контент задает min-content и колонки не сжимаются на узких экранах */
.rc__grid > *, .news__grid > *, .footer__grid > * { min-width: 0; }
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
}

/* Reviews */
.reviews { padding: 34px 36px 30px; display: flex; flex-direction: column; }
/* display:flex перебил бы атрибут hidden, поэтому скрываем явно */
.reviews[hidden] { display: none; }
.reviews[hidden] + .calc { grid-column: 1 / -1; }
.reviews__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; gap: 16px; }
.reviews__title {
  font-family: var(--font);
  font-weight: 800;
  font-size: clamp(26px, 3vw, 40px);
  letter-spacing: -0.01em;
}
.reviews__all {
  font-family: var(--font);
  font-weight: 600;
  font-size: 17px;
  color: var(--red);
  white-space: nowrap;
  transition: color .2s;
  padding: 4px 2px;
}
.reviews__all:hover { color: var(--red-dark); }

/* Развернутый список: все отзывы показываются здесь же, без ухода со страницы */
.reviews.is-expanded .reviews__slider {
  display: flex;
  flex-direction: column;
  gap: 26px;
  max-height: 560px;
  overflow-y: auto;
  padding-right: 6px;
}
.reviews.is-expanded .review { display: grid; }
.reviews.is-expanded .review + .review {
  border-top: 1px solid var(--border);
  padding-top: 26px;
}
.reviews.is-expanded .reviews__controls { display: none; }

.reviews__slider { flex: 1; position: relative; }
.review {
  display: none;
  grid-template-columns: 150px 1fr;
  gap: 28px;
  animation: fadeIn .4s ease;
}
.review.is-active { display: grid; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px);} to {opacity:1; transform:none;} }
.review__photo {
  width: 150px; height: 190px;
  border-radius: 14px;
  overflow: hidden;          /* иначе вложенное изображение закрывает скругление */
  background: linear-gradient(145deg, #1a1d24, #3a3f4a);
  flex-shrink: 0;
}
.review__photo img,
.review__photo svg {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.review__body { position: relative; }
.review__quote-mark {
  font-family: var(--font);
  font-size: 56px;
  line-height: .8;
  color: var(--red);
  font-weight: 800;
  height: 28px;
}
/* Кавычка должна закрываться: парная стоит после текста и прижата вправо */
.review__quote-mark--close {
  text-align: right;
  height: auto;
  margin-top: -6px;
  margin-bottom: 10px;
}
.review__text {
  font-family: var(--font-inter);
  font-size: 18px;
  line-height: 1.5;
  color: #2A2D34;
  margin: 6px 0 4px;
}
.review__name {
  font-family: var(--font);
  font-weight: 700;
  font-size: 22px;
  color: #111;
}
.review__role {
  font-family: var(--font-inter);
  font-size: 16px;
  color: var(--text-3);
  margin-top: 4px;
}
.reviews__controls { display: flex; align-items: center; gap: 20px; margin-top: 26px; }
.reviews__arrow {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: #111;
  transition: all .2s;
}
.reviews__arrow:hover { background: var(--red); border-color: var(--red); color: #fff; }
.reviews__dots { display: flex; gap: 8px; }
.reviews__dots .dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #D3D6DB;
  cursor: pointer;
  transition: all .2s;
}
.reviews__dots .dot.is-active { background: var(--red); width: 22px; border-radius: 5px; }

/* Calculator */
.calc { padding: 32px 36px 34px; }
.calc__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--pink);
  color: var(--red);
  font-family: var(--font);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
}
.calc__title {
  font-family: var(--font);
  font-weight: 800;
  font-size: clamp(24px, 2.9vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.calc__desc {
  font-family: var(--font-inter);
  font-size: 17px;
  line-height: 1.45;
  color: var(--text-3);
  margin-bottom: 24px;
}
.calc__field { margin-bottom: 16px; }
.calc__label,
.calc__group-label {
  display: block;
  font-family: var(--font);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-3);
  margin-bottom: 8px;
}
.calc__group-label {
  color: var(--text-3);
  margin: 20px 0 6px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.calc__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
}
/* подпись ужимается, поле не растягивает строку длинным значением */
.calc__row > .calc__row-name { flex: 1 1 auto; min-width: 0; }
.calc__row > .select { flex: 0 1 auto; min-width: 0; max-width: 58%; }
.calc__row-name {
  font-family: var(--font-inter);
  font-size: 16px;
  color: #1F2430;
  text-wrap: balance;   /* длинные подписи переносятся ровнее */
}
.calc__row-name--muted { color: var(--text-3); font-size: 14px; }
.calc__row--split { align-items: stretch; }
.calc__row-part { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex: 1; }
.calc__row-part--qty { flex: 0 0 42%; }
.calc__row-part--qty.is-hidden { visibility: hidden; }

/* Select control */
/* Нативный список ОС не стилизуется (прямые углы, системное выделение),
   поэтому он скрыт и остается только носителем значения для формы и расчета. */
.select { position: relative; }
.select__native {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.select__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  font-family: var(--font-inter);
  font-size: 16px;
  text-align: left;
  color: #111;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color .2s, border-radius .18s;
}
.select__trigger:hover { border-color: #CBD0D8; }
.select__trigger:focus-visible { outline: none; border-color: var(--red); }
.select__caret {
  flex-shrink: 0;
  width: 9px; height: 9px;
  border-right: 2px solid #6B7280;
  border-bottom: 2px solid #6B7280;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .22s ease;
}

/* Раскрытый вид: поле и список — один блок со скруглением по внешнему контуру */
.select.is-open .select__trigger {
  border-color: var(--red);
  border-bottom-color: transparent;
  border-radius: 10px 10px 0 0;
}
.select.is-open .select__caret {
  transform: translateY(2px) rotate(-135deg);
  border-color: var(--red);
}
.select__menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 40;
  margin-top: -1.5px;          /* стыкуется с полем без двойной линии */
  background: #fff;
  border: 1.5px solid var(--red);
  border-top: none;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .12);
  overflow: hidden;             /* скругление обрезает углы крайних пунктов */
  max-height: 280px;
  overflow-y: auto;
  overscroll-behavior: contain; /* прокрутка списка не «пробрасывается» на страницу */
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.select.is-open .select__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.select__option {
  display: block;
  width: 100%;
  touch-action: manipulation;   /* без ожидания двойного тапа на мобильных */
  font-family: var(--font-inter);
  font-size: 16px;
  text-align: left;
  color: #1F2430;
  background: transparent;
  padding: 11px 14px;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.select__option:hover,
.select__option.is-focus { background: var(--pink); color: var(--red); }
.select__option.is-selected { color: var(--red); font-weight: 600; }

/* Компактный вариант в строках калькулятора */
.select--sm .select__trigger { padding: 8px 12px; font-size: 15px; }
.select--sm .select__option { padding: 9px 12px; font-size: 15px; }
.select--sm .select__caret { width: 7px; height: 7px; }

/* Ширину всего элемента задает самый длинный вариант списка: --sel-w
   считает main.js по фактическим пунктам. Благодаря этому поле и раскрытый
   список всегда одной ширины и выглядят единым блоком — раньше список был
   шире поля и «вываливался» из него влево. */
.select--sm { width: var(--sel-w, auto); min-width: 92px; max-width: 100%; }
.select--sm .select__menu { left: 0; right: 0; width: auto; }
/* Перебивает общее правило .calc__row > .select (там min-width: 0 и сжатие):
   поле уже рассчитано под самый длинный вариант, сжимать его нельзя —
   иначе значение обрезается многоточием. Сжимается подпись строки. */
.calc__row > .select--sm { flex: 0 0 auto; width: var(--sel-w, auto); min-width: 92px; max-width: 58%; }

/* значения вроде «от 5 до 10» не должны ломаться на две строки;
   если места все же не хватило — обрезаем многоточием, а не рвем верстку */
.select__label, .select__option { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.select__trigger { width: 100%; }
.calc__field .select__trigger { width: 100%; }
/* ширину задает триггер: у скрытого select она осталась бы шире экрана */
.select__native { min-width: 0 !important; }

/* Всплывающая подсказка для нерабочих ссылок */
.toast {
  position: fixed;
  left: 50%; bottom: 28px;
  z-index: 200;
  transform: translate(-50%, 12px);
  max-width: min(520px, calc(100vw - 32px));
  background: var(--surface-dark);
  color: #fff;
  font-family: var(--font-inter);
  font-size: 15px;
  line-height: 1.4;
  padding: 13px 20px;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .3);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* Строка «Количество» — подчиненная, отделяем отступом слева */
.calc__row--qty { padding-left: 18px; border-left: 2px solid var(--pink); }
/* Строка с пояснением переносит его на отдельную линию, иначе текст
   наезжает на поле выбора */
.calc__row:has(.calc__note) { flex-wrap: wrap; }
.calc__note {
  flex-basis: 100%;
  width: 100%;
  order: 3;
  font-family: var(--font-inter);
  font-size: 13px;
  color: var(--text-3);
  padding-top: 4px;
}
.calc__text-input {
  width: 100%;
  font-family: var(--font-inter);
  font-size: 15px;
  color: #111;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 10px 13px;
  transition: border-color .2s;
}
.calc__text-input:focus { outline: none; border-color: var(--red); }
.calc__text-input::placeholder { color: #A8AEB8; }

/* Требуется индивидуальный расчет */
.calc__consult {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--pink);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 20px 0 16px;
  font-family: var(--font-inter);
  font-size: 15px;
  line-height: 1.45;
  color: #8A1F21;
}
.calc__consult svg { flex-shrink: 0; color: var(--red); margin-top: 1px; }
#calcRun { margin-top: 22px; }

.calc__result { margin: 22px 0 18px; }
.calc__result-label {
  font-family: var(--font-inter);
  font-size: 16px;
  color: var(--text-3);
}
.calc__price {
  font-family: var(--font);
  font-weight: 800;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  color: var(--red);
  margin-top: 6px;
  letter-spacing: -0.01em;
}
.calc__disclaimer {
  text-align: center;
  font-family: var(--font-inter);
  font-size: 14px;
  color: var(--text-3);
  margin-top: 14px;
}

/* ============================================================
   BLOCK 5 — NEWS
   ============================================================ */
.news { background: #fff; padding: 84px 0 96px; }
.news__head {
  display: flex;
  align-items: center;
  gap: 20px 28px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.news__filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-left: auto; }
.chip {
  font-family: var(--font);
  font-weight: 500;
  font-size: 15px;
  color: var(--text-2);
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 8px 18px;
  transition: all .18s;
}
.chip:hover { border-color: var(--red); color: var(--red); }
.chip.is-active { background: var(--red); border-color: var(--red); color: #fff; }
.news__sort {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 500;
  font-size: 15px;
  color: var(--text-2);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 8px 16px;
  margin-left: 6px;
  transition: all .18s;
}
.news__sort:hover { border-color: var(--red); color: var(--red); }

.news__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.news__col { display: flex; flex-direction: column; gap: 22px; }

/* Video item */
.vid {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 20px;
  align-items: center;
  transition: transform .2s;
}
.vid:hover { transform: translateX(3px); }
.vid__thumb {
  position: relative;
  width: 190px; height: 116px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #10131a, #2a2f3a);
  display: flex;
  align-items: center;
  justify-content: center;
}
.vid__cover {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.vid__thumb::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(229,45,47,.18), transparent 60%);
}
/* Первый кадр берется из самого плеера. Клики он не перехватывает —
   карточка открывается как обычно; свою кнопку и красную подсветку
   в этом режиме не рисуем, у плеера есть собственные. */
.vid__frame {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: 0;
  pointer-events: none;
}
.vid__thumb--frame::after { display: none; }
.vid__play {
  position: relative;
  z-index: 2;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--red);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(229,45,47,.4);
}
.vid__play::before {
  content: "";
  border-left: 14px solid #fff;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  margin-left: 4px;
}
.vid__dur {
  position: absolute;
  right: 8px; bottom: 8px;
  z-index: 2;
  background: rgba(0,0,0,.75);
  color: #fff;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 5px;
}
.vid__tag, .txt__tag {
  display: inline-block;
  font-family: var(--font);
  font-weight: 500;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 6px;
  margin-bottom: 8px;
}
.vid__tag { background: var(--pink); color: var(--red); }
.vid__meta {
  font-family: var(--font);
  font-weight: 500;
  font-size: 14px;
  color: var(--text-3);
  margin-bottom: 6px;
}
.vid__title, .txt__title {
  font-family: var(--font);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.3;
  color: #1A1A1A;
  transition: color .2s;
}
.vid:hover .vid__title, .txt:hover .txt__title { color: var(--red); }

/* Text news item */
.txt {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 16px;
  align-items: start;
  /* Разделитель делит промежуток пополам: 11 сверху + 11 снизу дают те же
     22 пикселя воздуха, что и между видео. С padding 22 и таким же gap
     публикации отстояли друг от друга вдвое дальше, чем видео. */
  padding-bottom: 11px;
  border-bottom: 1px solid var(--border);
}
.news__col--text { gap: 11px; }
.txt:last-child { border-bottom: none; }
.txt__logo {
  width: 54px; height: 54px;
  border-radius: 10px;
  background: var(--surface-dark);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font);
  font-weight: 700;
  font-size: 12px;
  text-align: center;
  flex-shrink: 0;
}
.txt__meta { font-family: var(--font); font-weight: 500; font-size: 14px; color: var(--text-3); margin-bottom: 6px; }
.txt__tag { background: #F1F2F4; color: var(--text-2); align-self: start; white-space: nowrap; }
.txt.is-hidden, .vid.is-hidden { display: none; }

/* Без видео публикации занимают всю ширину блока */
.news__grid--single { grid-template-columns: 1fr; }
.news__grid--single .news__col--text { max-width: 820px; margin: 0 auto; width: 100%; }

/* «Показать ещё» */
.news__more { display: flex; flex-direction: column; align-items: center; margin-top: 34px; }
.btn--outline {
  background: transparent;
  border: 1.6px solid var(--border);
  color: var(--text);
}
.btn--outline:hover { border-color: var(--red); color: var(--red); background: var(--pink); }
.news__empty {
  font-family: var(--font-inter);
  font-size: 16px;
  color: var(--text-3);
  padding: 28px 0;
}

/* Публикация с цитатой и ссылкой на источник */
.txt__logo img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 6px;
  background: #fff;
  border-radius: 10px;
}
.txt--full { align-items: start; }
/* Заголовок и цитата — по две строки, и ровно по две у всех карточек:
   тогда публикации одинаковой высоты и две из них ложатся на три видео
   (2 x 184 + 22 = 390 против 3 x 116 + 2 x 22 = 392). Полный текст
   открывается в окне записи, в ленте он не нужен. */
.txt__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;            /* две строки при line-height 1.3 */
}
.txt__text {
  font-family: var(--font-inter);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-2);
  margin-top: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.1em;            /* две строки при line-height 1.55 */
}
.txt__link {
  display: inline-block;
  font-family: var(--font);
  font-weight: 600;
  font-size: 14px;
  color: var(--red);
  margin-top: 22px;
  transition: color .2s;
}
.txt:hover .txt__link { color: var(--red-dark); }

/* Логотип компании в отзыве вместо фотографии */
.review__photo--mark {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #1a1d24, #343a45);
}
.review__initials {
  font-family: var(--font);
  font-weight: 800;
  font-size: 40px;
  letter-spacing: .02em;
  color: #fff;
  opacity: .92;
}
/* Логотип вписываем целиком: обрезка по краям исказила бы фирменный знак */
.review__photo img { object-fit: contain; background: #fff; padding: 10px; }

/* Под горизонтальный логотип плашка подстраивается по высоте самого знака
   и прижимается к верху — иначе он тонет в пустом поле. Класс ставит main.js,
   когда картинка загрузилась и оказалась шире, чем выше. */
.review__photo--wide { height: auto; align-self: start; }
.review__photo--wide img { height: auto; }

/* Светлые версии логотипов (белый контур, светлая часть знака) на белом поле
   теряются — под них плашка остается темной, как значок с инициалами. */
.review__photo--dark img { background: transparent; }

/* Плашка логотипа ведет на сайт компании. Ссылка по умолчанию строчная —
   без display:block она не приняла бы заданные плашке размеры. */
a.review__photo { display: block; transition: transform .2s, box-shadow .2s; }
a.review__photo:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(16, 20, 28, .16); }

/* Отдельная ссылка под подписью: по самому логотипу не видно, что он кликабелен */
.review__site {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--font-inter);
  font-size: 15px;
  color: var(--red);
  transition: color .2s;
}
.review__site:hover { color: var(--red-dark); }

/* ============================================================
   ПРАВОВОЙ ДОКУМЕНТ
   ============================================================ */
.legal { background: #fff; padding: 46px 0 90px; }
.legal__inner { max-width: 860px; }
.legal__crumbs {
  font-family: var(--font-inter);
  font-size: 15px;
  color: var(--text-3);
  margin-bottom: 26px;
}
.legal__crumbs a { color: var(--red); }
.legal__crumbs a:hover { color: var(--red-dark); }
.legal__title {
  font-family: var(--font);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.legal__meta {
  font-family: var(--font-inter);
  font-size: 15px;
  color: var(--text-3);
  margin-bottom: 28px;
}
.legal__notice {
  background: var(--pink);
  border-left: 4px solid var(--red);
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
  margin-bottom: 32px;
  font-family: var(--font-inter);
  font-size: 15px;
  line-height: 1.55;
  color: #6B2224;
}
.legal__fill {
  background: #FFF3CD;
  border-bottom: 1px dashed #B8891B;
  padding: 0 4px;
  border-radius: 3px;
  color: #7A5B10;
  white-space: nowrap;
}
.legal__toc {
  background: var(--page-bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 26px;
  margin-bottom: 36px;
}
.legal__toc h2 {
  font-family: var(--font);
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 14px;
}
.legal__toc ol { padding-left: 20px; list-style: decimal; }
.legal__toc li { margin-bottom: 7px; }
.legal__toc a {
  font-family: var(--font-inter);
  font-size: 15.5px;
  color: var(--text-2);
}
.legal__toc a:hover { color: var(--red); }

.legal__section { margin-bottom: 32px; scroll-margin-top: 96px; }
.legal__section h2 {
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.25;
  margin-bottom: 14px;
}
/* Подзаголовок внутри раздела официальных документов */
.legal__section h3 {
  font-family: var(--font);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.3;
  margin: 22px 0 10px;
}
.legal__section h3:first-of-type { margin-top: 4px; }
/* Пояснение мелким шрифтом в конце раздела */
.legal__note-inline {
  font-size: 14.5px !important;
  color: var(--text-3) !important;
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: 18px;
}
.legal__section p {
  font-family: var(--font-inter);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-2);
  margin-bottom: 12px;
}
.legal__section b { color: #111; font-weight: 600; }
.legal__section ul {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}
.legal__section ul li {
  position: relative;
  font-family: var(--font-inter);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-2);
  padding-left: 22px;
  margin-bottom: 8px;
}
.legal__section ul li::before {
  content: "";
  position: absolute;
  left: 4px; top: 11px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
}
.legal__section a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.legal__section a:hover { color: var(--red-dark); }

.legal__facts { display: flex; flex-direction: column; gap: 10px; }
.legal__facts > div {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.legal__facts dt {
  font-family: var(--font);
  font-weight: 600;
  font-size: 15px;
  color: var(--text-3);
}
.legal__facts dd {
  font-family: var(--font-inter);
  font-size: 16px;
  color: #1F2430;
}

.legal__section--consent {
  background: var(--page-bg-alt);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 28px;
  margin-top: 44px;
}
.legal__back { margin-top: 40px; }

@media (max-width: 620px) {
  .legal { padding: 30px 0 64px; }
  .legal__facts > div { grid-template-columns: 1fr; gap: 4px; }
  .legal__section--consent { padding: 20px 18px; }
  .legal__toc { padding: 18px 18px 18px 20px; }
}

/* ============================================================
   МОДАЛЬНОЕ ОКНО ЗАЯВКИ НА РАСЧЕТ
   ============================================================ */
/* Прокручивается сама подложка, а не окно: если повесить overflow на
   скругленный блок, браузер рисует полосу прокрутки поверх скругления —
   верхний и нижний правые углы становятся квадратными. */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: flex-start;      /* с center длинное окно обрезалось бы сверху */
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
  overscroll-behavior: contain; /* прокрутка не «пробрасывается» на страницу */
}
.modal[hidden] { display: none; }
.modal__overlay {
  position: fixed;              /* затемнение всегда во весь экран, даже при прокрутке */
  inset: 0;
  background: rgba(5, 7, 11, .62);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity .25s ease;
}
.modal__box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  margin: auto;                 /* центрирует, пока окно помещается на экране */
  padding: 32px 34px 30px;
  opacity: 0;
  transform: translateY(14px) scale(.98);
  transition: opacity .25s ease, transform .25s ease;
}
.modal.is-open .modal__overlay { opacity: 1; }
.modal.is-open .modal__box { opacity: 1; transform: none; }
.modal__close {
  position: absolute;
  top: 16px; right: 16px;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--text-3);
  transition: background .18s, color .18s;
}
.modal__close:hover { background: var(--pink); color: var(--red); }
.modal__title {
  font-family: var(--font);
  font-weight: 800;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  padding-right: 34px;
}
.modal__lead {
  font-family: var(--font-inter);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-3);
  margin-bottom: 20px;
}
.modal__summary {
  background: var(--page-bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 22px;
}
.modal__summary-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.modal__summary-head span {
  font-family: var(--font);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-3);
}
.modal__summary-head strong {
  font-family: var(--font);
  font-weight: 800;
  font-size: 22px;
  color: var(--red);
  white-space: nowrap;
}
.modal__params { display: flex; flex-direction: column; gap: 8px; }
.modal__params div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  font-family: var(--font-inter);
  font-size: 14.5px;
}
.modal__params dt { color: var(--text-3); }
.modal__params dd { color: #1F2430; font-weight: 500; text-align: right; }

/* ---------- Детальная новость ---------- */
.modal--article .modal__box { max-width: 720px; }
.article__cover {
  margin: -32px -34px 22px;
  border-radius: 18px 18px 0 0;
  overflow: hidden;
  background: var(--page-bg-alt);
}
.article__cover img { width: 100%; max-height: 340px; object-fit: cover; display: block; }
/* Плеер занимает место обложки: соотношение 16:9 держим сами,
   иначе iframe схлопывается до высоты по умолчанию */
.article__player { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.article__player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.article__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-family: var(--font);
  font-weight: 500;
  font-size: 14px;
  color: var(--text-3);
  margin-bottom: 12px;
}
.article__tag {
  background: var(--pink);
  color: var(--red);
  font-size: 12px;
  padding: 4px 11px;
  border-radius: 6px;
}
.article__title {
  font-family: var(--font);
  font-weight: 800;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.16;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
  padding-right: 30px;
}
.article__text p {
  font-family: var(--font-inter);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text-2);
  margin-bottom: 14px;
}
.article__text p:last-child { margin-bottom: 0; }
.article__link { margin-top: 24px; }
/* У видео источник — справочная ссылка, а не главное действие */
.article__link--plain {
  display: inline-block;
  margin-top: 20px;
  font-family: var(--font-inter);
  font-size: 15px;
  color: var(--red);
  border-bottom: 1px solid rgba(229, 45, 47, .35);
  transition: color .18s, border-color .18s;
}
.article__link--plain:hover { color: var(--red-dark); border-color: var(--red-dark); }

@media (max-width: 620px) {
  /* отрицательные отступы обложки должны совпадать с полями окна,
     иначе по верхним углам остаются белые просветы */
  .modal { padding: 16px; }
  .modal__box { padding: 26px 22px 24px; }
  .article__cover { margin: -26px -22px 18px; }
  .article__cover img { max-height: 210px; }
}

/* ============================================================
   ФОРМА ОБРАТНОЙ СВЯЗИ
   ============================================================ */
.feedback { background: var(--page-bg-alt); padding: 84px 0 96px; }
.feedback__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.feedback__lead {
  font-family: var(--font-inter);
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-2);
  margin: 20px 0 26px;
  max-width: 460px;
}
.feedback__points { display: flex; flex-direction: column; gap: 14px; }
.feedback__points li {
  position: relative;
  font-family: var(--font-inter);
  font-size: 16px;
  color: var(--text-2);
  padding-left: 30px;
}
.feedback__points li::before {
  content: "";
  position: absolute;
  left: 0; top: 5px;
  width: 16px; height: 9px;
  border-left: 2.5px solid var(--red);
  border-bottom: 2.5px solid var(--red);
  transform: rotate(-45deg);
}
.feedback__form { padding: 32px 34px 30px; }

.field { margin-bottom: 18px; }
.field__label {
  display: block;
  font-family: var(--font);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-3);
  margin-bottom: 8px;
}
.field__req { color: var(--red); }
.field__input {
  width: 100%;
  font-family: var(--font-inter);
  font-size: 16px;
  color: #111;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 13px 15px;
  transition: border-color .2s;
}
.field__input::placeholder { color: #A8AEB8; }
.field__input:focus { outline: none; border-color: var(--red); }
.field__input--area { resize: vertical; min-height: 84px; line-height: 1.5; }
.field__input.is-invalid { border-color: var(--red); background: #FFF7F7; }
.field__error {
  display: none;
  font-family: var(--font-inter);
  font-size: 13.5px;
  color: var(--red);
  margin-top: 6px;
}
.field__error.is-visible { display: block; }

.check {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  cursor: pointer;
  margin: 4px 0 6px;
}
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check__box {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border: 1.5px solid var(--border);
  border-radius: 5px;
  margin-top: 1px;
  transition: all .18s;
  position: relative;
}
.check input:checked + .check__box { background: var(--red); border-color: var(--red); }
.check input:checked + .check__box::after {
  content: "";
  position: absolute;
  left: 6px; top: 2px;
  width: 5px; height: 10px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}
.check input:focus-visible + .check__box { border-color: var(--red); box-shadow: 0 0 0 3px rgba(229,45,47,.18); }
.check__text {
  font-family: var(--font-inter);
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--text-2);
}
.check__text a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.check__text a:hover { color: var(--red-dark); }
.feedback__form .btn { margin-top: 14px; }
.feedback__note {
  text-align: center;
  font-family: var(--font-inter);
  font-size: 13.5px;
  color: var(--text-3);
  margin-top: 12px;
}
.feedback__ok {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 16px;
  color: #1a7f37;
  background: #EAF6EC;
  border-radius: 10px;
  padding: 14px 18px;
  margin-top: 14px;
}
/* пустое сообщение не должно оставлять цветную полосу */
.feedback__ok:empty { display: none; }
/* Сервер отказал в отправке — сообщение должно читаться как ошибка */
.feedback__ok--error { color: var(--red-dark); background: #FDECEC; }

/* Ловушка для ботов: поле не видно человеку, но заполняется скриптами.
   Убираем из потока, а не через display:none — так его труднее распознать. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Кнопка отправки на время запроса */
.btn:disabled { opacity: .65; cursor: default; transform: none; box-shadow: none; }

/* ============================================================
   BLOCK 6 — CTA + FOOTER
   ============================================================ */
.cta { background: var(--footer-bg); padding: 46px 0; border-bottom: 1px solid var(--line-dark); }
.cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta__left { display: flex; align-items: center; gap: 22px; flex: 1; min-width: 320px; }
.cta__icon {
  width: 54px; height: 54px;
  color: var(--red);
  flex-shrink: 0;
}
.cta__icon svg { width: 54px; height: 54px; }
.cta__title {
  font-family: var(--font);
  font-weight: 800;
  font-size: clamp(22px, 2.6vw, 36px);
  line-height: 1.1;
  color: #fff;
  margin-bottom: 8px;
}
.cta__text {
  font-family: var(--font-inter);
  font-size: 18px;
  color: var(--text-light-2);
}
.cta__actions { display: flex; gap: 16px; flex-wrap: wrap; }

.footer { background: var(--footer-bg); color: var(--text-light); padding: 56px 0 48px; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1.1fr .9fr .8fr 1.3fr;
  gap: 40px;
}
.logo--footer { margin-bottom: 24px; }
.logo--footer .logo__img { height: 52px; }
.footer__copy { font-family: var(--font-inter); font-size: 15px; color: var(--text-light-2); line-height: 1.5; margin-bottom: 14px; }
.footer__policy {
  font-family: var(--font-inter);
  font-weight: 500;
  font-size: 15px;
  color: var(--text-light-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s;
}
.footer__policy:hover { color: var(--red); }

.footer__col-title {
  font-family: var(--font);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .03em;
  color: #fff;
  margin-bottom: 20px;
}
.footer__links { display: flex; flex-direction: column; gap: 14px; }
.footer__links a {
  font-family: var(--font-inter);
  font-weight: 500;
  font-size: 16px;
  color: var(--text-light-2);
  transition: color .2s;
}
.footer__links a:hover { color: var(--red); }

.footer__contacts { display: flex; flex-direction: column; gap: 18px; }
.footer__contacts li { display: flex; gap: 12px; align-items: flex-start; }
.footer__contacts svg { width: 20px; height: 20px; color: var(--red); flex-shrink: 0; margin-top: 2px; }
.footer__contacts a, .footer__contacts span {
  font-family: var(--font-inter);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.45;
  color: var(--text-light-2);
}
.footer__contacts a:hover { color: var(--red); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .nav__list { gap: 18px; }
  .nav__link { font-size: 15px; }
  .header__inner { gap: 16px; }
  .footer__grid { grid-template-columns: 1fr 1fr 1fr; row-gap: 40px; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .nav, .header__phone { display: none; }
  .nav.is-open {
    display: block;
    position: absolute;
    top: 74px; left: 0; right: 0;
    background: var(--hero-bg);
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 12px 24px 20px;
  }
  .nav.is-open .nav__list { flex-direction: column; align-items: flex-start; gap: 4px; }
  .nav.is-open .nav__link { font-size: 18px; padding: 12px 0; }
  .nav.is-open .nav__drop { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: transparent; padding: 0 0 8px 14px; }
  .nav.is-open .nav__drop a { color: var(--text-light-2); }
  .nav.is-open .nav__drop a:hover { background: transparent; }
  .nav.is-open .nav__item--phone { display: block; margin-top: 8px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.12); width: 100%; }
  .nav__link--phone { gap: 10px; font-weight: 600; }
  .nav__link--phone svg { color: var(--red); }
  .burger { display: flex; }

  .hero__bg { width: 100%; opacity: .5; }
  .hero__bg-fade { background: linear-gradient(0deg, var(--hero-bg) 8%, rgba(9,11,16,.55) 50%, rgba(9,11,16,.75)); }
  .hero__content { max-width: 100%; }
  .hero__badges { grid-template-columns: repeat(2, 1fr); max-width: 100%; }
  /* без hover подпись не раскрыть — оставляем только иконки */
  .dock { top: auto; bottom: 18px; transform: none; }
  .dock:hover .dock__btn, .dock:focus-within .dock__btn { width: 52px; }
  .dock:hover .dock__text, .dock:focus-within .dock__text { max-width: 0; opacity: 0; padding-right: 0; }
  .hero__foot { grid-template-columns: 1fr; }

  .rc__grid { grid-template-columns: 1fr; }
  .feedback__inner { grid-template-columns: 1fr; gap: 32px; }
  .news__grid { grid-template-columns: 1fr; gap: 34px; }
  .adv-grid--3, .adv-grid--2 { grid-template-columns: 1fr; }

  /* На тач-устройствах hover недоступен — показываем описание сразу */
  .adv-card { min-height: 0 !important; }
  .adv-card__inner { position: static; }
  .adv-card__reveal { grid-template-rows: 1fr; opacity: 1; margin-top: 12px; }
  .adv-card:hover .adv-card__inner { transform: none; box-shadow: 0 4px 14px rgba(0,0,0,.06); border-color: var(--border-2); }
}

@media (max-width: 620px) {
  .container { padding: 0 18px; }
  .hero { padding-top: 30px; }
  .hero__badges { grid-template-columns: 1fr; gap: 18px; }
  .badge__text { font-size: 14.5px; }
  .hero__cta { width: 100%; }
  .btn--lg { font-size: 19px; padding: 17px 28px; }
  .dock { bottom: 14px; }
  .dock__btn, .dock__icon { width: 46px; }
  .dock__btn { height: 46px; }
  .dock:hover .dock__btn, .dock:focus-within .dock__btn { width: 46px; }
  .dock__icon svg { width: 20px; height: 20px; }
  .timeline__track { grid-template-columns: repeat(3, 1fr); height: auto; gap: 30px 0; }
  .timeline__line { display: none; }
  .tl-node__date { position: static; }
  .tl-node { gap: 8px; }
  .tl-node__date--key { display: block; color: var(--red); }
  .tl-card { position: static; width: 100%; margin-top: 20px; }
  .tl-card::before { left: 50%; }
  .review { grid-template-columns: 1fr; }
  .review__photo { width: 120px; height: 150px; }
  .review__photo--wide { height: auto; }   /* высоту задает пропорция, см. выше */

  /* Калькулятор: поля в столбик, чтобы селекты не выдавливали ширину */
  .calc__row { flex-wrap: wrap; gap: 8px 12px; }
  .calc__row--split { flex-direction: column; align-items: stretch; }
  .calc__row-part { width: 100%; }
  .calc__row-part--qty { flex: 1 1 auto; }
  .calc__row-name { flex: 1 1 60%; }
  .select--sm select { min-width: 104px; }
  #leaseCount { min-width: 128px; }
  .vid { grid-template-columns: 1fr; }
  .vid__thumb { width: 100%; height: 180px; }
  .txt { grid-template-columns: 44px 1fr; }
  .txt__tag { grid-column: 2; margin-top: 4px; }
  .reviews, .calc { padding: 26px 22px; }
  .cta__actions { width: 100%; }
  .cta__actions .btn { flex: 1; }

  /* Футер: три колонки на телефоне слипаются — разворачиваем в одну */
  .footer__grid { grid-template-columns: 1fr; row-gap: 32px; }
  .footer__col-title { margin-bottom: 14px; }
}
