/* ===== ОСНОВНЫЕ СТИЛИ ===== */
:root {
    --bg-dark: #0a0f1e;
    --bg-darker: #05070c;
    --primary: #6dd5ed; /* Ледяной голубой */
    --primary-glow: #00d4ff;
    --secondary: #b721ff; /* Полярное сияние (фиолет) */
    --accent: #ffd700; /* Золото */
    --text-light: #e0e0e0;
    --glass-bg: rgba(10, 20, 30, 0.5);
    --glass-border: rgba(109, 213, 237, 0.2);
    --error: #ff6b6b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden; /* mobile: body-only overflow-x isn't always enough */
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    touch-action: pan-y; /* avoid accidental horizontal panning on touch */
    -webkit-hyphens: none;
    -ms-hyphens: none;
    hyphens: none;
}

html, body {
    width: 100%;
    max-width: 100%;
}
/* Дополнительные стили для блока "О форуме" */
.about-lead {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #e0e0ff;
    border-left: 3px solid #5f9ea0;
    padding-left: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 400;
}

.accent {
    color: #7fffd4;
    font-weight: 600;
}

.accent-text {
    color: #7fffd4;
    font-weight: 500;
    text-shadow: 0 0 8px rgba(127, 255, 212, 0.3);
}

.about-quote {
    margin: 2.5rem 0;
    padding: 1.5rem 2rem;
    background: rgba(0, 15, 30, 0.6);
    border: 1px solid rgba(95, 158, 160, 0.3);
    border-radius: 4px;
    position: relative;
    backdrop-filter: blur(5px);
}

.about-quote i {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 3rem;
    color: rgba(95, 158, 160, 0.2);
}

.about-quote p {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #fff;
    letter-spacing: 0.5px;
}

.quote-author {
    display: block;
    text-align: right;
    color: #9cb0b0;
    font-size: 0.95rem;
    font-style: italic;
}

.glitch-text {
    position: relative;
    display: inline-block;
    transition: text-shadow 0.25s ease, color 0.25s ease, filter 0.25s ease;
    color: inherit;
}

.about-quote p:hover .glitch-text,
.about-quote:hover .glitch-text {
    color: #ffffff;
    text-shadow:
        0 0 10px rgba(0, 212, 255, 0.45),
        0 0 22px rgba(109, 213, 237, 0.28),
        0 0 42px rgba(183, 33, 255, 0.16);
    filter: saturate(1.08);
}

.about-subtitle {
    font-size: 1.5rem;
    margin: 2.5rem 0 1.5rem;
    color: #fff;
    font-weight: 500;
    letter-spacing: 1px;
}

.title-decoration {
    color: #5f9ea0;
    font-weight: 300;
    margin-right: 10px;
    font-family: 'Orbitron', sans-serif;
}

.about-tracks {
    list-style: none;
    padding: 0;
    margin: 0 0 2.5rem;
}

.about-tracks li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.2rem;
    padding: 0.8rem 1rem;
    background: rgba(10, 25, 40, 0.5);
    border-left: 2px solid transparent;
    transition: all 0.3s ease;
}

.about-tracks li:hover {
    border-left-color: #7fffd4;
    background: rgba(20, 40, 60, 0.8);
    transform: translateX(5px);
}

.track-tag {
    font-family: 'Orbitron', sans-serif;
    color: #5f9ea0;
    font-weight: 700;
    font-size: 1.1rem;
    min-width: 40px;
}

.track-content {
    color: #d0e0e0;
}

.track-content strong {
    color: #7fffd4;
    font-weight: 600;
    display: block;
    margin-bottom: 0.3rem;
}

.about-highlight {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(145deg, rgba(0, 31, 51, 0.9), rgba(0, 20, 33, 0.9));
    border: 1px solid #5f9ea0;
    box-shadow: 0 0 25px rgba(95, 158, 160, 0.2);
}

.highlight-label {
    color: #7fffd4;
    font-weight: 600;
    letter-spacing: 1px;
    margin-right: 10px;
}


/* На некоторых мобильных браузерах это лучше гасит «выпирание» при загрузке */
@supports (overflow-x: clip) {
    body {
        overflow-x: clip;
    }
}

html.menu-open,
html.menu-open body {
    overflow: hidden;
}

html.modal-open,
html.modal-open body {
    overflow: hidden;
}

body {
    overscroll-behavior-x: none;
}

html {
    overscroll-behavior-x: none;
}

.content,
.section,
.navbar {
    overflow-x: clip;
}

img, svg, video, canvas {
    max-width: 100%;
}

