.contact-page-body {
    min-width: 1200px;
    overflow-x: hidden;
    background: #eef1f5;
}

.contact-layout {
    width: 100%;
    margin: 0;
    padding: 0;
}

.contact-shell {
    width: 100%;
    background: #ffffff;
}

.contact-site-header {
    width: 100%;
    margin: 0;
    box-shadow: none;
}

.contact-site-header .site-header__inner {
    width: min(1284px, calc(100% - 96px));
    padding: 0 20px;
}

.contact-site-header .site-nav {
    gap: clamp(34px, 3vw, 70px);
}

.contact-page {
    width: 100%;
}

.contact-hero {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.contact-hero__bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.contact-form {
    position: absolute;
    top: 92px;
    right: clamp(92px, 10.4vw, 198px);
    width: 504px;
    min-height: 0;
    padding: 30px 28px 26px;
    border-radius: 5px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    background: #ffffff;
    box-shadow: 0 14px 36px rgba(77, 101, 137, 0.1);
}

.contact-form__title {
    color: #1f1f1f;
    font-size: 26px;
    line-height: 1.25;
    font-weight: 500;
    letter-spacing: 0;
}

.contact-form__field {
    display: grid;
    gap: 10px;
}

.contact-form__label {
    color: #2f333a;
    font-size: 16px;
    line-height: 1.25;
    font-weight: 500;
    letter-spacing: 0;
}

.contact-form__control-wrap {
    position: relative;
}

.contact-form__control,
.contact-form__select {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid #c8cdd5;
    border-radius: 3px;
    background: #ffffff;
    color: #1f1f1f;
    font-size: 15px;
    line-height: 1.2;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.contact-form__control::placeholder,
.contact-form__phone-input::placeholder {
    color: #b7bcc4;
}

.contact-form__textarea {
    height: 132px;
    padding-top: 12px;
    padding-bottom: 12px;
    line-height: 1.55;
    resize: vertical;
}

.contact-form__control:focus,
.contact-form__select:focus,
.contact-form__phone-field:focus-within,
.contact-form__checkbox-input:focus-visible + .contact-form__checkbox-indicator {
    border-color: #5d8fff;
    box-shadow: 0 0 0 4px rgba(65, 111, 246, 0.11);
}

.contact-form__phone-field {
    position: relative;
    height: 46px;
    border: 1px solid #c8cdd5;
    border-radius: 3px;
    display: flex;
    align-items: stretch;
    background: #ffffff;
    overflow: hidden;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.contact-form__phone-code {
    width: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #d9dde4;
    color: #717784;
    font-size: 16px;
    line-height: 1;
    flex-shrink: 0;
}

.contact-form__phone-input {
    min-width: 0;
    flex: 1 1 auto;
    height: 100%;
    padding: 0 42px 0 38px;
    border: 0;
    outline: none;
    color: #1f1f1f;
    background: transparent;
    font-size: 15px;
    line-height: 1.2;
}

.contact-form__required-icon {
    position: absolute;
    top: 50%;
    right: 14px;
    width: 16px;
    height: 16px;
    transform: translateY(-50%);
    pointer-events: none;
}

.contact-form__required-icon img {
    width: 100%;
    height: 100%;
}

.contact-form__select {
    padding-right: 44px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.contact-form__select-wrap.is-placeholder .contact-form__select {
    color: #b7bcc4;
}

.contact-form__select-icon {
    position: absolute;
    top: 50%;
    right: 16px;
    width: 16px;
    height: 16px;
    border: 1px dashed #969da8;
    border-radius: 2px;
    transform: translateY(-50%);
    pointer-events: none;
}

.contact-form__select-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    border-right: 1px solid #7b8390;
    border-bottom: 1px solid #7b8390;
    transform: translate(-50%, -64%) rotate(45deg);
}

.contact-form__agreement {
    position: relative;
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr);
    align-items: start;
    gap: 9px;
    cursor: pointer;
}

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

.contact-form__checkbox-indicator {
    position: relative;
    width: 14px;
    height: 14px;
    margin-top: 4px;
    border: 1px solid #222831;
    border-radius: 50%;
    transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.contact-form__checkbox-input:checked + .contact-form__checkbox-indicator {
    border-color: #276dff;
    background: #276dff;
}

.contact-form__checkbox-input:checked + .contact-form__checkbox-indicator::after {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: #ffffff;
}

.contact-form__agreement-text {
    color: #606977;
    font-size: 12px;
    line-height: 1.45;
    letter-spacing: 0;
}

.contact-form__link-button {
    padding: 0;
    border: 0;
    background: transparent;
    color: #276dff;
    font: inherit;
    line-height: inherit;
    cursor: pointer;
}

.contact-form__link-button:hover {
    text-decoration: underline;
}

.contact-form__privacy-tip {
    margin: -4px 0 0 25px;
    padding: 9px 12px;
    border-radius: 4px;
    background: #f2f6ff;
    color: #657083;
    font-size: 12px;
    line-height: 1.55;
}

.contact-form__message {
    min-height: 16px;
    color: #657083;
    font-size: 12px;
    line-height: 1.35;
}

.contact-form__message:empty {
    display: none;
}

.contact-form__message.is-error {
    color: #e45e5e;
}

.contact-form__message.is-success {
    color: #276dff;
}

.contact-form__submit {
    width: 100%;
    height: 44px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #246cff;
    color: #ffffff;
    font-size: 15px;
    line-height: 1;
    font-weight: 500;
    letter-spacing: 0;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
}

.contact-form__submit:hover,
.contact-form__submit:focus-visible {
    background: #145bf0;
}

.contact-form__submit:focus-visible {
    outline: 2px solid #78a8ff;
    outline-offset: 3px;
}

.contact-form__submit:active {
    transform: translateY(1px);
}

.contact-form__submit:disabled {
    opacity: 0.72;
    cursor: wait;
}

.contact-form__control-wrap.is-invalid .contact-form__control,
.contact-form__control-wrap.is-invalid .contact-form__select,
.contact-form__phone-field.is-invalid,
.contact-form__agreement.is-invalid .contact-form__checkbox-indicator {
    border-color: #e45e5e;
    box-shadow: 0 0 0 4px rgba(228, 94, 94, 0.11);
}

.contact-success-toast {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.contact-success-toast.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.contact-success-toast__card {
    width: 160px;
    min-height: 146px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.78);
}

.contact-success-toast__icon {
    position: relative;
    width: 48px;
    height: 48px;
    border: 4px solid #ffffff;
    border-radius: 50%;
}

.contact-success-toast__icon::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 11px;
    border-left: 4px solid #ffffff;
    border-bottom: 4px solid #ffffff;
    transform: translate(-46%, -62%) rotate(-45deg);
}

.contact-success-toast__text {
    font-size: 17px;
    line-height: 1;
    font-weight: 500;
}

@media (max-width: 1500px) {
    .contact-layout {
        width: 100%;
        padding-top: 0;
    }

    .contact-form {
        top: 58px;
        right: 64px;
        width: 430px;
        min-height: 0;
        padding: 24px;
        gap: 12px;
    }

    .contact-form__control,
    .contact-form__select,
    .contact-form__phone-field {
        height: 40px;
    }
}

@media (max-width: 1100px) {
    .contact-page-body {
        min-width: 0;
    }

    .contact-layout {
        width: 100%;
        padding: 0;
        display: block;
    }

    .contact-hero {
        min-height: 720px;
        aspect-ratio: auto;
    }

    .contact-site-header .site-header__inner {
        width: min(100%, calc(100% - 32px));
        padding: 0;
    }

    .contact-form {
        top: 50%;
        right: 24px;
        left: 24px;
        width: auto;
        max-width: 520px;
        margin: 0 auto;
        transform: translateY(-50%);
    }
}
