.contacts-page {
    min-height: 100vh;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 12% 72%, rgba(91, 34, 150, 0.42), transparent 20rem),
        radial-gradient(circle at 82% 20%, rgba(255, 146, 120, 0.12), transparent 25rem),
        radial-gradient(circle at 50% 100%, rgba(42, 17, 82, 0.82), transparent 34rem),
        linear-gradient(180deg, #080510 0%, #0e0719 58%, #190c31 100%);
}

.contacts-shell {
    position: relative;
    width: min(1380px, calc(100% - clamp(36px, 7vw, 132px)));
    margin: -10px auto 0;
    padding: clamp(58px, 5.8vw, 96px) 0 184px;
}

.contacts-shell::before {
    content: "";
    position: absolute;
    inset: 0 -12vw;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(115deg, rgba(255, 146, 120, 0.08), transparent 32%),
        radial-gradient(ellipse at 76% 44%, rgba(195, 66, 255, 0.17), transparent 38%);
}

.contacts-hero {
    display: grid;
    justify-items: center;
    text-align: center;
}

.contacts-hero__eyebrow,
.support-panel__eyebrow,
.contact-card__label {
    margin: 0;
    color: var(--accent);
    font-family: var(--font-pixel);
    font-size: clamp(0.62rem, 0.76vw, 0.82rem);
    line-height: 1.55;
    text-shadow: 0 0 16px rgba(255, 146, 120, 0.38);
}

.contact-card__label {
    min-height: 2.7em;
    display: flex;
    align-items: end;
    justify-content: center;
    text-align: center;
}

.contacts-hero h1 {
    margin: 12px 0 0;
    color: #fff;
    font-family: var(--font-pixel);
    font-size: clamp(2.8rem, 5vw, 5.35rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: 0;
    text-shadow: 0 8px 0 rgba(0, 0, 0, 0.35), 0 0 28px rgba(255, 255, 255, 0.08);
}

.contacts-hero p:not(.contacts-hero__eyebrow) {
    max-width: 780px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(1.05rem, 1.22vw, 1.3rem);
    font-weight: 750;
    line-height: 1.45;
}

.contact-grid {
    margin-top: clamp(42px, 4.8vw, 72px);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(24px, 2.8vw, 48px);
}

.contact-card {
    position: relative;
    min-height: 430px;
    padding: 32px clamp(24px, 2vw, 36px) 30px;
    display: grid;
    grid-template-rows: auto auto auto 1fr auto;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    background:
        radial-gradient(circle at 50% 16%, rgba(255, 146, 120, 0.12), transparent 11rem),
        linear-gradient(180deg, rgba(24, 13, 46, 0.96), rgba(16, 9, 31, 0.98));
    box-shadow: inset 0 0 0 1px rgba(255, 146, 120, 0.04), 0 24px 70px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.contact-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 146, 120, 0.28);
    box-shadow: inset 0 0 0 1px rgba(255, 146, 120, 0.08), 0 32px 80px rgba(0, 0, 0, 0.4), 0 0 32px rgba(195, 66, 255, 0.08);
}

.contact-card__icon {
    position: relative;
    width: 132px;
    height: 116px;
    margin: 0 auto 18px;
}

.contact-card__icon span,
.contact-card__icon::before,
.contact-card__icon::after {
    content: "";
    position: absolute;
    display: block;
}

.contact-card--discord .contact-card__icon span {
    left: 16px;
    top: 24px;
    width: 100px;
    height: 68px;
    background: #7c45d9;
    box-shadow: inset 0 -18px 0 #43258f, 0 0 28px rgba(124, 69, 217, 0.34);
    clip-path: polygon(10% 0, 90% 0, 100% 40%, 84% 100%, 66% 78%, 34% 78%, 16% 100%, 0 40%);
}

.contact-card--discord .contact-card__icon::before,
.contact-card--discord .contact-card__icon::after {
    top: 52px;
    width: 12px;
    height: 12px;
    background: #fff;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
}

.contact-card--discord .contact-card__icon::before { left: 46px; }
.contact-card--discord .contact-card__icon::after { right: 46px; }