/* ===== ССЫЛКИ (фикс :visited/:active) ===== */
a {
    color: inherit;
    text-decoration-skip-ink: auto;
}

a:visited {
    color: inherit;
}

/* Сохраняем UX: фокус видимый, но без смены цвета */
a:focus-visible {
    outline: 2px solid rgba(109, 213, 237, 0.7);
    outline-offset: 3px;
    border-radius: 6px;
}

.no-hyphens {
    -webkit-hyphens: none;
    -ms-hyphens: none;
    hyphens: none;
    word-break: normal;
    overflow-wrap: normal;
}

/* ===== ЧАСТИЦЫ ФОНА (Particles) ===== */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
    pointer-events: none; /* чтобы клики/ховер по контенту не ломались */
}

/* canvas создаётся библиотекой particles.js */
.particles-js-canvas-el {
    pointer-events: none;
    display: block;
    width: 100% !important;
    height: 100% !important;
}

/* ===== ОСНОВНОЙ КОНТЕНТ ПОВЕРХ ЧАСТИЦ ===== */
.content {
    position: relative;
    z-index: 10;
    touch-action: pan-y;
}

/* ===== НАВИГАЦИЯ ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 2rem;
    background: rgba(5, 7, 12, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-toggle {
    display: none;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(10, 20, 30, 0.25);
    backdrop-filter: blur(10px);
    width: 52px;
    height: 44px;
    border-radius: 12px;
    padding: 10px 12px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
}

.nav-toggle-line {
    display: block;
    width: 28px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
    transform-origin: center;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.navbar.is-open .nav-toggle-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.navbar.is-open .nav-toggle-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0.6);
}
.navbar.is-open .nav-toggle-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu {
    display: none;
}

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    margin-top: 12px;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    background: rgba(5, 7, 12, 0.95);
    box-shadow: 0 20px 60px rgba(0,0,0,0.45);
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    text-decoration: none;
    color: var(--text-light);
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(10, 20, 30, 0.35);
}

.mobile-menu-link:hover {
    border-color: rgba(109, 213, 237, 0.35);
    color: var(--primary);
}

.mobile-menu-article {
    border-color: rgba(109, 213, 237, 0.35);
}

.logo {
    display: inline-block;
    width: 5vh;
    height: 5vh;
   /* border-radius: 999px;
    background:
        radial-gradient(circle at 10% 0%, rgba(255, 255, 255, 0.35), transparent 55%),
        linear-gradient(120deg, var(--primary), var(--secondary));
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 18px rgba(0, 212, 255, 0.35);*/
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.logo-placeholder {
    text-decoration: none;
}

.logo-icon {
    margin-right: 5px;
    background: none;
    -webkit-text-fill-color: var(--primary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.nav-menu a:visited {
    color: var(--text-light);
}

.nav-menu a:hover {
    color: var(--primary);
    text-shadow: 0 0 8px var(--primary-glow);
}

.article-link {
    border: 1px solid var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 30px;
}

/* ===== HERO СЕКЦИЯ ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.hero-content h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 6rem;
    font-weight: 900;
    margin-bottom: 0;
    text-transform: uppercase;
    color: white;
    text-shadow: 0 0 10px var(--primary), 0 0 20px var(--primary), 0 0 40px var(--secondary);
}

/* Эффект глитча (помехи) для заголовка */
.glitch {
    position: relative;
    animation: glitch 4s infinite;
}

@keyframes glitch {
    0%, 100% { transform: none; opacity: 1; }
    7% { transform: skew(-0.5deg, -0.9deg); opacity: 0.75; }
    10% { transform: none; opacity: 1; }
    27% { transform: none; opacity: 1; }
    30% { transform: skew(0.8deg, -0.1deg); opacity: 0.75; }
    35% { transform: none; opacity: 1; }
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 0;
    letter-spacing: 2px;
    color: #ccc;
}

.hero-tagline {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgba(232, 249, 255, 0.92);
    text-shadow: 0 0 16px rgba(0, 212, 255, 0.22);
    display: flex;
    gap: 0.55em;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-tagline-word {
    display: inline;
}

.hero-tagline-word:nth-child(2) {
    color: rgba(109, 213, 237, 0.98);
    text-shadow: 0 0 18px rgba(109, 213, 237, 0.28);
}

.date-badge {
    margin-bottom: 0;
    font-size: 1rem;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    padding: 1rem 0.4rem;
    border-radius: 0px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px solid rgba(109, 213, 237, 0.6);
    box-shadow: 0 0 18px rgba(0, 212, 255, 0.25);
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.btn-glow {
    display: inline-block;
    padding: 1rem 1.5rem;
    border: none;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 50px;
    text-decoration: none;
    transition: 0.3s;
    box-shadow: 0 0 20px rgba(111, 66, 193, 0.5);
    border: 1px solid rgba(255,255,255,0.2);
}

.btn-glow--sm {
    padding: 0.7rem 1.15rem;
    letter-spacing: 1.2px;
    font-size: 0.85rem;
}

.btn-glow--sm i {
    margin-right: 8px;
}

.btn-glow:visited {
    color: white;
}

.btn-glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px var(--primary), 0 0 60px var(--secondary);
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    transform: translateX(-50%);
}

.scroll-down span {
    display: block;
    width: 30px;
    height: 50px;
    border: 2px solid var(--primary);
    border-radius: 15px;
    position: relative;
}

.scroll-down span::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 10px;
    background: var(--primary);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 25px; }
}

/* ===== ОБЩИЕ СТИЛИ СЕКЦИЙ ===== */
.section {
    padding: 100px 0;
    background: rgba(5, 7, 12, 0.6);
    backdrop-filter: blur(5px);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg, #fff, var(--primary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

/* ===== СЕКЦИЯ ABOUT ===== */
.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #b0b0b0;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.stat-item {
    text-align: center;
    margin-bottom: 2rem;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    font-family: 'Orbitron', sans-serif;
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary);
}

