﻿/* ══════════════════════════════════════════════════════════════
   responsive.css — FormaBeton  (v4 — UNIFIED ARCHITECTURE)
   ══════════════════════════════════════════════════════════════

   One system. No fragments. No legacy overrides.

   Breakpoints:
     ≤ 1600  large desktop
     ≤ 1440  standard desktop
     ≤ 1280  laptop
     ≤ 1024  tablet landscape
     ≤  900  tablet portrait
     ≤  768  mobile boundary  ← main responsive split
     ≤  480  small mobile
     ≤  430  iPhone 14 Pro
     ≤  390  iPhone 14
     ≤  375  iPhone SE / older
     ≤  360  small Android
     ≤  320  minimum supported

   Hero notes:
     · .hero__inner / .hero__gradient / .hero__bg → display:none (style.css)
       All hero overrides here target only the NEW split layout classes.
     · hero__title font-size ladder:
         style.css base  44px
         ≤ 1024px        36px
         ≤ 900px    clamp(32px, 3.8vw, 38px)
         ≤ 768px    clamp(24px, 6.5vw, 32px)
         ≤ 480px         26px
         ≤ 390px         22px
         ≤ 375px         20px
         ≤ 360px         19px
         ≤ 320px         17px

   ══════════════════════════════════════════════════════════════ */


/* ══════════════════════════════════════════════════════════════
   0. GLOBAL SAFETY
   ══════════════════════════════════════════════════════════════ */

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

html {
  overflow-x: clip; /* clip не создаёт scroll-контейнер — sticky/fixed не прыгают */
}

body {
  overflow-x: clip; /* hidden на body создавал отдельный scroll-контейнер на iOS */
  max-width: 100vw;
}

/* Body scroll lock when mobile nav is open */
body.nav-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* All media: safe max-width + no height stretch */
img,
video,
svg {
  max-width: 100%;
  height: auto;
}

iframe {
  max-width: 100%;
  display: block;
}

/* ── Unified image system ──
   All cover-fill containers share the same pattern:
   wrapper = position:relative + overflow:hidden + defined height
   img     = width/height 100% + object-fit:cover
   These base rules are already in style.css; here we just guarantee
   no stretch can slip through on any viewport.                     */
.hero__img,
.products-card__img,
.zhbi-spec-card__img,
.zhbi-info__image,
.svc-delivery__image,
.services__image,
.page-hero__bg-img {
  display: block;
  width: 100%;
  object-fit: cover;
  object-position: center;
}

/* Table horizontal scroll — global */
.pricing-table__scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #c5cdd5 transparent;
}


/* ══════════════════════════════════════════════════════════════
   MOBILE NAV OVERLAY
   ══════════════════════════════════════════════════════════════ */

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  top: var(--header-height, 74px);
  background: rgba(0, 0, 0, 0.45);
  z-index: 98;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}

.mobile-nav-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}


/* ══════════════════════════════════════════════════════════════
   1. ≤ 1600px
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 1600px) {
  :root {
    --container-px: 56px;
  }
}


/* ══════════════════════════════════════════════════════════════
   2. ≤ 1440px
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 1440px) {
  /* page-hero (inner pages only — NOT the new commercial hero) */
  .page-hero__title {
    font-size: clamp(44px, 4.5vw, 64px);
  }
}


/* ══════════════════════════════════════════════════════════════
   3. ≤ 1280px
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 1280px) {
  :root {
    --container-px: 40px;
  }

  /* page-hero inner pages */
  .page-hero__title {
    font-size: clamp(40px, 4vw, 56px);
  }

  /* Section headings */
  .advantages__title,
  .products__title,
  .review-order__reviews-title,
  .contacts__title,
  .order-form__title,
  .services__title,
  .zhbi-info__title,
  .zhbi-cta__title,
  .svc-delivery__title,
  .svc-add__title {
    font-size: 36px;
  }

  .pricing__block-title {
    font-size: 28px;
  }

  /* Header: hide phone number text, keep icon */
  .header__phone-num {
    display: none;
  }
}


