/* ═══════════════════════════════════════════════════════════════════
   АКВА ГРУПП — Mobile & Tablet Responsive
   Отдельный файл, загружается ПОСЛЕ style.css и перекрывает нужные правила.

   Breakpoints (самые популярные разрешения):
     ≤ 1024px  iPad landscape / малые ноутбуки
     ≤  992px  Планшеты portrait (iPad mini, Galaxy Tab)
     ≤  768px  Телефоны landscape + малые планшеты
     ≤  576px  Телефоны (ниже Bootstrap sm)
     ≤  430px  iPhone 14 Pro Max, Pixel 7 Pro, Galaxy S23+
     ≤  390px  iPhone 14 / 15, Galaxy S23
     ≤  375px  iPhone SE 2, iPhone 12 Mini
     ≤  320px  iPhone SE 1-го поколения (минимум)
   ═══════════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════════════
   FLOATING MESSENGER WIDGET — карточка + статус + неоновая кнопка
   ══════════════════════════════════════════════════════════════════ */
.fw-widget {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

/* ── Карточка мессенджеров ── */
.fw-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 40px rgba(0,0,0,.18), 0 2px 12px rgba(0,0,0,.08);
  padding: 10px 0;
  min-width: 200px;
  display: none;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(10px) scale(.96);
  opacity: 0;
  transition: transform .22s cubic-bezier(.34,1.56,.64,1), opacity .18s ease;
}
.fw-card--open {
  display: flex;
  animation: fw-card-in .22s cubic-bezier(.34,1.56,.64,1) forwards;
}
@keyframes fw-card-in {
  from { opacity: 0; transform: translateY(12px) scale(.95); }
  to   { opacity: 1; transform: translateY(0)   scale(1);   }
}
.fw-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 11px 18px;
  text-decoration: none;
  color: #1a1a2e;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 14.5px;
  transition: background .15s;
}
.fw-item:hover { background: #f5f7ff; color: #1a1a2e; }
.fw-item + .fw-item { border-top: 1px solid #f0f0f5; }
.fw-item-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}

/* ── Триггер-ряд: статус + кнопка ── */
.fw-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── Статус "Менеджер онлайн" ── */
.fw-status {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #fff;
  border-radius: 30px;
  padding: 7px 14px 7px 10px;
  box-shadow: 0 4px 18px rgba(0,0,0,.13);
  cursor: pointer;
  transition: opacity .18s, transform .18s;
  white-space: nowrap;
}
.fw-status--hidden { opacity: 0; pointer-events: none; transform: translateX(8px); }
.fw-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(34,197,94,.25);
  animation: fw-pulse 2s infinite;
}
@keyframes fw-pulse {
  0%,100% { box-shadow: 0 0 0 2px rgba(34,197,94,.25); }
  50%      { box-shadow: 0 0 0 5px rgba(34,197,94,.08); }
}
.fw-status-text { display: flex; flex-direction: column; line-height: 1.2; }
.fw-st-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #1a1a2e;
}
.fw-st-sub {
  font-family: 'Montserrat', sans-serif;
  font-size: 10.5px;
  font-weight: 500;
  color: #6b7280;
}

/* ── Неоновая кнопка ── */
.fw-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #0d0f18;
  flex-shrink: 0;
  position: relative;
  transition: transform .2s, box-shadow .2s;
  /* Неоновый зелёный */
  background: #00ff7f;
  box-shadow: 0 0 0 0 rgba(0,255,127,0),
              0 6px 20px rgba(0,255,127,.5);
}
.fw-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 24px rgba(0,255,127,.7),
              0 0 50px rgba(0,255,127,.3),
              0 8px 24px rgba(0,255,127,.4);
}
.fw-btn--open {
  background: #1a1a2e;
  color: #fff;
  box-shadow: 0 0 16px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.2);
}
.fw-ico-close { display: none; }
.fw-btn--open .fw-ico-open  { display: none; }
.fw-btn--open .fw-ico-close { display: block; }

/* Скрываем на мобиле только если нет места — показываем всегда */
@media (max-width: 480px) {
  .fw-widget { bottom: 18px; right: 14px; }
  .fw-btn { width: 50px; height: 50px; font-size: 20px; }
  .fw-card { min-width: 180px; }
  .fw-item { padding: 10px 14px; font-size: 13.5px; gap: 10px; }
  .fw-item-img { width: 32px; height: 32px; }
  .fw-status { padding: 6px 10px 6px 8px; }
  .fw-st-title { font-size: 11px; }
  .fw-st-sub   { font-size: 10px; }
}

