/* ================================================================
   RESPONSIVE — v8
================================================================ */

/* ----------------------------------------------------------------
   1440px — address grid 5 col (default in style.css)
   1200px — 4 col
---------------------------------------------------------------- */
@media (max-width: 1200px) {
  .addresses-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ----------------------------------------------------------------
   992px — tablet: mobile nav, 2-col pricing, 3-col addresses
---------------------------------------------------------------- */
@media (max-width: 992px) {
  /* --- Nav --- */
  .nav-toggle { display: flex; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 80px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    padding: 14px 24px 20px;
    gap: 2px;
    z-index: 999;
  }
  .nav-menu.is-open { display: flex; }
  .nav-link { width: 100%; padding: 10px 14px; font-size: .9rem; }
  .nav-phone { margin-left: 0; margin-top: 10px; width: 100%; text-align: center; }

  /* --- Pricing: 2 per row --- */
  .parking-card { flex: 0 0 calc(50% - 12px); }

  /* --- Form: 2-col --- */
  .form-row { grid-template-columns: 1fr 1fr; }
  .form-group--btn { grid-column: span 2; }

  /* --- Addresses: 3 col --- */
  .addresses-grid { grid-template-columns: repeat(3, 1fr); }

  /* --- Reduce large hero bg text --- */
  .hbe--p1 { font-size: 200px; }
  .hbe--truck { display: none; }
  .hbe--ring3 { display: none; }
}

/* ----------------------------------------------------------------
   768px — mobile: single-column layouts, simplified hero
---------------------------------------------------------------- */
@media (max-width: 768px) {

  /* --- Hero --- */
  .hero { padding: 140px 0 100px; min-height: auto; }
  .hero__title { font-size: 2rem; line-height: 1.2; }
  .hero__text  { font-size: .95rem; margin-bottom: 28px; }
  .hero__stats { gap: 24px; padding-top: 24px; }
  .hero__stat-num { font-size: 1.5rem; }

  /* Reduce floating icons to avoid clutter */
  .hbe--p1, .hbe--p2, .hbe--ring1, .hbe--ring2,
  .hbe--ring3, .hbe--car2, .hbe--car3, .hbe--key,
  .hbe--boat, .hbe--shield { display: none; }
  .hbe--car1 { width: 130px; opacity: .06; right: 8%; top: 8%; }

  /* Hide all section decoration pseudo-elements — prevents overflow */
  .section-form::before,    .section-form::after,
  .section-price::before,   .section-price::after,
  .section-features::before,.section-features::after,
  .section-services::before,.section-services::after,
  .section-gallery::before, .section-gallery::after,
  .section-contacts::before,.section-contacts::after { display: none; }

  /* --- Form section --- */
  .section-form { margin-top: -50px; padding-bottom: 60px; }
  .form-card { padding: 24px 20px; border-radius: 16px; }
  .form-row  { grid-template-columns: 1fr; gap: 12px; }
  .form-group--btn { grid-column: span 1; }
  .application-btn { padding: 14px 20px; }

  /* --- Pricing: 1 per row, centred --- */
  .parking-card { flex: 0 0 100%; max-width: 440px; }
  .price-grid   { gap: 16px; }

  /* --- Features: single column, keep cards styled --- */
  .features-grid { grid-template-columns: 1fr; gap: 14px; }
  .feature-item  {
    border-radius: 16px;
    border: 1.5px solid var(--border);
    padding: 28px 20px;
  }
  .feature-item:hover { transform: none; box-shadow: none; }

  /* --- Services --- */
  .services-card { padding: 28px 20px; }

  /* --- Clients --- */
  .slider    { height: 180px; }
  .slide     { height: 180px; padding: 0 16px; }
  .slide img { height: 150px; width: 150px; }

  /* --- Gallery --- */
  .gallery-swiper .swiper-slide img { max-height: 300px; }

  /* --- Contacts --- */
  .contact-info-row { grid-template-columns: 1fr; gap: 16px; }
  .addresses-grid   { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .address-card     { padding: 14px; }
  .address-card__city   { font-size: .82rem; }
  .address-card__addr   { font-size: .74rem; }

  /* --- Section spacing --- */
  .section-price    { padding: 60px 0; }
  .section-features { padding: 60px 0; }
  .section-services { padding: 60px 0; }
  .section-gallery  { padding: 60px 0; }
  .section-contacts { padding: 60px 0; }
  .section-clients  { padding: 50px 0 36px; }

  /* --- Section headers --- */
  .section-header { margin-bottom: 40px; }
  .section-header h2 { font-size: 1.75rem; }

  /* --- Floating buttons --- */
  .floating-widgets { bottom: 76px; right: 16px; gap: 10px; }
  .floating-btn { width: 46px; height: 46px; }
  .floating-btn svg { width: 22px; height: 22px; }
}

/* ----------------------------------------------------------------
   576px — small phones
---------------------------------------------------------------- */
@media (max-width: 576px) {

  /* --- Hero --- */
  .hero { padding: 130px 0 80px; }
  .hero__title { font-size: 1.75rem; }
  .hero__badge { font-size: .7rem; padding: 6px 12px; gap: 7px; }
  .hero__badge-dot { width: 6px; height: 6px; }
  .hero__actions { flex-direction: column; gap: 10px; margin-bottom: 36px; }
  .hero__actions .btn-primary,
  .hero__actions .btn-ghost { width: 100%; justify-content: center; padding: 13px 20px; }
  .hero__stats { gap: 16px; flex-wrap: wrap; padding-top: 20px; }
  .hero__stat-num { font-size: 1.35rem; }
  /* Hide the last car icon too on very small */
  .hbe--car1 { display: none; }

  /* --- Form --- */
  .section-form { margin-top: -40px; padding-bottom: 48px; }
  .form-card { padding: 20px 16px; }
  .form-card__header h3 { font-size: 1.15rem; }

  /* --- Pricing --- */
  .parking-card { max-width: 100%; }
  .parking-card__icon { padding: 28px 16px 22px; }
  .parking-card__icon svg { width: 68px; height: 68px; }

  /* --- Section headers --- */
  .section-header h2 { font-size: 1.55rem; }
  .section-header { margin-bottom: 28px; }

  /* --- Addresses: 1-col on very small screens --- */
  .addresses-grid { grid-template-columns: 1fr; gap: 8px; }
  .addresses-header h3 { font-size: .9rem; }
  .addresses-header span { display: none; }

  /* --- Contact info row --- */
  .contact-block { padding: 20px 16px; }
  .contact-block h4 { font-size: .95rem; }

  /* --- Clients slider --- */
  .slider    { height: 150px; }
  .slide     { height: 150px; padding: 0 12px; }
  .slide img { height: 130px; width: 130px; }

  /* --- Section spacing --- */
  .section-price, .section-features, .section-services,
  .section-gallery, .section-contacts { padding: 48px 0; }

  /* --- Services --- */
  .services-card { padding: 24px 16px; }

  /* --- Gallery swiper --- */
  .gallery-swiper .swiper-slide img { max-height: 240px; }
  .gallery-swiper .swiper-button-prev,
  .gallery-swiper .swiper-button-next { width: 38px; height: 38px; }
}

/* ----------------------------------------------------------------
   400px — very narrow devices
---------------------------------------------------------------- */
@media (max-width: 400px) {
  .hero { padding: 120px 0 70px; }
  .hero__title { font-size: 1.55rem; }
  .hero__stat  { gap: 2px; }
  .hero__stat-label { font-size: .65rem; }
  .section-header h2 { font-size: 1.4rem; }
  .form-control { font-size: .85rem; padding: 10px 12px; }
  .parking-card__body h5 { font-size: .9rem; }
}

/* ----------------------------------------------------------------
   Reduced motion
---------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .hero { animation: none; }
  .hero__orb, .hero__orb--blue { animation: none; }
  .hero__scroll-line { animation: none; }
  .hero__badge-dot   { animation: none; }
  .hero__bg-el       { animation: none !important; }
  .hero__dots        { animation: none; }
  .whatsapp-btn, .telegram-btn { animation: none; }
  .address-card, .parking-card,
  .feature-item, .contact-block { transition: none; }
  .section-form::before,    .section-form::after,
  .section-price::before,   .section-price::after,
  .section-features::before,.section-features::after,
  .section-services::before,.section-services::after,
  .section-gallery::before, .section-gallery::after,
  .section-contacts::before,.section-contacts::after { display: none; }
}