/* ══════════════════════════════════════════════════════════════
   4. ≤ 1024px — Tablet landscape
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  :root {
    --container-px: 28px;
    --header-height: 68px;
  }

  /* ── Navigation: hide desktop nav, show burger ── */
  .nav,
  .header__actions {
    display: none;
  }

  .header__burger {
    display: flex;
    margin-left: auto;
  }

  .mobile-nav__list {
    padding-inline: var(--container-px-md);
  }

  /* ── Header ── */
  .header {
    height: var(--header-height);
  }

  .header__inner {
    padding-inline: 28px;
    gap: 0;
  }

  .header__logo img {
    height: 48px !important;
    width: auto !important;
  }

  /* ── Hero: tablet — two-column still visible, narrower ── */
  .hero__split {
    padding-inline: var(--container-px);
    min-height: 440px;
  }

  .hero__content {
    padding-right: 32px;
  }

  .hero__title {
    font-size: 36px;
  }

  .hero__stat {
    padding-inline: 20px;
  }

  .hero__stat:first-child {
    padding-left: var(--container-px);
  }

  .hero__stat:last-child {
    padding-right: var(--container-px);
  }

  /* ── Section padding reduction: 96px → 72px on tablet ── */
  .advantages,
  .products,
  .contacts,
  .pricing,
  .cta-blue {
    padding-block: 72px;
  }

  .review-order__reviews-wrap { padding-block: 72px; }
  .review-order__form-wrap    { padding-block: 64px; }

  /* ── Section headings: tablet ── */
  .advantages__title,
  .products__title,
  .review-order__reviews-title,
  .contacts__title,
  .order-form__title {
    font-size: 34px;
  }

  .cta-blue__title    { font-size: 28px; }
  .pricing__block-title { font-size: 26px; }

  /* ── Reviews: 2-col on tablet ── */
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .review-card:nth-child(3) {
    grid-column: 1 / -1;
    max-width: calc(50% - 12px);
    margin-inline: auto;
  }

  .review-submit-panel       { margin-top: 48px; }
  .review-submit-panel__inner { padding: 32px 36px; }

  /* ── Services (homepage): stack at tablet ── */
  .services__inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .services__image-col    { height: 320px; }
  .services__content-col  { padding: 56px 32px; gap: 36px; }
  .services__title        { font-size: 34px; }

  /* ── Quick products: 3-col on tablet ── */
  .quick-products__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* ── Products: 2-col ── */
  .products__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .products-card {
    height: 340px;
  }

  /* ── ЖБИ: tablet stack ── */
  .zhbi-info__inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .zhbi-info__image-col  { height: 320px; }
  .zhbi-info__content-col { padding: 56px var(--container-px); }
  .zhbi-cta              { padding-block: 72px; }
  .zhbi-spec-grid        { grid-template-columns: 1fr; }
  .zhbi-spec-card__img-wrap { height: 240px; }

  /* ── Services page: tablet ── */
  .svc-pump              { padding-block: 64px; }
  .svc-pump__inner       { grid-template-columns: 1fr; gap: 32px; }
  .svc-pump__card        { padding: 32px; }
  .svc-add               { padding-block: 56px; }
  .svc-add__grid         { grid-template-columns: repeat(2, 1fr); }
  .svc-delivery__inner   { grid-template-columns: 1fr; min-height: auto; }
  .svc-delivery__image-col { height: 280px; }
  .svc-delivery__content { padding: 48px var(--container-px); gap: 20px; }

  /* ── Footer: 2-col ── */
  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 32px 40px;
    padding-block: 48px;
  }

  .footer__brand,
  .footer__contacts-col {
    grid-column: 1 / -1;
  }

  /* ── Contacts bento ── */
  .contacts-bento__container {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contacts-bento__form {
    padding: 32px 28px;
  }

  .contacts-map__wrap {
    height: 360px;
  }

  /* ── Contacts page hero ── */
  .page-hero--contacts {
    padding-top: 44px;
    padding-bottom: 52px;
  }

  /* ── Services page hero ── */
  .page-hero--services {
    padding-top: 44px;
    padding-bottom: 52px;
  }

  .page-hero__content--single .page-hero__title {
    font-size: var(--font-size-4xl);
  }

  /* ── Page hero (inner pages) ── */
  .page-hero {
    padding-top: 56px;
    padding-bottom: 72px;
  }

  /* ── ЖБИ catalog grid: 2-col on tablet ── */
  .zhbi-catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* ── Touch targets ── */
  .header__cta,
  .mobile-nav__cta,
  .hero__btn,
  .services__cta,
  .svc-pump__cta,
  .zhbi-cta__btn,
  .cta-blue__btn {
    min-height: 48px;
  }
}


/* ══════════════════════════════════════════════════════════════
   5. ≤ 900px — Tablet portrait
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
  :root {
    --container-px: 24px;
  }

  /* Hero title: between 36px (1024) and 32px (768) */
  .hero__title {
    font-size: clamp(32px, 3.8vw, 38px);
  }

  /* Section headings */
  .advantages__title,
  .products__title,
  .review-order__reviews-title,
  .contacts__title,
  .order-form__title,
  .services__title {
    font-size: 32px;
  }

  /* Contacts: single column */
  .contacts__container {
    grid-template-columns: 1fr;
    padding-inline: 24px;
  }

  .contacts__map-wrap {
    position: static;
    height: 380px;
  }

  .contacts__map {
    min-height: 380px;
  }

  /* Footer: tighten */
  .footer__top {
    gap: 24px 32px;
    padding-block: 40px;
  }

  /* iOS zoom: review submit (font must be ≥ 16px to prevent iOS zoom) */
  .review-submit-panel__input,
  .review-submit-panel__textarea {
    font-size: 16px;
  }
}


