/* ═══════════════════════════════════════════════════════
   Mobile Enhancement — tnevskie.ru
   Красивая мобильная версия: типографика, карточки,
   модалка, меню, quickbar, footer
   ═══════════════════════════════════════════════════════ */

/* ── 1. HEADER: компактнее, чище ── */
@media (max-width: 760px) {
  .header {
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
  }

  .header__inner {
    padding: 0 0.65rem;
  }

  /* Скрываем кнопку "A+ Жирнее" на маленьких экранах */
  [data-font-mode-toggle] {
    display: none !important;
  }

  /* Бургер-кнопка крупнее и с тач-зоной */
  [data-mobile-toggle] {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    border-radius: 12px;
    transition: background 0.2s;
  }

  [data-mobile-toggle]:active {
    background: rgba(0, 0, 0, 0.06);
  }
}

/* ── 2. HERO: компактнее, лучше акценты ── */
@media (max-width: 760px) {
  .hero {
    padding-top: 2rem;
    padding-bottom: var(--space-8);
  }

  .hero__title {
    font-size: clamp(2.2rem, 8.5vw, 3rem);
    letter-spacing: -0.02em;
    line-height: 1.08;
  }

  .hero__subtitle {
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--site-ink-muted);
  }

  /* Hero-карусель: компактнее */
  .hero-promo__viewport {
    min-height: 270px;
  }

  .hero-promo--stage .hero-promo__viewport {
    min-height: 256px;
  }

  .hero-promo__media {
    min-height: 142px;
  }

  /* Бейджи на hero-карусели: скруглённее, меньше */
  .hero-promo__facts span {
    padding: 0.35rem 0.55rem;
    font-size: 0.62rem;
    border-radius: 8px;
    font-weight: 600;
  }
}

/* ── 3. КАРТОЧКИ КАТАЛОГА: компактные, красивые ── */
@media (max-width: 760px) {
  /* Отступы между карточками */
  #catalog .products-grid {
    gap: 0.85rem;
    padding: 0 0.15rem;
  }

  /* Карточка: скруглённые углы, мягкая тень */
  #catalog .products-grid .product-card {
    border-radius: 20px;
    overflow: hidden;
    border-color: rgba(60, 68, 79, 0.08);
    box-shadow: 0 4px 20px rgba(18, 22, 29, 0.06);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
  }

  #catalog .products-grid .product-card:active {
    transform: scale(0.985);
    box-shadow: 0 2px 12px rgba(18, 22, 29, 0.1);
  }

  /* Изображение: фиксированная высота, object-fit */
  #catalog .products-grid .product-card__media {
    height: 200px;
    overflow: hidden;
    border-radius: 0;
  }

  #catalog .products-grid .product-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  /* Бейджи на карточке: аккуратнее */
  #catalog .products-grid .product-card__badges {
    gap: 0.35rem;
  }

  /* Тело карточки: плотнее */
  #catalog .products-grid .product-card__body {
    padding: 0.85rem 1rem 1rem;
  }

  /* Заголовок: 2 строки макс */
  #catalog .products-grid .product-card__title {
    font-size: 0.95rem;
    -webkit-line-clamp: 2;
    min-height: 2.66em;
    line-height: 1.4;
    margin-bottom: 0.35rem;
  }

  /* Мета (наличие): компактнее */
  #catalog .products-grid .product-card__head {
    margin-bottom: 0.4rem;
  }

  #catalog .products-grid .product-card__meta {
    font-size: 0.6rem;
    padding: 0.3rem 0.55rem;
  }

  /* Цена: крупнее, выделяется */
  #catalog .products-grid .product-card__price {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.01em;
  }

  #catalog .products-grid .product-card__price-old {
    font-size: 0.78rem;
  }

  /* Выгода: ярче */
  #catalog .products-grid .product-card__saving {
    font-size: 0.72rem;
    font-weight: 700;
  }

  /* Кнопки карточки: компактный ряд */
  #catalog .products-grid .product-card__footer--stack {
    gap: 0.5rem;
    padding: 0 1rem 1rem;
  }

  #catalog .products-grid .product-card__footer-row {
    gap: 0.5rem;
  }

  #catalog .products-grid .product-card__footer-row .btn {
    min-height: 42px;
    font-size: 0.82rem;
    border-radius: 12px;
    font-weight: 600;
  }

  /* Факты (шаг дуги, ширина): компактнее */
  #catalog .products-grid .product-card__facts {
    gap: 0.35rem;
    margin-bottom: 0.5rem;
  }

  #catalog .products-grid .product-card__fact {
    font-size: 0.66rem;
    padding: 0.28rem 0.52rem;
  }

  /* Блок цены: отступ */
  #catalog .products-grid .product-card__price-box {
    padding: 0.55rem 0.7rem;
    border-radius: 12px;
    margin-bottom: 0.45rem;
  }
}

