/* =============================================================
   Razgonin.ru — main.css
   ============================================================= */


/* ── Переменные ───────────────────────────────────────────────── */
:root {
  --header-h: 82px; /* полная высота header__inner, включая padding-block (10px×2) */

  /* ЦВЕТ: основная палитра */
  --dark:    #1e3c72;
  --blue:    #0066CC;
  --red:     #E8304A;
  --orange:  #F5821F;
  --violet:  #6C3EC8;
  --gray:    #F5F6F8;
  --border:  #D8DCE2;
  --muted:   #6B7280;
  --white:   #FFFFFF;
  --price:   #e85668;

  /* ЦВЕТ: градиенты кнопок */
  --grad-lead:       linear-gradient(0.5turn, rgba(255,106,40,1) 0%, rgba(254,47,87,1) 100%);
  --grad-commercial: linear-gradient(0.5turn, rgba(255,148,21,1) 0%, rgba(255,199,9,1) 100%);
  --grad-info:       linear-gradient(0.5turn, rgba(142,45,226,1) 0%, rgba(74,0,224,1) 100%);
  --grad-nav:        linear-gradient(0.5turn, rgba(0,114,255,1)  0%, rgba(0,198,255,1) 100%);

  /* Сетка */
  --max-w: 1200px;
  --px:    24px;

  /* Радиусы */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;

  /* Переходы */
  --tr: 0.2s ease;

  /* Шрифты */
  --font-base:     'Rubik', Arial, sans-serif;
  --font-headings: 'Rubik', Arial, sans-serif;

  /* Типографическая шкала */
  --fs-xs:    12px;                          /* подписи, бейджи, лейблы  */
  --fs-sm:    14px;                          /* теги, вторичный текст     */
  --fs-base:  16px;                          /* основной текст, меню      */
  --fs-md:    18px;                          /* заголовки карточек        */
  --fs-lg:    clamp(18px, 2.2vw, 22px);     /* лид под заголовком секции */
  --fs-xl:    clamp(26px, 3vw, 38px);       /* H2 секций                 */
  --fs-2xl:   clamp(34px, 4.2vw, 52px);    /* H1 hero                   */
  --fs-price: 24px;                          /* цена в карточке           */
  --fs-phone: clamp(28px, 3.2vw, 36px);    /* крупный номер телефона    */
}

/* ── Сброс ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font-family: var(--font-base);
  color: var(--dark);
  background: #1e3c72;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
}

/* ── Контейнер ────────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  padding-inline: var(--px);
  margin: 0 auto;
}

/* ── Кнопки ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  min-height: 48px;
  border: none;
  border-radius: var(--r-sm);
  font-family: inherit;
  font-size: var(--fs-base);
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity var(--tr), transform var(--tr), box-shadow var(--tr);
  text-decoration: none;
}
.btn:hover  { opacity: 0.88; transform: translateY(-1px); }
.btn:active { transform: translateY(0); opacity: 1; }

.btn-lead       { background: var(--grad-lead); }
.btn-commercial { background: var(--grad-commercial); color: #fff; }
.btn-info       { background: var(--blue); color: #fff; }
.btn-nav        { background: var(--grad-nav); }
.btn-white      { background: #fff; color: var(--dark); }

.btn--sm  { padding: 10px 18px; font-size: var(--fs-sm); }
.btn--lg  { padding: 18px 36px; font-size: var(--fs-md); font-weight: 700; }

/* ── Попап ────────────────────────────────────────────────────── */
.popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.popup-overlay.is-open { display: flex; }
.popup {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 40px;
  max-width: 480px;
  width: 100%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}
.popup__close {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gray);
  border: none;
  border-radius: 50%;
  color: var(--muted);
  transition: background var(--tr);
}
.popup__close:hover { background: var(--border); }
.popup__title {
  font-size: var(--fs-xl);
  font-weight: 700;
  margin-bottom: 8px;
  text-align: center;
}
.popup__sub {
  font-size: var(--fs-base);
  color: var(--muted);
  text-align: center;
}

/* ══════════════════════════════════════════
   HEADER
════════════════════════════════════════════ */
.header {
  position: relative;
  z-index: 200;
  background: linear-gradient(to bottom, #1e3c72 0%, #2a5298 100%);
  box-shadow: none;
  overflow: visible;
}

/* Одна строка */
.header__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--header-h);
  padding-block: 10px;
}

/* Навигация — центральный flex-элемент */
.header__inner > nav {
  flex: 1;
  display: flex;
  justify-content: center;
}
.header__menu {
  display: flex;
  align-items: center;
  gap: 0;
}
.header__menu-link {
  font-size: var(--fs-md);
  font-weight: 400;
  color: rgba(255,255,255,0.88);
  padding: 10px 20px;
  display: block;
  transition: color var(--tr), background var(--tr);
  white-space: nowrap;
}
.header__menu-link:hover {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

/* Иконки соцсетей в правом блоке шапки */
.header__menu-socials {
  display: flex;
  align-items: center;
  gap: 2px;
}
.header__menu-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 39px;
  height: 39px;
  border-radius: 50%;
  transition: background var(--tr);
  flex-shrink: 0;
}
.header__menu-social:hover { background: rgba(255,255,255,0.1); }
.header__menu-social img {
  width: 27px;
  height: 27px;
  object-fit: contain;
  display: block;
}
.header__menu-social--rounded img { border-radius: 6px; }
@media (min-width: 1025px) and (max-width: 1300px) {
  .header__menu-link { font-size: var(--fs-base); padding: 8px 12px; }
  .header__menu-socials { gap: 0; }
  .header__menu-social { width: 34px; height: 34px; }
  .header__menu-social img { width: 24px; height: 24px; }
  .header__phone { font-size: var(--fs-base); }
}

