/* ========================================= */
/* 1. ОЧЕНЬ БОЛЬШИЕ ЭКРАНЫ (2560px и больше) */
/* ========================================= */
@media (min-width: 2560px) {
  .header__wrap {
    aspect-ratio: 2560 / 1080;
    background-image: url(../img/header_art_big.png);
  }

  @supports (background-image: url(../img/header_art_big.webp)) {
    .header__wrap {
      background-image: url(../img/header_art_big.webp);
    }
  }

  /* Добавляем белый градиент по бокам */
  .header__wrap::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
      90deg,
      #fff 0%,
      transparent 10%,
      transparent 90%,
      #fff 100%
    );
    box-shadow: none; /* Отключаем 3D-тень, чтобы оставить только белый градиент */
    pointer-events: none;
    z-index: 1;
  }

  .scroll-down-btn {
    bottom: 70px;
  }

  .scroll-down-icon {
    width: 90px;
    height: 75px;
  }

  .header__img img {
    width: 100%;
    height: auto;
    max-height: 1080px;
  }

  .header__container {
    width: 100%;
    max-width: none;
  }

  .swiper-slide {
    width: 35vw;
    height: calc(35vw * 9 / 16);
  }

  .swiper::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: -webkit-gradient(
      linear,
      left top,
      right top,
      from(#78d4ec),
      color-stop(10%, rgba(25, 96, 226, 0)),
      color-stop(90%, rgba(25, 96, 226, 0)),
      to(#78d4ec)
    );
    background: linear-gradient(
      90deg,
      #78d4ec 0%,
      rgba(25, 96, 226, 0) 10%,
      rgba(25, 96, 226, 0) 90%,
      #78d4ec 100%
    );
    z-index: 2;
    pointer-events: none;
  }

  .container { 
    max-width: 1920px; 
    padding-left: 80px; 
    padding-right: 80px; 
  }
 
  .footer__container {
    padding-top: 30px;
    padding-bottom: 30px;
  }
  
  /* Уменьшенные заголовки для гигантских экранов (-25%) */
  .title {
    font-size: 60px;
    line-height: 65px;
  }
  .subtitle {
    font-size: 38px;
    line-height: 45px;
  }
  .descr {
    font-size: 28px;
  }
  .card__title {
    font-size: 24px;
  }
  .card__descr {
    font-size: 22px;
  }
}

/* ========================================= */
/* 2. БОЛЬШИЕ ДЕСКТОПЫ (1921px - 2559px)     */
/* ========================================= */
@media (min-width: 1921px) and (max-width: 2559px) {
  .header__wrap {
    aspect-ratio: 16/9;
    background-image: url(../img/header_art.png);
  }
  @supports (background-image: url(../img/header_art.webp)) {
    .header__wrap {
      background-image: url(../img/header_art.webp);
    }
  }
  .scroll-down-btn {
    bottom: 60px;
  }
  .scroll-down-icon {
    width: 90px;
    height: 75px;
  }
}

/* ========================================= */
/* 3. СРЕДНИЕ ЭКРАНЫ (1450px - 1920px)       */
/* ========================================= */
@media (min-width: 1450px) and (max-width: 1920px) {
  .scroll-down-btn {
    bottom: 60px;
  }
  .scroll-down-icon {
    width: 45px;
    height: auto;
  }
  .header__img img {
    -o-object-fit: cover;
    object-fit: cover;
  }
}

/* ========================================= */
/* 4. НОУТБУКИ И НЕБОЛЬШИЕ ДЕСКТОПЫ (<1440px)*/
/* ========================================= */
@media (max-width: 1440px) {
  .scroll-down-btn {
    bottom: 45px;
  }
  .scroll-down-icon {
    width: 60px;
    height: 48px;
  }

  .about__content {
    display: flex;
    flex-direction: column;
    gap: 30px;
  }
  .about__media,
  .about__info {
    width: 100%;
  }
  .about__info {
    padding: 0;
  }

  /* Уменьшенные заголовки для ноутбуков */
  .title {
    font-size: 38px;
    line-height: 42px;
  }
  .subtitle {
    font-size: 26px;
    line-height: 32px;
  }

  .review__card {
    padding: 30px 40px;
  }
  .review__card::before {
    width: 50px;
    height: 50px;
    top: -20px;
    left: -20px;
  }
  .review__card::after {
    width: 50px;
    height: 50px;
    bottom: -20px;
    right: -20px;
  }

  .safety__list,
  .learning__list {
    gap: 20px;
  }
  .themes__list,
  .reviews__list {
    gap: 20px 30px;
  }
}

/* ========================================= */
/* 5. ПЛАНШЕТЫ (до 1200px)                   */
/* ========================================= */
@media (max-width: 1200px) {
  .swiper-slide {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
  }
  .logo-link {
    display: block;
    margin: 0 auto;
    max-width: 200px;
  }
  .container {
    padding: 0 40px;
  }

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

  .safety__list,
  .themes__list,
  .reviews__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
  }
  .safety__item,
  .themes__item,
  .reviews__item {
    width: calc(50% - 15px);
  }

  .learning__intro-bottom .left,
  .learning__intro-bottom .right {
    display: none;
  }
  .learning__intro-bottom .center {
    grid-column: 1 / 13;
  }

  .footer__container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 80px 20px 40px;
  }
}

/* ========================================= */
/* 6. ПЛАНШЕТЫ ВЕРТИКАЛЬНО (до 992px)        */
/* ========================================= */
@media (max-width: 992px) {
  .brands {
    grid-column: 3 / 11;
    margin-bottom: 10%;
  }
  .swiper-slide {
    width: 500px;
    height: 280px;
  }
}

