.contact-page {
    background: var(--bg-page-gray);
    color: var(--text-main);
}

.contact-section {
    position: relative;
    overflow: hidden;
    background: var(--bg-page-gray);
    padding-top: 162px;
}

.contact-layout {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 5.16%;
    align-items: start;
    justify-content: space-between;
    width: calc(100% - 200px);
    max-width: 1240px;
    padding-left: 0;
    padding-right: 0;
}

.contact-copy {
    position: relative;
    z-index: 1;
    flex: 0 1 34.27%;
    padding-top: 69px;
}

.contact-copy h1 {
    margin: 0 0 11px;
    color: var(--text-main);
    font-size: 48px;
    font-weight: 700;
    line-height: 58px;
}

.contact-copy p {
    margin: 0;
    color: var(--text-muted);
    font-size: 16px;
    font-weight: 500;
    line-height: 25px;
}

.contact-deco-logo {
    position: absolute;
    left: calc(50% - 620px);
    top: 238px;
    width: 620px;
    height: 777px;
    max-width: none;
    z-index: 0;
}

.contact-page .footer-logo {
    width: 124px;
    height: 32px;
}

.contact-page .app-col a:first-of-type img {
    width: 120px;
    height: 40px;
}

.contact-page .app-col a:nth-of-type(2) img {
    width: 120px;
    height: 36px;
}

.contact-form-card {
    position: relative;
    flex: 1 1 60.65%;
    min-height: 801px;
    padding: 66px clamp(40px, 4.84vw, 60px) 80px;
    border-radius: 20px 20px 0 0;
    background: var(--color-white);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.04);
}

.contact-form-card::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 60px;
    background: linear-gradient(180deg, rgba(246, 246, 248, 0) 0%, var(--bg-page-gray) 100%);
    pointer-events: none;
}

.contact-field {
    min-width: 0;
    margin-bottom: 18px;
}

.contact-name-row,
.contact-business-row {
    display: flex;
    gap: 5.06%;
    width: 100%;
}

.contact-name-row .contact-field {
    flex: 1 1 0;
}

.contact-business-row .contact-field-email {
    flex: 2 1 0;
}

.contact-business-row .contact-field-phone {
    flex: 1 1 0;
}

.contact-field-full {
    width: 100%;
}

.contact-field label {
    display: block;
    margin-bottom: 15px;
    color: var(--text-main);
    font-size: 15px;
    font-weight: 600;
    line-height: 18px;
}

.contact-field label span {
    color: var(--error-color);
}

.contact-field input,
.contact-field textarea {
    display: block;
    width: 100%;
    height: 56px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    background: rgba(164, 163, 225, 0.04);
    color: var(--text-main);
    font-size: 16px;
    font-weight: 500;
    line-height: 22px;
    padding: 17px 18px;
    outline: none;
    appearance: none;
    transition: border-color 0.18s ease, background-color 0.18s ease;
}

.contact-field textarea {
    min-height: 56px;
    overflow: hidden;
    resize: none;
}

.contact-field input:focus,
.contact-field textarea:focus {
    border-color: var(--primary-color);
}

.contact-field.has-error input,
.contact-field.has-error textarea {
    border-color: var(--error-color);
}

.field-error {
    min-height: 16px;
    margin: 6px 0 0;
    color: var(--error-color);
    font-size: 13px;
    font-weight: 500;
    line-height: 15px;
    opacity: 0;
}

.contact-field.has-error .field-error {
    opacity: 1;
}

.contact-submit {
    width: 240px;
    margin-top: 0;
}

.contact-success {
    min-height: 18px;
    margin: 16px 0 0;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
    line-height: 18px;
}

.contact-success.is-error {
    color: var(--error-color);
}

.contact-submit:disabled {
    cursor: default;
    opacity: 0.7;
}

@media (max-width: 1023px) {
    .contact-page .footer {
        position: relative;
        z-index: 1;
        margin-top: -20px;
    }

    .contact-section {
        position: relative;
        padding: 100px 30px 0;
    }

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

    .contact-copy {
        padding-top: 0;
        margin-bottom: 40px;
    }

    .contact-copy h1 {
        margin-bottom: 12px;
        font-size: 32px;
        line-height: 40px;
    }

    .contact-copy p {
        font-size: 15px;
        line-height: 21px;
    }

    .contact-deco-logo {
        left: 0;
        top: 150px;
        width: 375px;
        height: auto;
    }

    .contact-form-card {
        z-index: 2;
        min-height: 966px;
        margin-left: -30px;
        margin-right: -30px;
        padding: 40px 30px 80px;
        border-radius: 20px;
    }

    .contact-form-card::after {
        display: none;
    }

    .contact-name-row,
    .contact-business-row {
        display: block;
    }

    .contact-field,
    .contact-business-row .contact-field {
        margin-bottom: 18px;
    }

    .contact-field label {
        margin-bottom: 15px;
    }

    .contact-field-email,
    .contact-field-phone,
    .contact-field-full {
        width: 100%;
    }

    .contact-submit {
        width: 100%;
        margin-top: 16px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .contact-page .footer {
        margin-top: 0;
    }

    .contact-section {
        padding: 120px 0 0;
    }

    .contact-layout {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 5%;
        width: calc(100% - 60px);
        max-width: 900px;
        padding: 0;
    }

    .contact-copy {
        flex: 0 1 34%;
        margin-bottom: 0;
        padding-top: 52px;
    }

    .contact-copy h1 {
        margin-bottom: 12px;
        font-size: 32px;
        line-height: 40px;
    }

    .contact-copy p {
        font-size: 15px;
        line-height: 21px;
    }

    .contact-deco-logo {
        left: calc(50% - 450px);
        top: 210px;
        width: 460px;
        height: auto;
    }

    .contact-form-card {
        flex: 1 1 61%;
        min-height: 760px;
        margin-left: 0;
        margin-right: 0;
        padding: 48px clamp(32px, 4vw, 44px) 70px;
        border-radius: 20px 20px 0 0;
    }

    .contact-name-row,
    .contact-business-row {
        display: flex;
        gap: 5.06%;
        width: 100%;
    }

    .contact-name-row .contact-field {
        flex: 1 1 0;
    }

    .contact-business-row .contact-field-email {
        flex: 2 1 0;
    }

    .contact-business-row .contact-field-phone {
        flex: 1 1 0;
    }

    .contact-submit {
        width: 240px;
        margin-top: 0;
    }
}