/* Логотип */
.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.header__logo-icon {
  height: 52px;
  width: auto;
  flex-shrink: 0;
}
.header__logo-text {
  height: 38px;
  width: auto;
  flex-shrink: 0;
}

/* Телефон в хедере (только десктоп) */
.header__phones {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
}
.header__phone {
  font-size: var(--fs-md);
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  transition: opacity var(--tr);
}
.header__phone--mobile {
  font-size: var(--fs-md);
  font-weight: 700;
  opacity: 0.75;
}
.header__phone:hover { opacity: 0.85; }
.header__phone--mobile:hover { opacity: 1; }


/* Правый блок */
.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.header__socials {
  display: flex;
  align-items: center;
  gap: 8px;
}
.header__social-link {
  display: flex;
  align-items: center;
  transition: opacity var(--tr);
}
.header__social-link:hover { opacity: 1; }
.header__social-link svg { opacity: 0.75; transition: opacity var(--tr); }
.header__social-link:hover svg { opacity: 1; }

/* Бургер */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: var(--r-sm);
  padding: 8px;
  flex-shrink: 0;
  margin-left: auto;
}
.burger span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--tr), opacity var(--tr), width var(--tr);
}
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; width: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Навигационный оверлей ────────────────────────────────── */

/* FOUC-guard: прячет оверлей пока CSS не применится (backwards fill = opacity:0 до старта) */
@keyframes nav-fouc-guard {
  from { opacity: 0; }
}

/* Контейнер: закрыт — translateX(calc(100% + 56px)), ярлык торчит — translateX(100%), открыт — translateX(0) */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  z-index: 900;
  transform: translateX(calc(-100% - 56px));
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  animation: nav-fouc-guard 0.001s 0.3s backwards;
}
.nav-overlay.is-open .nav-overlay__handle {
  display: none;
}
.nav-overlay.tab-visible {
  transform: translateX(-100%);
}

.nav-overlay.is-open {
  transform: translateX(0);
  pointer-events: auto;
}
.nav-overlay.no-transition,
.nav-overlay.no-transition .nav-overlay__sub { transition: none; }

/* Ярлык — выступает за правый край контейнера */
.nav-overlay__handle {
  position: absolute;
  right: -56px;
  left: auto;
  top: 10px;
  width: 56px;
  height: 56px;
  padding: 0 4px 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1e3c72;
  border-radius: 0 14px 14px 0;
  border: none;
  cursor: pointer;
  box-shadow: none;
  pointer-events: auto;
}
.nav-overlay__icon { height: 40px; width: auto; }

/* Панель меню */
.nav-overlay__panel {
  width: 100%;
  height: 100%;
  background: #1e3c72;
  display: flex;
  flex-direction: column;
  padding: 20px var(--px) 40px;
  overflow-y: auto;
}

/* Кнопка закрытия */
.nav-overlay__close {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  color: #fff;
  flex-shrink: 0;
  transition: background var(--tr);
}
.nav-overlay__close:hover { background: rgba(255,255,255,0.2); }

/* Ссылки навигации */
.nav-overlay__nav { flex: 1; }
.nav-overlay__list { list-style: none; padding: 0; margin: 0; }
.nav-overlay__list li { margin: 0; padding: 0; }
.nav-overlay__link {
  display: flex;
  align-items: center;
  padding: 12px 0;
  font-size: var(--fs-xl);
  font-weight: 700;
  line-height: 1.2;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  transition: color var(--tr);
}
.nav-overlay__link:hover,
.nav-overlay__link:focus { color: #fff; }

/* Шапка первой панели: лого + крестик */
.nav-overlay__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-shrink: 0;
}
.nav-overlay__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

/* Ссылки с шевроном → */
.nav-overlay__link--sub {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  margin: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255,255,255,0.9);
  font-family: inherit;
}
.nav-overlay__link--sub::after {
  content: '›';
  font-size: 1.4em;
  line-height: 0;
  opacity: 0.5;
  flex-shrink: 0;
}

/* CTA снизу */
.nav-overlay__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 28px;
}