/* ========================================= */
/* 7. МОБИЛЬНЫЕ УСТРОЙСТВА (768px и меньше)  */
/* ========================================= */
@media (max-width: 768px) {
  .header__wrap {
    aspect-ratio: 600 / 900;
    background-image: url(../img/header_art_small.png);
  }
  @supports (background-image: url(../img/header_art_small.webp)) {
    .header__wrap {
      background-image: url(../img/header_art_small.webp);
    }
  }

  .game-link {
    grid-column: 3 / 11;
  }
  .brands__img-avi {
    width: 60vw;
  }
  .brands__img-game {
    width: 80vw;
  }
  .section {
    padding: 30px 0;
  }

  .scroll-down-btn {
    bottom: 45px;
  }
  .scroll-down-icon {
    width: 35px;
    height: auto;
  }

  .gallery__container .title {
    margin-bottom: 0;
  }
  .swiper {
    padding-top: 30px;
    padding-bottom: 60px;
  }
  .swiper-pagination-bullets.swiper-pagination-horizontal {
    margin-bottom: -20px;
  }

  .app__list {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 0 10px;
  }
  .app__link {
    width: 100% !important;
    max-width: 260px !important;
    display: flex;
    justify-content: center;
  }
  .app__img {
    width: 100% !important;
    height: auto !important;
    display: block;
    object-fit: contain;
  }

  .reg {
    flex-direction: column;
    align-items: center;
  }
  .modal-content {
    width: 95%;
    max-height: 70vh;
  }
  .close {
    top: 10px;
    right: 20px;
    font-size: 30px;
  }
  .carousel-2 .owl-pic {
    height: 200px;
  }
  .carousel-2 .owl-nav button {
    width: 50px;
    height: 50px;
    font-size: 24px !important;
    margin: 0 10px !important;
  }
  .carousel-2 .owl-item {
    padding: 0 10px;
  }

  .container {
    padding: 0 20px;
  }

  .content {
    display: flex;
    flex-direction: column;
    row-gap: 20px;
    padding: 0 10px;
  }

  .learning__intro-bottom {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  /* Уменьшенные заголовки для планшетов/телефонов */
  .title {
    font-size: 28px;
    line-height: 1.1;
    margin-bottom: 20px;
  }
  .subtitle {
    font-size: 20px;
    line-height: 1.2;
    margin-bottom: 20px;
  }
  
  .intro {
    padding: 25px 20px;
    border-radius: 20px;
  }

  .safety__list,
  .themes__list,
  .reviews__list,
  .learning__list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .safety__item,
  .themes__item,
  .reviews__item,
  .learning__item {
    width: 100%;
    max-width: 400px;
  }

  .card {
    padding: 25px 20px;
  }

  .review__card {
    padding: 30px 20px;
    text-align: center;
  }
  .review__card .card__descr {
    text-align: center;
  }
  .review__card::before {
    top: -15px;
    left: -10px;
    width: 45px;
    height: 45px;
  }
  .review__card::after {
    bottom: -15px;
    right: -10px;
    width: 45px;
    height: 45px;
  }

  .skills__list {
    padding: 20px 15px;
    border-radius: 20px;
    gap: 15px;
  }
  .skills__icon {
    width: 40px;
    height: 40px;
  }
  .skills__icon svg {
    width: 20px;
    height: 20px;
  }

  .footer__container {
    padding: 60px 20px 40px;
  }
}

/* ========================================= */
/* 8. МАЛЕНЬКИЕ МОБИЛЬНЫЕ (480px и меньше)   */
/* ========================================= */
@media (max-width: 480px) {
  .brands {
    width: 100%;
    grid-column: 1 / 13;
  }
  .brands__img-avi {
    width: 60vw;
  }
  .brands__img-game {
    width: 80vw;
  }

  .swiper-slide {
    width: 280px !important;
    height: 160px !important;
  }
  .swiper-slide-active {
    -webkit-transform: scale(1.05) !important;
    transform: scale(1.05) !important;
  }
  .swiper-slide-next,
  .swiper-slide-prev {
    -webkit-transform: scale(0.95) !important;
    transform: scale(0.95) !important;
  }
  .swiper-button-next,
  .swiper-button-prev {
    width: 40px;
    height: 40px;
  }
  .swiper-button-next:after,
  .swiper-button-prev:after {
    font-size: 16px;
  }

  .scroll-down-icon {
    width: 25px;
  }

  /* Уменьшенные заголовки для маленьких телефонов */
  .title {
    font-size: 24px;
  }
  .card__title {
    text-wrap: wrap;
    min-width: 100%;
    min-height: 75px;
    margin-bottom: -25px;
    font-size: 18px;
  }
  
  .descr {
    font-size: 16px;
  }
  .card__descr {
    font-size: 15px;
  }
  .card__wrap {
    padding: 30px 10px;
  }
  .app__link {
    max-width: 230px !important;
  }
  .app__img {
    width: 100% !important;
    height: auto !important;
  }
  .logo-link {
    max-width: 130px;
  }
  .modal-content {
    max-height: 60vh;
  }
  .close {
    top: 10px;
    right: 15px;
    font-size: 30px;
  }
  .modal-prev,
  .modal-next {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  .modal-prev {
    margin-left: 5px;
  }
  .modal-next {
    margin-right: 5px;
  }
  .caption {
    font-size: 14px;
  }
  .review__card::before {
    width: 30px;
    height: 30px;
    top: -10px;
    left: -5px;
  }
  .review__card::after {
    width: 30px;
    height: 30px;
    bottom: -10px;
    right: -5px;
  }
}