/* ══════════════════════════════════════════════════════════════
   6. ≤ 768px — MOBILE BOUNDARY
   This is the single authoritative mobile section.
   Every component's mobile behavior is defined here once.
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {

  :root {
    --container-px: 20px;
    --header-height: 64px;
  }


  /* ────────────────────────────────────────
     INFO BAR — компактная мобильная версия
  ──────────────────────────────────────── */

  /* Показываем, но делаем компактнее */
  .info-bar__inner {
    height: 34px;
    padding-inline: 16px;
    gap: 6px;
  }

  /* Слева: только время работы, адрес и email скрываем */
  .info-bar__left > *:not(:first-child) {
    display: none;
  }

  /* Справа: убираем разделители — gap сам даёт отступ */
  .info-bar__right {
    gap: 10px;
  }
  .info-bar__right > .info-bar__divider {
    display: none;
  }

  /* Мессенджеры — только иконки, текст («WhatsApp», «Telegram» …) скрываем */
  .info-bar__messenger {
    font-size: 0;   /* text-ноды исчезают; SVG (width/height фикс.) остаётся */
    gap: 0;
    color: rgba(255, 255, 255, 0.75);
  }

  /* Телефон чуть меньше, иконку убираем — оставляем только номер */
  .info-bar__phone {
    font-size: 12px;
    gap: 4px;
  }
  .info-bar__phone svg {
    display: none;
  }


  /* ────────────────────────────────────────
     HEADER
  ──────────────────────────────────────── */

  .header {
    height: var(--header-height);
  }

  .header__inner {
    padding-inline: 20px;
    height: var(--header-height);
  }

  .header__logo {
    flex-shrink: 1;
    min-width: 0;
  }

  .header__logo img {
    height: 54px !important;
    width: auto !important;
  }

  .header__actions {
    gap: 10px;
  }

  .header__cta {
    height: 38px;
    padding: 0 16px;
    font-size: 13px;
  }

  .header__burger {
    width: 44px;
    height: 44px;
    margin-right: -4px;
  }

  .mobile-nav {
    overflow: hidden;
    width: 100%;
    left: 0;
    right: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  }

  .mobile-nav--open {
    max-height: 500px;
  }

  .mobile-nav__list {
    padding: 8px 20px 20px;
  }

  .mobile-nav__link {
    font-size: 16px;
    min-height: 48px;
    display: flex;
    align-items: center;
    padding-block: 0;
  }

  .mobile-nav__item--actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding-top: 12px;
  }

  .mobile-nav__cta {
    width: 100%;
    text-align: center;
    justify-content: center;
    min-height: 48px;
    display: flex;
    align-items: center;
    font-size: 15px;
  }


  /* ────────────────────────────────────────
     HERO — Commercial split layout
     STACKS: content above, image below
     Critical: hero__split = flex column, no padding
     hero__content gets its own side padding
     hero__media = full-width, aspect ratio via padding-bottom
  ──────────────────────────────────────── */

  .hero {
    min-height: 0;
  }

  /* Remove grid, use flex column. NO padding — avoids image inset. */
  .hero__split {
    display: flex;
    flex-direction: column;
    max-width: 100%;
    min-height: 0;
    padding: 0;
  }

  /* Content: side padding applied here, not on split */
  .hero__content {
    order: 1;
    width: 100%;
    padding: 24px 20px 0 20px;
    gap: 14px;
    justify-content: flex-start;
  }

  /* Image: full-width, aspect ratio via padding-bottom trick */
  .hero__media {
    order: 2;
    width: 100%;
    height: 0;
    padding-bottom: 56%;        /* ~16:9 */
    position: relative;         /* anchor for abs-pos child */
    overflow: hidden;
    flex-shrink: 0;
    margin-top: 20px;
  }

  /* Image already position:absolute in style.css — just reset object-position */
  .hero__img {
    object-position: center center;
  }

  /* Overlay: bottom-to-top makes sense for stacked layout */
  .hero__media-overlay {
    background: linear-gradient(
      to top,
      rgba(10, 46, 66, 0.65) 0%,
      transparent 55%
    );
  }

  .hero__media-badge {
    display: none;
  }

  /* Typography */
  .hero__title {
    font-size: clamp(24px, 6.5vw, 32px);
    line-height: 1.2;
    letter-spacing: -0.02em;
    overflow-wrap: break-word;
    word-break: break-word;
  }

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

  /* Grades */
  .hero__grades       { gap: 6px; }
  .hero__grades-label { font-size: 10px; }
  .hero__grades-list  { gap: 4px; flex-wrap: wrap; }
  .hero__grade        { height: 24px; font-size: 11px; padding-inline: 8px; }

  /* Feature checklist */
  .hero__features { gap: 8px; }
  .hero__feature  { font-size: 13px; line-height: 1.4; }

  /* CTAs: full-width stacked */
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding-top: 0;
    flex-wrap: nowrap;
  }

  .hero__btn {
    width: 100%;
    height: 50px;
    font-size: 15px;
    padding-inline: 20px;
    min-height: 48px;
  }

  /* Phone block */
  .hero__contact {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 12px;
    padding-bottom: 24px;
    margin-top: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: none;
  }

  .hero__phone      { font-size: 18px; }
  .hero__phone-note { font-size: 11px; }

  /* Stats bar: 2×2 grid */
  .hero__stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero__stat {
    padding-block: 14px;
    padding-inline: 20px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  /* Left column cells get right border */
  .hero__stat:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
  }

  /* Last row: no bottom border */
  .hero__stat:nth-last-child(-n+2) {
    border-bottom: none;
  }

  /* Reset desktop first/last-child padding to uniform 20px */
  .hero__stat:first-child { padding-left: 20px; }
  .hero__stat:last-child  { padding-right: 20px; border-right: none; }

  .hero__stat-value { font-size: 16px; }
  .hero__stat-label { font-size: 11px; }


  /* ────────────────────────────────────────
     PAGE HERO (inner pages: beton, zhbi, services, contacts)
  ──────────────────────────────────────── */

  .page-hero {
    padding-top: 36px;
    padding-bottom: 44px;
  }

  .page-hero__inner {
    padding-inline: 20px;
  }

  .page-hero__title {
    font-size: clamp(24px, 6.5vw, 38px);
    line-height: 1.15;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .page-hero__subtitle {
    font-size: 15px;
    max-width: 100%;
  }

  .page-hero__content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-hero__badge-col {
    display: none;
  }

  .page-hero__breadcrumb {
    margin-bottom: 20px;
  }

  .page-hero--services {
    padding-top: 32px;
    padding-bottom: 40px;
  }


  /* ────────────────────────────────────────
     SECTION SPACING
  ──────────────────────────────────────── */

  .advantages                   { padding-block: 52px; }
  .products                     { padding-block: 52px; }
  .review-order__reviews-wrap   { padding-block: 52px; }
  .review-order__form-wrap      { padding-block: 44px; }
  .review-order                 { padding-bottom: 0; }
  .contacts                     { padding-block: 52px; padding-bottom: 0; }
  .pricing                      { padding-block: 52px; }
  .cta-blue                     { padding-block: 52px; }
  .zhbi-cta                     { padding-block: 52px; }
  .svc-pump                     { padding-block: 52px; }
  .svc-add                      { padding-block: 44px; }


  /* ────────────────────────────────────────
     SECTION HEADINGS
  ──────────────────────────────────────── */

  .advantages__title,
  .products__title,
  .review-order__reviews-title,
  .contacts__title,
  .order-form__title,
  .services__title,
  .zhbi-info__title,
  .zhbi-cta__title,
  .svc-delivery__title,
  .svc-add__title,
  .svc-pump__card-title {
    font-size: clamp(22px, 5.5vw, 30px);
  }

  .pricing__block-title    { font-size: clamp(20px, 5vw, 26px); }
  .pricing__block-subtitle { font-size: 17px; }
  .cta-blue__title         { font-size: clamp(20px, 5.5vw, 28px); }
  .cta-blue__subtitle      { font-size: 15px; margin-bottom: 24px; }


  /* ────────────────────────────────────────
     QUICK PRODUCTS — horizontal scroll carousel
  ──────────────────────────────────────── */

  .quick-products__inner {
    padding-inline: 0;
    padding-block: 32px;
  }

  .quick-products__hd {
    padding-inline: 20px;
    margin-bottom: 16px;
    align-items: center;
  }

  .quick-products__title { font-size: 20px; }
  .quick-products__all   { font-size: 13px; white-space: nowrap; }

  /* Flex carousel: more reliable than grid for snap scroll */
  .quick-products__grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    overflow-y: visible;           /* shadows visible above track */
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-inline: 20px;
    padding-top: 4px;              /* top shadow room */
    padding-bottom: 12px;          /* bottom shadow room */
    scrollbar-width: none;
  }

  .quick-products__grid::-webkit-scrollbar {
    display: none;
  }

  .qp-card {
    flex: 0 0 170px;
    min-width: 0;
    scroll-snap-align: start;
  }

  .quick-products__cta {
    padding-inline: 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 16px;
  }

  .qp-cta-btn {
    height: 50px;
    font-size: 15px;
    justify-content: center;
    width: 100%;
  }

  .qp-cta-info {
    justify-content: center;
    font-size: 13px;
    flex-wrap: wrap;
    text-align: center;
  }


  /* ────────────────────────────────────────
     ADVANTAGES
  ──────────────────────────────────────── */

  .advantages__header  { margin-bottom: 36px; }
  .advantages__container { padding-inline: 20px; }

  .advantages__grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .advantages-card:nth-child(3) {
    grid-column: auto;
    max-width: 100%;
    margin-inline: 0;
  }

  .advantages-card {
    padding: 28px 24px;
    min-height: auto;
  }


  /* ────────────────────────────────────────
     PRODUCTS
  ──────────────────────────────────────── */

  .products__container {
    padding-inline: 20px;
    gap: 28px;
  }

  .products__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .products__grid,
  .products__grid--3col,
  .products__grid--2col {
    grid-template-columns: 1fr;
  }

  .products-card          { height: 280px; }
  .products-card__content { padding: 24px; }
  .products-card__title   { font-size: 24px; }
  .products-card__text    { font-size: 14px; margin-bottom: 14px; }
  .products-card__btn     { height: 44px; padding-inline: 20px; font-size: 14px; }


  /* ────────────────────────────────────────
     SERVICES SECTION (homepage)
  ──────────────────────────────────────── */

  .services__inner {
    grid-template-columns: 1fr;
    min-height: unset;
  }

  .services__image-col {
    height: auto;
    aspect-ratio: 16 / 9;
    max-height: 260px;
    order: -1;
  }

  .services__content-col { padding: 40px 20px; gap: 24px; }
  .services__list         { gap: 20px; }
  .services-item          { gap: 14px; }
  .services-item__title   { font-size: 17px; }

  .services__cta {
    width: 100%;
    align-self: stretch;
    justify-content: center;
    min-height: 50px;
  }


  /* ────────────────────────────────────────
     REVIEWS
  ──────────────────────────────────────── */

  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .review-card:nth-child(3) {
    grid-column: auto;
    max-width: 100%;
    margin-inline: 0;
  }

  .review-card { padding: 24px 20px; }
  .review-order__container { padding-inline: 20px; }
  .review-order__header    { margin-bottom: 28px; }

  .review-submit-panel        { margin-top: 28px; }
  .review-submit-panel__inner { padding: 24px 16px; border-radius: 12px; }
  .review-submit-panel__row   { grid-template-columns: 1fr; gap: 14px; }

  .review-submit-panel__input,
  .review-submit-panel__textarea {
    font-size: 16px;   /* iOS zoom prevention */
  }

  .rv-stars__label { font-size: 34px; }


  /* ────────────────────────────────────────
     ORDER FORM
  ──────────────────────────────────────── */

  .order-form         { padding-inline: 0; }
  .order-form__header { margin-bottom: 24px; }

  .order-form__row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .order-form__input,
  .order-form__textarea,
  .order-form__select {
    font-size: 16px;   /* iOS zoom prevention */
    width: 100%;
  }

  .order-form__submit { min-height: 52px; }


  /* ────────────────────────────────────────
     PRICING TABLES
  ──────────────────────────────────────── */

  .pricing__container {
    gap: 36px;
    padding-inline: 20px;
  }

  .pricing-table {
    overflow: hidden;
    border-radius: var(--radius-lg);
  }

  .pricing-table__scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #c5cdd5 transparent;
    box-shadow: inset -10px 0 10px -10px rgba(0, 0, 0, 0.10);
  }

  /* All columns shown on mobile — tables scroll horizontally */

  /* Non-wide tables (2–3 cols): auto layout lets badge badges size naturally;
     min-width:100% fills container; scroll if content wider than viewport */
  .pricing-table__table:not(.pricing-table__table--wide) {
    width: auto;
    min-width: 100%;
    table-layout: auto;
  }

  /* Wide table (4 cols) scrolls horizontally — all columns visible */
  .pricing-table__table--wide {
    width: auto;        /* override inherited width:100% so min-width wins */
    min-width: 600px;   /* wider than any phone — forces horizontal scroll */
    table-layout: auto;
  }
  /* Price cells must not wrap so numbers stay readable */
  .pricing-table__table--wide .pricing-table__th:nth-child(3),
  .pricing-table__table--wide .pricing-table__td:nth-child(3),
  .pricing-table__table--wide .pricing-table__th:nth-child(4),
  .pricing-table__table--wide .pricing-table__td:nth-child(4) {
    white-space: nowrap;
  }
  .pricing-table__th { white-space: normal; }

  /* Allow name cells to wrap — prevents bleeding into price columns
     on narrow screens where table-layout:fixed splits columns equally */
  .pricing-table__td--name {
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .pricing-table__th,
  .pricing-table__td {
    padding: 11px 14px;
    font-size: 13px;
  }

  .pricing-table__td--price-lg { font-size: 19px; }

  .pricing__bento        { grid-template-columns: 1fr; }
  .pricing__block-header { margin-bottom: 14px; }
  .pricing__pmd-list     { padding: 16px; }
  .pricing__pmd-row      { padding: 12px 14px; }
  .pricing__pmd-price    { font-size: 20px; }


  /* ────────────────────────────────────────
     CONTACTS (homepage section)
  ──────────────────────────────────────── */

  .contacts__container {
    grid-template-columns: 1fr;
    padding-inline: 20px;
  }

  .contacts__header { margin-bottom: 20px; }

  .contacts__map-wrap {
    position: static;
    height: 300px;
    border-radius: 12px;
  }

  .contacts__map      { min-height: 300px; }
  .contact-item       { padding-block: 14px; gap: 12px; }
  .contact-item__value { font-size: 14px; }

  .contact-item--delivery {
    padding-inline: 12px;
    margin-inline: -12px;
  }


  /* ────────────────────────────────────────
     CONTACTS PAGE — bento
  ──────────────────────────────────────── */

  .contacts-bento__container {
    padding-inline: 20px;
  }

  .contacts-bento__form {
    padding: 24px 20px;
    border-radius: 12px;
  }

  .contacts-bento__form-title { font-size: 22px; }

  /* iOS zoom prevention */
  .contact-form__input,
  .contact-form__textarea {
    font-size: 16px;
  }

  .contacts-map__wrap {
    height: 300px;
    border-radius: 12px;
  }


  /* ────────────────────────────────────────
     FOOTER — normalized mobile layout
     Brand column → compact column (NOT row)
     Nav columns → 2-col grid via template areas
     Contacts → 2-col grid below navs
  ──────────────────────────────────────── */

  .footer__container { padding-inline: 20px; }

  .footer__top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "brand   brand"
      "prod    svc"
      "contact contact";
    gap: 20px 24px;
    padding-block: 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  /* Brand: clean column, not cramped row */
  .footer__brand {
    grid-area: brand;
    flex-direction: column;     /* keep column — was incorrectly row */
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .footer__logo {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .footer__desc {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 14px;
    max-width: 100%;
  }

  .footer__socials {
    gap: 8px;
    margin-top: 0;
    flex-wrap: wrap;
  }

  .footer__social-btn {
    width: 34px;
    height: 34px;
  }

  /* Nav columns */
  .footer__nav:nth-of-type(1) { grid-area: prod; }
  .footer__nav:nth-of-type(2) { grid-area: svc; }

  .footer__nav-title  { font-size: 10px; margin-bottom: 12px; }
  .footer__nav-list   { gap: 8px; }
  .footer__nav-link   { font-size: 13px; word-break: break-word; }

  /* Contacts column: spans full width */
  .footer__contacts-col {
    grid-area: contact;
    padding-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
  }

  .footer__contacts-col .footer__nav-title {
    font-size: 10px;
    margin-bottom: 10px;
  }

  .footer__contact-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
  }

  .footer__contact-item  { gap: 2px; }
  .footer__contact-label { font-size: 10px; }
  .footer__contact-value { font-size: 13px; line-height: 1.4; word-break: break-word; }

  .footer__bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding-block: 14px;
  }

  .footer__legal {
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
  }

  .footer__copy,
  .footer__legal-link { font-size: 12px; }

  /* Sticky bar clearance */
  .footer { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }


  /* ────────────────────────────────────────
     CTA BLUE
  ──────────────────────────────────────── */

  .cta-blue__inner { padding-inline: 20px; }

  .cta-blue__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 360px;
  }

  .cta-blue__btn {
    justify-content: center;
    padding: 14px 28px;
    min-height: 50px;
  }

  /* ── Compact CTA variant (services page) ── */
  .cta-blue--compact                    { padding-block: 40px; }
  .cta-blue--compact .cta-blue__title   { font-size: 20px; }
  .cta-blue--compact .cta-blue__actions { max-width: 300px; }
  .cta-blue--compact .cta-blue__btn     { justify-content: center; }


  /* ────────────────────────────────────────
     ЖБИ
  ──────────────────────────────────────── */

  .zhbi-info__content-col { padding: 40px 20px; gap: 22px; }
  .zhbi-info__image-col   { height: auto; aspect-ratio: 16 / 9; max-height: 260px; }

  .zhbi-info__stats { flex-direction: column; gap: 10px; }
  .zhbi-stat        { padding: 14px 18px; }

  .zhbi-spec-grid { grid-template-columns: 1fr; }

  .zhbi-spec-card__img-wrap { height: 200px; }
  .zhbi-spec-card__body     { padding: 24px; }

  .zhbi-spec-card__footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .zhbi-spec-card__btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }

  .zhbi-catalog-grid { grid-template-columns: 1fr; gap: 14px; }

  .zhbi-cta__inner { padding-inline: 20px; }
  .zhbi-cta__text  { max-width: 100%; }
  .zhbi-cta__btn   { width: 100%; max-width: 340px; min-height: 52px; }


  /* ────────────────────────────────────────
     SERVICES PAGE
  ──────────────────────────────────────── */

  .svc-pump__inner { padding-inline: 20px; }
  .svc-pump__card  { padding: 24px; }

  /* Grid blowout fix: без min-width:0 таблица (min-width:440px) распирает
     grid-ячейку до 440px и вызывает горизонтальный скролл всей страницы.
     С min-width:0 ячейка остаётся в пределах вьюпорта, а pricing-table__scroll
     с overflow-x:auto обеспечивает скролл только внутри таблицы. */
  .svc-pump__card,
  .svc-pump__table-col,
  .svc-delivery__content {
    min-width: 0;
  }

  .svc-pump__cta {
    width: 100%;
    align-self: stretch;
    justify-content: center;
    min-height: 50px;
  }

  .svc-add__container { padding-inline: 20px; }

  .svc-add__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .svc-delivery__image-col { height: auto; aspect-ratio: 16 / 9; max-height: 240px; }

  .svc-delivery__content {
    padding: 36px 20px;
    gap: 18px;
  }

  .svc-delivery__subtitle { max-width: 100%; }


  /* ────────────────────────────────────────
     AUTH PAGES
  ──────────────────────────────────────── */

  .auth-card {
    padding: 32px 24px;
    margin-inline: 16px;
  }

  .auth-card__title { font-size: 22px; }

  /* iOS zoom prevention */
  .auth-field__input {
    font-size: 16px;
    height: 50px;
  }

  .auth-submit { min-height: 50px; }


  /* ────────────────────────────────────────
     MOBILE STICKY BAR
  ──────────────────────────────────────── */

  .mobile-bar { display: flex; }


  /* ────────────────────────────────────────
     OVERFLOW SAFETY
  ──────────────────────────────────────── */

  .hero__title,
  .page-hero__title,
  .page-hero__text {
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: none; /* auto вызывал reflow-сдвиг и делал "до-ставка" */
  }

  .svc-pump__card-text,
  .svc-pump__note,
  .svc-delivery__note,
  .svc-delivery__subtitle {
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .pricing-table__scroll::after {
    content: '';
    display: block;
    min-height: 1px;
  }

}  /* end @media ≤ 768px */


