body.contact-page {
    --contact-ink: #0f172a;
    --contact-muted: #5a6475;
    --contact-line: rgba(15, 23, 42, 0.12);
    --contact-surface: rgba(255, 255, 255, 0.8);
    --contact-card: rgba(255, 255, 255, 0.97);
    --contact-accent: #f4cf4d;
    --contact-accent-deep: #dba800;
    --contact-shadow: 0 26px 60px rgba(15, 23, 42, 0.12);
    padding-top: 100px;
    background:
        radial-gradient(circle at left top, rgba(244, 207, 77, 0.24), transparent 30%),
        radial-gradient(circle at right 16% top 18%, rgba(15, 23, 42, 0.08), transparent 22%),
        linear-gradient(180deg, #f6f7fb 0%, #f5f1e4 48%, #f8fafc 100%);
    color: var(--contact-ink);
}

main.contact-page {
    min-height: calc(100vh - 400px);
    padding-top: 28px;
}

section.contact {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    width: min(1180px, calc(100% - 32px));
    margin: 20px auto 110px auto;
    padding: 48px 56px 56px 56px;
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 36px;
    background: var(--contact-surface);
    backdrop-filter: blur(16px);
    box-shadow: var(--contact-shadow);
    overflow: hidden;
}



section.contact > * {
    position: relative;
    z-index: 1;
}

section.contact h2 {
    margin: 0;
    padding: 0 0 14px 0;
    border: 0;
    font-size: 46px;
    line-height: 1.05;
    letter-spacing: 0;
    text-align: center;
}


section.contact > p {
    max-width: 100%;
    margin: 0;
    padding-left: 28px;
    color: var(--contact-muted);
    font-size: 17px;
    line-height: 1.95;
    position: relative;
}

section.contact > p::before {
    content: "";
    position: absolute;
    top: 0.78em;
    left: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--contact-accent) 0%, var(--contact-accent-deep) 100%);
    box-shadow: 0 0 0 7px rgba(244, 207, 77, 0.18);
    transform: translateY(-50%);
}


section.contact .form div {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    align-items: center;
    gap: 0px;
    width: auto;
    padding: 6px 0;
}

section.contact .form div:first-child {
    padding-top: 8px;
}

section.contact .form div:last-child {
    align-items: start;
    border-bottom: 0;
    padding-bottom: 0;
}

section.contact label {
    width: auto;
    font-size: 19px;
    font-weight: bold;
    color: #334155;
    letter-spacing: 0;
    text-align: right;
    margin-right: 20px;
}

section.contact input,
section.contact select,
section.contact textarea {
    width: 100%;
    border: 1px solid var(--contact-line);
    border-radius: 18px;
    padding: 16px 18px;
    background: #fff;
    color: var(--contact-ink);
    font-size: 16px;
    line-height: 1.6;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

section.contact select {
    appearance: none;
    background-image: url("/cmmn/img/select_arrow.svg");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 14px;
    padding-right: 48px;
}

section.contact textarea {
    min-height: 190px;
    resize: vertical;
}

section.contact input:focus,
section.contact select:focus,
section.contact textarea:focus {
    outline: none;
    border-color: rgba(15, 23, 42, 0.32);
    background: #fffdf6;
    box-shadow: 0 0 0 5px rgba(244, 207, 77, 0.24), 0 16px 34px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

section.contact .sendBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: min(420px, 100%);
    margin: 24px auto 0 auto;
    padding: 18px 24px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #0f172a 0%, #1f2937 58%, #334155 100%);
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 0;
    box-shadow: 0 20px 38px rgba(15, 23, 42, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    cursor: pointer;
}

section.contact .sendBtn::after {
    content: "→";
    font-size: 20px;
    line-height: 1;
    transition: transform 0.2s ease;
}

section.contact .sendBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 42px rgba(15, 23, 42, 0.28);
}

section.contact .sendBtn:hover::after {
    transform: translateX(4px);
}

section.contact .sendBtn:active {
    transform: translateY(0);
}

@media only screen and (max-width: 768px) {
    body.contact-page {
        padding-top: 82px;
    }

    main.contact-page {
        min-height: auto;
        padding-top: 18px;
    }

    section.contact {
        width: min(calc(100% - 20px), 1180px);
        margin-bottom: 72px;
        padding: 28px 16px 24px 16px;
        border-radius: 24px;
    }

    section.contact h2 {
        font-size: 36px;
        padding-bottom: 10px;
    }

    section.contact h2::before {
        margin-bottom: 10px;
        font-size: 11px;
    }

    section.contact > p {
        padding-left: 22px;
        font-size: 15px;
        line-height: 1.8;
    }

    section.contact > p::before {
        width: 8px;
        height: 8px;
        box-shadow: 0 0 0 5px rgba(244, 207, 77, 0.16);
    }

    section.contact .form {
        padding: 24px 14px 18px 14px;
        border-radius: 22px;
    }

    section.contact .form::before {
        left: 18px;
        padding: 9px 14px;
        font-size: 11px;
        letter-spacing: 0;
    }

    section.contact .form div {
        grid-template-columns: minmax(92px, 32%) minmax(0, 1fr);
        gap: 12px;
        padding: 16px 0;
    }

    section.contact label {
        font-size: 13px;
    }

    section.contact input,
    section.contact select,
    section.contact textarea {
        padding: 14px 15px;
        font-size: 16px;
        border-radius: 15px;
    }

    section.contact textarea {
        min-height: 160px;
    }

    section.contact .sendBtn {
        padding: 16px 18px;
        font-size: 16px;
        letter-spacing: 0;
    }
}