/* Вторая панель — едет справа поверх первой */
.nav-overlay__sub {
  position: absolute;
  inset: 0;
  background: #1e3c72;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  /* visibility скрывается с задержкой 0.3s — после завершения слайда */
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0.3s;
  overflow: hidden;
  pointer-events: none;
  visibility: hidden;
}
.nav-overlay__sub.is-open {
  transform: translateX(0);
  pointer-events: auto;
  visibility: visible;
  /* при открытии visibility появляется мгновенно */
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s;
}
.nav-overlay__sub-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--px) 16px;
  flex-shrink: 0;
}
.nav-overlay__sub-title {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: #fff;
}
.nav-overlay__sub-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px var(--px) 40px;
}
.nav-overlay__sub-group {
  font-size: var(--fs-base);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffc709;
  margin: 20px 0 2px;
}
.nav-overlay__sub-group:first-child { margin-top: 4px; }
.nav-overlay__sub-link {
  display: block;
  padding: 10px 0;
  font-size: var(--fs-lg);
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  transition: color var(--tr);
}
.nav-overlay__sub-link:hover { color: #fff; }
.nav-overlay__foot {
  display: flex;
  flex-direction: column;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 28px;
}
.nav-overlay__foot .wc-contacts__phone-link {
  color: #fff;
  display: block;
  line-height: 1.2;
}
.nav-overlay__foot .wc-contacts__phone-link:hover {
  color: rgba(255,255,255,0.7);
}
.nav-overlay__foot .wc-contacts__phone-link--mobile {
  font-size: 28px;
  font-weight: 700;
  opacity: 0.75;
  margin-top: 6px;
  line-height: 1.2;
}
.nav-overlay__foot .wc-contacts__icons {
  margin-top: 20px;
}
.nav-overlay__foot .wc-contacts__icon {
  background: #fff;
  border-radius: 10px;
}
.nav-overlay__foot .wc-contacts__icon img {
  width: 40px;
  height: 40px;
}
.nav-overlay__foot .wc-contacts__icon--bot img {
  width: 48px;
  height: 48px;
}
.nav-overlay__contact-block {
  display: inline-flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 12px;
}
.nav-overlay__contact-block .btn {
  width: 320px;
  text-align: center;
  box-sizing: border-box;
}

@media (min-width: 1025px) {
  .nav-overlay { display: none; }
}

/* ══════════════════════════════════════════
   HERO ✅
════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: url('/assets/img/photos/hero_banner.webp?v=2') right center / cover no-repeat;
  background-color: #1e3c72;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(30,60,114,0.97)  0%,
    rgba(30,60,114,0.88)  30%,
    rgba(30,60,114,0.4)   55%,
    rgba(30,60,114,0)     70%
  );
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-block: 20px 60px;
}

.hero__content {
  max-width: 680px;
}

.hero__title {
  font-size: var(--fs-2xl);
  font-weight: 800;
  color: var(--white);
  line-height: 1.12;
  margin-bottom: 24px;
}

.hero__sub {
  font-size: var(--fs-lg);
  font-weight: 400;
  color: rgba(255,255,255,0.88);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 560px;
}

.hero__cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero__trust {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}
.hero__trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-base);
  font-weight: 500;
  color: rgba(255,255,255,0.9);
}
.hero__trust-icon { flex-shrink: 0; }

/* ══════════════════════════════════════════
   СЕКЦИИ (общие)
════════════════════════════════════════════ */
.section {
  padding-block: 80px;
}
.section--gray  { background: var(--gray); }
.section--beige { background: #F4F1EA; }
.section--dark {
  background-image: linear-gradient(to top, #1e3c72 0%, #1e3c72 1%, #2a5298 100%);
  color: var(--white);
}

.section__title {
  font-size: var(--fs-xl);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}
.section__sub {
  font-size: var(--fs-lg);
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 48px;
  max-width: 600px;
}

/* ══════════════════════════════════════════
   CATALOG ✅
════════════════════════════════════════════ */
/* ── Блок загрязнений ───────────────────────────────────── */
.dangers__sub {
  font-size: var(--fs-base);
  color: var(--muted);
  margin: 8px 0 0;
  line-height: 1.55;
}

.dangers__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 28px;
}

.dangers__card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.dangers__icon-wrap {
  width: 100%;
  height: 180px;
  overflow: hidden;
  flex-shrink: 0;
}

.dangers__icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dangers__card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dangers__name {
  font-size: var(--fs-price);
  font-weight: 700;
  color: var(--dark);
}

.dangers__desc {
  font-size: var(--fs-base);
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.catalog.section { padding-bottom: 20px; }

.catalog-head {
  max-width: 720px;
  margin-bottom: 28px;
}
.catalog-head .section__sub {
  margin-bottom: 0;
}

/* Сетка карточек */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

/* Карточка */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--tr), transform var(--tr);
}
.card:hover {
  box-shadow: 0 8px 32px rgba(30,58,95,0.12);
  transform: translateY(-3px);
}

/* Обёртка фото */
.card__img-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--gray);
}
.card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.card:hover .card__img { transform: scale(1.04); }

/* Бейдж */
.card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--grad-lead);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--r-sm);
}

/* Тело карточки */
.card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px;
  gap: 14px;
}

.card__title {
  font-size: var(--fs-price);
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
}

/* Теги конфигурации */
.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(0, 102, 204, 0.08);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--blue);
  white-space: nowrap;
}

