/*responsive.css*/
@media screen and (min-width: 1920px) {
  .hero__description {
    row-gap: 200px;
  }

  .hero-wrapper {
    row-gap: 250px;
  }


  .benefits-services-wrapper {
    grid-template-columns: 500px 1fr;
    grid-column-gap: 300px;
  }
}

@media screen and (max-width: 1600px) {
  .about-cards-wrapper {
    grid-column-gap: 20px;
  }
}

@media screen and (max-width: 1300px) {
  .header, .section, .footer, .hero-wrapper {
    padding-left: 40px;
    padding-right: 40px;
  }

  .header, .footer {

  }

  .section, .footer {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .project-wrapper {
    row-gap: 30px;
  }

  .projects {
    gap: 16px;
  }

  .projects .card:nth-child(8n + 1) .card__title, .projects .card:nth-child(8n) .card__title {
    font-size: 38px;
  }

  .card {
    padding: 24px;
  }

  .menu-wrapper {
    column-gap: 80px;
  }

  .services {
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 16px;
  }

  .logos {
    display: flex;
    flex-wrap: wrap;
  }

  .logos__item {
    /*гап - 10px, кол-во итемов - 5, кол-во гапов - 4*/
    width: calc((100% - (10px * 4)) / 5);
    display: flex;
    justify-content: center;
    flex-grow: 1;
  }

  .desc-block__wrapper {
    row-gap: 30px;
  }

  .desc-wrapper, .partners-wrapper {
    row-gap: 56px;
  }

  .swiper_reviews .swiper-wrapper, .reviews-wrapper__title {
    padding-left: initial;
  }

  .review {
    margin-top: 30px;
    row-gap: 26px;
  }

  .section__top-lead {
    height: 400px;
  }

  .text-lead {
    margin-top: 60px;
  }

  .about-cards-wrapper {
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 16px;
  }

  .about-cards-wrapper .card {
    min-height: 300px;
  }

  .contacts-wrapper {
    grid-gap: 16px;
  }

  .contacts-list {
    row-gap: 16px;
  }

  .slider__inner {
    padding: 50px;
  }

  .benefits-services-wrapper {
    grid-column-gap: 50px;
  }

  .benefits-services {
    grid-column-gap: 16px;
  }

  .benefits-services__inner {
    grid-row-gap: 16px;
  }

  .benefits-services .card__img {
    max-height: 40px;
  }
}

@media screen and (max-width: 1100px) {
  .header, .section, .footer, .hero-wrapper {
    padding-left: 20px;
    padding-right: 20px;
  }

  .header {
    padding-top: 15px;
    padding-bottom: 15px;
  }

  .footer {
    padding-top: 26px;
    padding-bottom: 26px;
  }

  .section {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .project-wrapper {
    row-gap: 16px;
  }

  .projects {
    gap: 12px;
  }

  .projects .card:nth-child(8n + 1) .card__title, .projects .card:nth-child(8n) .card__title {
    font-size: 34px;
  }

  .card {
    padding: 20px;
  }

  .menu-wrapper {
    column-gap: 40px;
  }

  .menu {
    column-gap: 10px;
  }

  .services {
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 12px;
  }

  .logos__item {
    /*гап - 10px, кол-во итемов - 4, кол-во гапов - 3*/
    width: calc((100% - (10px * 3)) / 4);
  }

  .desc-block__wrapper {
    row-gap: 16px;
  }

  .desc-block__wrapper h2 {
    margin-bottom: 16px;
  }

  .desc-wrapper, .partners-wrapper {
    row-gap: 40px;
  }

  .review {
    margin-top: 16px;
    row-gap: 14px;
  }

  .section__top-lead {
    height: 380px;
  }

  .slider__inner {
    padding-left: 30px;
    padding-right: 30px;
  }

  .slider {
    min-height: 600px;
  }

  .lead-services-wrapper {
    grid-template-columns: 1fr;
  }

  .lead-services__inner {
    column-gap: 12px;
  }

  .lead-services__inner-flex {
    row-gap: 12px;
  }

  .lead-services__inner-grid {
    grid-gap: 12px;
  }

  .lead-services__title-desc {
    margin-top: 62px ;
  }

  .benefits-services .card {
    row-gap: 24px;
  }

  .text-block {
    row-gap: 20px;
  }


  .text-slider__inner {
    row-gap: 16px;
  }
}

@media screen and (max-width: 900px) {
  /*todo переделать на флекс контейнеры по 4шт (в пхп тоже)*/
  .projects {
    display: flex;
    flex-direction: column;
    row-gap: 12px;
  }

  /* сброс grid-логики */
  .projects .card {
    grid-column: auto;
    grid-row: auto;
  }

  /* большие остаются большими */
  .projects .card:nth-child(8n + 1),
  .projects .card:nth-child(8n) {
    /* твои "большие" стили */
    grid-row: auto;
  }

  /* --- ПЕРЕСТАНОВКА (пример на 1..16) --- */
  .projects .card:nth-child(1)  { order: 1; }
  .projects .card:nth-child(2)  { order: 2; }
  .projects .card:nth-child(3)  { order: 3; }
  .projects .card:nth-child(4)  { order: 4; }
  .projects .card:nth-child(8)  { order: 5; }  /* подняли 8-ю */
  .projects .card:nth-child(5)  { order: 6; }
  .projects .card:nth-child(6)  { order: 7; }
  .projects .card:nth-child(7)  { order: 8; }

  .projects .card:nth-child(9)  { order: 9; }
  .projects .card:nth-child(10) { order: 10; }
  .projects .card:nth-child(11) { order: 11; }
  .projects .card:nth-child(12) { order: 12; }
  .projects .card:nth-child(16) { order: 13; } /* подняли 16-ю */
  .projects .card:nth-child(13) { order: 14; }
  .projects .card:nth-child(14) { order: 15; }
  .projects .card:nth-child(15) { order: 16; }

  .projects .card:nth-child(8n + 1) .card__title, .projects .card:nth-child(8n) .card__title {
    font-size: 28px;
  }

  .projects .card:nth-child(8n + 1) .card__img, .projects .card:nth-child(8n) .card__img {
    max-width: 200px;
  }

  .burger {
    display: flex;
    z-index: 1;
  }

  .menu-wrapper {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    background-color: var(--blue-dark);

    flex-direction: column;
    justify-content: center;
    row-gap: 120px;
  }

  .menu-wrapper.menu-wrapper--opened {
    display: flex;
  }

  .menu {
    flex-direction: column;
  }

  .menu__item, .menu-wrapper .button-outline {
    font-size: 20px;
  }

  .footer {
    flex-direction: column;
  }

  .logos__item {
    /*гап - 10px, кол-во итемов - 3, кол-во гапов - 2*/
    width: calc((100% - (10px * 2)) / 3);
  }

  .desc-block__wrapper {
    row-gap: 12px;
  }

  .desc-block__wrapper h2 {
    margin-bottom: 6px;
  }

  .desc-wrapper, .partners-wrapper {
    row-gap: 32px;
  }

  .section__top-lead {
    /*height: 300px;*/
  }

  .about-cards-wrapper .card {
    min-height: 350px;
  }

  .info-card {
    grid-template-columns: 1fr;

    height: initial;
  }

  .info-card__inner {
    max-width: initial;
  }

  .info-card__img {
    max-height: 250px;
    object-position: bottom;
  }

  .contacts-wrapper {
    grid-template-columns: 1fr;
  }

  .contacts-wrapper {
    grid-gap: 12px;
  }

  .contacts-list {
    row-gap: 12px;
  }

  .map {
    height: 600px;
  }

  .slider {
    min-height: 550px;
  }

  .text-block--bg-img {
    max-width: 100%;
    padding: 60px 30px;
    border-radius: 24px;
  }

  .hero__inner-top {
    margin-top: 20px;
  }

  .form-wrapper {
    padding: 50px 20px;
  }

  .benefits-services-wrapper {
    grid-template-columns: 1fr;
  }

  .benefits-services .card__img {
    max-height: 30px;
  }

  .text-block {
    row-gap: 16px;
  }


  .text-slider__inner {
    row-gap: 12px;
  }
}

@media screen and (max-width: 670px) {
  .hero__description {
    word-break: break-all;
  }
}

@media screen and (max-width: 600px) {
  .header, .section, .footer, .hero-wrapper {
    padding-left: 10px;
    padding-right: 10px;
  }

  .header {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .footer {
    padding-top: 20px;
    padding-bottom: 20px;
    row-gap: 24px;
    align-items: start;
  }

  .footer__contacts {
    /*flex-direction: column;*/
  }

  .section {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .card {
    padding: 16px;
    border-radius: 24px;
  }

  .projects {
    row-gap: 10px;
  }

  .projects .card__desc {
    font-size: 12px;
  }

  .projects .card:nth-child(8n + 1) .card__title, .projects .card:nth-child(8n) .card__title {
    font-size: 24px;
  }

  .services {
    grid-template-columns: 1fr;
    grid-gap: 10px;
  }

  .card {
    min-height: 170px;
  }

  .logos__item {
    /*гап - 10px, кол-во итемов - 2, кол-во гапов - 1*/
    width: calc((100% - (10px * 1)) / 2);
  }

  .desc-block__text-wrapper {
    grid-template-columns: 1fr;
  }

  .desc-block__wrapper {
    row-gap: 10px;
  }

  .desc-block__wrapper h2,
  .projects .card:nth-child(8n + 1) .card__title,
  .projects .card:nth-child(8n) .card__title{
    word-break: break-word;
  }

  .desc-wrapper, .partners-wrapper {
    row-gap: 16px;
  }

  .review {
    margin-top: 14px;
    row-gap: 10px;
  }

  .section__top-lead {
/*     height: 300px; */
  }

  .text-lead {
    row-gap: 10px;
  }

  .about-cards-wrapper {
    grid-template-columns: 1fr;
    grid-gap: 10px;
  }

  .about-cards-wrapper .card {
    min-height: 210px;
  }

  .card__img {
    max-height: 40px;
  }

  .info-card {
    border-radius: 26px;
  }

  .info-card__inner {
    padding: 36px 32px;
  }

  .info-card__container {
    row-gap: 10px;
  }

  .contacts__title-wrapper {
    height: 250px;
    border-radius: 26px;
    padding: 26px;
  }

  .contacts-wrapper {
    grid-gap: 10px;
  }

  .contacts-list {
    row-gap: 10px;
  }

  .contacts__item {
    height: initial;
    grid-template-columns: 1fr;
    border-radius: 26px;
    padding: 26px;
  }

  .contacts__icon {
    max-width: 30px;
    max-height: 40px;
  }

  .root[data-page-type='contacts'] .section_under-header {
    /*margin-top: initial;*/
  }

  .map {
    /*height: 400px;*/
  }

  .slider {
    border-radius: 24px;
    height: auto;
    flex-direction: column;
    row-gap: initial;
  }

  .image-slider {
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .slider__inner,
  .image-slider {
    flex: 0 0 auto;
    width: 100%;
  }

  .text-block--bg-img {
    padding: 40px 20px;
    border-radius: 24px;
  }

  .lead-services__title-desc {
    display: none;
  }

  .lead-services__title-mob {
    display: flex;
  }

  .lead-services__inner {
    flex-direction: column;
  }

  .lead-services__inner-flex,
  .lead-services-wrapper,
  .lead-services__inner-grid {
    row-gap: 10px;
  }

  .lead-services__inner-grid {
    display: flex;
    flex-direction: column;
  }

  .lead-services__inner-grid .card:nth-child(1) {
    width: initial;
  }

  .hero__inner-top {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .hero__description {
    grid-column: span 2;
  }

  .hero__icon {
    grid-row-start: 2;
  }

  .hero__description {
    row-gap: 16px;
  }

  .hero__icon {
    margin-bottom: initial;
  }

  .advantages {
    row-gap: 16px;
    flex-direction: column;
    align-items: start;
  }

  .advantage__item {
    row-gap: initial;
  }

  .hero__video {
    right: 0;
    /*z-index: -1;*/
    object-position: 75%;
  }

  .hero__video-wrapper {
    height: 50%;
  }

  .hero__description {
    word-break: initial;
  }

  .hero-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;

    background:
      linear-gradient(
        180deg,
        rgba(121, 145, 158, 1) 0%,
        rgba(121, 145, 158, 0) 100%
      ) top / 100% 10% no-repeat;
  }

  .hero-wrapper {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .section.section--increased-vertical-padding {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .lead-services-wrapper .card_need-hover:hover {
    box-shadow: 0 10px 70px 0 var(--red-box-shadow);
  }

  .form-success-wrapper, .form-fail-wrapper {
    row-gap: 10px;
  }

  .form__label[data-input-type="name"],
  .form__label[data-input-type="phone"] {
    width: 100%;
  }

  .form-wrapper {
    background-position: 45%;
  }

  .form {
    row-gap: 10px;
  }

  .form__inner {
    flex-direction: column;
  }

  .form__container {
    row-gap: 20px;
  }

  .form__container .btn-arrow {
    width: 100%;
    height: initial;
    padding: 20px;
    justify-content: space-between;
    border-radius: 20px;
  }

  .form__container .btn-arrow__text {
    display: flex;
    align-items: center;
    column-gap: 10px;
  }

  .benefits-services {
    grid-template-columns: 1fr;
  }

  .benefits-services__inner {
    grid-row-gap: 10px;
  }

  .benefits-services-wrapper {
    grid-row-gap: 16px;
  }

  .benefits-services .card {
    min-height: 200px;
  }

  .benefits-services__inner:nth-child(1),
  .benefits-services__inner:nth-child(2) {
    grid-template-rows: initial;
  }

  .text-slider {
    margin-top: 20px;
    margin-bottom: 20px;
  }

  .text-block {
    row-gap: 10px;
  }

  .text-slider__inner {
    row-gap: 10px;
  }

}
