.contact-page {
    min-height: calc(100vh - var(--header-height));
    color: var(--brand-ink);
    background: linear-gradient(180deg, #fffdf8 0%, #f7fbff 52%, #f8fafc 100%);
}

.contact-hero {
    padding: 52px 0 20px;
}

.contact-hero-shell,
.contact-box,
.contact-scene-card {
    border: 1px solid rgba(19, 36, 58, 0.1);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 38px rgba(14, 32, 52, 0.06);
}

.contact-hero-shell {
    border-radius: 28px;
    padding: 36px 34px;
    text-align: center;
}

.contact-eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(19, 36, 58, 0.06);
    color: #53667b;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contact-hero-shell h1 {
    margin-top: 16px;
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1.08;
    letter-spacing: -0.04em;
    color: #0b1929;
}

.contact-lead {
    max-width: 760px;
    margin: 16px auto 0;
    font-size: 17px;
    line-height: 1.8;
    color: #4c6077;
}

.contact-hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid rgba(19, 36, 58, 0.14);
    background: #ffffff;
    color: #17314d;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.contact-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(19, 36, 58, 0.22);
    box-shadow: 0 12px 24px rgba(19, 36, 58, 0.09);
}

.contact-btn-primary {
    border-color: transparent;
    color: #fffaf3;
    background: linear-gradient(135deg, #ff8a3d 0%, #ff6a52 55%, #29b89d 100%);
    box-shadow: 0 14px 28px rgba(255, 106, 82, 0.2);
}

.contact-main {
    padding: 12px 0 8px;
}

.contact-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.92fr);
    gap: 20px;
}

.contact-box {
    border-radius: 24px;
    padding: 28px 26px;
}

.contact-section-head span {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #68788a;
}

.contact-section-head h2 {
    margin-top: 10px;
    font-size: clamp(26px, 4vw, 36px);
    line-height: 1.18;
    letter-spacing: -0.03em;
    color: #0c1d31;
}

.contact-section-head p {
    margin-top: 10px;
    color: #506479;
    font-size: 15px;
    line-height: 1.74;
}

.contact-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 22px;
}

.contact-card {
    border-radius: 18px;
    border: 1px solid rgba(19, 36, 58, 0.08);
    background: #fbfdff;
    padding: 18px 16px;
}

.contact-card h3 {
    font-size: 16px;
    line-height: 1.35;
    color: #122940;
}

.contact-card a,
.contact-card-text {
    display: inline-block;
    margin-top: 10px;
    color: #17314d;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.6;
    text-decoration: none;
    word-break: break-word;
}

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

.contact-form-group + .contact-form-group {
    margin-top: 16px;
}

.contact-form-label {
    display: block;
    margin-bottom: 8px;
    color: #10253c;
    font-size: 14px;
    font-weight: 700;
}

.contact-form-input {
    width: 100%;
    border: 1px solid #d7e2eb;
    border-radius: 14px;
    padding: 13px 14px;
    background: #ffffff;
    color: #0f172a;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form-input:focus {
    outline: none;
    border-color: rgba(41, 184, 157, 0.78);
    box-shadow: 0 0 0 4px rgba(41, 184, 157, 0.12);
}

.contact-form-input::placeholder {
    color: #93a3b4;
}

textarea.contact-form-input {
    min-height: 136px;
    resize: vertical;
}

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

.contact-scenes {
    padding: 28px 0 64px;
}

.contact-scene-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
}

.contact-scene-card {
    border-radius: 22px;
    padding: 22px 20px;
}

.contact-scene-card h3 {
    font-size: 20px;
    line-height: 1.3;
    color: #122940;
}

.contact-scene-card p {
    margin-top: 10px;
    color: #52667b;
    font-size: 15px;
    line-height: 1.74;
}

@media (max-width: 1040px) {
    .contact-main-grid,
    .contact-scene-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        padding: 30px 0 14px;
    }

    .contact-hero-shell,
    .contact-box,
    .contact-scene-card {
        border-radius: 20px;
        padding: 22px 18px;
    }

    .contact-lead {
        font-size: 16px;
        line-height: 1.72;
    }

    .contact-card-grid {
        grid-template-columns: 1fr;
    }

    .contact-btn {
        width: 100%;
    }

    .contact-scenes {
        padding: 22px 0 44px;
    }
}