/* ── 4. ФИЛЬТРЫ КАТАЛОГА: горизонтальный скролл ── */
@media (max-width: 760px) {
  #catalog .catalog-tabs,
  #catalog .category-filter,
  .category-pills {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.45rem;
    padding-bottom: 0.35rem;
    scroll-snap-type: x mandatory;
  }

  #catalog .catalog-tabs::-webkit-scrollbar,
  #catalog .category-filter::-webkit-scrollbar,
  .category-pills::-webkit-scrollbar {
    display: none;
  }

  #catalog .catalog-tabs > *,
  #catalog .category-filter > *,
  .category-pills > * {
    flex-shrink: 0;
    scroll-snap-align: start;
  }
}

/* ── 5. МОДАЛКА ТОВАРА: полный мобильный UX ── */
@media (max-width: 760px) {
  .product-modal {
    padding: 0;
    background: #fff !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 9999 !important;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .product-modal__dialog {
    width: 100% !important;
    max-width: 100%;
    min-height: 100%;
    border-radius: 0;
    padding: 0;
    margin: 0;
    background: #fff !important;
    box-shadow: none !important;
  }

  .product-modal__close {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    backdrop-filter: blur(8px);
  }

  .product-modal__breadcrumbs {
    font-size: 0.72rem;
    padding: 0.7rem 1rem 0.35rem;
    color: var(--site-ink-muted);
    line-height: 1.4;
  }

  /* Галерея: занимает всю ширину */
  .product-modal__gallery {
    margin: 0;
  }

  .product-modal__image-wrap {
    border-radius: 0;
    aspect-ratio: 4 / 3;
    overflow: hidden;
  }

  .product-modal__image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Миниатюры: горизонтальный скролл */
  .product-modal__thumbs {
    display: flex;
    gap: 0.45rem;
    overflow-x: auto;
    padding: 0.6rem 1rem;
    scrollbar-width: none;
  }

  .product-modal__thumbs::-webkit-scrollbar {
    display: none;
  }

  .product-modal__thumb {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color 0.2s;
  }

  .product-modal__thumb.is-active {
    border-color: var(--site-brand-600, #2d3748);
  }

  /* Контент модалки: отступы */
  .product-modal__content {
    padding: 0 1rem 1rem;
  }

  .product-modal__grid {
    gap: 0;
  }

  /* Заголовок товара: крупнее */
  .product-modal__name {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin-bottom: 0.45rem;
  }

  /* Теги (категория, скидка) */
  .product-modal__meta {
    gap: 0.4rem;
    margin-bottom: 0.55rem;
  }

  /* Карточка цены: акцент */
  .product-modal__price-card {
    border-radius: 16px;
    padding: 0.85rem;
    margin-bottom: 0.7rem;
    background: linear-gradient(135deg, #f7f9fb, #edf2f7);
    border: 1px solid rgba(60, 68, 79, 0.08);
  }

  .product-modal__price-main {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
  }

  /* Варианты длин: крупные тач-кнопки */
  .product-modal__variants {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
    margin-bottom: 0.7rem;
  }

  .product-modal__variants [data-modal-variant] {
    min-height: 44px;
    min-width: 60px;
    padding: 0.55rem 0.85rem;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    border: 2px solid rgba(60, 68, 79, 0.12);
    background: #fff;
    transition: all 0.2s ease;
  }

  .product-modal__variants [data-modal-variant].is-active {
    border-color: var(--site-brand-600, #2d3748);
    background: var(--site-brand-600, #2d3748);
    color: #fff;
    box-shadow: 0 4px 12px rgba(45, 55, 72, 0.2);
  }

  /* Факты/услуги: pill-строки */
  .product-modal__facts,
  .product-modal__service {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.65rem;
  }

  .product-modal__fact,
  .product-modal__service span {
    font-size: 0.72rem;
    padding: 0.38rem 0.65rem;
    border-radius: 10px;
    background: rgba(237, 242, 247, 0.8);
    border: 1px solid rgba(60, 68, 79, 0.06);
  }

  /* Секция допов: красивая рамка */
  .addon-options {
    border-radius: 16px;
    border: 1px solid rgba(60, 68, 79, 0.1);
    padding: 0.85rem;
    background: rgba(247, 250, 252, 0.6);
    margin-bottom: 0.7rem;
  }

  .addon-options__title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
  }

  .addon-options__row {
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(60, 68, 79, 0.06);
    gap: 0.4rem;
  }

  .addon-options__row:last-child {
    border-bottom: none;
  }

  .addon-options__name {
    font-size: 0.88rem;
    font-weight: 500;
  }

  .addon-options__price {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--site-ink);
  }

  .addon-options__length {
    min-height: 36px;
    border-radius: 8px;
    font-size: 0.82rem;
    padding: 0.25rem 0.5rem;
  }

  /* Совет по микроклимату: аккуратная карточка */
  .product-modal__advice {
    border-radius: 16px;
    padding: 0.85rem;
    margin-bottom: 0.7rem;
  }

  /* Информация/описание: отступы */
  .product-modal__info-section {
    padding: 0.85rem 0;
  }

  /* Sticky footer модалки: переработанный */
  .product-modal__sticky-footer {
    position: sticky;
    bottom: 0;
    z-index: 5;
    padding: 0.75rem 1rem;
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(60, 68, 79, 0.08);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.06);
  }

  .product-modal__sticky-footer .btn--cart,
  .product-modal__sticky-footer .btn--primary {
    width: 100%;
    min-height: 50px;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 700;
  }
}

/* ── 6. МОБИЛЬНОЕ МЕНЮ: современный drawer ── */
@media (max-width: 760px) {
  .mobile-menu__panel {
    width: min(88vw, 360px);
    border-radius: 24px 0 0 24px;
    padding: 1.2rem;
    padding-bottom: calc(1.2rem + 96px); /* отступ от quickbar */
    gap: 0.85rem;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.15);
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .mobile-menu__nav {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 1rem;
  }

  .mobile-menu__head {
    padding-bottom: 0.65rem;
    border-bottom: 1px solid rgba(60, 68, 79, 0.08);
    margin-bottom: 0.2rem;
  }

  .mobile-menu__head .mobile-menu__title,
  .mobile-menu__head > *:first-child {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
  }

  /* Пункты меню: крупнее, с тач-зоной */
  .mobile-menu__nav a {
    min-height: 48px;
    padding: 0.72rem 0.85rem;
    border-radius: 14px;
    font-size: 0.92rem;
    font-weight: 500;
    border: 1px solid rgba(60, 68, 79, 0.08);
    background: linear-gradient(180deg, #ffffff, #f8fafb);
    transition: background 0.2s, border-color 0.2s;
    display: flex;
    align-items: center;
  }

  .mobile-menu__nav a:active {
    background: rgba(237, 242, 247, 0.8);
    border-color: rgba(60, 68, 79, 0.16);
  }

  /* Разделитель: категории от страниц */
  .mobile-menu__nav a[href*="catalog"]:first-of-type {
    margin-top: 0.45rem;
    position: relative;
  }

  .mobile-menu__nav a[href*="catalog"]:first-of-type::before {
    content: "";
    position: absolute;
    top: -0.3rem;
    left: 10%;
    right: 10%;
    height: 1px;
    background: rgba(60, 68, 79, 0.1);
  }

  /* Кнопка закрытия */
  .mobile-menu__close {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(237, 242, 247, 0.8);
    border: 1px solid rgba(60, 68, 79, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    transition: background 0.2s;
  }

  .mobile-menu__close:active {
    background: rgba(226, 232, 240, 0.9);
  }
}

/* ── 7. QUICKBAR: улучшенная нижняя панель ── */
@media (max-width: 760px) {
  body {
    padding-bottom: 88px;
  }

  .mobile-quickbar {
    left: 8px;
    right: 8px;
    bottom: 8px;
    bottom: max(8px, env(safe-area-inset-bottom, 0px));
    border-radius: 20px;
    padding: 0.35rem;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(60, 68, 79, 0.1);
    box-shadow:
      0 -4px 24px rgba(0, 0, 0, 0.06),
      0 16px 40px rgba(18, 22, 29, 0.14);
    backdrop-filter: blur(24px) saturate(1.2);
    -webkit-backdrop-filter: blur(24px) saturate(1.2);
  }

  .mobile-quickbar__item {
    min-height: 48px;
    padding: 0.4rem 0.2rem;
    border-radius: 14px;
    border: none;
    background: transparent;
    box-shadow: none;
    transition: background 0.15s;
  }

  .mobile-quickbar__item:active {
    background: rgba(237, 242, 247, 0.7);
  }

  .mobile-quickbar__item strong {
    font-size: 0.64rem;
    font-weight: 700;
  }

  .mobile-quickbar__item small {
    font-size: 0.5rem;
    opacity: 0.65;
  }

  /* Кнопка звонка: тёмный акцент */
  .mobile-quickbar__item--call {
    background: linear-gradient(145deg, #1a202c, #4a5568);
    color: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(26, 32, 44, 0.2);
  }

  .mobile-quickbar__item--call:active {
    background: linear-gradient(145deg, #2d3748, #718096);
  }

  /* Кнопка корзины: зелёный акцент, крупнее */
  .mobile-quickbar__item--cart {
    background: linear-gradient(145deg, #276749, #38a169);
    color: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(39, 103, 73, 0.25);
  }

  .mobile-quickbar__item--cart:active {
    background: linear-gradient(145deg, #22543d, #2f855a);
  }

  .mobile-quickbar__item--cart strong {
    font-size: 0.72rem;
  }

  /* Пульсирующий индикатор на корзине */
  .mobile-quickbar__item--cart.has-items::after {
    top: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    background: #fc8181;
    border: 2px solid #fff;
    animation: cart-pulse 2s infinite;
  }
}

@keyframes cart-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}

/* ── 8. СЕКЦИИ: лучшие отступы и ритм ── */
@media (max-width: 760px) {
  .section {
    padding: var(--space-10) 0;
  }

  .section__eyebrow {
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    margin-bottom: 0.45rem;
  }

  .section__title {
    font-size: clamp(1.55rem, 6.5vw, 2rem);
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 0.5rem;
  }

  .section__subtitle {
    font-size: 0.88rem;
    line-height: 1.55;
    max-width: 32ch;
  }

  /* Разделитель между секциями */
  .section + .section {
    border-top: 1px solid rgba(60, 68, 79, 0.05);
  }
}

/* ── 9. ПОРТФОЛИО КАРТОЧКИ: компактнее ── */
@media (max-width: 760px) {
  .portfolio-card {
    border-radius: 18px;
    overflow: hidden;
  }

  .portfolio-card__media {
    height: 200px;
  }

  .portfolio-card__body {
    padding: 0.85rem;
  }

  .portfolio-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
  }

  .portfolio-card__facts {
    gap: 0.3rem;
  }

  .portfolio-card__fact {
    font-size: 0.68rem;
    padding: 0.3rem 0.55rem;
  }
}

/* ── 10. FOOTER: чище, современнее ── */
@media (max-width: 760px) {
  .footer-pro {
    padding: var(--space-8) 0 var(--space-6);
  }

  .footer-pro__grid {
    gap: var(--space-5);
  }

  .footer-pro__contacts a {
    font-size: 1.05rem;
    font-weight: 600;
    padding: 0.35rem 0;
  }

  .footer-pro__links a {
    font-size: 0.88rem;
    padding: 0.3rem 0;
  }

  .footer-pro__legal {
    border-radius: 16px;
    padding: 1rem;
    font-size: 0.78rem;
    line-height: 1.55;
  }

  .footer-pro__legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
  }

  .footer-pro__legal-links a {
    padding: 0.5rem 0.8rem;
    border-radius: 10px;
    font-size: 0.78rem;
  }

  /* CTA в footer */
  .footer-pro__hero-actions .btn {
    min-height: 50px;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 700;
  }
}

/* ── 11. АКЦИИ СЕКЦИЯ: компактные карточки ── */
@media (max-width: 760px) {
  .promo-card {
    border-radius: 18px;
  }

  .promo-card__body {
    padding: 0.85rem;
  }

  .promo-card__price {
    font-size: 1.25rem;
    font-weight: 800;
  }

  .promo-card__title {
    font-size: 0.92rem;
    -webkit-line-clamp: 2;
  }

  /* Таймер: компактнее */
  .promo-timer {
    border-radius: 16px;
    padding: 0.85rem;
  }

  .promo-timer__value {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 0.04em;
  }
}

/* ── 12. ОБЩИЕ УЛУЧШЕНИЯ ── */
@media (max-width: 760px) {
  /* Кнопки: единообразный стиль */
  .btn {
    border-radius: 12px;
    font-weight: 600;
    min-height: 44px;
    transition: all 0.15s ease;
  }

  .btn:active {
    transform: scale(0.97);
  }

  /* Плавный скролл */
  html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
  }

  /* Убираем горизонтальный overflow */
  body {
    overflow-x: hidden;
  }

  /* Изображения: border-radius */
  img {
    border-radius: inherit;
  }

  /* Карточки advice/upsell в модалке */
  .product-modal__advice-card,
  .advice-card {
    border-radius: 14px;
    padding: 0.8rem;
    font-size: 0.85rem;
    line-height: 1.5;
  }

  /* Таблицы характеристик */
  .product-modal__specs td,
  .product-modal__specs th {
    padding: 0.5rem 0.65rem;
    font-size: 0.82rem;
  }
}

/* ── 13. CHAT FAB: поднять над quickbar ── */
@media (max-width: 760px) {
  .faq-bot,
  .mole-fab,
  [data-mole-fab] {
    bottom: 100px !important;
    right: 12px !important;
    z-index: 999;
    transition: bottom 0.3s ease;
  }

  /* Когда модалка открыта — прячем FAB */
  .product-modal.is-open ~ .faq-bot,
  body.modal-open .faq-bot {
    opacity: 0;
    pointer-events: none;
  }
}

/* ── 14. СКРЫТЬ null-бейджи ── */
@media (max-width: 760px) {
  /* Скрыть бейджи со скидкой null */
  .hero-promo__facts span[class*="discount"]:empty,
  .product-card__badge:empty {
    display: none !important;
  }
}

/* ── 15. О КОМПАНИИ: красивые info-карточки ── */
@media (max-width: 760px) {
  /* Секция О компании */
  #company .section__title,
  #company .company__title {
    font-size: clamp(1.4rem, 5.5vw, 1.8rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
  }

  /* Info-карточки (39 решений, 1 год гарантии и т.д.) */
  .company-stats__card,
  .info-card,
  #company .card,
  .stats-card {
    border-radius: 16px;
    padding: 1rem 1.15rem;
    border: 1px solid rgba(60, 68, 79, 0.08);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafb 100%);
    box-shadow: 0 2px 12px rgba(18, 22, 29, 0.04);
    transition: transform 0.2s ease;
  }

  .company-stats__card:active,
  .info-card:active,
  .stats-card:active {
    transform: scale(0.98);
  }

  /* Большие цифры в карточках */
  .company-stats__value,
  .info-card__value,
  .stats-card__value {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
  }

  .company-stats__label,
  .info-card__label,
  .stats-card__label {
    font-size: 0.78rem;
    color: var(--site-ink-muted, #64748b);
    line-height: 1.4;
  }

  /* Текстовые блоки О компании */
  #company p,
  .company__text {
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--site-ink-muted, #475569);
  }

  /* Пиллы (Инженерный расчёт, Монтаж под ключ) */
  .company__tags,
  #company .pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .company__tag,
  #company .pill {
    padding: 0.5rem 0.85rem;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1.5px solid rgba(60, 68, 79, 0.1);
    background: #fff;
    letter-spacing: 0.02em;
  }

  /* Блок "Надёжные конструкции" */
  .company__feature-card,
  #company .feature-card {
    border-radius: 20px;
    padding: 1.2rem;
    background: linear-gradient(135deg, #f0fdf4 0%, #f7fee7 100%);
    border: 1px solid rgba(34, 197, 94, 0.12);
  }

  .company__feature-card h3,
  #company .feature-card h3 {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 0.55rem;
  }
}

/* ── 16. ДОСТАВКА И ОПЛАТА: информационные блоки ── */
@media (max-width: 760px) {
  #delivery .section__title {
    font-size: clamp(1.4rem, 5.5vw, 1.75rem);
  }

  /* Карточки доставки (Оптовикам, Цены, Гарантия) */
  .delivery-card,
  #delivery .card,
  .info-block {
    border-radius: 18px;
    padding: 1.15rem;
    border: 1px solid rgba(60, 68, 79, 0.08);
    background: #fff;
    box-shadow: 0 2px 12px rgba(18, 22, 29, 0.04);
    margin-bottom: 0.65rem;
  }

  .delivery-card h3,
  #delivery .card h3,
  .info-block h3 {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    margin-bottom: 0.45rem;
    text-transform: uppercase;
  }

  .delivery-card p,
  #delivery .card p,
  .info-block p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--site-ink-muted, #475569);
  }
}