/* ══════════════════════════════════════════════════════════════
   7. ≤ 480px — Small mobile
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 480px) {

  :root {
    --container-px: 16px;
    --header-height: 66px;
  }

  /* ── Header ── */
  .header        { height: var(--header-height); }
  .header__inner { padding-inline: 16px; height: var(--header-height); }

  .header__logo img {
    height: 50px !important;
    width: auto !important;
  }

  .mobile-nav-overlay { top: var(--header-height, 60px); }

  /* ── Hero ── */
  .hero__title   { font-size: 26px; }
  .hero__media   { padding-bottom: 62%; }   /* slightly taller on narrow screens */
  .hero__content { padding-inline: 16px; }
  .hero__contact { padding-bottom: 20px; }

  /* ── Quick products ── */
  .quick-products__inner                    { padding-block: 28px; }
  .quick-products__hd                       { padding-inline: 16px; }
  .quick-products__grid                     { padding-inline: 16px; }
  .quick-products__cta                      { padding-inline: 16px; }
  .qp-card                                  { flex: 0 0 158px; }

  /* ── Section headings ── */
  .advantages__title,
  .products__title,
  .review-order__reviews-title,
  .contacts__title,
  .order-form__title,
  .services__title,
  .zhbi-info__title,
  .zhbi-cta__title,
  .svc-delivery__title,
  .svc-add__title,
  .cta-blue__title,
  .pricing__block-title {
    font-size: clamp(20px, 5.5vw, 26px);
  }

  /* ── Section spacing ── */
  .advantages, .products, .contacts, .pricing, .cta-blue, .zhbi-cta, .svc-pump { padding-block: 44px; }
  .review-order__reviews-wrap { padding-block: 44px; }
  .review-order__form-wrap, .svc-add { padding-block: 36px; }

  /* ── Containers ── */
  .advantages__container,
  .products__container,
  .review-order__container,
  .pricing__container,
  .contacts__container,
  .footer__container,
  .cta-blue__inner,
  .zhbi-cta__inner,
  .svc-add__container,
  .svc-pump__inner {
    padding-inline: 16px;
  }

  /* ── Advantages ── */
  .advantages-card       { padding: 22px 18px; }
  .advantages-card__title { font-size: 18px; }

  /* ── Products ── */
  .products-card          { height: 260px; }
  .products-card__content { padding: 20px 18px; }
  .products-card__title   { font-size: 22px; }

  /* ── Reviews ── */
  .review-card                { padding: 20px 16px; }
  .review-submit-panel__inner { padding: 20px 14px; }
  .rv-stars__label            { font-size: 30px; }

  /* ── Pricing ── */
  .pricing__container { gap: 28px; }

  .pricing-table__th,
  .pricing-table__td  { padding: 10px 12px; font-size: 12px; }
  .pricing-table__td--price-lg { font-size: 16px; }

  .pricing__pmd-row   { padding: 10px 12px; }
  .pricing__pmd-price { font-size: 19px; }

  /* ── Contacts ── */
  .contacts__map-wrap { height: 260px; }
  .contacts__map      { min-height: 260px; }

  .contacts-bento__container { grid-template-columns: 1fr; gap: 16px; padding-inline: 16px; }
  .contacts-bento__form-title { font-size: 20px; }
  .contacts-map__wrap { height: 240px; }

  /* ── Footer ── */
  .footer__top           { padding-block: 22px; gap: 16px 20px; }
  .footer__contact-list  { grid-template-columns: 1fr; gap: 8px; }
  .footer__bottom        { padding-block: 12px; gap: 6px; }
  .footer__copy,
  .footer__legal-link    { font-size: 11px; }

  /* ── CTA ── */
  .cta-blue__inner { padding-inline: 16px; }

  /* ── Services page ── */
  .svc-add__grid                          { grid-template-columns: 1fr 1fr; gap: 10px; }
  .svc-add-card                           { padding: 16px 12px; }
  .svc-add-card__title                    { font-size: 14px; }

  /* ── ЖБИ ── */
  .zhbi-info__content-col { padding: 30px 16px; }
  .zhbi-spec-card__body   { padding: 20px 16px; }
  .svc-pump__card         { padding: 20px 16px; }
  .svc-delivery__content  { padding: 30px 16px; }

}