/* Проблемы */
.card__problems {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-left: 0;
}
.card__problems li {
  font-size: var(--fs-base);
  color: #374151;
  padding-left: 24px;
  position: relative;
}
/* Зелёный кружок с галочкой — как в hero trust */
.card__problems li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 14px;
  height: 14px;
  background: #22c55e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 7l3 3 5-6' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E") center/12px no-repeat;
  border-radius: 50%;
}

/* Футер карточки */
.card__service {
  font-size: var(--fs-base);
  color: var(--muted);
  margin: 8px 0 0;
  padding: 12px 20px 16px;
  background: var(--gray);
  border-radius: var(--r-md);
}

.card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.card__price {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.card__price-label {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1;
}
.card__price-value {
  font-size: var(--fs-price);
  font-weight: 800;
  color: var(--price);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  line-height: 1.1;
}

.catalog-cta-section {
  background: linear-gradient(to bottom, #1e3c72 0%, #2a5298 100%);
}

.catalog-cta-section__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 28px;
}

.catalog-cta-section__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.catalog-cta-section__title {
  font-size: var(--fs-xl);
  font-weight: 800;
  color: #fff;
  margin: 0;
  flex-shrink: 0;
}

.catalog-cta-section__sub {
  font-size: var(--fs-base);
  color: rgba(255,255,255,0.75);
  margin: 0;
}

@media (max-width: 600px) {
  .catalog-cta-section__inner { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* ── Полноэкранный блок "Есть анализ воды?" ─────────────────── */
.analysis-cta {
  background: var(--dark);
  padding-block: 0;
}
.analysis-cta .container {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.analysis-cta__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.analysis-cta__block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 28px 0;
}

.analysis-cta__block + .analysis-cta__block {
  border-left: 1px solid rgba(255,255,255,0.25);
  padding-left: 32px;
}

/* ── Карусель работ ─────────────────────────────────────────── */
.works-carousel {
  margin: 12px 0 0;
}

.works-carousel__wrap {
  position: relative;
}

.works-carousel__clip {
  overflow: hidden;
  border-radius: 14px;
  width: 100%;
}

.works-carousel__track {
  display: flex;
  transition: transform 0.42s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.works-carousel__slide {
  flex: 0 0 100%;
  width: 100%;
  position: relative;
  aspect-ratio: 4 / 3;
  height: auto;
}

.works-carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.works-carousel__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 20px 18px;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.works-carousel__type {
  color: #fff;
  font-weight: 600;
  font-size: var(--fs-base);
}

.works-carousel__loc {
  color: rgba(255,255,255,0.65);
  font-size: var(--fs-sm);
}

.works-carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
  border: none;
  border-radius: 8px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background 0.2s;
  z-index: 2;
}

.works-carousel__btn--prev { left: 12px; }
.works-carousel__btn--next { right: 12px; }

.works-carousel__btn:hover {
  background: rgba(255,255,255,0.3);
}

.works-carousel__dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 12px;
}

.works-carousel__dot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.25);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, width 0.2s;
}

.works-carousel__dot--active {
  background: rgba(255,255,255,0.9);
  width: 20px;
}

.analysis-cta__title {
  font-size: var(--fs-xl);
  font-weight: 800;
  color: #fff;
  margin: 0;
  line-height: 1.15;
}
.analysis-cta__sub {
  font-size: var(--fs-base);
  color: rgba(255,255,255,0.8);
  margin: 0;
  max-width: 480px;
}
.analysis-cta .btn {
  margin-top: 6px;
  min-width: 200px;
}

