@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.page-fade-in {
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

.page-fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.page-fade-in-delay-1 {
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.1s forwards;
}

.page-fade-in-delay-2 {
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

.page-fade-in-delay-3 {
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.3s forwards;
}

.page-fade-in-delay-4 {
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.4s forwards;
}

@media (prefers-reduced-motion: reduce) {
    .page-fade-in,
    .page-fade-in-up,
    .page-fade-in-delay-1,
    .page-fade-in-delay-2,
    .page-fade-in-delay-3,
    .page-fade-in-delay-4 {
        animation: none;
        opacity: 1;
    }
}

:root {
    --bg-base: #04060f;
    --bg-overlay: #0d111f;
    --bg-card: rgba(15, 19, 33, 0.85);
    --accent: #ff7f50;
    --accent-secondary: #8d9dff;
    --accent-soft: rgba(141, 157, 255, 0.18);
    --text-main: #f5f7ff;
    --text-muted: #a9b1d6;
    --border: rgba(255, 255, 255, 0.12);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --shadow-soft: 0 28px 65px rgba(0, 0, 0, 0.52);
    --shadow-tiny: 0 10px 28px rgba(0, 0, 0, 0.3);
    --transition: all 0.28s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, rgba(4, 6, 15, 1) 20%, rgba(11, 15, 27, 1) 100%);
    color: var(--text-main);
    line-height: 1.6;
    letter-spacing: 0.01em;
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
    border-radius: var(--radius-md);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(18px);
    background: rgba(5, 7, 15, 0.82);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
}

.site-header::before {
    content: '';
    position: absolute;
    inset: -140% 45% auto -40%;
    height: 360%;
    background: radial-gradient(circle at center, rgba(141, 157, 255, 0.35), rgba(255, 127, 80, 0) 55%);
    transform: rotate(12deg);
    pointer-events: none;
    opacity: 0.45;
}

.header-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 20px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: relative;
    z-index: 1;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 700;
    transition: none;
    color: var(--text-main);
}

.logo:hover,
.logo:focus-visible {
    transform: none;
    box-shadow: none;
}

.logo-title {
    font-size: 0.92rem;
    letter-spacing: 0.16em;
}

.logo-year {
    font-size: 0.9rem;
    color: var(--accent-secondary);
    text-shadow: 0 0 18px rgba(141, 157, 255, 0.45);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
    position: relative;
    -webkit-tap-highlight-color: rgba(255, 127, 80, 0.2);
    touch-action: manipulation;
}

