/* ============================================
   RESPONSIVE.CSS - Auto Lux Service
   All media queries (mobile-first approach)
   ============================================ */

/* --- Tablet (768px+) --- */
@media (min-width: 768px) {
  /* Container */
  .container { padding: 0 40px; }

  /* Typography */
  h1 { font-size: 3rem; }
  h2 { font-size: 2.25rem; }
  h3 { font-size: 1.5rem; }

  /* Section spacing */
  .section { padding: 120px 0; }
  .section-header { margin-bottom: 60px; }

  /* Header */
  .header__nav {
    display: flex;
  }
  .hamburger { display: none; }

  /* Hero */
  .hero__buttons {
    flex-direction: row;
    gap: 16px;
  }
  .hero__buttons .btn {
    width: auto;
  }

  /* Grids */
  .grid-2 { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .problems-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }

  /* Brands */
  .brands-grid { grid-template-columns: repeat(4, 1fr); }
  .brands-grid__cta { grid-column: span 2; }

  /* Reviews */
  .reviews-track .review-card {
    flex: 0 0 calc(50% - 10px);
  }
  .reviews-arrows { display: block; }
  .review-card__text { font-size: 0.8125rem; }

  /* CTA buttons */
  .cta__buttons {
    flex-direction: row;
    justify-content: center;
  }

  /* Contacts */
  .contacts-grid {
    grid-template-columns: 1fr 1fr;
    gap: 60px;
  }

  /* About: same 4-col grid as stats, text spans 2 left, image spans 2 right */
  .about-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    align-items: center;
  }

  .about-grid__text {
    grid-column: 1 / 3;
  }

  .about-grid__image {
    grid-column: 3 / 5;
  }

  .about-grid__image img {
    height: 100%;
    min-height: 320px;
  }

  /* Stats 4 columns */
  .stats-row {
    grid-template-columns: repeat(4, 1fr);
  }

  .stat-card__number { font-size: 2.5rem; }

  /* Timeline horizontal on desktop */
  .timeline {
    flex-direction: row;
    gap: 0;
  }

  .timeline::before {
    left: 0;
    right: 0;
    top: 19px;
    bottom: auto;
    width: auto;
    height: 1px;
    background: linear-gradient(to right, var(--color-red), rgba(227,30,36,0.1));
  }

  .timeline__item {
    flex: 1;
    flex-direction: column;
    gap: 0;
    padding: 0 20px 0 0;
    border-bottom: none !important;
  }

  .timeline__item:not(:last-child) {
    border-bottom: none;
    border-right: none;
  }

  .timeline__marker {
    margin-bottom: 24px;
  }

  .timeline__content {
    padding-top: 0;
  }

  /* Footer */
  .footer__grid {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
  }

  /* Mobile sticky bar stays hidden above 768px */
}

/* --- Desktop (1024px+) --- */
@media (min-width: 1024px) {
  /* Typography */
  h1 { font-size: 3.5rem; }
  h2 { font-size: 2.5rem; }

  /* Header */
  .header__phone { display: flex; }

  /* Hero bg */
  .hero__bg { opacity: 0.3; }

  /* Grids */
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }

  /* Reviews */
  .reviews-track .review-card {
    flex: 0 0 calc(33.333% - 14px);
  }
}

/* --- Mobile only (below 768px) --- */
@media (max-width: 767px) {
  /* Mobile sticky bar */
  .mobile-sticky-bar {
    display: flex;
  }

  body {
    padding-bottom: 56px;
  }

  /* Hero bg on mobile - full width, lower opacity */
  .hero__bg {
    width: 100%;
    opacity: 0.12;
    mask-image: none;
    -webkit-mask-image: none;
  }

  /* Hero subtitle smaller on mobile */
  .hero__subtitle {
    font-size: 0.9375rem;
  }

  /* Hero stats: compact row on mobile */
  .hero__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 28px;
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: none;
  }

  .hero__stats-divider {
    display: none;
  }

  .hero__stats-item {
    font-size: 0.6875rem;
    text-align: center;
    padding: 0 8px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    line-height: 1.3;
  }

  .hero__stats-item:last-child {
    border-right: none;
  }

  .hero__stats-item strong {
    display: block;
    font-size: 1.125rem;
    margin-bottom: 2px;
    color: var(--color-red);
  }

  /* Buttons full width on mobile */
  .hero__buttons .btn {
    width: 100%;
  }

  /* Mobile br */
  .br-mobile { display: inline; }
}

/* Desktop hide mobile br */
@media (min-width: 768px) {
  .br-mobile { display: none; }
}

/* Small phones (440px and below) */
@media (max-width: 440px) {
  .cta-section h2 {
    font-size: 1.375rem;
  }
  .cta-glass {
    padding: 40px 24px;
  }
}

/* Desktop-only br (hidden on mobile) */
.br-desktop { display: none; }
@media (min-width: 768px) {
  .br-desktop { display: inline; }
}
