/* Default: Large devices such as laptops, computers (greater than 1024px) *

/* ! ----- Средние устройства (планшеты) -------------------- */
@media only screen and (max-width: 1024px) {
  .contact-text p {
    font-size: 1.3em;
  }
  .contact-text p:not(:last-child) {
    display: none;
  }

  .slide {
    flex-direction: column;
    justify-content: space-around;
  }
  .slide .slide-description {
    width: 100%;
  }

  .slide .slide-image {
    display: none;
  }

  /* Кто мы */
  .about-description {
    flex-direction: column;
  }
}

/* ! ----- Маленькие устройства (смартфоны горизонтально) --------------------*/
@media only screen and (max-width: 768px) {
  /* Преимущества */
  .section-benefits {
    background-color: #ce1e8d;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-image: linear-gradient(
        180deg,
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 255, 255, 0.5) 25%,
        rgba(255, 255, 255, 0.4) 75%,
        rgba(255, 255, 255, 0.2) 100%
      ),
      url("../img/bg_competitions.svg");
  }
  .grid-container {
    gap: 10px;
  }
  .benefit:nth-child(1n) {
    grid-column: span 12;
  }
}

/* ! ----- Остальные устройства (кроме смартфонов) ------------------------- */
/* Перезапускает анимацию для появления слайдера при изменении размера экрана */
@media only screen and (min-width: 577px) {
  .slider-container {
    animation: scaleX-show 1.2s 1;
  }
}

/* ! ----- Маленькие устройства (смартфоны) ------------------------- */
@media only screen and (max-width: 576px) {
  .contact {
    display: none;
  }
  .presentation-wrapper {
    flex-wrap: wrap;
    justify-content: space-between;
    height: calc(100% - 40px);
  }
  .presentation-wrapper button {
    order: 1;
  }
  .presentation-wrapper div {
    order: 2;
    width: calc(100% - 40px);
    height: calc(100% - 56px);
  }
  .slider-container {
    /* transform: scaleY(0); */
    animation: scaleY-show 1.3s 1;
  }
  .nav-button {
    width: calc(100% / 2 - 20px);
    height: 66px;
  }
  /* Презентация */
  .slide-description {
    flex-direction: column;
  }
}