.menu-toggle-bar {
    width: 100%;
    height: 3px;
    background: var(--text-main);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

.main-nav {
    display: flex;
    gap: 24px;
}

.nav-link {
    font-weight: 500;
    opacity: 0.7;
    position: relative;
    padding-bottom: 4px;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.active {
    opacity: 1;
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link.active::after {
    width: 100%;
}

.header-meta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    border-radius: 0;
    background: none;
    font-size: 0.82rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 600;
    color: rgba(241, 244, 255, 0.86);
    box-shadow: none;
}

.header-meta-dot {
    display: none;
}

.header-meta-year {
    font-weight: 700;
    color: var(--accent);
}

.header-meta-label {
    letter-spacing: 0.18em;
}


.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.registration-main {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    gap: 80px;
    padding: 0 24px 100px;
}

.registration-hero {
    display: flex;
    justify-content: center;
    text-align: center;
}

.registration-hero-inner {
    max-width: 760px;
    padding: 48px 24px 0;
}

.registration-title {
    margin: 0 0 20px;
    font-size: clamp(2.1rem, 4.6vw, 3.1rem);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.registration-subtitle {
    margin: 0;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.subtitle-note {
    display: block;
    margin-top: 12px;
    font-size: 0.92rem;
    opacity: 0.7;
}

.registration-flow {
    display: flex;
    justify-content: center;
}

.registration-flow-inner {
    width: min(100%, 1020px);
    display: grid;
    grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}

.registration-form-card {
    display: flex;
    justify-content: center;
}

.registration-form {
    width: min(100%, 420px);
    padding: 40px 36px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--accent-soft);
    background: var(--bg-card);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-legend {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.form-legend-accent {
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 127, 80, 0.22);
    border: 1px solid rgba(255, 127, 80, 0.4);
    color: var(--accent);
    font-weight: 600;
}

.form-legend-text {
    opacity: 0.7;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input-label {
    font-weight: 600;
    letter-spacing: 0.05em;
}

.registration-form input,
.registration-form select {
    width: 100%;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(9, 12, 23, 0.85);
    color: var(--text-main);
    font: inherit;
    transition: var(--transition);
}

.registration-form input::placeholder {
    color: rgba(169, 177, 214, 0.65);
}

.registration-form input:focus-visible,
.registration-form select:focus-visible {
    outline: none;
    border-color: rgba(255, 127, 80, 0.6);
    box-shadow: 0 0 0 4px rgba(255, 127, 80, 0.18);
}

.registration-form select {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.5) 50%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.5) 50%, transparent 50%);
    background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
    background-size: 6px 6px;
    background-repeat: no-repeat;
}

.form-checkbox {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 0.92rem;
    color: var(--text-muted);
}

.form-checkbox input {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-submit {
    margin-top: 8px;
    padding: 14px 0;
    border-radius: 999px;
    border: none;
    background: linear-gradient(120deg, var(--accent), var(--accent-secondary));
    color: var(--bg-base);
    font-weight: 700;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.form-submit:hover,
.form-submit:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 24px 48px rgba(141, 157, 255, 0.35);
}

.registration-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-block {
    padding: 28px 32px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(9, 13, 22, 0.72);
    backdrop-filter: blur(10px);
}

.info-block h2 {
    margin: 0 0 12px;
    font-size: 1.2rem;
    letter-spacing: 0.03em;
}

.info-block p {
    margin: 0;
    color: var(--text-muted);
}

.registration-media {
    display: flex;
    justify-content: center;
    padding-top: 12px;
}

.media-figure {
    width: min(100%, 920px);
    margin: 0;
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(12, 16, 28, 0.75);
    box-shadow: var(--shadow-soft);
}

.media-figure figcaption {
    margin-top: 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.registration-footer {
    flex-shrink: 0;
    padding: 40px 24px 48px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(5, 8, 17, 0.92);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
}

.footer-link {
    color: var(--accent-secondary);
    opacity: 0.85;
    transition: var(--transition);
}

.footer-link:hover,
.footer-link:focus-visible {
    opacity: 1;
}

.footer-separator {
    opacity: 0.5;
    font-weight: 300;
}

.footer-sign {
    margin: 0;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 1080px) {
    .registration-flow-inner {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .registration-info {
        width: min(100%, 720px);
    }
}

@media (max-width: 900px) {
    .header-inner {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .header-meta {
        order: 3;
    }
}


@media (max-width: 820px) {
    .menu-toggle {
        display: flex;
    }

    .header-inner {
        flex-wrap: nowrap;
        justify-content: space-between;
        position: relative;
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        min-height: 100vh;
        max-height: 100vh;
        background: linear-gradient(135deg, rgba(9, 12, 24, 0.98), rgba(7, 9, 19, 0.98));
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 32px;
        padding: 80px 24px 40px;
        transform: translateX(-100%);
        transition: transform 0.3s ease, opacity 0.3s ease;
        opacity: 0;
        visibility: hidden;
        z-index: 1001;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
        margin: 0;
        border: none;
    }

    .main-nav.nav-open {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        font-size: 1.2rem;
        padding: 16px 24px;
        width: 100%;
        text-align: center;
        border-radius: var(--radius-md);
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        transition: all 0.3s ease;
        opacity: 1;
    }

    .nav-link::after {
        display: none;
    }

    .nav-link:hover,
    .nav-link:focus-visible,
    .nav-link.active {
        background: linear-gradient(120deg, rgba(255, 127, 80, 0.2), rgba(141, 157, 255, 0.2));
        border-color: rgba(255, 127, 80, 0.4);
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(255, 127, 80, 0.2);
    }

    .header-meta {
        display: none;
    }

    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
        height: 100%;
        left: 0;
        top: 0;
    }

    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        pointer-events: none;
    }
}

@media (max-width: 720px) {
    .registration-main {
        gap: 64px;
        padding-inline: 18px;
    }

    .registration-form {
        padding: 32px 24px;
    }

    .info-block {
        padding: 24px 22px;
    }

    .media-figure {
        padding: 20px;
    }
}

@media (max-width: 520px) {
    .logo {
        justify-content: center;
        padding: 10px 18px;
        letter-spacing: 0.12em;
    }

    .main-nav {
        gap: 12px;
    }

    .registration-hero-inner {
        padding: 32px 20px 0;
    }

    .registration-main {
        gap: 48px;
        padding: 0 16px 80px;
    }

    .media-figure {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .registration-form {
        width: 100%;
    }

    .form-checkbox {
        font-size: 0.88rem;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