.stat-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #aaa;
}

/* ===== ПРОГРАММА ===== */
.program-days {
    display: grid;
    gap: 2.25rem;
}

.program-day-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.6rem;
    margin-bottom: 1.25rem;
    color: #e8f9ff;
}

.program-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    align-items: start; /* не растягивать карточки по высоте строки */
}

.program-day {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    transition: 0.3s;
    align-self: start; /* на случай переопределений align-items */
}

.program-day--wide {
    grid-column: auto; /* по умолчанию (мобилки/узкие экраны) — обычная карточка */
}

@media (min-width: 900px) {
    .program-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .program-day--wide {
        grid-column: 1 / -1; /* длинный блок на всю ширину */
    }
}

/* В диапазоне ~600–900px: строго одна секция в строке */
@media (min-width: 600px) and (max-width: 899.98px) {
    .program-tabs {
        grid-template-columns: 1fr;
    }

    .program-day--wide {
        grid-column: auto;
    }
}

.program-day h4 {
    color: var(--primary);
    margin-bottom: 1.1rem;
    font-size: 1.2rem;
}

.program-day:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.program-day h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.program-subtitle {
    font-weight: 700;
    letter-spacing: 0.2px;
    margin-top: -0.6rem;
    margin-bottom: 0.35rem;
    color: #e8f9ff;
}

.program-place {
    font-size: 0.95rem;
    color: rgba(224, 224, 224, 0.85);
    margin-bottom: 1.2rem;
}

.program-day ul {
    list-style: none;
}

.program-day li {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed rgba(255,255,255,0.1);
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.program-day li span,
.program-time {
    font-weight: 700;
    color: var(--accent);
    display: inline-block;
    min-width: 92px;
    flex: 0 0 92px;
    line-height: 1.35;
}

.program-item {
    flex: 1;
    min-width: 0;
    line-height: 1.5;
    word-break: break-word;
}

.program-meta {
    margin-top: 4px;
    font-size: 0.9rem;
    color: rgba(224, 224, 224, 0.78);
}

@media (max-width: 480px) {
    .program-day li {
        flex-direction: column;
        gap: 6px;
    }

    .program-day li span,
    .program-time {
        min-width: 0;
        flex: none;
    }
}

/* ===== ФОРМА РЕГИСТРАЦИИ ===== */
.form-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 3rem;
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #ddd;
    font-size: 0.95rem;
}

.required {
    color: var(--error);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    transition: 0.3s;
}

.form-group select option {
    background: rgba(5, 7, 12, 0.98);
    color: var(--text-light);
}

.form-group select option:disabled {
    color: rgba(224, 224, 224, 0.65);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary);
}

.form-group.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
}

.form-group.checkbox-group input {
    width: auto;
}

.form-group.checkbox-group label {
    margin-bottom: 0;
}

.form-group.checkbox-group a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.form-group.checkbox-group a:hover {
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.25);
}