/* ══════════════════════════════════════════════════════════════
   8. ≤ 430px — iPhone 14 Pro
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 430px) {

  :root {
    --container-px: 16px;
  }

  .hero__title { font-size: clamp(22px, 7vw, 26px); }

  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 14px 20px;
    padding-block: 20px;
  }
}


/* ══════════════════════════════════════════════════════════════
   9. ≤ 390px — iPhone 14 standard
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 390px) {

  :root {
    --container-px: 14px;
  }

  /* ── Header ── */
  .header__logo img { height: 46px !important; width: auto !important; }
  .header__inner    { padding-inline: 14px; }

  /* ── Hero ── */
  .hero__title   { font-size: 22px; letter-spacing: -0.01em; }
  .hero__content { padding-inline: 14px; padding-top: 20px; }
  .hero__media   { margin-top: 16px; }

  .hero__stat             { padding-inline: 14px; }
  .hero__stat:first-child { padding-left: 14px; }
  .hero__stat:last-child  { padding-right: 14px; }

  /* ── Quick products ── */
  .quick-products__hd,
  .quick-products__grid,
  .quick-products__cta { padding-inline: 14px; }
  .qp-card             { flex: 0 0 148px; }

  /* ── Section headings ── */
  .advantages__title,
  .products__title,
  .review-order__reviews-title,
  .contacts__title,
  .order-form__title,
  .cta-blue__title,
  .pricing__block-title,
  .zhbi-info__title,
  .zhbi-cta__title { font-size: 21px; }

  .page-hero__title { font-size: clamp(19px, 6.5vw, 26px); }

  /* ── Buttons ── */
  .hero__btn,
  .cta-blue__btn,
  .header__cta { padding-inline: 14px; font-size: 14px; }

  /* ── Cards ── */
  .advantages-card       { padding: 20px 14px; }
  .advantages-card__title { font-size: 17px; }
  .review-card           { padding: 18px 14px; }
  .products-card          { height: 250px; }
  .products-card__content { padding: 18px 14px; }
  .products-card__title   { font-size: 20px; }

  /* ── Pricing ── */
  .pricing-table__th,
  .pricing-table__td     { padding: 9px 10px; font-size: 11px; }
  .pricing-table__td--price-lg { font-size: 17px; }

  /* ── Footer ── */
  .footer__top    { padding-block: 18px; gap: 12px 16px; }
  .footer__bottom { padding-block: 10px; gap: 6px; }
  .footer__copy,
  .footer__legal-link { font-size: 11px; }

  /* ── Services ── */
  .svc-add__grid { grid-template-columns: 1fr; }

  /* ── Auth ── */
  .auth-card        { padding: 24px 14px; margin-inline: 12px; }
  .auth-card__title { font-size: 20px; }

  /* ── Contacts ── */
  .contacts__map-wrap { height: 250px; }
  .contacts__map      { min-height: 250px; }

  /* ── ЖБИ ── */
  .zhbi-info__content-col { padding: 26px 14px; gap: 18px; }
  .zhbi-stat__value       { font-size: 24px; }

  /* ── Mobile nav ── */
  .mobile-nav__list { padding-inline: 14px; }

  /* ── Containers ── */
  .advantages__container,
  .products__container,
  .review-order__container,
  .pricing__container,
  .contacts__container,
  .footer__container,
  .cta-blue__inner,
  .zhbi-cta__inner,
  .svc-add__container,
  .svc-pump__inner { padding-inline: 14px; }
}


