@media (max-width: 1023px) {
  .modal.portfolio__modal .modal__content {
    padding: 60px 20px 60px 60px;
    width: calc(100vw - 40px);
  }
  h1 {
    font-size: 28px;
  }
  h1 b {
    margin: 4px 0 0;
  }
  .container {
    padding: 0 20px;
  }
  .header__contacts,
  .footer__contacts {
    margin-right: 20px;
  }
  .header__text,
  .footer__text {
    display: none;
  }
  .hero__advantages h3 {
    width: clamp(243.27px, 23.90625vw, 459px);
  }
  .tabs__titles {
    gap: clamp(42.4px, 4.1666666667vw, 80px);
  }
  .portfolio__modal-slider {
    width: 50%;
  }
  .portfolio__modal-title {
    font-size: 26px;
  }
  .why-works__item {
    width: auto;
    height: auto;
    padding: 15px;
  }
  .why-works__item:nth-child(1) {
    width: auto;
  }
  .why-works__item:not(:nth-child(1)) br {
    display: none;
  }
  .team__items {
    gap: 10px;
  }
  .feedback__bg {
    padding: 40px 20px 0 20px;
  }
  .feedback__person {
    margin-left: 10px;
  }
  .feedback__person-image {
    width: auto;
  }
}
@media (max-width: 767px) {
  .modal__content {
    max-width: calc(100% - 20px);
    padding: 40px 20px 20px;
  }
  .modal.portfolio__modal .modal__content {
    padding: 60px 20px 20px;
  }
  .btn {
    font-size: 12px;
  }
  h1 {
    font-size: 24px;
    color: #fff;
  }
  h2 {
    font-size: 20px;
    margin-bottom: 25px;
  }
  .social a {
    width: 26px;
    height: 26px;
  }
  .header .container,
  .footer .container {
    padding: 0 10px;
  }
  .header__btn,
  .footer__btn {
    display: none;
  }
  .header__contacts,
  .footer__contacts {
    margin-right: 10px;
    margin-left: 10px;
  }
  .header__phone,
  .footer__phone {
    -ms-flex-negative: 0;
        flex-shrink: 0;
  }
  .header__phone a,
  .footer__phone a {
    display: -moz-flex;
    display: -ms-flex;
    display: -o-flex;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    font-size: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: url(../img/svg/phone.svg) no-repeat center center #FF8C39;
    background-size: 50%;
  }
  .hero__inner {
    padding-top: 40px;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    margin-bottom: 40px;
  }
  .hero__content h1 {
    text-align: center;
  }
  .hero__content p {
    text-align: center;
    font-size: 15px;
  }
  .hero__btns {
    margin-bottom: 0;
  }
  .hero__btns .btn {
    width: 100%;
  }
  .hero__image:before {
    content: "";
    display: block;
    position: absolute;
    inset: 0;
    background: #000;
    opacity: 0.8;
  }
  .hero__benefit {
    width: 100%;
  }
  .hero__advantages h3 {
    font-size: 20px;
    color: #fff;
  }
  .hero__advantages-items {
    display: -moz-flex;
    display: -ms-flex;
    display: -o-flex;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    gap: 40px;
  }
  .tabs__titles {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    gap: 10px;
  }
  .tabs__title {
    width: 100%;
    font-size: 14px;
  }
  .portfolio__items {
    display: -moz-flex;
    display: -ms-flex;
    display: -o-flex;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
  }
  .portfolio__modal-inner {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    gap: 40px;
  }
  .portfolio__modal-slider {
    width: 100%;
  }
  .portfolio__modal-arrow {
    display: none;
  }
  .portfolio__modal-btn {
    width: 100%;
  }
  .portfolio__modal-btn .btn {
    width: 100%;
  }
  .why-works__items {
    display: -moz-flex;
    display: -ms-flex;
    display: -o-flex;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
  }
  .why-works__item {
    height: auto !important;
    width: 100% !important;
    -webkit-box-orient: vertical !important;
    -webkit-box-direction: normal !important;
        -ms-flex-direction: column !important;
            flex-direction: column !important;
  }
  .why-works__item-text {
    font-size: 12px;
  }
  .why-works__item_style2 .why-works__item-image {
    position: relative;
    -webkit-box-ordinal-group: 0;
        -ms-flex-order: -1;
            order: -1;
    margin-bottom: 20px;
  }
  .why-works__item_style2 .why-works__item-text br {
    display: none;
  }
  .about__inner {
    display: -moz-flex;
    display: -ms-flex;
    display: -o-flex;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
  }
  .about__content {
    padding: 20px;
  }
  .team__items {
    padding: 0;
    -ms-grid-columns: (1fr)[2];
    grid-template-columns: repeat(2, 1fr);
  }
  .feedback__inner {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
  }
  .feedback__content {
    padding-bottom: 40px;
  }
  .feedback .form {
    width: 100%;
  }
  .feedback__person {
    -webkit-box-ordinal-group: 101;
        -ms-flex-order: 100;
            order: 100;
    margin-left: 0;
  }
  .feedback__list {
    margin-left: 0;
    width: 100%;
    padding-bottom: 40px;
  }
}
@media (max-width: 360px) {
  .portfolio__modal-image a {
    height: calc(100vw - 80px);
  }
}