.footer a {
    color: var(--primary);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.error-message {
    color: var(--error);
    font-size: 0.85rem;
    margin-top: 5px;
    min-height: 16px;
}

.btn-submit {
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    border: none;
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 0 20px rgba(0,212,255,0.3);
}

.btn-submit:hover {
    transform: scale(1.02);
    box-shadow: 0 0 40px var(--primary);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    filter: grayscale(0.1) saturate(0.9);
}

.btn-submit.is-loading {
    position: relative;
}

.form-note {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.85rem;
    color: #888;
}

.form-result {
    margin-top: 1.5rem;
    text-align: center;
    font-weight: 600;
    min-height: 40px;
    display: none; /* заменено на pop-up */
}

.form-result.is-success {
    color: var(--primary);
    text-shadow: 0 0 10px rgba(109, 213, 237, 0.25);
}

.form-result.is-error {
    color: var(--error);
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.18);
}

/* ===== MODAL (pop-up) ===== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
}

.modal.is-open {
    display: block;
}

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(8px);
}

.modal__dialog {
    position: relative;
    width: min(560px, calc(100% - 32px));
    margin: 14vh auto 0;
    padding: 22px 22px 18px;
    border-radius: 18px;
    border: 1px solid rgba(109, 213, 237, 0.28);
    background: rgba(5, 7, 12, 0.92);
    box-shadow: 0 30px 120px rgba(0, 0, 0, 0.55);
    text-align: center;
}

.modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(10, 20, 30, 0.35);
    color: rgba(224, 224, 224, 0.92);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.modal__close:hover {
    transform: translateY(-1px);
    border-color: rgba(109, 213, 237, 0.4);
}

.modal__icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    margin: 6px auto 14px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,0.12);
    background:
        radial-gradient(circle at 30% 30%, rgba(109,213,237,0.26), transparent 55%),
        linear-gradient(135deg, rgba(183,33,255,0.18), rgba(0,212,255,0.12));
}

.modal.is-success .modal__icon {
    border-color: rgba(109, 213, 237, 0.35);
    box-shadow: 0 0 26px rgba(0, 212, 255, 0.18);
    background: url(images/success.svg) no-repeat center center;
    background-size: contain;
}

.modal.is-error .modal__icon {
    border-color: rgba(255, 107, 107, 0.35);
    box-shadow: 0 0 26px rgba(255, 107, 107, 0.12);
    background: url(images/error.svg) no-repeat center center;
    background-size: contain;
}

.modal__title {
    font-family: 'Orbitron', sans-serif;
    font-weight: 800;
    letter-spacing: 0.8px;
    font-size: 1.25rem;
    color: #eafcff;
    margin-bottom: 8px;
}

.modal__text {
    color: rgba(224, 224, 224, 0.92);
    line-height: 1.65;
    font-size: 1.02rem;
    margin-bottom: 14px;
}

.modal__actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}

@media (max-width: 480px) {
    .modal__dialog {
        margin-top: 12vh;
        padding: 18px 16px 16px;
        border-radius: 16px;
    }
}

/* ===== ПОДВАЛ ===== */
.footer {
    padding: 2rem 0;
    text-align: center;
    background: var(--bg-darker);
    border-top: 1px solid var(--glass-border);
    position: relative;
}

.back-to-top {
    position: absolute;
    right: 30px;
    bottom: 30px;
    width: 50px;
    height: 50px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-dark);
    font-size: 1.2rem;
    transition: 0.3s;
    text-decoration: none;
}

.back-to-top:visited {
    color: var(--bg-dark);
}