/* ── 17. АКЦИИ: таймер и CTA ── */
@media (max-width: 760px) {
  #akcii .section__title {
    font-size: clamp(1.4rem, 5.5vw, 1.75rem);
  }

  /* Блок акций */
  .promo-block,
  #akcii .card {
    border-radius: 20px;
    padding: 1.2rem;
    border: 1px solid rgba(60, 68, 79, 0.08);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafb 100%);
  }

  .promo-block h3,
  #akcii .card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    margin-bottom: 0.5rem;
  }

  .promo-block p,
  #akcii .card p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--site-ink-muted, #475569);
  }

  /* Таймер обратного отсчёта */
  .countdown,
  .promo-timer,
  .timer-block {
    border-radius: 18px;
    padding: 1rem 1.15rem;
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    color: #fff;
    text-align: center;
  }

  .countdown__label,
  .promo-timer__label,
  .timer-block__label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.7;
    margin-bottom: 0.35rem;
  }

  .countdown__value,
  .promo-timer__value,
  .timer-block__value {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    font-variant-numeric: tabular-nums;
  }

  /* CTA кнопка акций */
  #akcii .btn,
  .promo-block .btn {
    width: 100%;
    min-height: 50px;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 700;
  }
}

/* ── 18. КОНТАКТЫ: чистые ── */
@media (max-width: 760px) {
  #contacts .section__title {
    font-size: clamp(1.4rem, 5.5vw, 1.75rem);
  }

  /* Карточка контактов */
  .contacts-card,
  #contacts .card {
    border-radius: 18px;
    padding: 1.15rem;
    border: 1px solid rgba(60, 68, 79, 0.08);
    background: #fff;
  }

  /* Телефоны: крупные тач-ссылки */
  .contacts__phone,
  #contacts a[href^="tel"] {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--site-ink, #1a202c);
    border-bottom: 1px solid rgba(60, 68, 79, 0.06);
  }

  .contacts__phone:last-child,
  #contacts a[href^="tel"]:last-of-type {
    border-bottom: none;
  }

  /* Соцсети */
  .contacts__social a,
  #contacts a[href*="vk.com"],
  #contacts a[href*="telegram"] {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 1rem;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    border: 1.5px solid rgba(60, 68, 79, 0.1);
    background: #fff;
    transition: background 0.2s;
  }

  .contacts__social a:active,
  #contacts a[href*="vk.com"]:active {
    background: rgba(237, 242, 247, 0.8);
  }
}