.dirty-cta {
  background-image: linear-gradient(to top, #1e3c72 0%, #1e3c72 1%, #2a5298 100%);
  padding-block: 32px;
}
.dirty-cta .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
/* ── Надзаголовок + заголовок — единый компонент ────────────── */
.section-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* надзаголовок — на тёмном фоне */
.cta-eyebrow,
.section-eyebrow {
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  margin: 0;
}

/* надзаголовок — на светлом/бежевом фоне */
.section-eyebrow--light {
  color: var(--muted);
}

.dirty-cta__title {
  font-size: var(--fs-xl);
  font-weight: 800;
  color: #fff;
  margin: 0;
  line-height: 1.2;
  max-width: 560px;
}
.dirty-cta__sub {
  font-size: var(--fs-base);
  color: rgba(255,255,255,0.7);
  margin: 0;
  max-width: 480px;
}
.dirty-cta .btn { margin-top: 6px; min-width: 180px; }

/* ── СанПиН CTA ─────────────────────────────────────────────── */
.sanpin-cta {
  background: #F4F1EA;
  padding-block: 32px;
}
.sanpin-cta .cta-eyebrow {
  color: var(--muted);
}

.sanpin-cta .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.sanpin-cta__title {
  font-size: var(--fs-xl);
  font-weight: 800;
  color: var(--dark);
  margin: 0;
  line-height: 1.2;
  max-width: 560px;
}
.sanpin-cta__sub {
  font-size: var(--fs-base);
  color: var(--muted);
  margin: 0;
  max-width: 480px;
}
.sanpin-cta .btn { margin-top: 6px; min-width: 180px; }

/* ── Чат-бот: анализ воды ────────────────────────────────────── */
.water-chat { padding-top: 52px; }
.water-chat__title { margin-bottom: 32px; }
.water-chat__wrap  { display: flex; flex-direction: column; }
.water-chat__messengers { display: none; }

/* ── Якорные метки ──────────────────────────────────────────── */
.anchor-target {
  display: block;
  height: 0;
  visibility: hidden;
  scroll-margin-top: 24px;
}

/* ── Callback CTA ───────────────────────────────────────────── */
.callback-cta {
  background: linear-gradient(to top, #1e3c72, #2a5298);
  padding-block: 36px 24px;
  margin-top: 40px;
}
.callback-cta__inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.callback-cta__text { flex: none; }
.callback-cta__text .section-eyebrow { color: rgba(255,255,255,0.65); margin-bottom: 6px; }
.callback-cta__title {
  font-size: var(--fs-xl);
  font-weight: 800;
  color: #fff;
  margin: 0 0 8px;
  line-height: 1.15;
}
.callback-cta__sub {
  font-size: var(--fs-base);
  color: rgba(255,255,255,0.75);
  margin: 0;
}
.callback-cta__form { flex: none; }
.callback-cta__field {
  display: flex;
  gap: 12px;
  flex-wrap: nowrap;
  align-items: center;
}
.callback-cta__inputs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.callback-cta__inputs input {
  width: 188px;
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 10px;
  color: #fff;
  font-family: inherit;
  font-size: var(--fs-base);
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.2s;
}
.callback-cta__inputs input::placeholder { color: rgba(255,255,255,0.45); }
.callback-cta__inputs input:focus { border-color: rgba(255,255,255,0.7); }
.callback-cta__btn { align-self: center; height: 48px; }
.callback-cta__error {
  margin-top: 6px;
  font-size: var(--fs-xs);
  color: #ff8080;
}
.callback-cta__success {
  margin-top: 6px;
  font-size: var(--fs-sm);
  color: #a3e8b0;
}

.wc-contacts {
  margin: 12px 0 0;
  padding-top: 12px;
}
.wc-contacts__icons {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}
.wc-contacts__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  flex-shrink: 0;
  aspect-ratio: 1;
  border-radius: 8px;
  background: none;
  border: none;
  overflow: hidden;
  transition: transform 0.15s;
  text-decoration: none;
}
.wc-contacts__icon:hover {
  transform: translateY(-2px);
}
.wc-contacts__icon img {
  width: 42px; height: 42px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}
.wc-contacts__icon--rounded img {
  border-radius: 6px;
}
.wc-contacts__phone-link {
  font-size: var(--fs-phone);
  font-weight: 700;
  color: var(--dark);
  text-decoration: none;
  white-space: nowrap;
  margin-right: 6px;
}
.wc-contacts__phone-link:hover { color: var(--blue); }
.wc-contacts__legal {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.wc-contacts__legal p {
  font-size: var(--fs-md);
  color: var(--muted);
  line-height: 1.5;
}
.wc-contacts__legal a { color: var(--muted); text-decoration: underline; }
.wc-contacts__legal a:hover { color: var(--blue); }
.wc-contacts__privacy {
  font-size: var(--fs-base);
  color: var(--muted);
  text-decoration: underline;
  margin-top: 16px;
  display: inline-block;
}
.wc-contacts__privacy:hover { color: var(--blue); }

.rz-chatbox {
  width: 100%;
  max-width: 480px;
  height: 520px;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(13, 34, 64, 0.2);
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px -10px rgba(0,0,0,0.18), 0 8px 20px -5px rgba(0,0,0,0.1);
}

.rz-chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: linear-gradient(to bottom, #1e3c72 0%, #2a5298 100%);
  flex-shrink: 0;
}
.rz-logo {
  height: 41px;
  width: auto;
  flex-shrink: 0;
}
.rz-name   { font-weight: 700; font-size: var(--fs-md); color: #fff; line-height: 1.1; }
.rz-status { font-size: var(--fs-xs); color: rgba(255,255,255,0.75); margin-top: 0; line-height: 1.1; }

.rz-chat-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
}

.rz-chat-welcome {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  text-align: center;
  padding: 12px 8px 0;
}
.rz-chat-welcome p {
  font-size: var(--fs-base);
  color: var(--muted);
  width: 100%;
}
.rz-chat-quick {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: fit-content;
  margin: 0 auto;
}
.rz-chat-quick button {
  background: var(--blue);
  border: none;
  color: #fff;
  font-family: inherit;
  font-size: var(--fs-sm);
  font-weight: 400;
  padding: 10px 24px;
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s;
  white-space: nowrap;
}
.rz-chat-quick button:hover { background: #0055b3; }

/* пузыри */
.rz-msg-row { display: flex; }
.rz-msg-row > div { display: inline-block; text-align: left; max-width: 84%; }
.rz-bubble {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: var(--fs-sm);
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}
.rz-msg-row.rz-client { }
.rz-msg-row.rz-client > div { margin-right: auto; }
.rz-msg-row.rz-bot    > div { margin-left: auto; }
.rz-msg-row.rz-client .rz-bubble { background: rgba(0,102,204,0.08); color: var(--dark); border-bottom-left-radius: 4px; }
.rz-msg-row.rz-bot    .rz-bubble { background: var(--blue); color: #fff; border-bottom-right-radius: 4px; }

/* курсор стриминга */
.rz-bubble.rz-typing-cursor::after {
  content: '|'; opacity: 1;
  animation: rz-blink 0.7s step-end infinite;
  margin-left: 1px;
}
@keyframes rz-blink { 50% { opacity: 0; } }

/* индикатор печатает */
.rz-typing-bubble {
  background: var(--blue);
  border-radius: 14px;
  border-bottom-right-radius: 4px;
  padding: 10px 14px;
  display: inline-flex;
  gap: 4px;
  margin-left: auto;
}
.rz-typing-bubble span {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  animation: rz-dots 1.1s infinite ease-in-out;
}
.rz-typing-bubble span:nth-child(2) { animation-delay: 0.15s; }
.rz-typing-bubble span:nth-child(3) { animation-delay: 0.30s; }
@keyframes rz-dots {
  0%, 80%, 100% { opacity: 0.25; transform: translateY(0); }
  40%           { opacity: 1;    transform: translateY(-2px); }
}

.rz-chat-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid rgba(0,0,0,0.08);
  flex-shrink: 0;
}
.rz-attach {
  background: none;
  border: none;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  flex-shrink: 0;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s;
}
.rz-attach:hover { color: var(--blue); }
.rz-file-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 20px;
  border-top: 1px solid rgba(0,0,0,0.06);
  background: #f0f4ff;
  box-sizing: border-box;
}
.rz-file-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #c5d0f5;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 13px;
  color: #2e3752;
  max-width: 260px;
}
.rz-file-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rz-file-chip button {
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
  font-size: 20px;
  line-height: 1;
  padding: 2px 6px;
  flex-shrink: 0;
  border-radius: 3px;
}
.rz-file-chip button:hover { background: #eee; color: #333; }
.rz-chat-input input {
  flex: 1;
  background: rgba(0,0,0,0.05);
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  font-family: inherit;
  font-size: var(--fs-sm);
  color: var(--dark);
  outline: none;
}
.rz-chat-input input::placeholder { color: var(--muted); }
.rz-chat-input button[type="submit"] {
  background: var(--blue);
  border: none;
  width: 36px; height: 36px;
  min-width: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.rz-chat-footer {
  padding: 0 14px 7px;
  font-size: var(--fs-xs);
  color: rgba(107,122,141,0.5);
  text-align: center;
  flex-shrink: 0;
}
.rz-chat-footer a { color: rgba(107,122,141,0.5); text-decoration: underline; }
.rz-chat-footer a:hover { color: var(--blue); }


/* ──────────────────────────────────────────
   FEATURES — Устанавливаем системы, которые
─────────────────────────────────────────── */
.features__title {
  margin-bottom: 40px;
}
.features__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.features__item {
  padding: 20px 24px;
  border-left: 3px solid var(--blue);
}
.features__item-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
  margin-bottom: 6px;
}
.features__item-desc {
  font-size: var(--fs-base);
  color: var(--muted);
  line-height: 1.55;
}

@media (max-width: 575px) {
  .features__grid { grid-template-columns: 1fr; }
  .features__title { margin-bottom: 28px; }
}

/* ──────────────────────────────────────────
   ABOUT — О компании
────────────────────────────────────────── */
.about__inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.about__content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about__sub {
  font-size: var(--fs-md);
  color: rgba(255,255,255,0.85);
  margin: 0;
  line-height: 1.5;
}


/* Факты — карточки */
.about__facts-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.about__fact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.07);
  border-radius: 12px;
  border-bottom: none;
}

