@media (max-width: 1023px) {
    .modal.portfolio__modal .modal__content {
        padding: 60px 20px 60px 60px;
        width: calc(100vw - 40px);
    }

    .modal.portfolio__modal .modal__content .portfolio__modal-inner {
        gap: 20px;
    }

    .modal.portfolio__modal .modal__content .portfolio__modal-inner .portfolio__modal-slider {
        flex-grow: 1;
        display: -webkit-flex;
        display: -moz-flex;
        display: -ms-flex;
        display: -o-flex;
        display: flex;
        -webkit-flex-direction: column;
        -moz-flex-direction: column;
        -ms-flex-direction: column;
        -o-flex-direction: column;
        flex-direction: column;
    }

    .modal.portfolio__modal .modal__content .portfolio__modal-inner .portfolio__modal-images {
        flex-grow: 1
    }

    .modal.portfolio__modal .modal__content .portfolio__modal-inner .portfolio__modal-thumbs {
        flex-shrink: 0;
    }


    h1 {
        font-size: 28px;
    }

    h1 b {
        margin: 4px 0 0;
    }

    .container {
        padding: 0 20px;
    }

    .header__contacts,
    .footer__contacts {
        margin-right: 20px;
    }

    .header__logo,
    .footer__logo {
        margin-right: 20px;
    }

    .header__text,
    .footer__text {
        margin: 0 auto;
    }

    .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 h2 {
        padding-right: 0;
    }

    .feedback__bg {
        padding: 40px 20px 0 20px;
    }

    .feedback__person {
        margin-left: 10px;
    }

    .feedback__person-image {
        width: auto;
    }
}

@media (max-width: 767px) {
    .modal {
        height: 100svh;
    }

    .modal__content {
        max-width: calc(100% - 20px);
        padding: 40px 20px 20px;
    }

    .btn {
        font-size: 12px;
    }

    h1 {
        font-size: 30px;
    }

    h2 {
        font-size: 20px;
        margin-bottom: 25px;
    }

    .social a {
        width: 26px;
        height: 26px;
    }

    .social .phone {
        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;
        width: 26px;
        height: 26px;
        border-radius: 50%;
        background: #FF8C39;
        background-size: 50%;
    }

    .social .phone img {
        width: 50%;
        height: auto;
    }

    .header .container,
    .footer .container {
        padding: 0 10px;
    }

    .header__contacts,
    .footer__contacts {
        margin-right: 10px;
        margin-left: 10px;
    }

    .header__phone,
    .footer__phone {
        display: none;
    }

    .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: 16px;
        padding-left: 0;
        padding-right: 0;
    }

    .hero__btns {
        margin-bottom: 0;
    }

    .hero__btns .btn {
        width: 100%;
        font-size: 14px;
    }

    .hero__image {
        display: none;
    }

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

    .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 {
        overflow: hidden;
        position: relative;
        margin: 0 -20px;
    }

    .portfolio__item-link {
        display: none !important;
    }

    .portfolio__item .modal.portfolio__modal {
        opacity: 1 !important;
        visibility: visible !important;
        height: auto !important;
        position: relative !important;
    }

    .modal.portfolio__modal .modal__close {
        display: none !important;
    }

    .modal.portfolio__modal .modal__content {
        padding: 20px;
        background: #fff;
        border-radius: clamp(6.36px, 0.625vw, 12px);
        border-left: 0;
        border-right: 0;
        width: 100% !important;
        max-width: unset !important;
        height: auto !important;
        max-height: unset !important;
        border-radius: unset !important;
    }

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

    .portfolio__items-arrow {
        display: block;
    }

    .portfolio__items-pagination {
        display: -webkit-flex;
        display: -moz-flex;
        display: -ms-flex;
        display: -o-flex;
        display: flex;
        justify-content: center;
        gap: 10px;
        margin-bottom: 20px;
        padding: 0 20px;
    }

    .portfolio__items-pagination span {
        background: #fff !important;
        width: 10px;
        height: 10px;
        border-radius: 10px;
        border: 1px solid #B8B8B8;
        margin: 0 !important;
        opacity: 1 !important;
        -webkit-transition: .3s;
        -o-transition: .3s;
        transition: .3s;
    }

    .portfolio__items-pagination span.swiper-pagination-bullet-active {
        background: #FF8C39 !important;
        border-color: #FF8C39;
    }

    .portfolio__modal-image a {
        height: 250px;
    }

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

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

    .about__btn {
        display: -moz-flex;
        display: -ms-flex;
        display: -o-flex;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
    }

    .about__btn .btn {
        width: 100%;
        max-width: 250px;
    }

    .team__items {
        padding: 0;
        display: -webkit-flex;
        display: -moz-flex;
        display: -ms-flex;
        display: -o-flex;
        display: flex;
        position: relative;
        margin: 0 -20px;
        padding: 0 20px 20px;
        gap: 20px;
        overflow: auto;
    }

    .team__items&::-webkit-scrollbar {
        height: 4px;
        background: #f6f6f6;
    }

    .team__items&::-webkit-scrollbar-thumb {
        background: #ababab;
    }

    .team__items&::-webkit-scrollbar-track {
        background: #f6f6f6;
    }

    .team__item {
        width: 75vw;
        flex-shrink: 0;
    }

    .team__item-title {
        font-size: 20px;
    }

    .team__item-text span {
        font-size: 16px;
    }

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

    .hero__benefit-title {
        font-size: 20px;
    }

    .why-works__item-title {
        font-size: 20px;
    }

    .alert__error {
        font-size: 12px;
    }

    .portfolio__modal-title {
        margin-bottom: 10px;
    }

    .portfolio__modal-fields {
        margin-bottom: 10px;
    }
}

@media (max-width: 600px) {

    .header__btn,
    .footer__btn {
        display: none;
    }
}

@media (max-width: 459px) {

    .header__text,
    .footer__text {
        display: none;
    }

    .header__contacts,
    .footer__contacts {
        margin-left: auto;
    }
}

@media (max-width: 380px) {
    .team__item-title {
        text-align: center;
        font-size: 14px;
    }

    .team__item-text {
        -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;
        text-align: center;
    }

    .team__item-text br {
        display: none;
    }
}

@media (max-width: 360px) {
    .portfolio__modal-image a {
        height: calc(100vw - 80px);
    }
}


@media (max-width: 767px){.feedbackcontacts-only{flex-direction:column;align-items:stretch}.feedbackcontacts-only .btn{width:100%;min-width:0}}