.back-to-top:hover {
    background: white;
    transform: translateY(-5px);
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-glow-secondary {
    background: linear-gradient(45deg, rgba(109,213,237,0.15), rgba(183,33,255,0.25));
    border: 1px solid rgba(109, 213, 237, 0.5);
    box-shadow: none;
}

.btn-glow-secondary:hover {
    box-shadow: 0 0 24px rgba(0, 212, 255, 0.25), 0 0 45px rgba(183, 33, 255, 0.18);
}

/* ===== АДАПТАЦИЯ ДЛЯ МОБИЛЬНЫХ ===== */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .mobile-menu {
        display: block;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 0 0;
    }

    .mobile-menu[aria-hidden="true"] .mobile-menu-inner {
        display: none;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-content p {
        margin-bottom: 0;
    }

    .hero-tagline {
        font-size: 1.05rem;
        letter-spacing: 0.14em;
        line-height: 1.05;
        gap: 0.25em;
    }

    .hero-tagline-word {
        display: block;
    }

    .date-badge {
        margin-bottom: 0;
    }

    .hero-actions {
        row-gap: 1.5rem;
        column-gap: 0.75rem;
    }

    .logo {
        width: 56px;
        height: 56px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .form-card {
        padding: 1.5rem;
    }

    .form-group input,
    .form-group select {
        padding: 0.9rem;
    }

    .about-lead {
        font-size: 1.05rem;
        padding-left: 1rem;
        margin-bottom: 1.5rem;
    }

    .about-text p {
        font-size: 1.02rem;
        line-height: 1.75;
        margin-bottom: 0.9rem;
    }

    .about-quote {
        padding: 1.15rem 1.1rem;
        margin: 1.75rem 0;
    }

    .about-quote p {
        font-size: 1.15rem;
        letter-spacing: 0.2px;
    }

    .about-subtitle {
        font-size: 1.25rem;
        margin: 2rem 0 1.1rem;
    }

    .about-tracks li {
        padding: 0.8rem 0.9rem;
    }

    .about-highlight {
        padding: 1.15rem;
    }

    /* footer/back-to-top: базовый компактный размер */
    .back-to-top {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .section {
        padding: 84px 0;
    }

    .form-card {
        padding: 1.1rem;
        border-radius: 22px;
    }

    .btn-glow--sm {
        padding: 0.65rem 1.05rem;
        letter-spacing: 1px;
        font-size: 0.83rem;
    }

    .hero-tagline {
        font-size: 0.98rem;
        letter-spacing: 0.12em;
        line-height: 1.02;
    }
}

/* footer/back-to-top: на маленьких экранах — отдельной строкой, без перекрытий */
@media (max-width: 600px) {
    .back-to-top {
        position: static;
        margin: 14px auto 0;
    }
}

/* ===== ARTICLE: блоки/плейсхолдеры изображений и автора ===== */
.article-author {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 12px;
    align-items: start;
    padding: 1rem 1.1rem;
    margin: 1.25rem 0 1.75rem;
    border-radius: 18px;
    border: 1px solid rgba(109, 213, 237, 0.22);
    background: rgba(10, 20, 30, 0.35);
}

.article-author-photo {
    width: 168px;
    height: 168px;
    border-radius: 26px;
    border: 1px solid rgba(255,255,255,0.12);
    background:
        radial-gradient(circle at 30% 30%, rgba(109,213,237,0.28), transparent 55%),
        linear-gradient(135deg, rgba(183,33,255,0.22), rgba(0,212,255,0.14));
    box-shadow: 0 0 22px rgba(0, 212, 255, 0.08);
    overflow: hidden;
}

.article-author-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.article-author-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.article-author-name {
    font-weight: 700;
    color: #eafcff;
    letter-spacing: 0.2px;
    margin-top: 0.2rem;
    margin-bottom: 0;
    font-size: 1.3rem;
}

.article-author-role {
    color: rgba(224, 224, 224, 0.9);
    line-height: 1.45;
    margin-top: 0.35rem;
    max-width: 58ch;
}

.article-figure {
    margin: 1.8rem 0;
}

.article-image-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 18px;
    border: 1px solid rgba(109, 213, 237, 0.35);
    background:
        linear-gradient(135deg, rgba(109,213,237,0.08), rgba(183,33,255,0.06)),
        rgba(5, 7, 12, 0.35);
    display: grid;
    place-items: center;
    color: rgba(224, 224, 224, 0.7);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 600;
    font-size: 0.85rem;
    overflow: hidden;
}

.article-figure figcaption {
    margin-top: 0.6rem;
    color: rgba(224, 224, 224, 0.75);
    font-size: 0.95rem;
    line-height: 1.55;
}

@media (max-width: 600px) {
    .article-author {
        border-radius: 16px;
    }

    .article-author-photo {
        width: 132px;
        height: 132px;
        border-radius: 22px;
    }

    .article-author-name {
        margin-top: 0.6rem;
        font-size: 1.2rem;
        letter-spacing: 0.25px;
    }

    .article-author-role {
        max-width: 40ch;
    }
}

@media (max-width: 480px) {
    .article-author {
        grid-template-columns: 1fr;
        justify-items: center;
        padding: 1.05rem 1rem;
        border-radius: 16px;
        text-align: center;
    }

    .article-author-photo {
        width: 132px;
        height: 132px;
        border-radius: 22px;
    }

    .article-author-text {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .article-author-name {
        margin-top: 0.7rem;
        font-size: 1.2rem;
        letter-spacing: 0.25px;
    }

    .article-author-role {
        margin-top: 0.35rem;
        max-width: 36ch;
    }

    .article-image-placeholder {
        border-radius: 16px;
    }
}