/* ── 19. HERO КАРУСЕЛЬ: пагинация и прокрутка ── */
@media (max-width: 760px) {
  /* Индикатор слайдера: красивые точки */
  .hero-promo__dots,
  .hero-promo__counter {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--site-ink-muted, #64748b);
    font-variant-numeric: tabular-nums;
  }

  /* Карусель hero: карточка новинки */
  .hero-promo__card {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(60, 68, 79, 0.08);
    box-shadow: 0 4px 24px rgba(18, 22, 29, 0.06);
  }

  /* Кнопка "Открыть новинку" */
  .hero-promo__cta,
  .hero-promo .btn {
    min-height: 48px;
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 700;
  }

  /* Карусель акций */
  .promo-carousel__card {
    border-radius: 20px;
    overflow: hidden;
  }
}

/* ── 20. ОПТОВИКАМ И СТАТЬИ ── */
@media (max-width: 760px) {
  #wholesalers .section__title,
  #articles .section__title {
    font-size: clamp(1.4rem, 5.5vw, 1.75rem);
  }

  /* Текстовые блоки */
  #wholesalers p,
  #articles p {
    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--site-ink-muted, #475569);
  }

  /* Карточки статей */
  .article-card {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(60, 68, 79, 0.08);
    box-shadow: 0 2px 12px rgba(18, 22, 29, 0.04);
  }

  .article-card__body {
    padding: 0.85rem;
  }

  .article-card__title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
  }
}

