:root {
    --white: #fff;
    --bg: #1e416e;
    --header-bg: rgba(10, 5, 20, .4);
    --text-muted: #d8e4f3;
    --glass: rgba(255, 255, 255, .12);
    --glass-strong: rgba(255, 255, 255, .1);
    --border-soft: rgba(255, 255, 255, .1);
    --border-btn: rgba(255, 255, 255, .3);
    --radius: 22px;
    --shadow: 0 18px 8px rgba(0, 0, 0, .1);
    --max: 1100px;
    --space-xs: 10px;
    --space-sm: 16px;
    --space-md: 20px;
    --space-lg: 24px;
    --space-xl: 40px;
    --accent-coral: #eb6455;
    --header-height: 74px;
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    color: var(--white);
    background: var(--bg);
    padding-top: var(--header-height);
    overflow-x: hidden;
    line-height: 1.5;
    text-rendering: optimizeLegibility;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 100000;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--white);
    color: var(--accent-coral);
    font-weight: 700;
    text-decoration: none;
}

.skip-link:focus-visible {
    top: 16px;
}

.page-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    background: url("/images/background.svg") center/cover no-repeat;
}

.container {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    backdrop-filter: blur(12px);
    background: var(--header-bg);
    border-bottom: 1px solid var(--border-soft);
    z-index: 99999;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    gap: var(--space-sm);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    text-decoration: none;
    color: #fff;
}

.brand img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

header nav {
    display: flex;
    gap: var(--space-sm);
}

header nav a {
    text-decoration: none;
    color: var(--white);
    font-weight: 700;
}

img {
    max-width: 100%;
    height: auto;
}

.btn {
    padding: var(--space-xs) var(--space-sm);
    border-radius: 14px;
    border: 1px solid var(--border-btn);
    background: var(--glass-strong);
    color: var(--white);
    text-decoration: none;
    font-weight: 800;
    line-height: 1.2;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}

.btn.primary {
    background: var(--white);
    color: #b33b30;
}

.btn:hover {
    transform: translateY(-1px);
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--white);
    outline-offset: 2px;
}

section {
    padding: 35px 0;
    scroll-margin-top: 90px;
}

section:not(.hero) {
    content-visibility: auto;
    contain-intrinsic-size: 1px 700px;
}

.card--hero {
    padding: var(--space-xl);
}

.hero-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-lg);
}

.hero-image-wrap {
    flex: 0 0 auto;
}

.hero-image {
    display: block;
    border-radius: 1rem;
    width: 127px;
    height: auto;
    aspect-ratio: 127 / 190;
}

.accent-orange {
    color: #f09b3c;
}

.accent-green {
    color: #47df14;
}

.accent-coral {
    color: var(--accent-coral);
}

.accent-blue {
    color: #1e416e;
}

h1 {
    font-size: clamp(36px, 5vw, 60px);
    line-height: 1.1;
    margin: 0 0 20px;
    min-height: 3.3em;
}

h2 {
    font-size: 32px;
    line-height: 1.2;
    margin-bottom: 30px;
}

.grid {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.card {
    background: var(--glass);
    backdrop-filter: blur(14px) contrast(0.6);
    border-radius: var(--radius);
    padding: var(--space-md) var(--space-xl);
    box-shadow: var(--shadow);
    flex: 1 1 280px;
}

.center {
    text-align: center;
}

.nomination-image {
    display: block;
    width: 100%;
    max-width: 180px;
    margin: 0 auto var(--space-sm);
    border-radius: 14px;
}

.event-card {
    position: relative;
}

.event-layout {
    display: flex;
    align-items: stretch;
    gap: var(--space-lg);
}

.event-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.event-image {
    display: block;
    width: min(100%, 160px);
    flex: 0 0 auto;
    max-width: 160px;
    margin: 0;
    border-radius: 14px;
}

.event-content .button-row {
    margin-top: auto;
    justify-content: flex-start;
}

.button-row {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.contacts-card {
    display: grid;
    grid-template-columns: minmax(280px, 1.1fr) minmax(320px, 1fr);
    gap: var(--space-lg);
    align-items: baseline;
    background: linear-gradient(145deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .08));
}

.contacts-intro {
    display: grid;
    gap: 12px;
}

.contacts-intro h3 {
    margin: 0;
    font-size: clamp(24px, 4vw, 34px);
    line-height: 1.2;
}

.contacts-intro p {
    margin: 0;
}

.contacts-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: start;
    width: max-content;
    margin: 0;
    padding: 1px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .25);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: #dff1ff;
}

.contacts-grid {
    display: grid;
    gap: var(--space-sm);
}

.contacts-link {
    display: block;
    padding: var(--space-sm);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .2);
    background: rgba(255, 255, 255, .08);
    color: var(--white);
    text-decoration: none;
    transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}

.contacts-link:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, .35);
    background: rgba(255, 255, 255, .14);
}

.contacts-link:focus-visible {
    outline: 2px solid var(--white);
    outline-offset: 2px;
}

.contacts-label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
}

.contacts-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
}

.legal-note {
    margin: var(--space-sm) 0 0;
    font-size: 14px;
    color: var(--text-muted);
}

.legal-note a {
    color: var(--white);
    text-underline-offset: 2px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    padding: var(--space-md) 0;
    border-top: 1px solid var(--border-soft);
}

.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    gap: var(--space-md);
}

.footer-copy {
    white-space: nowrap;
}

.footer-author {
    color: rgba(216, 228, 243, .45);
    font-size: 12px;
    opacity: .75;
    letter-spacing: .02em;
    text-align: right;
    margin-left: auto;
}

/* ===== Burger ===== */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.burger span {
    width: 24px;
    height: 3px;
    background: #fff;
    border-radius: 3px;
}

.desktop-vk {
    visibility: visible;
}

/* ===== Mobile styles ===== */
@media (max-width: 900px) {
    .card,
    .card--hero {
        padding: var(--space-md);
    }

    .hero-top {
        flex-wrap: wrap;
    }

    .event-layout {
        flex-direction: column;
    }

    .event-image {
        width: min(100%, 220px);
        max-width: 220px;
        margin: 0 auto;
    }

    .event-content .button-row {
        margin-top: var(--space-sm);
        justify-content: flex-start;
    }

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

    .contacts-value {
        font-size: 18px;
        word-break: break-word;
    }

    html {
        scroll-behavior: auto;
    }

    header nav {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 260px;
        background: rgba(26, 15, 53, 0.75);
        flex-direction: column;
        padding: var(--space-md);
        gap: var(--space-md);
        transform: translateX(100%);
        transition: transform .3s ease;
        pointer-events: none;
        z-index: 100000;
    }

    header nav.active {
        transform: translateX(0);
        pointer-events: auto;
    }

    .burger {
        display: flex;
    }

    .desktop-vk {
        display: none;
    }

    .footer-row {
        flex-direction: column;
    }

}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }

    html {
        scroll-behavior: auto;
    }
}
