@font-face {
    font-family: "TT-Ricordi-Allegria-Trial";
    src: url(/fonts/TT-Ricordi-Allegria-Trial.woff2) format("woff2"),
         url(/fonts/TT-Ricordi-Allegria-Trial.woff) format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Century Gothic Paneuropean";
    src: url(/fonts/Century-Gothic-Paneuropean.woff2) format("woff2"),
         url(/fonts/Century-Gothic-Paneuropean.woff) format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ФОС */


.contact-form {
    margin-top: 30px;
}

.contact-form__box {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 42px;
    padding: 34px 24px 24px;
    border-radius: 10px;
    background:
       url("/images/pattter.png") center/cover no-repeat;
    border: 1px solid rgba(243, 238, 230, 0.12);
    margin-bottom: 50px;
}

.contact-form__content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 250px;
}

.contact-form__label {
    margin-bottom: 18px;
    font-size: 18px;
    line-height: 1.25;
    color: rgba(243, 238, 230, 0.82);
}

.contact-form__title {
    margin-bottom: 105px;
    font-family: "TT-Ricordi-Allegria-Trial", serif;
    font-size: 56px;
    line-height: 1.2;
    font-weight: 400;
    text-transform: uppercase;
    color: #f3eee6;
}

.contact-form__subtitle {
    max-width: 480px;
    font-size: 18px;
    line-height: 1.35;
    color: rgba(243, 238, 230, 0.92);
    margin-bottom: 50px;
}

.contact-form__form-wrap {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
}

.form {
    width: 100%;
    max-width: 640px;
    margin: 60px;
}

.form__fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 10px;
    margin-bottom: 18px;
}

.form__input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid rgba(243, 238, 230, 0.45);
    border-radius: 6px;
    background: transparent;
    color: #f3eee6;
    font-family: "Century Gothic Paneuropean", Arial, sans-serif;
    font-size: 16px;
    outline: none;
    transition: border-color 0.25s ease, background-color 0.25s ease;
}

.form__input::placeholder {
    color: rgba(243, 238, 230, 0.72);
}

.form__input:focus {
    border-color: rgba(243, 238, 230, 0.82);
    background-color: rgba(255, 255, 255, 0.03);
}

.form__input--full {
    grid-column: 1 / -1;
}

.form__checks {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 26px;
}

.form__check {
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.form__checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.form__check-box {
    width: 16px;
    height: 16px;
    border: 1px solid rgba(243, 238, 230, 0.55);
    border-radius: 2px;
    flex-shrink: 0;
    margin-top: 2px;
    position: relative;
    transition: border-color 0.25s ease, background-color 0.25s ease;
}

.form__checkbox:checked + .form__check-box {
    background-color: rgba(243, 238, 230, 0.92);
    border-color: rgba(243, 238, 230, 0.92);
}

.form__checkbox:checked + .form__check-box::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 5px;
    width: 4px;
    height: 8px;
    border: solid #353432;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.form__check-text {
    font-size: 13px;
    line-height: 1.35;
    color: rgba(243, 238, 230, 0.82);
}

.form__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.form__message {
    min-height: 18px;
    font-size: 13px;
    line-height: 1.3;
    color: rgba(243, 238, 230, 0.82);
}

.form__message.is-error {
    color: #f2b7b7;
}

.form__message.is-success {
    color: #c8e6c9;
}

.form__submit {
    min-width: 258px;
    height: 48px;
    padding: 0 0 0 18px;
    margin-top: 48px;
    border: 1px solid rgba(243, 238, 230, 0.55);
    border-radius: 6px;
    background: transparent;
    color: #f3eee6;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: opacity 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.form__submit:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.form__submit:not(:disabled):hover {
    border-color: rgba(243, 238, 230, 0.9);
    background-color: rgba(255, 255, 255, 0.03);
}

.form__submit-text {
    font-size: 16px;
    line-height: 1;
    text-transform: lowercase;
}

.form__submit-icon {
    width: 48px;
    height: 48px;
    border-left: 1px solid rgba(243, 238, 230, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
}

.form__submit-icon img {
    width: 16px;
    height: 16px;
}

.form__btn {
    padding: 0px 0px 0px 20px;

    border: 1px solid rgba(243, 238, 230, 0.8);
    border-radius: 8px;

    background: transparent;
    color: #f3eee6;

    display: flex;
    align-items: center;
    justify-content: space-between;

    box-sizing: border-box; /* критично */

    cursor: pointer;
    transition: opacity 0.25s ease, background-color 0.25s ease;
}

.form__btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.form__btn:focus,
.form__btn:active {
    outline: none;
    box-shadow: none;
}

.form__btn.is-active:hover {
    border: 1px solid rgba(243, 238, 230, 0.8);
}

.form__btn-text {
    font-size: 18px;
    padding-right: 10px;
    line-height: 1;
    text-transform: uppercase;
    transition: transform 0.3s ease;
}

.form__btn-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    margin-left: auto;

    background: #f3eee6;
    border-radius: 6px;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: transform 0.35s ease;
}

.form__btn-icon img {
    width: 18px;
    height: 18px;
}

.form__btn.is-active:hover .form__btn-icon {
    transform: translateX(4px);
}

.form__btn.is-active:hover .form__btn-text {
    transform: translateX(2px);
}

.form__btn.is-clicked .form__btn-icon {
    transform: translateX(6px);
}

.form__btn.is-clicked .form__btn-text {
    transform: translateX(3px);
}

/* ===== LAPTOP ===== */

@media (max-width: 1440px) {
    .contact-form__box {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .contact-form__title {
        font-size: 46px;
    }

    .contact-form__label,
    .contact-form__subtitle {
        font-size: 16px;
    }
}

/* ===== TABLET ===== */

@media (max-width: 1024px) {

    .form {
    margin: 0px
    }

    .contact-form {
        margin-top: 24px;
    }

    .contact-form__box {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 80px;
    }

    .contact-form__content {
        min-height: auto;
    }

    .contact-form__title {
        font-size: 40px;
        margin-bottom: 46px;
    }

    .contact-form__subtitle {
        max-width: 100%;
    }

    .contact-form__form-wrap {
        justify-content: flex-start;
    }
}

/* ===== MOBILE ===== */

@media (max-width: 767px) {


    .contact-form {
        margin-top: 20px;
    }

    .form__submit {
        margin-top: 10px;
    }

    .contact-form__box {
        gap: 22px;
        padding: 20px 16px 16px;
    }

    .contact-form__label {
        margin-bottom: 12px;
        font-size: 14px;
    }

    .contact-form__title {
        margin-bottom: 18px;
        font-size: 30px;
        line-height: 1.06;
    }

    .contact-form__subtitle {
        font-size: 15px;
        line-height: 1.35;
        margin-bottom: 16px;
    }

    .form__fields {
        grid-template-columns: 1fr;
    }

    .form__input,
    .form__input--full {
        grid-column: auto;
        height: 46px;
        font-size: 14px;
    }

    .form__checks {
        gap: 10px;
        margin-bottom: 20px;
    }

    .form__check-text {
        font-size: 12px;
    }

    .form__bottom {
        flex-direction: column;
        align-items: stretch;
    }

    .form__btn {
    width: 100%;
    min-width: 100%;
}
.form__btn-text {
    font-size: 14px;
}

.form__btn-icon {
    width: 46px;
    height: 46px;
}

}

/* ===== SMALL MOBILE ===== */

@media (max-width: 375px) {
    .contact-form__title {
        font-size: 26px;
    }

    .contact-form__subtitle {
        font-size: 14px;
    }
}