/* ── 21. SELECTION & FOCUS: полированность ── */
@media (max-width: 760px) {
  /* Выделение текста в зелёных тонах */
  ::selection {
    background: rgba(56, 161, 105, 0.2);
    color: inherit;
  }

  /* Фокус на интерактивных элементах */
  a:focus-visible,
  button:focus-visible,
  input:focus-visible,
  select:focus-visible {
    outline: 2px solid rgba(45, 55, 72, 0.4);
    outline-offset: 2px;
    border-radius: 8px;
  }

  /* Сглаживание шрифтов */
  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
  }

  /* Убираем tap highlight */
  * {
    -webkit-tap-highlight-color: transparent;
  }
}

/* ── 22. iPhone SE / маленькие экраны (≤375px) ── */
@media (max-width: 375px) {
  .hero__title {
    font-size: 2rem;
  }

  #catalog .products-grid .product-card__title {
    font-size: 0.88rem;
  }

  #catalog .products-grid .product-card__price {
    font-size: 1.2rem;
  }

  .mobile-quickbar {
    gap: 0.3rem;
    padding: 0.3rem;
  }

  .mobile-quickbar__item {
    min-height: 44px;
    padding: 0.35rem 0.15rem;
  }

  .mobile-quickbar__item strong {
    font-size: 0.58rem;
  }
}

/* ── 23. ТЁМНАЯ ТЕМА QUICKBAR (prefers-color-scheme) ── */
@media (max-width: 760px) and (prefers-color-scheme: dark) {
  .mobile-quickbar {
    background: rgba(26, 32, 44, 0.94);
    border-color: rgba(255, 255, 255, 0.08);
  }

  .mobile-quickbar__item {
    color: #e2e8f0;
  }

  .mobile-quickbar__item:active {
    background: rgba(74, 85, 104, 0.4);
  }

  .mobile-quickbar__item small {
    color: rgba(226, 232, 240, 0.6);
  }
}

/* ── 24. АНИМАЦИИ ── */
@media (max-width: 760px) and (prefers-reduced-motion: no-preference) {
  .product-modal__dialog {
    animation: modal-slide-up 0.32s cubic-bezier(0.32, 0.72, 0, 1);
  }

  @keyframes modal-slide-up {
    from {
      opacity: 0;
      transform: translateY(40px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .mobile-menu__panel {
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  }

  #catalog .products-grid .product-card {
    animation: card-fade-in 0.4s ease both;
  }

  @keyframes card-fade-in {
    from {
      opacity: 0;
      transform: translateY(12px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