.about__fact-num {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.about__fact-label {
  font-size: var(--fs-base);
  color: rgba(255,255,255,0.6);
  line-height: 1.4;
}

.about__fact-map-btn {
  display: inline-block;
  margin-top: auto;
  padding-top: 10px;
  align-self: flex-start;
  font-size: var(--fs-sm);
  font-weight: 700;
  background: var(--grad-commercial);
  color: #fff;
  padding: 7px 14px;
  border-radius: var(--r-sm);
  text-decoration: none;
  white-space: nowrap;
}

/* Команда — горизонтальные карточки */
.about__team {
  margin-top: 16px;
}

.about__divider--team {
  margin-top: 24px;
}

.about__team-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about__team-member {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 12px 16px;
}

.about__team-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.about__team-photo {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
  object-position: top center;
  flex-shrink: 0;
}

.about__team-photo--bot {
  background: #ffc709;
  object-fit: contain;
  padding: 6px;
}

.about__team-name {
  font-size: var(--fs-md);
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  line-height: 1.3;
}

.about__team-role {
  font-size: var(--fs-base);
  color: rgba(255,255,255,0.45);
}

.about__divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.12);
  margin: 16px 0 0;
}

.about__facts-label {
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  margin: 16px 0 8px;
}



/* ──────────────────────────────────────────
   FOOTER — Подвал
────────────────────────────────────────── */
.footer {
  background: linear-gradient(to top, #1e3c72 0%, #1e3c72 1%, #2a5298 100%);
  color: var(--white);
  padding-block: 12px 24px;
}

.footer__madeby {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 16px 0 4px;
  margin-top: 8px;
}
.footer__madeby span {
  font-size: var(--fs-sm);
  color: #fff;
}
.footer__blackbot-logo {
  height: 22px;
  width: auto;
}

@media (max-width: 1024px) {
  .header__inner > nav { display: none; }
  .header__actions .btn--sm { display: none; }
  .header__phones { display: none; }
  .header__menu-socials { display: none; }
  .burger { display: flex; }

  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .dangers__grid { grid-template-columns: repeat(3, 1fr); }
  .about__facts-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
  .about__team-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
  .about__team-member:last-child:nth-child(odd) { grid-column: 1 / -1; max-width: 50%; margin: 0 auto; }

  .water-chat__wrap { display: flex; flex-direction: column; gap: 20px; }
  .water-chat__left { display: block; }
  .water-chat__left .section-header { margin-bottom: 0; }
  .water-chat__title br { display: none; }
  .water-chat__messengers { display: none; }
  .rz-chatbox { width: 100%; max-width: 560px; }

  .callback-cta__inner { flex-direction: row; align-items: center; gap: 40px; }
  .callback-cta__text { flex: 1; }
  .callback-cta__form { flex: 1; }

  .hero__bg { background-image: url('/assets/img/photos/hero_banner_cut.webp?v=1'); background-size: auto 100%; background-position: right center; -webkit-mask-image: linear-gradient(to right, transparent 45%, black 65%); mask-image: linear-gradient(to right, transparent 45%, black 65%); }
  .hero { min-height: unset; max-height: 100vh; }
  .hero__overlay { background: linear-gradient(to right, rgba(30,60,114,0.97) 0%, rgba(30,60,114,0.97) 50%, rgba(30,60,114,0) 70%); }
}

/* десктопное фото hero — скрыто на мобиле */
.hero__photo-wrap { display: none; }

/* мобильная картинка hero — только на мобиле */
.hero__mobile-img-wrap {
  display: none;
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: 28px;
}

.hero__mobile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .hero { max-height: unset; }
  .dangers__grid { grid-template-columns: 1fr; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .analysis-cta__grid { grid-template-columns: 1fr; }
  .analysis-cta__block + .analysis-cta__block { border-left: none; border-top: 1px solid rgba(255,255,255,0.25); padding-left: 0; }
  .tag { white-space: normal; width: fit-content; padding: 8px; text-align: center; }
  .about__facts-grid { grid-template-columns: repeat(2, 1fr); }
  .callback-cta__inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .callback-cta__form { width: 100%; }

  .hero__mobile-img-wrap { display: block; }
  .hero__overlay { background: linear-gradient(to top, rgba(10,10,10,0.82) 0%, rgba(10,10,10,0.4) 55%, transparent 100%); }

  .header__socials { display: none; }
  .header__logo-icon { height: 36px; }
  .header__logo-text { height: 30px; }
  .header__inner { gap: 10px; }

  .hero__bg { filter: blur(14px); transform: scale(1.12); background-position: center center; }

  .hero__inner { padding-block: 20px 40px; }
  .hero__trust { gap: 14px; }
  .hero__trust-item { font-weight: 400; }

  .section { padding-block: 56px; }


}

@media (max-width: 668px) {
  .catalog-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero { min-height: 520px; }
  .hero__inner { padding-block: 20px 40px; }
  .btn--lg { padding: 16px 28px; font-size: var(--fs-md); }

  .section { padding-block: 40px; }

  .catalog-grid { grid-template-columns: 1fr; }
  .about__facts-grid { grid-template-columns: 1fr; }
  .about__team-grid { grid-template-columns: 1fr; }
  .about__team-member:last-child:nth-child(odd) { grid-column: auto; max-width: none; margin: 0; }

  .analysis-cta__block + .analysis-cta__block { padding-top: 28px; }
  .analysis-cta__block { padding-bottom: 28px; }
}

@media (min-width: 1025px) {
  .header__logo-icon { height: 42px; }
  .header__logo-text { height: 30px; }

  :root {
    --fs-base: 18px;
    --fs-sm:   15px;
    --fs-md:   20px;
    --fs-lg:   clamp(22px, 2.2vw, 26px);
    --fs-xl:   clamp(30px, 3vw, 44px);
  }

  .section { padding-top: 56px; }

  .hero__bg {
    filter: blur(18px);
    transform: scale(1.15);
  }
  .hero__overlay {
    background: rgba(20, 45, 95, 0.68);
  }
  .hero { align-items: flex-start; min-height: unset; }
  .hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    padding-block: 32px 60px;
  }
  .hero__content {
    max-width: none;
  }
  .hero__photo-wrap {
    display: block;
    border-radius: var(--r-md);
    overflow: hidden;
    aspect-ratio: 4 / 3;
  }
  .hero__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
}

