@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
    color-scheme: dark;
    --page-bg: #080611;
    --surface: rgba(20, 15, 31, .82);
    --surface-raised: #171222;
    --text: #f7f3fb;
    --muted: #b8afc4;
    --pink: #ff54c8;
    --violet: #a77bff;
    --gold: #ffd47b;
    --line: rgba(255, 255, 255, .12);
}

* {
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html {
    min-width: 320px;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--text);
    background: var(--page-bg);
}

body::before {
    position: fixed;
    z-index: -2;
    inset: 0;
    content: "";
    background:
        linear-gradient(180deg, rgba(8, 6, 17, .76), rgba(8, 6, 17, .96)),
        url("../../images/sellbilete.png") center / cover no-repeat;
}

body::after {
    position: fixed;
    z-index: -1;
    inset: 0;
    content: "";
    pointer-events: none;
    background:
        radial-gradient(ellipse at 12% 15%, rgba(167, 123, 255, .16), transparent 34%),
        radial-gradient(ellipse at 88% 28%, rgba(255, 84, 200, .12), transparent 34%);
}

.page {
    width: min(1160px, 90%);
    margin: 0 auto;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 30px 0 50px;
    padding: 11px 16px;
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .04);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.back-btn:hover {
    color: var(--text);
    border-color: rgba(255, 84, 200, .55);
    background: rgba(255, 84, 200, .09);
}

.hero {
    position: relative;
    max-width: 760px;
    margin: 0 auto 76px;
    text-align: center;
}

.hero > span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .22em;
}

.hero > span::before,
.hero > span::after {
    width: 22px;
    height: 1px;
    content: "";
    background: currentColor;
    opacity: .7;
}

.hero h1 {
    margin: 18px 0 16px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(42px, 7vw, 72px);
    font-weight: 700;
    letter-spacing: -.055em;
    line-height: 1.04;
    background: linear-gradient(100deg, #fff 22%, #ffd6f2 58%, #c7adff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    max-width: 580px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.8;
}

.contacts-section h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 30px;
    color: var(--text);
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(23px, 3vw, 30px);
    letter-spacing: -.03em;
    text-align: center;
}

.contacts-section h2::before,
.contacts-section h2::after {
    width: 32px;
    height: 1px;
    content: "";
    background: linear-gradient(90deg, transparent, var(--pink));
}

.contacts-section h2::after {
    transform: rotate(180deg);
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 72px;
}

.contact-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    padding: 20px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background:
        radial-gradient(ellipse at 0% 0%, rgba(167, 123, 255, .1), transparent 50%),
        var(--surface);
    box-shadow: 0 14px 36px rgba(0, 0, 0, .18);
    backdrop-filter: blur(16px);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.contact-card::after {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    content: "";
    background: var(--gold);
    box-shadow: 0 0 14px rgba(255, 212, 123, .65);
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 84, 200, .48);
    box-shadow: 0 22px 48px rgba(0, 0, 0, .3), 0 0 28px rgba(255, 84, 200, .09);
}

.avatar {
    position: relative;
    flex: 0 0 76px;
    width: 76px;
    height: 76px;
    padding: 3px;
    border: 1px solid rgba(255, 84, 200, .72);
    border-radius: 50%;
    background: linear-gradient(145deg, var(--pink), var(--violet));
    box-shadow: 0 0 24px rgba(255, 84, 200, .15);
}

.avatar img {
    display: block;
    width: 100%;
    height: 100%;
    border: 3px solid var(--surface-raised);
    border-radius: 50%;
    object-fit: cover;
}

.contact-info {
    min-width: 0;
}

.role {
    color: var(--gold);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .17em;
    text-transform: uppercase;
}

.contact-info h3 {
    margin: 7px 0 6px;
    color: var(--text);
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(19px, 2.2vw, 23px);
    font-weight: 600;
    letter-spacing: -.035em;
    overflow-wrap: anywhere;
}

