/* ============================================================
   MPI TURBO — Responsive CSS
   Breakpoints: tablet (≤1024px), mobile (≤768px), small (≤480px)
   ============================================================ */

/* ---- TABLET: ≤1024px ---- */
@media (max-width: 1024px) {
  :root {
    --space-3xl: 6rem;
    --space-2xl: 4rem;
  }

  .container {
    padding: 0 var(--space-lg);
  }

  /* Navbar */
  .navbar__links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-nav {
    display: flex;
  }

  /* Hero */
  .hero__turbo-visual {
    width: 38vw;
    right: 2%;
    opacity: 0.5;
  }

  .hero__content {
    max-width: 100%;
    padding-right: calc(38vw + 2rem);
  }

  /* Services */
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Parts */
  .parts__grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  /* Trust */
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Contact */
  .contact__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .contact__map-wrap {
    min-height: 350px;
  }

  /* Reviews */
  .review-card {
    flex: 0 0 320px;
  }
}

/* ---- MOBILE: ≤768px ---- */
@media (max-width: 768px) {
  :root {
    --space-3xl: 5rem;
    --space-2xl: 3rem;
    --space-xl:  3rem;
  }

  .container {
    padding: 0 var(--space-md);
  }

  /* Navbar */
  .navbar {
    padding: var(--space-sm) 0;
  }

  .navbar--scrolled {
    padding: var(--space-xs) 0;
  }

  .navbar__inner {
    gap: var(--space-sm);
  }

  /* Duży przycisk WhatsApp zbędny na mobile — jest pływający + w menu */
  .navbar__right .btn--whatsapp {
    display: none;
  }

  /* Hero */
  .hero__turbo-visual {
    display: none;
  }

  .hero__content {
    max-width: 100%;
    padding-right: var(--space-md);
    padding-bottom: var(--space-2xl);
    text-align: center;
    align-items: center;
    /* Start od góry zamiast centrowania — eyebrow nie chowa się pod navbar */
    justify-content: flex-start;
    padding-top: 96px;
  }

  .hero__title {
    letter-spacing: 0;
    word-break: break-word;
  }

  .hero__eyebrow {
    justify-content: center;
  }

  .hero__subtitle {
    text-align: center;
  }

  .hero__cta-group {
    flex-direction: column;
    width: 100%;
    max-width: 340px;
  }

  .hero__cta-group .btn {
    width: 100%;
    justify-content: center;
  }

  .hero__scroll-hint {
    justify-content: center;
  }

  /* Section header */
  .section-header {
    margin-bottom: var(--space-xl);
  }

  /* Services */
  .services__grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    padding: var(--space-md);
  }

  /* Parts */
  .parts__grid {
    grid-template-columns: 1fr;
  }

  .part-card p {
    opacity: 1;
    transform: none;
  }

  /* Stats */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }

  .stat-card {
    padding: var(--space-lg) var(--space-md);
  }

  /* Trust */
  .trust-grid {
    grid-template-columns: 1fr;
  }

  /* Reviews */
  .review-card {
    flex: 0 0 calc(100vw - 3rem);
  }

  /* Contact */
  .contact__info {
    padding: var(--space-lg);
  }

  /* Floating WA */
  .whatsapp-float {
    width: 54px;
    height: 54px;
    bottom: 1.5rem;
    right: 1.5rem;
  }

  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }

  /* Footer */
  .footer__inner {
    flex-direction: column;
    text-align: center;
  }

  /* Mobile nav links bigger */
  .mobile-nav__links a {
    font-size: 2rem;
  }
}

/* ---- SMALL: ≤480px ---- */
@media (max-width: 480px) {
  :root {
    /* Mniejszy hero — „КОМПРЕСОРИ" (10 znaków) musi zmieścić się w szerokości */
    --text-hero: clamp(2rem, 10vw, 3.2rem);
  }

  .hero__eyebrow::before {
    display: none;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .services__grid {
    grid-template-columns: 1fr;
  }

  .review-card {
    padding: var(--space-md);
  }

  .section-label::before,
  .section-label::after {
    display: none;
  }
}

/* ---- LARGE: ≥1440px ---- */
@media (min-width: 1440px) {
  .container {
    max-width: 1380px;
  }

  .hero__turbo-visual {
    width: 44vw;
    max-width: 700px;
  }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .marquee__track {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ---- High contrast ---- */
@media (prefers-contrast: high) {
  :root {
    --color-text-primary: #ffffff;
    --color-text-secondary: #cccccc;
    --color-border-glass: rgba(240, 180, 41, 0.5);
  }
}