/* ══════════════════════════════════════════════════════════════
   10. ≤ 375px — iPhone SE / older
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 375px) {

  :root {
    --container-px: 12px;
  }

  .header__inner    { padding-inline: 12px; }
  .header__logo img { height: 44px !important; }

  .hero__title   { font-size: 20px; line-height: 1.25; }
  .hero__content { padding-inline: 12px; padding-top: 18px; }

  .page-hero__title { font-size: 19px; }

  .advantages__title,
  .products__title,
  .review-order__reviews-title,
  .contacts__title,
  .order-form__title,
  .cta-blue__title { font-size: 20px; }

  .advantages-card       { padding: 18px 12px; }
  .advantages-card__title { font-size: 16px; }

  .products-card          { height: 240px; }
  .products-card__content { padding: 16px 12px; }
  .products-card__title   { font-size: 18px; }

  .hero__btn, .cta-blue__btn { font-size: 13px; padding-inline: 12px; }

  .pricing-table__th,
  .pricing-table__td { padding: 8px 9px; font-size: 11px; }

  .footer__top    { padding-block: 16px; gap: 10px 14px; }
  .footer__nav-list   { gap: 6px; }
  .footer__nav-link   { font-size: 12px; }
  .footer__contact-value { font-size: 12px; }
}


/* ══════════════════════════════════════════════════════════════
   11. ≤ 360px — Small Android
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 360px) {

  :root {
    --container-px: 12px;
  }

  .header__logo img { height: 42px !important; }
  .header__inner    { padding-inline: 12px; }
  .mobile-nav__list { padding-inline: 12px; }

  /* Info bar: на 360 телефон не вмещается — скрываем, есть в sticky bar */
  .info-bar__phone  { display: none; }

  /* ЖБИ-карточки: заголовок + ГОСТ-бейдж не помещаются в одну строку */
  .zhbi-spec-card__top { flex-wrap: wrap; gap: 6px; }
  .zhbi-spec-card__gost { margin-left: auto; }

  .hero__title   { font-size: 19px; line-height: 1.25; }
  .hero__content { padding-inline: 12px; }

  .quick-products__hd,
  .quick-products__grid,
  .quick-products__cta { padding-inline: 12px; }
  .qp-card             { flex: 0 0 140px; }

  .page-hero__inner  { padding-inline: 12px; }
  .page-hero__title  { font-size: 18px; }

  .advantages__title,
  .products__title,
  .review-order__reviews-title,
  .contacts__title,
  .order-form__title,
  .cta-blue__title { font-size: 19px; }

  .products-card          { height: 220px; }
  .products-card__content { padding: 14px 12px; }
  .products-card__title   { font-size: 17px; }

  .pricing-table__th,
  .pricing-table__td { padding: 8px 8px; font-size: 10px; }

  .footer__top    { padding-block: 14px; }
  .footer__bottom { padding-block: 10px; }
}


