/* Очень большие экраны (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);
    }
  }

  .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); /* Высота = 27vw * 9/16 для соотношения 16:9 */
    /* max-width: 1000px;
    max-height: 562px; */
  }

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

/* Большие экраны (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;
  }
}

/* Средние экраны (1450px - 1920px) */
@media (min-width: 1450px) and (max-width: 1920px) {
  .scroll-down-btn {
    bottom: 45px;
  }

  .scroll-down-icon {
    width: 70px;
    height: 58px;
  }

  .header__img img {
    -o-object-fit: cover;
    object-fit: cover;
  }
}

/* Планшеты и маленькие десктопы (1200px - 1449px) */
@media (min-width: 1200px) and (max-width: 1449px) {
  .about__top,
  .about__bottom,
  .game__container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    padding: 0 20px;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
  }

  .img-wrap {
    display: none;
  }

  .center {
    padding: 0 20px;
    width: 100%;
    max-width: 1100px;
  }

  .card {
    max-width: 100%;
  }
}

/* Планшеты (1024px - 1200px) */
@media (max-width: 1200px) {
  .scroll-down-btn {
    bottom: 45px;
  }

  .scroll-down-icon {
    width: 60px;
    height: 48px;
  }

  .about__top,
  .about__bottom,
  .game__container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    padding: 0 20px;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
  }

  .img-wrap {
    display: none;
  }

  .center {
    padding: 0 20px;
    width: 100%;
    max-width: 1000px;
  }

  .card {
    max-width: 100%;
  }

  .swiper-slide {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
  }

  .footer__container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 30px;
  }

  .logo-link {
    display: block;
    margin: 0 auto;
    max-width: 200px;
  }
}

/* Мобильные устройства (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 {
    -ms-grid-column: 3;
    -ms-grid-column-span: 8;
    grid-column: 3 / 11;
  }

  .about__top,
  .about__bottom,
  .game__container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    padding: 0 10px;
  }

  .img-wrap {
    display: none;
  }

  .center {
    width: 100%;
    padding: 0 10px;
  }

  /* .title {
    font-size: 28px;
  } */

  .card__title::before {
    left: 0;
    right: 0;
    -webkit-transform: skewX(-20deg);
    -ms-transform: skewX(-20deg);
    transform: skewX(-20deg);
  }

  .descr {
    font-size: 20px;
  }

  .card__wrap {
    padding: 60px 15px 30px 15px;
  }

  .advantages__item {
    padding-left: 36px;
    background-size: 20px;
  }

  .section {
    padding: 30px 0;
  }

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

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

  .gallery__container .title {
    margin-bottom: 0;
  }

  .swiper {
    padding-top: 30px;
    padding-bottom: 60px;
  }

  .swiper-pagination-bullets.swiper-pagination-horizontal {
    --swiper-pagination-bottom: 20px;
    margin-bottom: -20px;
  }

  .app__list {
    gap: 15px;
    padding: 0 10px;
  }

  .reg {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
  }

  .modal-content {
    width: 95%;
  }

  .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;
  }
}

/* Маленькие мобильные устройства (480px и меньше) */
@media (max-width: 480px) {
  .about__top,
  .about__bottom,
  .game__container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    padding: 0 5px;
  }

  .swiper-slide {
    width: 440px !important;
    height: 250px !important;
  }

  .swiper-slide-active {
    -webkit-transform: scale(1.05) !important;
    -ms-transform: scale(1.05) !important;
    transform: scale(1.05) !important;
  }

  .swiper-slide-next,
  .swiper-slide-prev {
    -webkit-transform: scale(0.95) !important;
    -ms-transform: scale(0.95) !important;
    transform: scale(0.95) !important;
  }

  .title {
    font-size: 30px;
  }

  .card__title {
    text-wrap: wrap;
    min-width: 330px;
    min-height: 75px;
    margin-bottom: -25px;
  }

  .descr {
    font-size: 16px;
  }

  .card__wrap {
    padding: 30px 10px;
  }

  .footer__container {
    padding: 30px 10px;
  }

  .logo-link {
    max-width: 150px;
  }

  .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: 10px;
  }

  .modal-next {
    margin-right: 10px;
  }
}
