/* =========================================================
   PROJECT CONSULTATION
   ========================================================= */

.form-consultation {
    width: 100%;
    margin: 80px 0;
}

.form-consultation > .inner-width {
    box-sizing: border-box;
}

.form-consultation__panel {
    box-sizing: border-box;

    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;
    min-height: 178px;

    gap: 60px;

    padding: 40px;

    border: 1px solid rgba(196, 171, 239, .18);
    border-radius: 28px;

    background: rgba(43, 33, 68, 0.95);

    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}


/* ---------- Левая часть ---------- */

.form-consultation__content {
    flex: 1 1 auto;

    min-width: 0;
}

.form-consultation__title {
    margin: 0 0 12px;

    font-family: 'Manrope', 'Rubik', Arial, sans-serif;
    font-size: 38px;
    font-weight: 700;
    line-height: 1.25;

    color: #fff;
}

.form-consultation__text {
    margin: 0;

    font-family: 'Manrope', 'Rubik', Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.45;

    color: #A99FC2;
}


/* ---------- Кнопка ---------- */

.form-consultation__button {
    /*box-sizing: border-box;

    flex: 0 0 320px;

    width: 320px;
    height: 72px;
    min-height: 72px;
    padding: 0;

    border-radius: 18px;*/

    margin: 0 auto;
    
}

/*.form-consultation__button > a,
.form-consultation__button > button,
.form-consultation__button input[type="button"],
.form-consultation__button input[type="submit"] {
    box-sizing: border-box;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100% !important;
    height: 72px;
    min-height: 72px;

    margin: 0;
    padding: 16px 32px;

    border-radius: 18px;

    font-family: 'Manrope', 'Rubik', Arial, sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;

    white-space: nowrap;
}
*/

/* =========================================================
   BIG DESKTOP
   1440–1920
   ========================================================= */

@media (min-width: 1440px) and (max-width: 1920px) {

    .form-consultation {
        margin-top: calc(20px + 4.167vw);
        margin-bottom: calc(20px + 4.167vw);
    }

    .form-consultation__panel {
        min-height: calc(44.5px + 9.271vw);

        gap: calc(15px + 3.125vw);

        padding: calc(10px + 2.083vw);

        border-radius: calc(7px + 1.458vw);
    }

    .form-consultation__title {
        margin-bottom: calc(3px + .625vw);

        font-size: calc(8px + 2.083vw);
    }

    .form-consultation__text {
        font-size: calc(4px + .833vw);
    }

    .form-consultation__button {
        flex: 0 0 auto;
        margin: 0;
        height: calc(12px + 2.917vw);
        font-size: calc(2px + .833vw);
    }
}

/* =========================================================
   VERY LARGE DESKTOP
   1921–2650, дальше фиксируем clamp
   ========================================================= */

@media (min-width: 1921px) and (min-device-width: 2200px) {

    .form-consultation {
        margin-top:
            clamp(
                100px,
                calc(-20.986301px + 6.301370vw),
                146px
            );

        margin-bottom:
            clamp(
                100px,
                calc(-20.986301px + 6.301370vw),
                146px
            );
    }

    .form-consultation__panel {
        min-height:
            clamp(
                222px,
                calc(-49px + 14.115vw),
                325px
            );

        gap:
            clamp(
                75px,
                calc(-17.055px + 4.795vw),
                110px
            );

        padding:
            clamp(
                50px,
                calc(-10.493151px + 3.150685vw),
                73px
            );

        border-radius:
            clamp(
                35px,
                calc(-7.082192px + 2.191781vw),
                51px
            );
    }

    .form-consultation__title {
        margin-bottom:
            clamp(
                15px,
                calc(-3.410959px + .958904vw),
                22px
            );

        font-size:
            clamp(
                48px,
                calc(-9.863014px + 3.013699vw),
                70px
            );
    }

    .form-consultation__text {
        font-size:
            clamp(
                20px,
                calc(-3.671233px + 1.232877vw),
                29px
            );
    }

    .form-consultation__button {
        flex: 0 0 auto;
        margin: 0;
        height: clamp(68px, calc(-13.534247px + 4.246575vw), 99px);
        font-size: clamp(18px, calc(-3.041096px + 1.095890vw), 26px);
    }
}