.contact-card--telegram .contact-card__icon span {
    left: 20px;
    top: 16px;
    width: 94px;
    height: 94px;
    background: linear-gradient(135deg, #9ef3ff, #4b8fff 70%);
    clip-path: polygon(0 40%, 100% 0, 70% 100%, 48% 68%, 26% 86%);
    box-shadow: 0 0 30px rgba(75, 143, 255, 0.36);
}

.contact-card--telegram .contact-card__icon::before {
    left: 52px;
    top: 44px;
    width: 42px;
    height: 10px;
    background: rgba(255, 255, 255, 0.44);
    transform: rotate(-24deg);
}

.contact-card--email .contact-card__icon span {
    left: 14px;
    top: 28px;
    width: 106px;
    height: 72px;
    background: #ffbd6e;
    box-shadow: inset 0 -18px 0 #d17444, 0 0 28px rgba(255, 189, 110, 0.34);
}

.contact-card--email .contact-card__icon::before {
    left: 22px;
    top: 36px;
    width: 90px;
    height: 48px;
    background: linear-gradient(135deg, transparent 47%, rgba(255, 244, 220, 0.42) 48% 52%, transparent 53%);
    clip-path: polygon(0 0, 50% 58%, 100% 0, 100% 100%, 0 100%);
}

.contact-card h2 {
    margin: 10px 0 14px;
    color: #fff;
    font-family: var(--font-pixel);
    font-size: clamp(1.05rem, 1.2vw, 1.36rem);
    font-weight: 400;
    line-height: 1.42;
    text-align: center;
}

.contact-card p:not(.contact-card__label) {
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.42;
    text-align: center;
}

.contact-card a {
    position: relative;
    min-height: 48px;
    margin: 26px auto 0;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #a96a61;
    border-radius: 2px;
    background: linear-gradient(180deg, #8f514f 0%, #6e3943 52%, #4a2534 100%);
    color: #fff6f0;
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.48);
    box-shadow:
        inset 4px 4px 0 rgba(255, 194, 172, 0.18),
        inset -4px -4px 0 rgba(20, 8, 18, 0.48),
        0 7px 0 #2a1320,
        0 0 26px rgba(255, 146, 120, 0.18);
}

.contact-card a::before {
    content: "";
    position: absolute;
    left: 8px;
    right: 8px;
    top: 6px;
    height: 3px;
    background: rgba(255, 220, 203, 0.3);
}

.contact-card a:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
}

.contact-card a:active {
    transform: translateY(5px);
    box-shadow:
        inset 4px 4px 0 rgba(255, 202, 184, 0.14),
        inset -4px -4px 0 rgba(20, 8, 18, 0.58),
        0 2px 0 #2a1320,
        0 0 18px rgba(255, 146, 120, 0.18);
}

.support-panel {
    margin-top: clamp(34px, 3.5vw, 58px);
    padding: clamp(24px, 2.4vw, 34px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
    gap: clamp(28px, 3vw, 58px);
    align-items: center;
    border: 1px solid rgba(255, 146, 120, 0.14);
    border-radius: 26px;
    background:
        radial-gradient(circle at 14% 0, rgba(255, 146, 120, 0.1), transparent 18rem),
        rgba(20, 12, 37, 0.92);
    box-shadow: 0 22px 58px rgba(0, 0, 0, 0.24);
}

.support-panel h2 {
    max-width: 720px;
    margin: 12px 0 0;
    color: #fff;
    font-family: var(--font-pixel);
    font-size: clamp(1.15rem, 1.5vw, 1.7rem);
    font-weight: 400;
    line-height: 1.5;
}

.support-panel ul {
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.02rem;
    font-weight: 800;
    line-height: 1.2;
    list-style: none;
}

.support-panel li {
    position: relative;
    padding-left: 22px;
}

.support-panel li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 9px;
    height: 9px;
    background: #9cff77;
    box-shadow: 0 0 12px rgba(156, 255, 119, 0.45);
}

.contacts-page .site-footer {
    margin-top: -112px;
}

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

    .contact-card {
        min-height: 360px;
    }

    .support-panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    html,
    body,
    .contacts-page {
        max-width: 100%;
        overflow-x: hidden;
    }

    .contacts-shell {
        width: 100vw;
        margin-right: 0;
        margin-left: 0;
        padding: 44px 14px 136px;
        overflow: hidden;
    }

    .contacts-hero h1 {
        max-width: 100%;
        font-size: clamp(1.45rem, 8vw, 2rem);
        overflow-wrap: anywhere;
    }

    .contacts-hero p:not(.contacts-hero__eyebrow) {
        width: min(100%, 304px);
        font-size: 0.94rem;
    }

    .contact-card {
        min-width: 0;
        min-height: 390px;
        padding-right: 22px;
        padding-left: 22px;
        border-radius: 22px;
    }

    .contact-card h2,
    .contact-card p:not(.contact-card__label) {
        width: min(100%, 300px);
        margin-right: auto;
        margin-left: auto;
        overflow-wrap: break-word;
    }

    .contact-card a {
        max-width: 100%;
        font-size: 0.92rem;
        text-align: center;
        overflow-wrap: anywhere;
    }

    .support-panel {
        border-radius: 20px;
    }
}