/* ══════════════════════════════════════════════════════════════
   12. ≤ 320px — Minimum supported
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 320px) {

  :root {
    --container-px: 10px;
  }

  .header__logo img { height: 40px !important; }
  .header__inner    { padding-inline: 10px; }

  /* Info bar: на 320 скрываем и часы — остаются только иконки мессенджеров */
  .info-bar__left   { display: none; }
  .info-bar__inner  { justify-content: center; }

  .hero__title   { font-size: 17px; }
  .hero__content { padding-inline: 10px; }
  .hero__stat    { padding-inline: 10px; }
  .hero__stat:first-child { padding-left: 10px; }
  .hero__stat:last-child  { padding-right: 10px; }

  .quick-products__hd,
  .quick-products__grid,
  .quick-products__cta { padding-inline: 10px; }
  .qp-card             { flex: 0 0 130px; }

  .advantages__title,
  .products__title,
  .review-order__reviews-title,
  .contacts__title,
  .order-form__title { font-size: 17px; }

  .products-card { height: 200px; }

  /* Footer: single column at 320 — too narrow for 2-col */
  .footer__top {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "prod"
      "svc"
      "contact";
    padding-block: 14px;
    gap: 12px;
  }

  .footer__contact-list { grid-template-columns: 1fr; }
  .footer__bottom       { padding-block: 10px; }
}


/* ══════════════════════════════════════════════════════════════
   13. iOS SAFE AREA — notch / home indicator support
   ══════════════════════════════════════════════════════════════ */

@supports (padding: env(safe-area-inset-bottom)) {

  .header__inner {
    padding-left:  max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
  }

  .footer__bottom {
    padding-bottom: max(14px, env(safe-area-inset-bottom));
  }

  .mobile-nav {
    padding-left:  env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
}


/* ══════════════════════════════════════════════════════════════
   15. ACCESSIBILITY — reduced motion
   ══════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration:       0.01ms !important;
    animation-iteration-count: 1    !important;
    transition-duration:      0.01ms !important;
    scroll-behavior:          auto  !important;
  }
}