/* =========================================================
   COMPACT DESKTOP
   ========================================================= */

@media (min-width: 1024px) and (max-width: 1278px) {

    .form-consultation {
        margin: 60px 0;
    }

    .form-consultation__panel {
        min-height: 160px;

        gap: 40px;

        padding: calc(-10.3px + 3.937vw);

        border-radius: 24px;
    }

    .form-consultation__title {
        font-size: calc(7.81px + 2.362vw);
    }

    .form-consultation__text {
        font-size: calc(5.94px + .787vw);
    }

    .form-consultation__button {
        /*flex-basis: 280px;

        width: 280px;
        height: 60px;
        min-height: 60px;*/
        margin: 0 auto;
    }

    /*.form-consultation__button > a,
    .form-consultation__button > button,
    .form-consultation__button input[type="button"],
    .form-consultation__button input[type="submit"] {
        height: 60px;
        min-height: 60px;

        font-size: 16px;
    }*/
}


/* =========================================================
   TABLET
   ========================================================= */

@media (min-width: 768px) and (max-width: 1023px) {

    .form-consultation {
        margin: 56px 0;
    }

    .form-consultation__panel {
        flex-direction: column;

        align-items: stretch;

        min-height: 0;

        gap: 28px;

        padding: 32px;

        border-radius: 24px;
    }

    .form-consultation__content {
        text-align: center;
    }

    .form-consultation__title {
        font-size: 32px;
    }

    .form-consultation__text {
        font-size: 16px;
    }

    .form-consultation__button {
        /*flex: none;

        width: 100%;
        max-width: 420px;

        height: 54px;
        min-height: 54px;*/

        margin: 0 auto;
    }

    /*.form-consultation__button > a,
    .form-consultation__button > button,
    .form-consultation__button input[type="button"],
    .form-consultation__button input[type="submit"] {
        height: 54px;
        min-height: 54px;

        border-radius: 12px;

        font-size: 16px;
    }*/
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .form-consultation {
        margin: 40px 0;
    }

    .form-consultation > .inner-width {
        width: auto;
        max-width: none;

        margin-left: 10px;
        margin-right: 10px;
    }

    .form-consultation__panel {
        flex-direction: column;

        align-items: stretch;

        min-height: 0;

        gap: 24px;

        padding: 28px 20px;

        border-radius: 20px;
    }

    .form-consultation__content {
        text-align: center;
    }

    .form-consultation__title {
        margin-bottom: 12px;

        font-size: 24px;
        line-height: 1.25;
    }

    .form-consultation__text {
        font-size: 14px;
        line-height: 1.4;
    }

    .form-consultation__button {
        /*flex: none;

        width: 100%;

        height: 54px;
        min-height: 54px;*/

        margin: 0px auto 0px;
    }

    /*.form-consultation__button > a,
    .form-consultation__button > button,
    .form-consultation__button input[type="button"],
    .form-consultation__button input[type="submit"] {
        width: 100% !important;

        height: 54px;
        min-height: 54px;

        padding: 16px 24px;

        border-radius: 10px;

        font-size: 16px;
    }*/
}

/* Вариант плашки с двумя кнопками */

.form-consultation--two-buttons .form-consultation__actions {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 12px;
}

/* Вторая кнопка — стиль из слайдера кейсов */

.form-consultation--two-buttons .form-consultation__secondary {
    box-sizing: border-box;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 225px;
    height: 54px;
    padding: 0 28px;

    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 12px;

    background: transparent;

    font-family: 'Manrope', Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;

    color: #fff;
    text-decoration: none;
    white-space: nowrap;

    transition:
        border-color .2s ease,
        background-color .2s ease;
}

