/* ===== mobile.css — Оптимизированная версия ===== */
@media screen and (max-width: 768px) {
  

  /* 1. ГЛОБАЛЬНЫЕ СБРОСЫ (Блокировка горизонтального скролла) */
  html, body {
    max-width: 100vw;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
  }

  * {
    box-sizing: border-box !important;
    max-width: 100% !important;
  }

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

  /* 2. СЕКЦИИ И КОНТЕЙНЕРЫ */
  .section,
  .main-section,
  .info-section,
  .products-section {
    width: auto !important;
    max-width: none !important;
    margin: 15px 14px !important;
    padding: 20px var(--container-pad) !important;
  }

  .container, .wrapper, .page-width {
    width: 100%;
    padding-inline: var(--container-pad);
  }

  .content-box {
    padding: 18px 14px !important;
    margin: 15px auto !important;
  }

  .hero {
    padding: 30px 16px !important;
  }

  /* 3. ТИПОГРАФИКА (Общая) */
  h1 { font-size: 1.5rem !important; line-height: 1.2; }
  h2 { font-size: 1.25rem !important; line-height: 1.25; }
  h3 { font-size: 1.1rem !important; line-height: 1.3; }
  p, li { font-size: 1rem !important; line-height: 1.5; }

  /* 4. ИСПРАВЛЕНИЕ ПОЧТЫ (Критический блок) */
  .contact-email,
  .content-box h2,
  .content-box a,
  .content-box p {
    display: block !important;
    width: 100% !important;
    font-size: 1.1rem !important; /* или 4.5vw */
    line-height: 1.4 !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    text-align: center !important;
    margin: 0 auto !important;
    padding: 0 5px !important;
  }

  .contact-email .email-value {
    display: inline-block;
    font-size: 1rem !important;
  }

  .flea-arrow {
    display: none;
  }

  /* 5. НИЖНИЕ БЛОКИ (Partners / About) */
  .partners-row {
    display: flex !important;
    flex-direction: column !important; /* Перевод в колонку */
    align-items: center !important;
    gap: 20px !important;
    height: auto !important;
  }

  .partners-link, .about-link {
    width: 100% !important;
    text-align: center !important;
    padding: 10px 0 !important;
  }

  .partners-link h2, .about-link h2 {
    font-size: 1.3rem !important;
    margin-bottom: 10px !important;
  }

  /* 6. СЕТКИ И КАРТОЧКИ */
  .categories-grid, .product-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  .product-card, .card, .category-card {
    width: 100% !important;
    max-width: none !important;
  }

  img, video { 
    max-width: 100%; 
    height: auto; 
  }

  /* 7. ЭЛЕМЕНТЫ ИНТЕРФЕЙСА */
  .nav, .header-nav, .site-nav { gap: 8px; }
  .nav a, .header-nav a, .site-nav a { padding: 10px 12px; }

  input, select, textarea, button, .btn, .btn-primary {
    width: 100% !important;
    min-height: 44px;
  }

  .qty-btn, .cart-row-remove, .cart-row-qty-stepper, #cart-button,
  .cart-anim-btn, .confirm-order-btn {
    width: auto !important;
    min-height: 0;
  }

  .cart-row {
    flex-wrap: wrap;
  }

  .cart-row-price {
    margin-left: auto;
  }

  .social-icons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 10px 0;
  }

  .social-icons img { width: 40px; height: 40px; }

  /* 8. СПЕЦИФИЧЕСКИЕ ИЗОБРАЖЕНИЯ */
  .hero img {
    width: 70% !important;
    max-width: 320px !important;
    margin: 0 auto 15px !important;
  }

  .ranks-img {
    width: 100%;
    max-width: 380px;
    margin: 0 auto 16px;
  }

  /* 9. СЛАЙДЕРЫ И КНОПКИ */
  .product-slider button.prev,
  .product-slider button.next {
    width: auto !important;
    min-height: auto !important;
    padding: 8px 14px !important;
  }

  /* 10. ФИКСИРОВАННЫЕ ЭЛЕМЕНТЫ */
  .back-home {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1000;
    font-size: 0.85rem;
  }
}