@media (max-width: 1200px) {
    body {
        min-width: 910px;
    }

    .container {
        width: 910px;
    }

    h2 {
        font-size: 36px !important;
        line-height: 46px !important;
    }

    .center-block {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .add-block::before {
        margin-right: 10px;
    }

    .header_text .r1,
    .cases-title {
        font-size: 24px;
        line-height: 38px;
    }

    .portfolio .block {
        justify-content: center;
        gap: 60px;
    }

    .portfolio .kat-block {
        width: 350px;
    }
}

@media (max-width: 940px) {
    body {
        min-width: 720px;
    }

    h2 {
        font-size: 30px !important;
        line-height: 40px !important;
    }

    .container {
        width: 720px;
    }

    .header-top {
        justify-content: space-around;
        gap: 20px;
    }

    .header_phone {
        display: none;
    }

    .header_text .r1,
    .cases-title {
        font-size: 20px;
        line-height: 32px;
    }

    .portfolio .kat-block {
        width: 330px;
    }

    .portfolio .info-block h3 {
        font-size: 21px;
        line-height: 31px;
    }

    .case-card {
        flex: 0 0 calc((100% - 20px) / 2);
    }

    
}

@media (max-width: 1000px) and (min-width: 751px) {}

@media (max-width: 750px) {
    body {
        min-width: 500px;
    }

    h2 {
        font-size: 24px !important;
        line-height: 34px !important;
    }

    h2 span {
        display: block;
    }

    .container {
        width: 500px;
    }

    .header-top {
        justify-content: center;
        flex-direction: column;
        gap: 18px;
    }

    .logo,
    .add-block,
    .phone-block {
        width: 100%;
        min-width: 0;
    }

    .logo {
        background-position: center top;
    }

    .logo img {
        width: 56px;
        height: 56px;
        flex: 0 0 56px;
    }

    .logo .text-logo {
        max-width: none;
    }

    .logo .r1 {
        text-align: left;
    }

    .add-block,
    .phone-block {
        padding-left: 0;
    }

    .add-block::after,
    .phone-block::before {
        display: none;
    }

    /* .logo .text-logo {
        padding-left: 60px;
    }

    .logo .r1 {
        font-size: 21px;
    }

    .logo .r2 {
        font-size: 14px;
    } */

    .phone-block .r1 {
        font-size: 23px;
    }

    .phone-block .r2 {
        font-size: 14px;
    }

    .add-block .r1 {
        font-size: 18px;
        line-height: 21px;
    }

    .add-block .r2 {
        font-size: 14px;
        line-height: 21px;
    }

    .header {
        background-size: cover;
        height: auto;
        padding-bottom: 60px;
    }

    .header_text {
        padding-top: 40px;
    }

    .header_text .r1,
    .cases-title {
        font-size: 23px;
        line-height: 33px;
    }

    .header .quiz {
        padding: 30px 40px;
        height: 560px;
    }

    .portfolio {
        padding-top: 80px;
    }

    .portfolio h2 {
        padding-bottom: 60px;
    }

    .portfolio .info-block h3 {
        font-size: 18px;
        line-height: 25px;
    }

    .portfolio .info-block ul li {
        font-size: 15px;
    }

    .footer p {
        font-size: 13px;
    }

    .footer-links {
        flex-direction: column;
        gap: 8px;
    }

    .footer-links a {
        font-size: 13px;
    }

    

    .cases-subtitle {
        font-size: 15px;
    }

    .case-number {
        font-size: 16px;
    }

    .case-term {
        font-size: 15px;
    }
}

@media (max-width: 750px) and (min-width: 576px) {
    .header-top {
        align-items: center;
    }

    .logo {
        width: auto;
        margin-left: auto;
        margin-right: auto;
    }

    .add-block,
    .phone-block {
        width: auto;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 750px) and (min-width: 601px) {
        .header {
        height: auto;
        min-height: auto;
        background:
        radial-gradient(600px 260px at 10% 8%, rgba(216, 180, 125, 0.2) 0%, rgba(216, 180, 125, 0) 70%),
        radial-gradient(720px 420px at 95% 18%, rgba(9, 37, 127, 0.35) 0%, rgba(9, 37, 127, 0) 72%),
        linear-gradient(180deg, var(--ps-bg-1) 0%, var(--ps-bg-2) 52%, var(--ps-bg-3) 100%);
        position: relative;
        z-index: 1;
        padding-bottom: 60px;
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
        }

        .hide-mobile {
            display: none;
        }
    
}

@media (max-width: 600px) {
        .header {
        height: auto;
        min-height: auto;
        background:
        radial-gradient(600px 260px at 10% 8%, rgba(216, 180, 125, 0.2) 0%, rgba(216, 180, 125, 0) 70%),
        radial-gradient(720px 420px at 95% 18%, rgba(9, 37, 127, 0.35) 0%, rgba(9, 37, 127, 0) 72%),
        linear-gradient(180deg, var(--ps-bg-1) 0%, var(--ps-bg-2) 52%, var(--ps-bg-3) 100%);
        position: relative;
        z-index: 1;
        padding-bottom: 60px;
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
    }

    .hide-mobile {
        display: none;
    }
}

@media (max-width: 600px) and (min-width: 576px) {
        .header {
        height: auto;
        min-height: auto;
        background:
        radial-gradient(600px 260px at 10% 8%, rgba(216, 180, 125, 0.2) 0%, rgba(216, 180, 125, 0) 70%),
        radial-gradient(720px 420px at 95% 18%, rgba(9, 37, 127, 0.35) 0%, rgba(9, 37, 127, 0) 72%),
        linear-gradient(180deg, var(--ps-bg-1) 0%, var(--ps-bg-2) 52%, var(--ps-bg-3) 100%);
        position: relative;
        z-index: 1;
        padding-bottom: 60px;
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
    }

    .hide-mobile {
        display: none;
    }
}

/*Extra small devices (portrait phones, less than 576px)*/
@media (max-width: 575.98px) {
    body {
        min-width: 320px;
    }

    h2 {
        font-size: 19px !important;
        line-height: 25px !important;
    }

    .container {
        width: 300px;
        padding: 0 10px;
    }

    .zv {
        font-size: 10px !important;
        line-height: 14px;
    }


    .header {
        height: auto;
        min-height: auto;
        background:
        radial-gradient(600px 260px at 10% 8%, rgba(216, 180, 125, 0.2) 0%, rgba(216, 180, 125, 0) 70%),
        radial-gradient(720px 420px at 95% 18%, rgba(9, 37, 127, 0.35) 0%, rgba(9, 37, 127, 0) 72%),
        linear-gradient(180deg, var(--ps-bg-1) 0%, var(--ps-bg-2) 52%, var(--ps-bg-3) 100%);
        position: relative;
        z-index: 1;
        padding-bottom: 60px;
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
    }

    .header-top {
        align-items: center;
        gap: 15px;
        padding-top: 20px;
    }

    .logo,
    .add-block,
    .phone-block {
        width: auto;
        margin-left: auto;
        margin-right: auto;
    }



    .logo .r1 {
        font-size: 14px;
    }

    /* .logo {
        height: 40px;
    }

    .logo .text-logo {
        padding-left: 50px;
    }

    .logo .r1 {
        font-size: 18px;
    }

    .logo .r2 {
        font-size: 13px;
    } */

    .center-block {
        gap: 5px;
    }

    .phone-block::before {
        width: 20px;
        height: 20px;
        vertical-align: -10px;
        margin-right: 5px;
    }

    .phone-block .r1 {
        font-size: 21px;
    }

    .phone-block .r2 {
        font-size: 13px;
    }

    .add-block .r1 {
        font-size: 17px;
    }


    .header_phone .submit {
        height: 45px;
        font-size: 12px;
    }

    .header_text {
        padding-top: 30px;
    }

    .header_text .r1,
    .cases-title {
        font-size: 14px;
        line-height: 24px;
    }

    .header .quiz {
        padding: 20px 20px;
        height: 480px;
    }

    .cases-section {
        margin-top: 38px;
    }

    .cases-slider {
        gap: 8px;
    }

    .case-card {
        flex: 0 0 100%;
        min-height: 125px;
        padding: 18px 14px;
    }

    .cases-nav {
        width: 36px;
        height: 36px;
        min-width: 36px;
        font-size: 19px;
        line-height: 36px;
    }

    .input_text {
        margin-bottom: 7px;
        width: 100%;
        padding-left: 0;
        background: #fff;
    }

    .input_text input::-webkit-input-placeholder {
        font-size: 12px;
        color: #656565;
    }

    .input_text input::-moz-placeholder {
        /* Firefox 19+ */
        font-size: 12px;
        color: #656565;
    }

    .input_text input:-ms-input-placeholder {
        font-size: 12px;
        color: #656565;
    }

    .input_text input:-moz-placeholder {
        /* Firefox 18- */
        font-size: 12px;
        color: #656565;
    }

    .request_callback .inputs {
        width: 100%;
        margin: 0 auto;
    }

    .input_text input {
        height: 48px;
        font-size: 12px;
        text-align: center;
        background: none;
    }

    .submit {
        font-size: 12px;
        height: 48px;
        line-height: 48px;
        margin-bottom: 10px;
    }

    .submit .right-button {
        display: none;
    }

    .portfolio {
        padding-top: 40px;
        padding-bottom: 60px;
    }

    .portfolio h2 {
        padding-bottom: 40px;
    }

    .portfolio .block {
        justify-content: center;
        gap: 40px;
    }

    .portfolio .info-block h3 {
        font-size: 16px;
        line-height: 24px;
        padding: 15px 0;
    }

    .portfolio .info-block ul {
        padding: 20px 0;
    }

    .portfolio .photo-block img {
        width: 100%;
    }

    .portfolio .info-block ul li {
        font-size: 13px;
        padding: 7px 0 7px 30px;
        background-position: left 5px;
    }

    .portfolio .info-block .price {
        font-size: 14px;
        padding-bottom: 0;
    }

    .portfolio .submit {
        font-size: 12px;
    }

    .footer p {
        font-size: 10px;
    }

    .footer-links a {
        font-size: 10px;
    }

    /* Custom dialog window */
    .popup-title {
        font-size: 15px;
    }

    .popup-body {
        font-size: 11px;
        padding-top: 22px;
    }

    #popup-title-accepted {
        font-size: 20px;
    }

    #popup-body-accepted {
        font-size: 11px;
        padding-top: 22px;
    }

    .hide-mobile {
        display: none;
    }

    .header__form {
        padding: 30px 20px;
    }

    fieldset {
        flex-direction: column;
    }

    .input_text input[type="tel"] {
        background: none;
    }

}