.form-consultation--two-buttons .form-consultation__secondary:hover {
    border-color: #CAE652;
    background: rgba(255, 255, 255, .06);

    color: #fff;
    text-decoration: none;
}

.form-consultation--two-buttons .form-consultation__button.btn-green-full {
    flex: 0 0 auto;
    width: auto;
    height: 54px;
    margin: 0;
}

.form-consultation--two-buttons .form-consultation__button.btn-green-full > a {
    padding: 0 20px;
    box-sizing: border-box;
}

/* Адаптивность только для варианта с двумя кнопками.
   Общие правила однокнопочной плашки выше не меняем. */

/* 1. DESKTOP 1400+ */
@media (min-width: 1400px) /*and (max-width: 1920px)*/ {
    .form-consultation--two-buttons .form-consultation__actions {
        flex-wrap: nowrap;
        max-width: 100%;
    }
}

/* 2. VERY LARGE DESKTOP */
@media (min-width: 1921px) and (min-device-width: 2200px) {
    .form-consultation--two-buttons .form-consultation__actions {
        gap: clamp(12px, .7vw, 18px);
    }

    .form-consultation--two-buttons .form-consultation__secondary,
    .form-consultation--two-buttons .form-consultation__button.btn-green-full {
        height: clamp(54px, 3vw, 80px);
    }

    .form-consultation--two-buttons .form-consultation__secondary {
        min-width: clamp(225px, 10vw, 290px);
    }

    .form-consultation--two-buttons .form-consultation__button.btn-green-full {
        width: clamp(232px, 10.5vw, 300px);
    }
}

/* 3. COMPACT DESKTOP */
@media (min-width: 1024px) and (max-width: 1278px) {
    .form-consultation--two-buttons .form-consultation__panel {
        flex-direction: column;
        gap: 28px;
    }

    .form-consultation--two-buttons .form-consultation__content {
        text-align: center;
    }

    .form-consultation--two-buttons .form-consultation__actions {
        justify-content: center;
        flex-wrap: wrap;
        max-width: 100%;
    }
}

/* 4. TABLET */
@media (min-width: 768px) and (max-width: 1023px) {
    .form-consultation--two-buttons .form-consultation__actions {
        justify-content: center;
        flex-wrap: wrap;
        max-width: 100%;
    }
}

/* 5. MOBILE */
@media (max-width: 767px) {
    .form-consultation--two-buttons .form-consultation__actions {
        flex-direction: column;
        gap: 12px;
        width: 100%;
        max-width: 100%;
    }

    .form-consultation--two-buttons .form-consultation__secondary,
    .form-consultation--two-buttons .form-consultation__button.btn-green-full {
        box-sizing: border-box;
        width: 100%;
        min-width: 0;
        max-width: none;
        height: 54px;
        margin: 0;
    }

    .form-consultation--two-buttons .form-consultation__secondary {
        padding: 8px 16px;
        white-space: normal;
        text-align: center;
        line-height: 1.2;
    }

    .form-consultation--two-buttons .form-consultation__button.btn-green-full > a {
        box-sizing: border-box;
        width: 100%;
        height: 100%;
        padding: 0 16px;
    }
}

@media (max-width: 1278px) {
    .form-consultation--two-buttons .form-consultation__panel {
        flex-direction: column;
        gap: 28px;
    }

    .form-consultation--two-buttons .form-consultation__content {
        text-align: center;
    }
}

@media (max-width: 600px) {
    .form-consultation--two-buttons .form-consultation__actions {
        flex-direction: column;
        width: 100%;
    }

    .form-consultation--two-buttons .form-consultation__secondary,
    .form-consultation--two-buttons .form-consultation__button.btn-green-full {
        box-sizing: border-box;
        width: 100%;
        max-width: none;
        min-width: 0;
    }
}