/* ── Дополнительные цвета ── */
.footer-soc-icon--max { background: #6b3fa0; }
.footer-msg-btn--max  {
  background: #6b3fa0;
  box-shadow: 0 6px 24px rgba(107,63,160,.28);
}
.footer-msg-btn--max:hover {
  color: #fff;
  box-shadow: 0 10px 30px rgba(107,63,160,.4);
}
.mob-menu__soc--max   { background: #6b3fa0; }

/* hero-mob-link Max */
.hero-mob-link--max { border-color: rgba(107,63,160,.4); }
.hero-mob-link--max:hover { background: rgba(107,63,160,.2); border-color: #6b3fa0; }

/* ── МОБИЛЬНЫЙ ГЕРОЙ: текст сверху, CTA снизу ──────────────────── */

/* На мобиле hero-inner становится flex-колонной:
   top = текст, bottom = кнопки (margin-top: auto) */
@media (max-width: 767px) {
  .hero-has-bg { align-items: stretch !important; }
  .hero-inner {
    display: flex !important;
    flex-direction: column !important;
    min-height: calc(100svh - 58px) !important; /* 58px = высота шапки */
    padding-top: 28px !important;
    padding-bottom: 24px !important;
  }
  .hero-inner > .row { flex-shrink: 0; }
  .hero-mob-bottom { margin-top: auto; padding-top: 16px; padding-bottom: 6px; }
  /* Скрыть плавающий виджет на мобиле */
  .float-widget { display: none !important; }
}

/* ── Точные значения hero на мобиле (по макету) ────────────────── */
@media (max-width: 767px) {
  .hero-label {
    margin-top: 50px;
  }
  .hero-has-bg .hero-title {
    line-height: 42px !important;
    margin-top: 27px !important;
  }
}
@media (max-width: 576px) {
  .hero-bullets {
    margin-top: 40px !important;
  }
  /* Кнопки мессенджеров — крупнее на маленьких экранах */
  .hero-mob-links { gap: 6px; }
  .hero-mob-link  { padding: 10px 4px; font-size: 10.5px; }
  .hero-mob-link img { width: 26px; height: 26px; }
}

/* Кнопка ПОЗВОНИТЬ */
.hero-mob-call {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px 20px;
  background: var(--red, #da2a34);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 1.5px;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(218,42,52,.4);
  transition: opacity .18s, transform .18s;
}
.hero-mob-call:hover { color: #fff; opacity: .9; transform: translateY(-1px); }
.hero-mob-call .bi { font-size: 18px; }

/* Строка с 3 кнопками под ПОЗВОНИТЬ */
.hero-mob-links {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.hero-mob-link {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px 6px;
  border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .3px;
  transition: background .18s, border-color .18s;
}
.hero-mob-link:hover { color: #fff; background: rgba(255,255,255,.14); }
.hero-mob-link .bi { font-size: 20px; }
.hero-mob-link .bi,
.hero-mob-link img { display: block; flex-shrink: 0; }
.hero-mob-link img { width: 24px; height: 24px; object-fit: contain; }
.hero-mob-link--order .bi { color: #ffa5a5; }
.hero-mob-link--wa { border-color: rgba(37,211,102,.4); }
.hero-mob-link--wa:hover { background: rgba(37,211,102,.15); border-color: #25d366; }
.hero-mob-link--wa .bi { color: #25d366; }
.hero-mob-link--tg { border-color: rgba(42,171,238,.4); }
.hero-mob-link--tg:hover { background: rgba(42,171,238,.15); border-color: #2aabee; }
.hero-mob-link--tg .bi { color: #2aabee; }

/* ── МОБИЛЬНАЯ ШАПКА: бургер | лого по центру | звонок ──────────── */

/* Бургер-кнопка */
.header-burger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,.08);
  border: 1.5px solid rgba(255,255,255,.15);
  border-radius: 10px;
  color: #fff;
  font-size: 22px;
  flex-shrink: 0;
  transition: background .2s;
  line-height: 1;
  padding: 0;
}
.header-burger:hover,
.header-burger[aria-expanded="true"] {
  background: rgba(218,42,52,.25);
  border-color: rgba(218,42,52,.5);
}
.header-burger .bi { line-height: 1; }

/* Круглая кнопка звонка (мобиле) */
.mobile-call-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--red);
  border-radius: 50%;
  color: #fff;
  font-size: 17px;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(218,42,52,.45);
  transition: transform .2s, box-shadow .2s;
}
.mobile-call-btn:hover {
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(218,42,52,.55);
}

/* Лого: по центру на мобиле через absolute, чтобы не зависеть от соседей */
@media (max-width: 991px) {
  .header-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2; /* выше nav который absolute */
    pointer-events: auto;
  }
  /* Строка шапки — нужна position:relative для absolute лого */
  .header-row { position: relative; }
}

/* На десктопе — лого статичный, участвует в обычном flex-потоке */
@media (min-width: 992px) {
  .header-logo {
    position: static;
    transform: none;
  }
  .header-burger { display: none !important; }
  .mobile-call-btn { display: none !important; }
}

/* ── МОБИЛЬНОЕ МЕНЮ — полноэкранный оверлей ─────────────────────── */

/* Обёртка всего содержимого мобильного меню */
.mob-menu {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding-bottom: 24px;
}

/* Верхняя панель: крестик + кнопка звонка */
.mob-menu__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  flex-shrink: 0;
}
.mob-menu__close {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  transition: background .18s;
}
.mob-menu__close:hover { background: rgba(218,42,52,.3); border-color: var(--red); }
.mob-menu__call {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  background: var(--red);
  border-radius: 50%;
  color: #fff;
  font-size: 17px;
  box-shadow: 0 4px 14px rgba(218,42,52,.4);
}

/* Навигация */
.mob-menu__nav {
  flex-direction: column !important;
  gap: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  flex-shrink: 0;
}
.mob-menu__nav li {
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.mob-menu__nav li a {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 14px 20px !important;
  font-size: 14.5px !important;
  font-weight: 600 !important;
  color: rgba(255,255,255,.85) !important;
  border-radius: 0 !important;
  background: transparent !important;
  transition: background .15s, color .15s !important;
}
.mob-menu__nav li a:hover,
.mob-menu__nav li a:active { background: rgba(255,255,255,.06) !important; color: #fff !important; }
.mob-menu__nav li a::after { content: '›'; font-size: 18px; color: rgba(255,255,255,.3); font-weight: 400; }

/* Контакты */
.mob-menu__contacts {
  padding: 18px 18px 0;
  flex-shrink: 0;
}
.mob-menu__phone {
  display: block;
  text-decoration: none;
  color: inherit;
}
.mob-menu__phone-num {
  display: block;
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.2px;
  line-height: 1.2;
}
.mob-menu__phone-sub {
  display: block;
  font-size: 11.5px;
  color: rgba(255,255,255,.4);
  margin-top: 2px;
}

/* Соцсети */
.mob-menu__socials {
  display: flex;
  gap: 10px;
  padding: 14px 18px 0;
  flex-shrink: 0;
}
.mob-menu__soc {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  font-size: 17px;
  color: #fff;
  transition: opacity .18s, transform .18s;
}
.mob-menu__soc:hover { opacity: .85; transform: scale(1.08); color: #fff; }
.mob-menu__soc--tg { background: #229ED9; }
.mob-menu__soc--wa { background: #25d366; }
.mob-menu__soc--yt { background: #ff0000; }

/* CTA кнопки — 1 ряд */
.mob-menu__ctas {
  padding: 16px 18px 0;
  display: flex;
  flex-direction: row;
  gap: 8px;
  margin-top: auto;
  flex-shrink: 0;
}
.mob-menu__wa-btn {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  gap: 7px;
  padding: 13px 8px;
  background: #25d366;
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity .18s;
  white-space: nowrap;
}
.mob-menu__wa-btn:hover { opacity: .88; color: #fff; }
.mob-menu__wa-btn .bi { font-size: 17px; color: #fff; }
.mob-menu__cta-btn {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  gap: 7px;
  padding: 13px 8px;
  background: var(--red);
  border-radius: 12px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(218,42,52,.35);
  transition: opacity .18s;
  white-space: nowrap;
}
.mob-menu__cta-btn:hover { opacity: .9; color: #fff; }
.mob-menu__cta-btn .bi { font-size: 15px; }

/* ── BREADCRUMBS — одна строка, последний обрезается ────────────── */
nav[aria-label="breadcrumb"] { overflow: hidden; max-width: 100%; }
.breadcrumb {
  display: flex;
  flex-wrap: nowrap;
  overflow: hidden;
  white-space: nowrap;
  margin: 0; padding: 0;
  font-size: 12.5px;
}
.breadcrumb-item {
  white-space: nowrap;
  flex-shrink: 0;
  overflow: hidden;
}
.breadcrumb-item:last-child {
  text-overflow: ellipsis;
  overflow: hidden;
  flex-shrink: 1;
  max-width: 40%;
}
.breadcrumb-item a { color: #6b7280; font-size: 12.5px; }
.breadcrumb-item a:hover { color: var(--red); }
.breadcrumb-item.active { color: #374151; font-weight: 600; }
.breadcrumb-item + .breadcrumb-item::before { padding: 0 4px; flex-shrink: 0; }

/* ── КАРТОЧКИ ФУНКЦИЙ И ОПЛАТЫ ──────────────────────────────────── */

/* Тёмный блок (используется в мобильном меню и других местах) */
.feat-panel {
  background: #12151f;
  border-radius: 16px;
  padding: 20px 18px;
  margin-top: 20px;
}
.feat-panel__title {
  font-size: 15px; font-weight: 800;
  color: #fff; margin-bottom: 14px; letter-spacing: .2px;
}

/* Грид */
.feat-grid { display: grid; gap: 8px; }
.feat-grid--3   { grid-template-columns: repeat(3, 1fr); }
.feat-grid--2   { grid-template-columns: repeat(2, 1fr); }
.feat-grid--5   { grid-template-columns: repeat(5, 1fr); }
.feat-grid--pay { display: flex !important; flex-wrap: wrap; gap: 8px; }
.feat-grid--pay .feat-card { width: 100px; flex-shrink: 0; }

/* Базовая карточка — тёмная */
.feat-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 14px 10px;
  transition: border-color .2s;
}
.feat-card:hover { border-color: rgba(255,255,255,.18); }
.feat-card--hidden { display: none !important; }
.feat-card--fn { text-align: center; }
.feat-card__icon { font-size: 32px; display: block; line-height: 1; margin-bottom: 9px; }
.feat-card__name { font-size: 12px; font-weight: 700; color: #fff; margin-bottom: 7px; line-height: 1.3; }
.feat-card--pay { text-align: left; display: flex; flex-direction: column; gap: 6px; }
.feat-card__pay-name { font-size: 12.5px; font-weight: 700; color: #fff; line-height: 1.3; }

/* Светлая карточка (на странице товара без тёмного фона) */
.feat-card--light {
  background: #f8f9fc;
  border: 1px solid #e8eaf0;
}
.feat-card--light:hover { border-color: #c8cad6; background: #f0f2f8; }
.feat-card--light .feat-card__name { color: #1a1a2e; }
.feat-card--light .feat-card__pay-name { color: #1a1a2e; }

/* Статус */
.feat-status {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 700; color: #22c55e;
}
.feat-status .bi { font-size: 12px; }

/* Кнопка "показать все" — тёмная */
.feat-show-more {
  display: flex; align-items: center; justify-content: center;
  width: 100%; margin-top: 12px;
  background: rgba(255,255,255,.06);
  border: 1.5px solid rgba(255,255,255,.12);
  color: #fff; font-family: 'Montserrat', sans-serif;
  font-weight: 700; font-size: 13px;
  border-radius: 10px; padding: 11px 16px; cursor: pointer;
  transition: background .2s, border-color .2s; letter-spacing: .2px;
}
.feat-show-more:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.22); }

/* Кнопка "показать все" — светлая */
.feat-show-more--light {
  background: #f0f2f8;
  border-color: #d0d4e8;
  color: #1a1a2e;
  margin-top: 10px;
}
.feat-show-more--light:hover { background: #e4e7f2; border-color: #aab0cc; }

/* Блок функций и оплаты на странице товара (светлый) */
.prod-funcs .feat-card--fn { padding: 10px 4px; }
.prod-funcs .feat-card__icon { font-size: 26px; margin-bottom: 5px; }
.prod-funcs .feat-card__name { font-size: 10px; font-weight: 600; color: #374151; margin-bottom: 0; }
.prod-pays  .feat-card--pay { padding: 10px 8px; flex-direction: column; gap: 4px; text-align: left; }
.prod-pays  .feat-card__pay-name { font-size: 11px; font-weight: 600; color: #374151; }
.prod-pays  .feat-card__icon { font-size: 20px; margin-bottom: 2px; }

/* Адаптив */
@media (max-width: 768px) {
  .feat-grid--5   { grid-template-columns: repeat(4, 1fr); }
  .feat-grid--pay { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 576px) {
  .feat-grid--5   { grid-template-columns: repeat(3, 1fr); }
  .feat-grid--pay { grid-template-columns: repeat(2, 1fr); }
  .feat-grid--3   { grid-template-columns: repeat(2, 1fr); }
  .feat-card__icon { font-size: 28px; }
  .feat-panel { padding: 16px 14px; }
}
@media (max-width: 360px) {
  .feat-grid--5   { grid-template-columns: repeat(2, 1fr); }
  .feat-grid--2   { grid-template-columns: 1fr; }
  .feat-grid--pay { grid-template-columns: repeat(2, 1fr); }
}

/* ── ФУТЕР v2 — компактный тёмный ──────────────────────────────── */
.site-footer--v2 {
  background: #0d0f18;
  border-top: 1px solid rgba(255,255,255,.07);
  color: rgba(255,255,255,.75);
  padding: 0;
}

.footer-desc {
  font-size: 13px;
  color: rgba(255,255,255,.45);
  line-height: 1.6;
  margin: 0;
}

/* Nav */
.footer-nav__list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 0;
}
.footer-nav__list li a {
  display: inline-block;
  font-size: 13px;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  padding: 4px 0;
  transition: color .18s;
}
.footer-nav__list li a:hover { color: #fff; }

/* Contacts */
.footer-contacts-v2 {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}
.footer-contact-item > .bi {
  font-size: 16px;
  color: var(--red, #da2a34);
  flex-shrink: 0;
  margin-top: 2px;
}
.footer-contact-val {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  line-height: 1.3;
}
.footer-contact-val:hover { color: var(--red, #da2a34); }
.footer-contact-val--sm { font-size: 12.5px; font-weight: 500; }
.footer-contact-sub {
  display: block;
  font-size: 11px;
  color: rgba(255,255,255,.38);
  margin-top: 2px;
}

/* Legal */
.footer-legal-v2 {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-legal-company {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,.65);
  margin-bottom: 2px;
}
.footer-legal-item {
  font-size: 12px;
  color: rgba(255,255,255,.38);
}
.footer-legal-item span {
  display: inline-block;
  font-weight: 700;
  color: rgba(255,255,255,.5);
  margin-right: 5px;
}

/* Social circles */
.footer-soc-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  font-size: 17px;
  color: #fff;
  text-decoration: none;
  transition: transform .2s, opacity .2s;
}
.footer-soc-icon:hover { transform: scale(1.1); color: #fff; }
.footer-soc-icon--wa  { background: #25d366; }
.footer-soc-icon--tg  { background: #2aabee; }
.footer-soc-icon--yt  { background: #ff0000; }

/* Messenger CTA buttons */
.footer-messengers {
  display: flex;
  gap: 12px;
  padding-bottom: 32px;
  flex-wrap: wrap;
}
.footer-msg-btn {
  flex: 1 1 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 24px;
  border-radius: 14px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  color: #fff;
  transition: transform .2s, box-shadow .2s;
}
.footer-msg-btn:hover { color: #fff; transform: translateY(-2px); }
.footer-msg-btn--tg {
  background: #2aabee;
  box-shadow: 0 6px 24px rgba(42,171,238,.28);
}
.footer-msg-btn--tg:hover { box-shadow: 0 10px 30px rgba(42,171,238,.4); }
.footer-msg-btn--wa {
  background: #25d366;
  box-shadow: 0 6px 24px rgba(37,211,102,.28);
}
.footer-msg-btn--wa:hover { box-shadow: 0 10px 30px rgba(37,211,102,.4); }
.footer-msg-btn .bi { font-size: 20px; }

/* Divider */
.footer-hr-v2 {
  border: none;
  border-top: 1px solid rgba(255,255,255,.07);
  margin: 0 0 20px;
}

/* Bottom copyright */
.footer-bottom-v2 {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  padding-bottom: 24px;
  font-size: 12px;
  color: rgba(255,255,255,.3);
}

/* Logo text in footer */
.footer-logo-text { text-decoration: none; }
.footer-logo-text .logo-main { font-size: 22px; }
.footer-logo-text .logo-sub  { font-size: 11px; }

@media (max-width: 768px) {
  .footer-top { padding-top: 32px !important; padding-bottom: 24px !important; }
  .footer-messengers { flex-direction: column; gap: 10px; }
  .footer-msg-btn { flex: none; width: 100%; padding: 14px 20px; font-size: 14px; }
  .footer-bottom-v2 { justify-content: center; text-align: center; }
  .footer-nav__list { column-count: 2; display: block; }
  .footer-nav__list li { display: block; }
}
@media (max-width: 576px) {
  .footer-contact-val { font-size: 13px; }
  .footer-msg-btn { font-size: 13.5px; padding: 13px 16px; }
}

/* ── ГЛОБАЛЬНЫЕ ИСПРАВЛЕНИЯ (все экраны) ─────────────────────────── */
html, body { overflow-x: hidden; -webkit-overflow-scrolling: touch; }
*          { overflow-wrap: break-word; word-break: break-word; }
img, video, iframe, embed { max-width: 100%; }

/* Длинные русские слова (САМООБСЛУЖИВАНИЯ и т.п.) */
.hero-title,
.section-title,
.product-title,
.project-hero__title,
.article-title,
.calc-title {
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}


/* ══════════════════════════════════════════════════════════════════
   ≤ 1024px  iPad landscape / малые ноутбуки
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-inner            { padding: 80px 0 72px; }
  .hero-title            { font-size: clamp(28px, 4.2vw, 48px); }
  .product-card__img     { height: 300px; }
  .calc-card             { padding: 48px 40px; }
  .fn-grid               { grid-template-columns: repeat(2, 1fr); }
  .konstrukt-grid        { grid-template-columns: repeat(2, 1fr); }
}


/* ══════════════════════════════════════════════════════════════════
   ≤ 992px  Планшеты portrait
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 992px) {

  /* Шапка */
  .logo-img              { max-height: 40px; }
  .site-header .container{ padding-left: 16px; padding-right: 16px; }

  /* Герой */
  .hero-has-bg           { min-height: auto; }
  .hero-inner            { padding: 72px 0 60px; }
  .hero-title            { font-size: clamp(26px, 4.8vw, 42px); }
  .hero-form-card        { padding: 26px; }
  .hero-scroll-hint      { display: none !important; }

  /* Секции */
  .products-section,
  .advantages-section,
  .how-section,
  .articles-section,
  .reviews-section,
  .calc-section,
  .map-section,
  .requirements-section,
  .terminals-section,
  .works-section,
  .seo-section,
  .portfolio-section,
  .contact-section       { padding: 56px 0; }

  /* Товары */
  .product-card__img     { height: 260px; }

  /* Статистика */
  .stat-item             { border-right: none; border-bottom: 1px solid rgba(255,255,255,.07); padding: 14px 0; }
  .stat-item:last-child  { border-bottom: none; }

  /* Карта */
  .map-embed-wrap        { height: 320px; }
  #clientsMap            { height: 320px; }

  /* SEO */
  .seo-article           { padding: 28px 22px; }

  /* Калькулятор */
  .calc-card             { padding: 36px 28px; }
}


/* ══════════════════════════════════════════════════════════════════
   ≤ 768px  Телефоны landscape и малые планшеты
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* Шапка */
  .logo-img              { max-height: 36px; }

  /* Герой */
  .hero-has-bg           { min-height: 100svh; }
  .hero-inner            { padding: 72px 8px 56px; }
  .hero-title            { font-size: clamp(30px, 8vw, 40px); line-height: 1.06; }
  .hero-label            { font-size: 10px; letter-spacing: 2.5px; margin-bottom: 10px; }
  .hero-bullets          { margin-top: 14px !important; }
  .hero-bullets li       { font-size: 13.5px; margin-bottom: 8px; display: flex !important; }
  .hero-bullets li:nth-child(n+3) { display: none !important; } /* макс. 2 буллета */
  .hero-cta-row .btn-primary-red { width: 100%; justify-content: center; font-size: 15px; padding: 14px 20px; }
  .hero-cta-row          { margin-top: 22px !important; }

  /* Секции */
  .products-section,
  .advantages-section,
  .how-section,
  .articles-section,
  .reviews-section,
  .calc-section,
  .map-section,
  .requirements-section,
  .terminals-section,
  .works-section,
  .seo-section,
  .portfolio-section,
  .contact-section       { padding: 44px 0; }

  .section-title         { font-size: clamp(20px, 5.5vw, 28px); }
  .section-label         { font-size: 10px; letter-spacing: 2.5px; }

  /* Статистика */
  .stat-num              { font-size: 30px; }
  .stat-label            { font-size: 10px; }

  /* Товары */
  .product-card__img     { height: 220px; }
  .product-card__body    { padding: 16px; }
  .product-card__name    { font-size: 14.5px; }
  .price-new             { font-size: 23px; }

  /* Шаги */
  .step-card             { padding: 18px 14px; }
  .step-num              { font-size: 30px; }
  .step-card p           { font-size: 12px; }

  /* Преимущества */
  .adv-card              { padding: 24px 20px; }
  .adv-card h4           { font-size: 14px; }
  .adv-card p            { font-size: 12.5px; }

  /* Терминалы */
  .fn-grid               { grid-template-columns: 1fr 1fr; gap: 12px; }
  .fn-list-grid          { grid-template-columns: 1fr; gap: 12px; }
  .fn-list-item--pay     { grid-column: 1; }

  /* Портфолио */
  .portfolio-item        { width: 200px; height: 136px; }
  .portfolio-track       { gap: 10px; animation-duration: 26s; }

  /* Видео-отзывы */
  .vr-item               { flex: 0 0 100%; }
  .vr-nav                { width: 36px; height: 36px; font-size: 16px; }

  /* Калькулятор */
  .calc-card             { padding: 24px 18px; border-radius: 16px; }
  .calc-card::before,
  .calc-card::after      { display: none; }
  .calc-title            { font-size: clamp(18px, 5vw, 24px); }

  /* SEO */
  .seo-article           { padding: 22px 18px; }
  .seo-h3                { font-size: 15px; }

  /* Карта */
  .map-embed-wrap        { height: 280px; }
  #clientsMap            { height: 280px; }
  .map-info-card         { border-radius: 14px; }

  /* Продукт */
  .gallery-main img      { height: 260px; }
  .price-new-lg          { font-size: 36px; }

  /* Проекты */
  .project-card__img     { height: 220px; }
  .pg-grid               { grid-template-columns: 1fr 1fr; gap: 8px; }
  .pg-item:first-child   { grid-column: span 2; }

  /* Футер */
  .site-footer           { padding: 36px 0 0; }
  .footer-logo-img       { max-height: 36px; }
}


/* ══════════════════════════════════════════════════════════════════
   ≤ 576px  Телефоны — ниже Bootstrap "sm"
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 576px) {

  /* Глобальный контейнер */
  .container             { padding-left: 14px; padding-right: 14px; }

  /* Шапка */
  .logo-img              { max-height: 32px !important; }
  .site-header .container{ padding-left: 12px; padding-right: 12px; }
  .navbar-toggler        { padding: 2px; }
  .navbar-toggler .bi    { font-size: 1.7rem !important; }

  /* Герой */
  .hero-has-bg           { min-height: 100svh; }
  .hero-inner            { padding: 68px 8px 48px; }
  .hero-title            { font-size: clamp(28px, 7.8vw, 36px); line-height: 1.07; }
  .hero-label            { font-size: 9.5px; letter-spacing: 2px; margin-bottom: 9px; }
  .hero-label::before    { width: 20px; }
  .hero-bullets          { margin-top: 12px !important; }
  .hero-bullets li       { font-size: 13px; margin-bottom: 7px; gap: 8px; display: flex !important; }
  .hero-bullets li:nth-child(n+3) { display: none !important; } /* макс. 2 буллета */
  .hero-cta-row          { gap: 8px; margin-top: 20px !important; }
  .hero-cta-row .btn-primary-red { width: 100%; justify-content: center; font-size: 14.5px; padding: 13px 18px; }

  /* Кнопки */
  .btn-primary-red       { font-size: 13px; padding: 11px 18px; }
  .btn-whatsapp          { font-size: 13px; }

  /* Секции */
  .products-section,
  .advantages-section,
  .how-section,
  .articles-section,
  .reviews-section,
  .calc-section,
  .map-section,
  .requirements-section,
  .terminals-section,
  .works-section,
  .seo-section,
  .portfolio-section,
  .contact-section       { padding: 36px 0; }

  .section-title         { font-size: clamp(18px, 5.8vw, 23px); }
  .section-label         { font-size: 9px; letter-spacing: 2px; }
  .section-desc          { font-size: 13px; }

  /* Статистика */
  .stats-bar             { padding: 16px 0; }
  .stat-num              { font-size: 26px; }
  .stat-sup              { font-size: 18px; }
  .stat-label            { font-size: 9.5px; margin-top: 3px; }
  .stat-item             { padding: 12px 0; }

  /* Товары */
  .product-card__img     { height: 200px; }
  .product-card__body    { padding: 14px; }
  .product-card__name    { font-size: 14px; }
  .product-card__specs   { font-size: 12px; }
  .fn-tag                { font-size: 10.5px; padding: 3px 8px; }
  .price-old             { font-size: 12px; }
  .price-new             { font-size: 21px; }
  .price-label           { font-size: 10px; }
  .product-card__actions { flex-direction: column; gap: 8px; }
  .product-card__actions .btn-whatsapp { width: 100%; justify-content: center; }

  /* Шаги */
  .how-section .row      { gap: 8px; }
  .step-card             { padding: 16px 12px; }
  .step-num              { font-size: 28px; margin-bottom: 8px; }
  .step-card p           { font-size: 11.5px; line-height: 1.5; }

  /* Преимущества */
  .adv-card              { padding: 20px 16px; }
  .adv-icon              { width: 46px; height: 46px; margin-bottom: 12px; border-radius: 12px; }
  .adv-icon .bi          { font-size: 20px; }
  .adv-card h4           { font-size: 13.5px; margin-bottom: 8px; }
  .adv-card p            { font-size: 12px; }

  /* Терминалы */
  .term-slide-inner      { padding: 20px; min-height: 320px; }
  .term-slide-inner img  { max-height: 240px; }
  .fn-grid               { grid-template-columns: 1fr; gap: 10px; }
  .fn-card               { padding: 14px 12px; }
  .fn-card__emoji        { font-size: 24px; margin-bottom: 8px; }
  .fn-card__name         { font-size: 13px; }
  .fn-card__desc         { font-size: 11.5px; }
  .fn-list-grid          { gap: 10px; }
  .fn-list-item          { gap: 10px; }
  .fn-list-icon          { width: 36px; height: 36px; border-radius: 8px; flex-shrink: 0; }
  .fn-list-icon .bi      { font-size: 16px; }
  .fn-list-body strong   { font-size: 12.5px; }
  .fn-list-body p        { font-size: 11px; }
  .term-prev             { left: 2px; }
  .term-next             { right: 2px; }
  .term-arrow            { width: 36px; height: 36px; font-size: 14px; }

  /* Портфолио */
  .portfolio-item        { width: 170px; height: 116px; }
  .portfolio-track       { gap: 10px; animation-duration: 20s; }
  .portfolio-track-wrap::before,
  .portfolio-track-wrap::after { width: 60px; }

  /* Видео-отзывы */
  .vr-carousel-wrap      { gap: 6px; }
  .vr-nav                { width: 32px; height: 32px; font-size: 14px; }

  /* Требования */
  .req-item              { padding: 14px; gap: 10px; }
  .req-icon              { width: 40px; height: 40px; border-radius: 10px; }
  .req-icon .bi          { font-size: 18px; }
  .req-item strong       { font-size: 13px; }
  .req-item p            { font-size: 12px; }
  .req-cta-card          { padding: 22px 16px; }
  .req-cta-card h3       { font-size: 17px; }
  .req-cta-card p        { font-size: 12.5px; }

  /* Карта */
  .map-embed-wrap        { height: 240px; }
  #clientsMap            { height: 240px; }
  .map-info-card         { padding: 18px; border-radius: 12px; }
  .map-info-item         { gap: 10px; margin-bottom: 14px; }
  .map-info-item i       { font-size: 15px; width: 18px; }
  .map-info-item p       { font-size: 13px; }
  .map-info-item strong  { font-size: 10px; }

  /* SEO */
  .seo-article           { padding: 18px 14px; }
  .seo-h3                { font-size: 15px; padding-left: 10px; }
  .seo-visible p,
  .seo-hidden p          { font-size: 13.5px; }

  /* Продукт */
  .gallery-main img      { height: 220px; }
  .gallery-thumb         { width: 58px; height: 58px; }
  .product-title         { font-size: clamp(20px, 6vw, 28px); }
  .price-new-lg          { font-size: 30px; }
  .price-old-lg          { font-size: 15px; }
  .prod-price-card       { padding: 14px; }
  .prod-actions          { flex-direction: column; }
  .prod-actions .btn     { width: 100%; justify-content: center; }
  .product-short-desc    { font-size: 13px; }
  .fn-badge              { font-size: 12px; padding: 5px 10px; }

  /* Проекты */
  .project-hero          { height: 320px; }
  .project-hero__title   { font-size: 22px; }
  .project-card__img     { height: 200px; }
  .project-card__body    { padding: 16px 18px 18px; }
  .project-card__title   { font-size: 14px; }
  .project-card__excerpt { font-size: 12px; }
  .pg-grid               { grid-template-columns: 1fr 1fr; gap: 6px; }
  .pg-item:first-child   { grid-column: span 2; }

  /* Статьи */
  .article-card__img     { height: 180px; }
  .article-card__body h4 a { font-size: 14px; }
  .article-title         { font-size: 22px; }

  /* Контактная форма (перед футером) */
  .contact-section       { padding: 36px 0; }

  /* Футер */
  .site-footer           { padding: 28px 0 0; }
  .footer-logo-img       { max-height: 32px; }
  .footer-heading        { font-size: 12px; margin-bottom: 14px; }
  .footer-links li       { margin-bottom: 8px; }
  .footer-links li a     { font-size: 12.5px; }
  .footer-contacts p     { font-size: 12.5px; margin-bottom: 10px; }
  .social-btn            { font-size: 11.5px; padding: 7px 12px; }
  .legal-item            { font-size: 10.5px; }

  /* Флоатинг виджет */
  .float-widget          { bottom: 14px; right: 14px; }
  .float-btn             { width: 52px; height: 52px; font-size: 20px; }
  .float-menu-item       { font-size: 13px; padding: 9px 16px; }

  /* Хлебные крошки */
  .breadcrumb            { font-size: 12px; }
}


/* ══════════════════════════════════════════════════════════════════
   ≤ 430px  iPhone 14 Pro Max / Pixel 7 Pro / Galaxy S23+
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 430px) {

  .logo-img              { max-height: 30px !important; }
  .navbar-toggler .bi    { font-size: 1.6rem !important; }

  .hero-inner            { padding: 64px 8px 44px; }
  .hero-title            { font-size: clamp(27px, 7.5vw, 34px); line-height: 1.07; }

  .stat-num              { font-size: 24px; }
  .stat-sup              { font-size: 17px; }
  .stat-label            { font-size: 9px; }

  .product-card__img     { height: 300px; }

  .gallery-main          { height: 300px; }
  .gallery-main img      { height: 100%; }

  .project-card__img     { height: 190px; }

  .step-card p           { font-size: 11px; }
  .step-num              { font-size: 26px; }

  .calc-title            { font-size: 17px; }
  .calc-desc             { font-size: 12.5px; }
  .calc-features li      { font-size: 12px; }

  .map-embed-wrap        { height: 220px; }
  #clientsMap            { height: 220px; }

  .adv-card h4           { font-size: 13px; }
  .adv-card p            { font-size: 12px; }
}


/* ══════════════════════════════════════════════════════════════════
   ≤ 390px  iPhone 14, 15 / Samsung Galaxy S23
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 390px) {

  .container             { padding-left: 12px; padding-right: 12px; }
  .logo-img              { max-height: 28px !important; }

  .hero-inner            { padding: 60px 6px 40px; }
  .hero-title            { font-size: clamp(26px, 7.2vw, 32px); line-height: 1.07; }
  .hero-label            { font-size: 9px; }
  .hero-bullets li       { font-size: 12.5px; }

  .stat-num              { font-size: 22px; }
  .stat-label            { font-size: 9px; letter-spacing: 0; }
  .stat-item             { padding: 10px 0; }

  .product-card__img     { height: 180px; }
  .product-card__name    { font-size: 13.5px; }
  .price-new             { font-size: 20px; }

  .step-num              { font-size: 24px; }
  .step-card             { padding: 14px 10px; }
  .step-card p           { font-size: 10.5px; }

  .adv-card              { padding: 18px 14px; }
  .adv-icon              { width: 42px; height: 42px; }
  .adv-icon .bi          { font-size: 18px; }
  .adv-card h4           { font-size: 13px; }
  .adv-card p            { font-size: 11.5px; }

  .project-card__img     { height: 180px; }

  .footer-logo-img       { max-height: 28px; }
}


/* ══════════════════════════════════════════════════════════════════
   ≤ 375px  iPhone SE 2 / iPhone 12 Mini / распространённые Android
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 375px) {

  .container             { padding-left: 12px; padding-right: 12px; }
  .site-header .container{ padding-left: 10px; padding-right: 10px; }
  .logo-img              { max-height: 27px !important; }

  /* Герой */
  .hero-inner            { padding: 56px 6px 38px; }
  .hero-title            { font-size: clamp(24px, 6.8vw, 30px); line-height: 1.08; }
  .hero-label            { font-size: 8.5px; letter-spacing: 1.8px; }
  .hero-bullets li       { font-size: 12px; gap: 7px; }
  .hero-bullets .bi      { font-size: 14px; }
  .btn-primary-red       { font-size: 13px; padding: 12px 16px; }

  /* Секции */
  .section-title         { font-size: 18px; }
  .section-label         { font-size: 8.5px; }

  /* Статистика */
  .stat-num              { font-size: 21px; }
  .stat-label            { font-size: 8.5px; }

  /* Товары */
  .product-card__img     { height: 170px; }
  .product-card__body    { padding: 12px; }
  .product-card__name    { font-size: 13px; }
  .product-card__specs   { font-size: 11.5px; }
  .price-new             { font-size: 19px; }

  /* Шаги */
  .step-card             { padding: 14px 10px; }
  .step-num              { font-size: 22px; }
  .step-card p           { font-size: 10.5px; }

  /* Преимущества */
  .adv-card              { padding: 16px 12px; }
  .adv-icon              { width: 40px; height: 40px; border-radius: 10px; }
  .adv-icon .bi          { font-size: 17px; }
  .adv-card h4           { font-size: 13px; }
  .adv-card p            { font-size: 11px; }

  /* Карточка проекта */
  .project-card__img     { height: 170px; }
  .project-card__title   { font-size: 13.5px; }

  /* Статьи */
  .article-card__img     { height: 160px; }

  /* Продукт */
  .gallery-main img      { height: 200px; }
  .price-new-lg          { font-size: 26px; }

  /* Футер */
  .site-footer           { padding: 24px 0 0; }
  .footer-heading        { font-size: 11.5px; margin-bottom: 12px; }
  .footer-links li a     { font-size: 12px; }
  .footer-contacts p     { font-size: 12px; }
}


/* ══════════════════════════════════════════════════════════════════
   ≤ 320px  iPhone SE 1-го поколения — минимальная поддержка
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 320px) {

  .container             { padding-left: 10px; padding-right: 10px; }
  .site-header .container{ padding-left: 8px; padding-right: 8px; }

  /* Шапка */
  .logo-img              { max-height: 24px !important; }
  .logo-main             { font-size: 15px; }
  .logo-sub              { display: none; }
  .navbar-toggler .bi    { font-size: 1.4rem !important; }

  /* Герой */
  .hero-inner            { padding: 50px 4px 32px; }
  .hero-title            {
    font-size: 22px;
    line-height: 1.1;
    overflow-wrap: break-word;
    word-break: break-all;
    hyphens: auto;
    -webkit-hyphens: auto;
  }
  .hero-label            { font-size: 7.5px; letter-spacing: 1.5px; margin-bottom: 5px; }
  .hero-label::before    { width: 16px; }
  .hero-bullets li       { font-size: 11.5px; }
  .hero-cta-row          { margin-top: 16px !important; }
  .btn-primary-red       { font-size: 13px; padding: 12px 14px; }

  /* Секции */
  .section-title         { font-size: 17px; }
  .section-label         { font-size: 8px; letter-spacing: 1.5px; }

  /* Статистика */
  .stats-bar             { padding: 12px 0; }
  .stat-num              { font-size: 19px; }
  .stat-sup              { font-size: 13px; }
  .stat-label            { font-size: 8px; }

  /* Товары */
  .product-card__img     { height: 155px; }
  .product-card__body    { padding: 10px; }
  .product-card__name    { font-size: 12.5px; }
  .price-new             { font-size: 18px; }
  .product-card__actions .btn-primary-red { font-size: 11.5px; padding: 9px 10px; }

  /* Шаги */
  .step-card             { padding: 12px 8px; }
  .step-num              { font-size: 20px; margin-bottom: 6px; }
  .step-card p           { font-size: 10px; line-height: 1.4; }

  /* Преимущества */
  .adv-card              { padding: 14px 10px; }
  .adv-icon              { width: 36px; height: 36px; border-radius: 8px; margin-bottom: 10px; }
  .adv-icon .bi          { font-size: 15px; }
  .adv-card h4           { font-size: 12.5px; }
  .adv-card p            { font-size: 11px; }

  /* Терминалы */
  .fn-card__name         { font-size: 12px; }
  .fn-card__desc         { font-size: 11px; }

  /* Карта */
  .map-embed-wrap        { height: 200px; }
  #clientsMap            { height: 200px; }
  .map-info-item p       { font-size: 12px; }

  /* Продукт */
  .gallery-main img      { height: 190px; }
  .price-new-lg          { font-size: 24px; }

  /* Футер */
  .footer-heading        { font-size: 11px; margin-bottom: 10px; }
  .footer-links li a     { font-size: 11.5px; }
  .footer-contacts p     { font-size: 11.5px; }
  .legal-item            { font-size: 10px; }
  .site-footer           { padding: 20px 0 0; }
}


/* ══════════════════════════════════════════════════════════════════
   ПЛАНШЕТЫ — от 577px до 992px (отдельные уточнения)
   ══════════════════════════════════════════════════════════════════ */
@media (min-width: 577px) and (max-width: 992px) {

  /* Бейджи герой — видимы на планшете */
  .hero-badges           { display: flex !important; }

  /* Телефон в CTA — видим от sm */
  .hero-cta-row .btn-outline-hero { display: inline-flex !important; }

  /* Герой: больше высоты */
  .hero-has-bg           { min-height: 80vh; }
  .hero-inner            { padding: 72px 0 60px; }

  /* Шаги: 3 в ряд */
  .how-section .row      { --bs-gutter-x: 14px; }

  /* Терминалы: 2-3 колонки */
  .fn-grid               { grid-template-columns: repeat(3, 1fr); }

  /* Продукт: нормальная высота галереи */
  .gallery-main img      { height: 360px; }
}


/* ══════════════════════════════════════════════════════════════════
   УТИЛИТЫ ДЛЯ МОБИЛЬНЫХ
   ══════════════════════════════════════════════════════════════════ */

/* Выравнивание текста на мобиле для секций с text-center */
@media (max-width: 576px) {
  .how-section .section-title,
  .advantages-section .section-title,
  .terminals-section .section-title { font-size: 20px; }

  /* Убрать лишние отступы mb-5 → mb-3 на маленьком экране */
  .mb-5 { margin-bottom: 1.5rem !important; }

  /* Калькулятор — кнопка полная ширина */
  .calc-form .btn-primary-red { font-size: 13px; }

  /* Контактная форма — чуть компактнее */
  .contact-form .form-control { font-size: 14px; padding: 10px 14px; }

  /* Форма hero (если вдруг видна) */
  .hero-form-card .form-control { font-size: 14px; padding: 10px 14px; }
  .hero-form-card .btn          { font-size: 13px; }

  /* Страница проекта — хиро */
  .project-hero          { height: 280px; }
  .project-hero__overlay .container { padding-bottom: 24px; }
  .project-hero__title   { font-size: 20px; }
  .project-hero__excerpt { font-size: 13px; }
  .project-hero__city,
  .project-hero__year    { font-size: 11px; }

  /* Сетка галереи проекта */
  .pg-grid               { grid-template-columns: 1fr; gap: 6px; }
  .pg-item:first-child   { grid-column: 1; grid-row: 1; }

  /* Лайтбокс кнопки */
  .lb-prev               { left: 6px; }
  .lb-next               { right: 6px; }

  /* Модальное окно */
  .modal-content         { margin: 10px; }
  .modal-body            { padding: 16px; }
}