/* ── Юридические страницы ────────────────────────────────── */
.legal-page {
  background: #F4F1EA;
  padding-block: 56px 80px;
}

.legal-page__inner {
  max-width: 760px;
}

.legal-page__title {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 40px;
  line-height: 1.25;
}

.legal-page h2 {
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--dark);
  margin: 36px 0 12px;
}

.legal-page p,
.legal-page li {
  font-size: var(--fs-base);
  line-height: 1.7;
  color: #333;
  margin-bottom: 10px;
}

.legal-page ul {
  padding-left: 20px;
  margin-bottom: 10px;
}

.legal-page li {
  margin-bottom: 6px;
}

.legal-page a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Catalog drawer (mobile hidden) ────────── */
.catalog-drawer { display: none; }

/* ── Analysis CTA desktop ─────────────────── */
@media (min-width: 1025px) {
  /* Фиксированный хедер */
  .header { position: fixed; top: 0; left: 0; right: 0; }
  body { padding-top: var(--header-h); }

  /* Компенсация якорей под фиксированным хедером */
  [id] { scroll-margin-top: var(--header-h); }

  /* Каталог — боковая панель */
  .catalog-drawer {
    display: block;
    position: fixed;
    inset: 0;
    top: var(--header-h);
    z-index: 150;
    pointer-events: none;
  }
  .catalog-drawer.is-open { pointer-events: auto; }
  .catalog-drawer__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
    opacity: 0;
    transition: opacity 0.25s;
  }
  .catalog-drawer.is-open .catalog-drawer__overlay { opacity: 1; }
  .catalog-drawer__panel {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 300px;
    background: var(--dark);
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow: hidden;
  }
  .catalog-drawer.is-open .catalog-drawer__panel { transform: translateX(0); }
  .catalog-drawer.no-transition .catalog-drawer__panel { transition: none; }
  .catalog-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    flex-shrink: 0;
  }
  .catalog-drawer__title {
    font-size: var(--fs-lg);
    font-weight: 700;
    color: #fff;
  }
  .catalog-drawer__close {
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255,255,255,0.55);
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color var(--tr);
  }
  .catalog-drawer__close:hover { color: #fff; }
  .catalog-drawer__body {
    flex: 1;
    overflow-y: auto;
    padding: 8px 24px 40px;
  }
  .catalog-drawer__group {
    font-size: var(--fs-base);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #ffc709;
    margin: 20px 0 2px;
  }
  .catalog-drawer__group:first-child { margin-top: 4px; }
  .catalog-drawer__link {
    display: block;
    padding: 10px 0;
    font-size: var(--fs-md);
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: color var(--tr);
  }
  .catalog-drawer__link:hover { color: #fff; }

  /* Переключение панелей */
  .catalog-drawer__body { display: none; }
  .catalog-drawer[data-panel="catalog"] .catalog-drawer__body[data-panel="catalog"],
  .catalog-drawer[data-panel="faq"]     .catalog-drawer__body[data-panel="faq"] { display: block; }

  .analysis-cta__title { font-size: clamp(26px, 2.5vw, 36px); }
  .analysis-cta__sub { flex: 1; }
  .analysis-cta__block + .analysis-cta__block { border-left: none; }

  .dangers__grid { grid-template-columns: repeat(auto-fill, minmax(480px, 1fr)); }

  .water-chat__wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    justify-content: unset;
  }
  .water-chat__left {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }
  .water-chat__title { margin-bottom: 0; }
  .callback-cta__inputs { flex-direction: row; }
  .callback-cta__inputs input { width: 260px; }
  .callback-cta__btn { height: 48px; align-self: stretch; }
  .water-chat__messengers {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
  }
  .rz-chatbox { max-width: none; }

  .catalog-head { max-width: none; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .wc-contacts__legal p { white-space: nowrap; }
  .card__price-value,
  .card__title { font-size: 28px; }
  .card__badge { font-size: 24px; padding: 8px 20px; }

  .about__facts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  .about__facts-grid .about__fact {
    display: flex;
    flex-direction: column;
  }

  .about__team-grid {
    flex-direction: row;
    gap: 12px;
  }
  .about__team-member {
    flex: 1;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px 12px;
    gap: 10px;
  }
  .about__team-photo {
    width: 100px;
    height: 100px;
  }
  .about__team-name { font-size: 20px; }
  .about__team-role { font-size: var(--fs-base); }

  .works-carousel__slide { height: 520px; background: #1a3060; }
  .works-carousel__slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
  .works-carousel__caption { align-items: center; text-align: center; }
  .works-carousel__type { font-size: 20px; font-weight: 700; }
  .works-carousel__loc { font-size: var(--fs-base); color: rgba(255,255,255,0.75); }
  .about__fact-num { font-size: 20px; }
  .about__fact-label { font-size: var(--fs-base); }
}

/* ── Таблетки хиро (все страницы каталога) ─────────────────── */
.soft-hero__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 20px 0 0;
}

.soft-hero__tags--pains {
  margin-top: 8px;
}

.soft-hero__tag {
  display: inline-block;
  padding: 5px 14px;
  border: 1.5px solid rgba(255,255,255,.45);
  border-radius: 20px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: #fff;
  letter-spacing: .02em;
  line-height: 1.4;
}

.soft-hero__tag--type {
  font-weight: 700;
}

.soft-hero__note {
  margin: 12px 0 0;
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
}
