/* ==========================================================================
   MEDIA QUERIES (RESPONSIVE)
   ========================================================================== */

/* ========== 1200px ========== */
@media (max-width: 1200px) {
  :root {
    --container-width: 960px;
  }

  .training__cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .coaches__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-us__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========== 1024px ========== */
@media (max-width: 1024px) {
  :root {
    --container-width: 720px;
  }

  .section__title {
    font-size: var(--text-4xl);
  }

  .banner__title {
    font-size: var(--text-6xl);
  }

  .about__inner {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .about__image {
    order: -1;
  }

  .contacts__inner {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .tournament-card {
    flex-direction: column;
    text-align: center;
  }

  .tournament-card__meta {
    justify-content: center;
  }

  .reviews__arrow--prev {
    left: 10px;
  }

  .reviews__arrow--next {
    right: 10px;
  }
}

/* ========== 768px ========== */
@media (max-width: 768px) {
  :root {
    --container-width: 540px;
    --space-4xl: 3rem;
    --space-3xl: 2.5rem;
  }

  .section {
    padding: var(--space-3xl) 0;
  }

  .section__title {
    font-size: var(--text-3xl);
  }

  .section__subtitle {
    font-size: var(--text-base);
  }

  .banner {
    height: 600px;
  }

  .banner__title {
    font-size: var(--text-5xl);
  }

  .banner__subtitle {
    font-size: var(--text-lg);
  }

  .banner__buttons {
    flex-direction: column;
    gap: var(--space-md);
  }

  .training__cards {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .coaches__grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .why-us__grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .stats__number {
    font-size: var(--text-4xl);
  }

  .schedule__table {
    font-size: var(--text-xs);
  }

  .schedule__table thead th,
  .schedule__table tbody td {
    padding: var(--space-md) var(--space-sm);
  }

  .gallery {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__brand p {
    max-width: 100%;
  }

  .footer__social-links {
    justify-content: center;
  }

  .cookie__inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ========== 576px ========== */
@media (max-width: 576px) {
  :root {
    --container-width: 100%;
    --container-padding: 16px;
  }

  .banner__title {
    font-size: var(--text-4xl);
  }

  .banner__subtitle {
    font-size: var(--text-base);
  }

  .section__title {
    font-size: var(--text-2xl);
  }

  .btn--large {
    padding: 16px 32px;
    font-size: var(--text-sm);
  }

  .stats {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
  }

  .stats__item {
    padding: var(--space-lg);
  }

  .stats__number {
    font-size: var(--text-3xl);
  }

  .stats__icon {
    font-size: 2rem;
  }

  .schedule__tabs {
    gap: var(--space-xs);
  }

  .schedule__tab {
    padding: 10px 16px;
    font-size: var(--text-xs);
  }

  .schedule__table-wrapper {
    overflow-x: auto;
  }

  .schedule__table {
    min-width: 600px;
  }

  .tournament-card {
    padding: var(--space-lg);
  }

  .tournament-card__date {
    width: 70px;
    height: 70px;
  }

  .tournament-card__day {
    font-size: var(--text-3xl);
  }

  .modal__content {
    padding: var(--space-xl);
    width: 95%;
  }

  .contacts__map {
    height: 300px;
  }

  .review-card {
    padding: var(--space-lg);
  }

  .review-card-text {
    font-size: var(--text-base);
  }

  .reviews__arrow {
    width: 40px;
    height: 40px;
    font-size: var(--text-base);
  }
}

/* ========== 375px ========== */
@media (max-width: 375px) {
  .banner__title {
    font-size: var(--text-3xl);
  }

  .section__title {
    font-size: var(--text-xl);
  }

  .btn {
    padding: 12px 24px;
    font-size: var(--text-xs);
  }

  .logo__text {
    font-size: 1.5rem;
  }

  .stats__number {
    font-size: var(--text-2xl);
  }

  .stats__label {
    font-size: var(--text-xs);
  }
}

/* ========== LANDSCAPE MOBILE ========== */
@media (max-height: 500px) and (orientation: landscape) {
  .banner {
    height: auto;
    min-height: 100vh;
    padding: 100px 0 60px;
  }

  .banner__title {
    font-size: var(--text-4xl);
  }

  .banner__scroll {
    display: none;
  }
}

/* ========== HIGH RESOLUTION ========== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .about__image img,
  .coach-card__image img,
  .gallery__item img {
    image-rendering: -webkit-optimize-contrast;
  }
}

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ========== PRINT ========== */
@media print {
  .header,
  .banner__balls,
  .banner__parallax,
  .floating-ball,
  .scroll-top,
  .cookie,
  .preloader,
  .cursor-ball,
  .modal {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  .banner {
    height: auto;
    padding: 40px 0;
    background: #fff;
  }

  .banner__title,
  .section__title {
    color: #000;
  }
}