.contact-info p {
    margin-bottom: 15px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.instagram-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    max-width: 100%;
    min-height: 40px;
    padding: 9px 14px;
    overflow-wrap: anywhere;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 11px;
    background: linear-gradient(110deg, rgba(255, 84, 200, .2), rgba(167, 123, 255, .17));
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.instagram-btn i {
    color: #ff8cda;
    font-size: 16px;
}

.instagram-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 84, 200, .65);
    background: linear-gradient(110deg, rgba(255, 84, 200, .32), rgba(167, 123, 255, .27));
}

.instagram-btn:focus-visible,
.back-btn:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

.notice {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 70px;
    padding: 25px 28px;
    border: 1px solid rgba(255, 212, 123, .25);
    border-radius: 18px;
    background: linear-gradient(115deg, rgba(255, 212, 123, .09), rgba(20, 15, 31, .84) 48%);
}

.notice > i {
    margin-top: 2px;
    color: var(--gold);
    font-size: 22px;
}

.notice h2 {
    margin-bottom: 8px;
    color: var(--text);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
}

.notice p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
}

.footer {
    padding: 24px;
    border-top: 1px solid var(--line);
    background: rgba(5, 3, 10, .65);
    text-align: center;
}

.made-by-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: color .2s ease;
}

.made-by-btn:hover {
    color: var(--text);
}

html[data-theme="light"] body .hero p,
html[data-theme="light"] body .contact-info p,
html[data-theme="light"] body .notice p,
html[data-theme="light"] body .made-by-btn {
    color: #655a70;
}

html[data-theme="light"] body .contact-card {
    border-color: rgba(73, 36, 85, .15);
    background:
        radial-gradient(ellipse at 0% 0%, rgba(167, 123, 255, .09), transparent 50%),
        rgba(255, 255, 255, .9);
    box-shadow: 0 14px 36px rgba(67, 37, 78, .1);
}

html[data-theme="light"] body .contact-info h3,
html[data-theme="light"] body .notice h2,
html[data-theme="light"] body .contacts-section h2 {
    color: #24182c;
}

html[data-theme="light"] body .avatar img {
    border-color: #fff;
}

html[data-theme="light"] body .instagram-btn {
    color: #35213c;
    border-color: rgba(217, 15, 155, .2);
    background: rgba(255, 46, 189, .08);
}

html[data-theme="light"] body .notice {
    border-color: rgba(217, 15, 155, .2);
    background: rgba(255, 255, 255, .82);
}

html[data-theme="light"] body .footer {
    background: rgba(255, 255, 255, .45);
}

@media (max-width: 760px) {
    .contacts-grid {
        grid-template-columns: 1fr;
        max-width: 620px;
        margin-right: auto;
        margin-left: auto;
    }

    .hero {
        margin-bottom: 58px;
    }
}

@media (max-width: 520px) {
    .page {
        width: min(100% - 32px, 440px);
    }

    .back-btn {
        margin: 22px 0 42px;
    }

    .hero > span {
        font-size: 10px;
        letter-spacing: .15em;
    }

    .hero p {
        font-size: 14px;
    }

    .contacts-section h2 {
        gap: 9px;
    }

    .contacts-section h2::before,
    .contacts-section h2::after {
        width: 18px;
    }

    .contact-card {
        align-items: flex-start;
        gap: 15px;
        padding: 18px 15px;
        border-radius: 16px;
    }

    .avatar {
        flex-basis: 64px;
        width: 64px;
        height: 64px;
    }

    .contact-info h3 {
        padding-right: 4px;
        font-size: 19px;
    }

    .contact-info p {
        margin-bottom: 12px;
        font-size: 12px;
    }

    .instagram-btn {
        min-height: 36px;
        padding: 8px 10px;
        font-size: 12px;
    }

    .notice {
        gap: 13px;
        padding: 20px 17px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
