/* ==========================================================================
   Адаптивность (Mobile, Tablet, Desktop)
   Rabbit Bouquet — Исключает наложение элементов при любых разрешениях
   ========================================================================== */

/* Ноутбуки и компактные десктопы (до 1140px) */
@media (max-width: 1140px) {
  .nav-menu {
    gap: 12px;
  }
  .nav-link {
    font-size: 0.86rem;
  }
  .header-phone-link {
    font-size: 0.88rem;
  }
  .brand-title {
    font-size: 1.95rem;
  }
}

/* Переход в мобильное меню при ширине <= 1024px */
@media (max-width: 1024px) {
  .top-bar {
    display: none;
  }

  .navbar {
    height: 74px;
  }

  .nav-menu {
    position: fixed;
    top: 74px;
    left: 0;
    width: 100%;
    background: #FFFFFF;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 30px;
    gap: 18px;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-150%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 99;
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .mobile-burger {
    display: flex;
  }

  .header-phone-caption {
    display: none;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-visual {
    order: -1;
  }

  .hero-image-card {
    max-width: 420px;
    margin: 0 auto;
  }

  .hero-image-card img {
    height: 400px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .about-visual {
    order: -1;
  }

  .storefront-card img {
    height: 380px;
  }

  .contacts-grid {
    grid-template-columns: 1fr;
  }

  .contacts-map-wrap {
    min-height: 380px;
  }

  .delivery-cards-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

/* Планшеты (до 768px) */
@media (max-width: 768px) {
  .brand-title {
    font-size: 1.85rem;
  }

  .brand-icon-wrap {
    width: 38px;
    height: 38px;
  }

  .brand-subtext {
    font-size: 0.56rem;
    letter-spacing: 2px;
  }

  .header-phone-btn {
    display: none;
  }

  .hero-section {
    padding: 30px 0 50px;
  }

  .hero-title {
    font-size: 2.1rem;
  }

  .hero-badges {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .floating-card-promo {
    left: 8px;
    top: 14px;
    padding: 10px 14px;
  }

  .floating-card-delivery {
    right: 8px;
    bottom: 14px;
    padding: 10px 14px;
  }

  .section-title {
    font-size: 2.1rem;
  }

  .catalog-empty-banner {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px 20px;
  }

  .catalog-empty-visual {
    height: 200px;
  }

  .about-badge-card {
    position: static;
    margin-top: 14px;
    display: inline-flex;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
  }

  .gallery-card-img-wrap {
    height: 270px;
  }

  .gallery-tab {
    padding: 8px 16px;
    font-size: 0.82rem;
  }

  .hero-thumb-btn {
    width: 50px;
    height: 50px;
    border-radius: 10px;
  }

  .delivery-cards-grid {
    grid-template-columns: 1fr;
  }

  .freshness-banner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 26px 20px;
    gap: 24px;
  }

  .freshness-visual {
    height: 180px;
    order: -1;
  }

  .freshness-banner .btn {
    width: 100%;
  }

  .about-features-list {
    grid-template-columns: 1fr;
  }

  .cart-drawer {
    max-width: 100%;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* Мобильные телефоны (до 480px) */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .brand-title {
    font-size: 1.65rem;
  }

  .hero-title {
    font-size: 1.85rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .catalog-empty-actions,
  .updating-actions,
  .quiz-consult-actions {
    flex-direction: column;
    width: 100%;
  }

  .catalog-empty-actions .btn,
  .updating-actions .btn,
  .quiz-consult-actions .btn {
    width: 100%;
  }

  .storefront-tag {
    bottom: 12px;
    left: 12px;
    right: 12px;
    padding: 10px 14px;
  }

  .storefront-tag h5 {
    font-size: 0.88rem;
  }

  .storefront-tag p {
    font-size: 0.74rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-card-img-wrap {
    height: 320px;
  }

  .bouquets-grid {
    grid-template-columns: 1fr;
  }

  .category-filter-bar {
    gap: 6px;
  }

  .category-tab {
    padding: 7px 14px;
    font-size: 0.8rem;
  }

  .quiz-card {
    padding: 20px 16px;
  }

  .contacts-info-card {
    padding: 22px 16px;
  }

  .map-quick-buttons {
    flex-direction: column;
  }

  .modal-window {
    padding: 0;
  }

  .modal-header {
    padding: 16px 18px;
  }

  .modal-body {
    padding: 18px;
  }

  .modal-footer {
    padding: 14px 18px;
  }
}
