/* The contact page. Hero and buttons come from home.css and base.css; this is the rest. */

/* ---------- the address ---------- */
.mail-card {
    background: linear-gradient(150deg, #f4f7ff, #fff7ec);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 38px 44px;
    margin-top: 10px;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 32px;
    align-items: center;
}
.mail-card h2 {
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 800;
}
.mail-card p {
    color: var(--ink-soft);
    font-size: 16px;
    margin-top: 8px;
    max-width: 380px;
}
.mail-addr {
    display: inline-block;
    font-family: "Bricolage Grotesque", "Inter", sans-serif;
    font-size: clamp(26px, 3.6vw, 42px);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--blue-deep);
    overflow-wrap: anywhere;
}
.mail-addr:hover {
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-underline-offset: 6px;
}
.mail-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}
.mail-btns button {
    font: inherit;
    font-weight: 600;
    font-size: 16px;
    color: var(--ink);
    cursor: pointer;
}

/* ---------- ways in ---------- */
.ways {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.way {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 22px;
    box-shadow: var(--shadow-card);
    transition:
        transform 0.15s,
        box-shadow 0.15s;
}
.way:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lift);
}
.way .ic {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 21px;
    background: var(--tint);
    margin-bottom: 12px;
}
.way h3 {
    font-family: inherit;
    letter-spacing: normal;
    line-height: inherit;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
}
.way p {
    font-size: 14px;
    color: var(--ink-soft);
    flex: 1;
}
.way .go {
    margin-top: 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--blue);
}

/* ---------- what helps ---------- */
.helps {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
    margin-top: 64px;
}
.helps h2 {
    font-size: clamp(30px, 3.6vw, 44px);
    font-weight: 800;
    margin: 14px 0 12px;
}
.helps p {
    font-size: 16.5px;
    color: var(--ink-soft);
    max-width: 480px;
}
.help-list {
    list-style: none;
    margin: 0;
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-card);
}
.help-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-weight: 500;
    border-top: 1px solid var(--line);
}
.help-list li:first-child {
    border-top: 0;
}
.help-list li span {
    font-size: 20px;
    width: 28px;
    text-align: center;
    flex: none;
}

/* ---------- closing ---------- */
.contact-close {
    text-align: center;
    margin: 64px auto 70px;
    max-width: 560px;
}
.contact-close p {
    color: var(--ink-soft);
    font-size: 16.5px;
}
.contact-close .home-cta {
    justify-content: center;
}

@media (max-width: 960px) {
    .ways {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 860px) {
    .mail-card,
    .helps {
        grid-template-columns: 1fr;
        gap: 22px;
    }
    .mail-card {
        padding: 30px 24px;
    }
}
@media (max-width: 560px) {
    .ways {
        grid-template-columns: 1fr;
    }
}
