@media (max-width: 1230px) {
  .nav-list {
    display: none;
  }

  .nav-button {
    display: block;
  }

  .nav.open .nav-list {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;

    z-index: 1;
    padding: 46px 30px;
    display: flex;
    flex-direction: column;
    row-gap: 40px;

    font-size: 34px;
    font-weight: 600;
  }

  .nav-link {
    color: #828282;
  }

  .nav-link.active {
    color: #000;
  }

  .nav-button {
    position: absolute;
    z-index: 9;
    top: 46px;
    right: 30px;
  }

  .nav.open .nav-button {
    position: fixed;
  }

  .header-nav {
    margin-bottom: 50px;
  }

  .header-img {
    text-align: center;
  }
}

@media (max-width: 1058px) {
  .header-row {
    flex-direction: column;
    row-gap: 20px;
  }

  .header-content {
    margin-top: 0;
  }

  .services-row {
    display: flex;
    flex-direction: column;
    column-gap: 30px;
    row-gap: 50px;
    flex-wrap: nowrap;
    align-items: center;
  }

  .service-card {
    flex: 1 1 0;
    max-width: 375px;
  }
}

@media (max-width: 700px) {
  .header-heading {
    font-size: 39px;
    line-height: 1.3;
  }

  .header-img > picture > img {
    height: auto;
  }

  .header-btns {
    text-align: center;
  }

  .services {
    padding: 60px 0;
  }

  .portfolio {
    padding: 60px 0;
  }

  .portfolio-title {
    margin-bottom: 50px;
  }

  .project-img {
    margin-bottom: 30px;
  }

  .project + .project {
    margin-top: 55px;
  }

  .contacts {
    padding: 60px 0;
  }

  .contacts-title {
    margin-bottom: 20px;
  }

  .contacts-content {
    margin-bottom: 20px;
  }

  .contacts-button {
    margin-bottom: 70px;
  }

  .contacts-social {
    column-gap: 50px;
    margin-bottom: 20px;
  }

  .swiper {
    width: 100%; /* Убедиться, что слайды занимают 100% ширины */
    height: auto;
  }
}

@media (max-width: 700px) {
  .swiper {
    width: 100%;
    height: auto;
  }

  .swiper-slide {
    width: 100%;
    opacity: 1;
  }
}

@media (max-width: 460px) {
  .logo-img {
    height: 65px;
  }

  .logo-img {
    margin-right: 28px;
  }
}

@media (max-width: 446px) {
  .header-heading {
    font-size: 36px; /* Увеличен размер шрифта */
    line-height: 1.2; /* Немного больше межстрочного интервала */
  }

  .modal-content > h2 {
    display: inline-block;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
  }
}

@media (max-width: 392px) {
  .logo-img {
    margin-right: 48px;
  }

  .header-heading {
    font-size: 34px; /* Увеличен размер шрифта */
    line-height: 1.3;
  }
}

@media (max-width: 356px) {
  .logo-img {
    margin-right: 58px;
  }
}
