/* ============================================
   ЭФФЕКТЫ — АНИМАЦИИ, ЧАСТИЦЫ, КУРСОР, ГЛИТЧ
   Все блоки сохранены. Работает в обеих темах.
   ============================================ */

/* ===== КУРСОРНЫЙ СВЕТ (следует за мышью) ===== */
.cursor-glow {
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(206, 66, 43, 0.18), rgba(206, 66, 43, 0.05) 40%, transparent 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9998;
    mix-blend-mode: screen;
    transition: opacity 0.3s;
    will-change: transform;
}

html[data-theme="light"] .cursor-glow {
    background: radial-gradient(circle, rgba(217, 74, 47, 0.12), rgba(217, 74, 47, 0.03) 40%, transparent 70%);
    mix-blend-mode: multiply;
}

/* ===== КАСТОМНЫЙ КУРСОР: ТОЧКА ===== */
.cursor-dot {
    position: fixed;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 10000;
    box-shadow: 0 0 12px var(--accent-glow), 0 0 24px var(--accent-glow);
    transition: width 0.2s, height 0.2s, background 0.2s;
    will-change: transform;
}

/* ===== КАСТОМНЫЙ КУРСОР: КОЛЬЦО ===== */
.cursor-ring {
    position: fixed;
    width: 32px;
    height: 32px;
    border: 1.5px solid var(--accent);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    opacity: 0.6;
    transition: width 0.2s, height 0.2s, opacity 0.2s, border-color 0.2s;
    will-change: transform;
}

.cursor-ring.hover {
    width: 48px;
    height: 48px;
    opacity: 0.9;
    border-color: var(--steam);
    border-width: 2px;
}

@media (max-width: 768px) {
    .cursor-glow,
    .cursor-dot,
    .cursor-ring {
        display: none !important;
    }
}

/* ===== ЧАСТИЦЫ ===== */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    bottom: -20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    animation: floatUp linear infinite;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.3);
}

html[data-theme="light"] .particle {
    background: rgba(0, 0, 0, 0.1);
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.15);
}

.particle-accent {
    background: rgba(206, 66, 43, 0.6);
    box-shadow: 0 0 14px var(--accent-glow);
}

html[data-theme="light"] .particle-accent {
    background: rgba(217, 74, 47, 0.4);
}

.particle-steam {
    background: rgba(102, 192, 244, 0.6);
    box-shadow: 0 0 14px var(--steam-glow);
}

html[data-theme="light"] .particle-steam {
    background: rgba(27, 123, 189, 0.4);
}

@keyframes floatUp {
    0% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0;
    }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% {
        transform: translateY(-110vh) translateX(100px) scale(0.5);
        opacity: 0;
    }
}

/* ===== РЕАКЦИЯ ФОНА НА МЫШЬ ===== */
body::before {
    background:
        radial-gradient(circle at var(--mouse-x, 20%) var(--mouse-y, 20%), rgba(206, 66, 43, 0.3) 0%, transparent 40%),
        radial-gradient(circle at calc(100% - var(--mouse-x, 80%)) calc(100% - var(--mouse-y, 80%)), rgba(102, 192, 244, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(138, 43, 226, 0.1) 0%, transparent 60%) !important;
    transition: background 0.15s ease;
}

html[data-theme="light"] body::before {
    background:
        radial-gradient(circle at var(--mouse-x, 20%) var(--mouse-y, 20%), rgba(217, 74, 47, 0.15) 0%, transparent 40%),
        radial-gradient(circle at calc(100% - var(--mouse-x, 80%)) calc(100% - var(--mouse-y, 80%)), rgba(27, 123, 189, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(138, 43, 226, 0.05) 0%, transparent 60%) !important;
}

/* ===== RIPPLE ===== */
.btn {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%) scale(0);
    animation: rippleAnim 0.6s ease-out;
    pointer-events: none;
    width: 20px;
    height: 20px;
}

@keyframes rippleAnim {
    to {
        transform: translate(-50%, -50%) scale(20);
        opacity: 0;
    }
}

/* ============================================
   ГЛИТЧ-ЭФФЕКТ
   ============================================ */

.glitch-hover {
    position: relative;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s;
    font-variant-ligatures: none;
}

.glitch-hover:hover {
    color: var(--accent);
    text-shadow:
        2px 0 10px rgba(206, 66, 43, 0.8),
        -2px 0 10px rgba(102, 192, 244, 0.6),
        0 0 30px var(--accent-glow);
}

/* ============================================
   HOVER-ЭФФЕКТ НА ЛЮБОМ ТЕКСТЕ
   ============================================ */

.text-hover-effect {
    transition: color 0.3s, text-shadow 0.3s, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.text-hover-effect:hover {
    color: var(--accent);
    text-shadow: 0 0 20px var(--accent-glow);
}

p.text-hover-effect:hover,
li.text-hover-effect:hover {
    transform: translateX(4px);
}

a.text-hover-effect:hover {
    transform: translateY(-2px);
}

/* ============================================
   АНИМАЦИЯ ПО БУКВАМ (data-split-text)
   ============================================ */

.split-text {
    display: inline-block;
}

.split-text .letter {
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: letterIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

@keyframes letterIn {
    0% {
        opacity: 0;
        transform: translateY(40px) rotate(-20deg) scale(0.5);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotate(0) scale(1);
    }
}

.split-text .letter:hover {
    transform: translateY(-10px) scale(1.4) rotate(15deg);
    color: var(--accent) !important;
    text-shadow: 0 0 25px var(--accent-glow);
    -webkit-text-fill-color: var(--accent);
}

/* ============================================
   HOVER НА ЗАГОЛОВКАХ
   ============================================ */

.hover-heading {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    display: inline-block;
}

.hover-heading:hover {
    transform: translateY(-3px);
    filter: drop-shadow(0 0 30px var(--accent-glow));
    letter-spacing: 0.02em;
}

/* ============================================
   ПУЛЬСАЦИЯ СЧЁТЧИКА
   ============================================ */

@keyframes countdownPulse {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(102, 192, 244, 0.5));
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 40px rgba(102, 192, 244, 0.9));
        transform: scale(1.02);
    }
}

.wipe-countdown {
    animation: countdownPulse 2s ease-in-out infinite !important;
}

/* ============================================
   ЛОГОТИП
   ============================================ */

.logo a {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo a:hover {
    filter: drop-shadow(0 0 25px var(--accent-glow));
    transform: scale(1.08) rotate(-2deg);
}

/* ============================================
   UNDERLINE В МЕНЮ
   ============================================ */

.nav a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    border-radius: 2px;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 10px var(--accent-glow);
}

.nav a:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* ============================================
   АНИМАЦИЯ ЗАГРУЗКИ СТРАНИЦЫ
   ============================================ */

@keyframes pageIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

body {
    animation: pageIn 0.6s ease-out;
}

/* ============================================
   СВЕЧЕНИЕ АКТИВНОГО ПУНКТА МЕНЮ
   ============================================ */

.nav a.active {
    animation: navGlow 2s ease-in-out infinite;
}

@keyframes navGlow {
    0%, 100% {
        box-shadow: inset 0 0 0 1px var(--border-hover),
                    0 0 20px rgba(206, 66, 43, 0.2);
    }
    50% {
        box-shadow: inset 0 0 0 1px var(--border-hover),
                    0 0 30px rgba(206, 66, 43, 0.4);
    }
}

/* ============================================
   ИКОНКИ КАРТОЧЕК — ПЛАВАНИЕ
   ============================================ */

.card-icon {
    display: inline-block;
    animation: iconFloat 3s ease-in-out infinite;
}

.card:nth-child(1) .card-icon { animation-delay: 0s; }
.card:nth-child(2) .card-icon { animation-delay: 0.5s; }
.card:nth-child(3) .card-icon { animation-delay: 1s; }

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* ============================================
   HERO — КНОПКИ
   ============================================ */

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 32px;
    flex-wrap: wrap;
}

/* ============================================
   ГЛАВНАЯ — СЕКЦИИ (feature, step, requirement)
   ============================================ */

.section-title {
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 800;
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: -0.02em;
}

.features {
    margin: 80px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.feature {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius);
    padding: 28px;
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    transition: transform 0.5s;
}

.feature:hover::before {
    transform: translateX(-50%) scaleX(1);
}

.feature:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: 0 12px 40px rgba(206, 66, 43, 0.2);
}

.feature-icon {
    font-size: 42px;
    margin-bottom: 16px;
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feature:hover .feature-icon {
    transform: scale(1.2) rotate(-10deg);
    filter: drop-shadow(0 0 20px var(--accent-glow));
}

.feature h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.feature p {
    color: var(--text-muted);
    font-size: 14px;
}

.info-block {
    margin: 80px 0;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.step {
    display: flex;
    gap: 16px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.step:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: 0 8px 32px rgba(206, 66, 43, 0.2);
}

.step-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
    color: white;
    box-shadow: 0 4px 20px var(--accent-glow);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.step:hover .step-number {
    transform: scale(1.15) rotate(10deg);
}

.step-content h3 {
    font-size: 17px;
    margin-bottom: 6px;
}

.step-content p {
    color: var(--text-muted);
    font-size: 14px;
}

.requirements {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.requirement {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 18px 22px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.requirement:hover {
    transform: translateX(8px);
    border-color: var(--border-hover);
    background: rgba(206, 66, 43, 0.08);
}

.requirement-icon {
    font-size: 26px;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.requirement:hover .requirement-icon {
    transform: scale(1.2) rotate(-15deg);
}

.requirement-text {
    font-weight: 500;
    color: var(--text);
}

/* ============================================
   СТАТИСТИКА — КАРТОЧКИ + ЛЕГЕНДА
   ============================================ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius);
    padding: 28px;
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, var(--accent-glow), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.stat-card:hover::before {
    opacity: 0.3;
}

.stat-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: 0 12px 40px rgba(206, 66, 43, 0.2);
}

.stat-icon {
    font-size: 32px;
    margin-bottom: 12px;
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stat-card:hover .stat-icon {
    transform: scale(1.2) rotate(-10deg);
}

.stat-value {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
}

.stat-label {
    color: var(--text-muted);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stats-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
    padding: 20px;
    background: var(--bg-input);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 14px;
    transition: color 0.3s;
}

.legend-item:hover {
    color: var(--text);
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    transition: transform 0.3s;
}

.legend-item:hover .legend-dot {
    transform: scale(1.3);
}

.legend-dot.green { background: var(--green); box-shadow: 0 0 10px rgba(67, 181, 129, 0.5); }
.legend-dot.yellow { background: var(--yellow); box-shadow: 0 0 10px rgba(250, 166, 26, 0.5); }
.legend-dot.red { background: var(--red); box-shadow: 0 0 10px rgba(240, 71, 71, 0.5); }
.legend-dot.black { background: var(--black); box-shadow: 0 0 10px rgba(79, 84, 92, 0.5); }

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.info-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.info-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: 0 8px 32px rgba(206, 66, 43, 0.15);
}

.info-card-icon {
    font-size: 32px;
    margin-bottom: 12px;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.info-card:hover .info-card-icon {
    transform: scale(1.15) rotate(-8deg);
}

.info-card h3 {
    font-size: 17px;
    margin-bottom: 8px;
}

.info-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
}

/* ============================================
   ПРАВИЛА — АККОРДЕОН
   ============================================ */

.page-header {
    text-align: center;
    margin-bottom: 48px;
}

.rules-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rule-category {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: cardIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

.rule-category:nth-child(1) { animation-delay: 0.05s; }
.rule-category:nth-child(2) { animation-delay: 0.1s; }
.rule-category:nth-child(3) { animation-delay: 0.15s; }
.rule-category:nth-child(4) { animation-delay: 0.2s; }
.rule-category:nth-child(5) { animation-delay: 0.25s; }
.rule-category:nth-child(6) { animation-delay: 0.3s; }
.rule-category:nth-child(7) { animation-delay: 0.35s; }
.rule-category:nth-child(8) { animation-delay: 0.4s; }

.rule-category:hover {
    border-color: var(--border-hover);
    box-shadow: 0 8px 32px rgba(206, 66, 43, 0.2);
    transform: translateY(-2px);
}

.rule-category.open {
    border-color: var(--accent);
    box-shadow: 0 12px 40px rgba(206, 66, 43, 0.3);
}

.rule-header {
    width: 100%;
    background: transparent;
    border: none;
    padding: 22px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    color: var(--text);
    font-family: inherit;
    font-size: 17px;
    font-weight: 600;
    transition: all 0.3s;
    text-align: left;
    gap: 16px;
}

.rule-header:hover {
    background: rgba(255, 255, 255, 0.03);
}

html[data-theme="light"] .rule-header:hover {
    background: rgba(0, 0, 0, 0.02);
}

.rule-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.rule-icon {
    font-size: 24px;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
}

.rule-category:hover .rule-icon {
    transform: scale(1.2) rotate(-8deg);
}

.rule-category.open .rule-icon {
    transform: scale(1.15) rotate(8deg);
    filter: drop-shadow(0 0 12px var(--accent-glow));
}

.rule-title {
    font-weight: 600;
    font-size: 17px;
    color: var(--text);
}

.rule-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 22px;
    padding: 0 8px;
    background: rgba(206, 66, 43, 0.15);
    color: var(--accent);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid rgba(206, 66, 43, 0.3);
    flex-shrink: 0;
}

.rule-arrow {
    font-size: 14px;
    color: var(--text-muted);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline-block;
    flex-shrink: 0;
}

.rule-category.open .rule-arrow {
    transform: rotate(180deg);
    color: var(--accent);
    text-shadow: 0 0 10px var(--accent-glow);
}

.rule-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.rule-list {
    list-style: none;
    padding: 0 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rule-item {
    display: flex;
    gap: 14px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    border-left: 3px solid rgba(206, 66, 43, 0.3);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: ruleItemIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

html[data-theme="light"] .rule-item {
    background: rgba(0, 0, 0, 0.02);
}

.rule-item:nth-child(1) { animation-delay: 0.05s; }
.rule-item:nth-child(2) { animation-delay: 0.1s; }
.rule-item:nth-child(3) { animation-delay: 0.15s; }
.rule-item:nth-child(4) { animation-delay: 0.2s; }
.rule-item:nth-child(5) { animation-delay: 0.25s; }
.rule-item:nth-child(6) { animation-delay: 0.3s; }

@keyframes ruleItemIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.rule-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-left-color: var(--accent);
    transform: translateX(8px);
    box-shadow: 0 4px 16px rgba(206, 66, 43, 0.15);
}

html[data-theme="light"] .rule-item:hover {
    background: rgba(0, 0, 0, 0.04);
}

.rule-bullet {
    color: var(--accent);
    font-weight: 700;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.rule-item:hover .rule-bullet {
    transform: translateX(4px) scale(1.3);
}

.rule-text {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.5;
    transition: color 0.3s;
}

.rule-item:hover .rule-text {
    color: var(--text);
}

.rules-footer {
    text-align: center;
    color: var(--text-dim);
    font-size: 14px;
    margin-top: 40px;
    padding: 24px;
    border-top: 1px solid var(--border);
}

.rules-footer p {
    margin: 6px 0;
}

/* ============================================
   О ДЕРЕВНЕ
   ============================================ */

.about-hero {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius);
    padding: 48px;
    border: 1px solid var(--border);
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    animation: cardIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.about-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-glow), transparent 70%);
    opacity: 0.3;
    pointer-events: none;
}

.about-hero-text {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.about-hero-text h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.about-hero-text p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.about-hero-text strong {
    color: var(--accent);
    font-weight: 700;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.about-stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius);
    padding: 28px;
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.about-stat-card:hover {
    transform: translateY(-6px) scale(1.03);
    border-color: var(--border-hover);
    box-shadow: 0 12px 40px rgba(206, 66, 43, 0.2);
}

.about-stat-icon {
    font-size: 36px;
    margin-bottom: 12px;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline-block;
}

.about-stat-card:hover .about-stat-icon {
    transform: scale(1.2) rotate(-10deg);
}

.about-stat-value {
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 800;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
}

.about-stat-label {
    color: var(--text-muted);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-info {
    margin-bottom: 60px;
}

.about-info h2 {
    font-size: clamp(22px, 3vw, 28px);
    margin-bottom: 32px;
}

.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent), transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: 32px;
    transition: transform 0.4s;
}

.timeline-item:hover {
    transform: translateX(8px);
}

.timeline-dot {
    position: absolute;
    left: -34px;
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.5);
}

.timeline-date {
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.timeline-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.timeline-content p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.about-feature {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius);
    padding: 28px;
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
}

.about-feature:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: 0 12px 40px rgba(206, 66, 43, 0.2);
}

.about-feature-icon {
    font-size: 42px;
    margin-bottom: 12px;
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.about-feature:hover .about-feature-icon {
    transform: scale(1.2) rotate(-10deg);
    filter: drop-shadow(0 0 20px var(--accent-glow));
}

.about-feature h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.about-feature p {
    color: var(--text-muted);
    font-size: 14px;
}

.about-cta {
    text-align: center;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius);
    padding: 60px 40px;
    border: 1px solid var(--border);
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

.about-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, var(--accent-glow), transparent 70%);
    opacity: 0.2;
    pointer-events: none;
}

.about-cta h2 {
    font-size: clamp(24px, 3vw, 32px);
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.about-cta p {
    color: var(--text-muted);
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
}

.about-cta .btn {
    position: relative;
    z-index: 1;
}

/* ============================================
   МОБИЛЬНАЯ АДАПТАЦИЯ ЭФФЕКТОВ
   ============================================ */

@media (max-width: 768px) {
    .cursor-glow,
    .cursor-dot,
    .cursor-ring {
        display: none;
    }

    .card {
        transform: none !important;
    }

    .section-title {
        font-size: 22px;
        margin-bottom: 28px;
    }

    .features,
    .info-block {
        margin: 48px 0;
    }

    .about-hero {
        padding: 28px 20px;
    }

    .about-hero-text h2 {
        font-size: 22px;
    }

    .about-hero-text p {
        font-size: 14px;
    }

    .about-cta {
        padding: 40px 24px;
    }

    .rule-header {
        padding: 18px 20px;
        font-size: 15px;
    }

    .rule-title {
        font-size: 15px;
    }

    .rule-icon {
        font-size: 20px;
    }

    .rule-list {
        padding: 0 20px 20px;
    }

    .rule-item {
        padding: 10px 12px;
    }

    .rule-text {
        font-size: 14px;
    }

    .timeline {
        padding-left: 30px;
    }

    .timeline-dot {
        left: -26px;
    }
}

@media (max-width: 480px) {
    .rules-container {
        gap: 12px;
    }

    .rule-header {
        padding: 16px;
    }

    .rule-header-left {
        gap: 10px;
    }

    .rule-count {
        display: none;
    }

    .step {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .about-stat-icon,
    .feature-icon,
    .about-feature-icon {
        font-size: 32px;
    }
}

/* ============================================
   ПОДДЕРЖКА REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .particles,
    .cursor-glow,
    .cursor-dot,
    .cursor-ring {
        display: none !important;
    }
}
/* ===== СТАБИЛИЗАЦИЯ ЛОГОТИПА ПРИ ГЛИТЧЕ ===== */
/* Чтобы логотип не дёргал размер, когда глитч меняет буквы */

.logo a.glitch-hover {
    min-width: 200px;
    font-variant-ligatures: none;
    font-feature-settings: "kern" 1;
    letter-spacing: 0;
}

@media (max-width: 480px) {
    .logo a.glitch-hover {
        min-width: 140px;
        font-size: 16px;
    }
}

/* ===== АДАПТАЦИЯ ХЕДЕРА ПОД МОБИЛКУ ===== */
@media (max-width: 1024px) {
    .header {
        height: auto;
        min-height: 72px;
        padding: 12px 0;
    }

    .header-inner {
        flex-wrap: wrap;
        gap: 12px;
    }

    .nav {
        order: 3;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        padding-top: 8px;
        border-top: 1px solid var(--border);
    }

    .nav a {
        padding: 8px 12px;
        font-size: 13px;
    }

    .theme-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 10px 0;
    }

    .header-inner {
        gap: 10px;
    }

    .logo a {
        font-size: 18px;
    }

    .user-name {
        display: none;
    }

    .user-info {
        padding: 4px;
    }

    .auth {
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .header-inner {
        gap: 8px;
    }

    .logo a {
        font-size: 16px;
    }

    .nav a {
        padding: 6px 10px;
        font-size: 12px;
    }

    .theme-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .btn-logout,
    .btn-steam {
        padding: 8px 14px;
        font-size: 13px;
    }
}
/* ============================================
   ДВИЖУЩИЕСЯ ГРАДИЕНТНЫЕ ПЯТНА
   ============================================ */

.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
    pointer-events: none;
    overflow: hidden;
    filter: blur(80px);
}

.bg-blob {
    position: absolute;
    border-radius: 50%;
    opacity: 0.5;
    animation: blobMove 30s ease-in-out infinite;
    will-change: transform;
}

html[data-theme="light"] .bg-blob {
    opacity: 0.35;
}

@keyframes blobMove {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(var(--dir-x, 50px), var(--dir-y, -50px)) scale(1.15);
    }
    50% {
        transform: translate(calc(var(--dir-x, 50px) * -0.5), calc(var(--dir-y, -50px) * 1.5)) scale(0.9);
    }
    75% {
        transform: translate(calc(var(--dir-x, 50px) * 1.2), calc(var(--dir-y, -50px) * -0.8)) scale(1.1);
    }
}

/* ============================================
   THREE.JS КОНТЕЙНЕР
   ============================================ */

.bg-canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
    opacity: 0.6;
}

html[data-theme="light"] .bg-canvas-container {
    opacity: 0.35;
}

.bg-canvas-container canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

/* ============================================
   TRAIL КУРСОРА
   ============================================ */

.cursor-trail {
    position: fixed;
    border-radius: 50%;
    background: var(--accent);
    pointer-events: none;
    z-index: 9997;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 8px var(--accent-glow);
    will-change: transform;
}

/* ============================================
   ИСКРЫ ПРИ БЫСТРОМ ДВИЖЕНИИ
   ============================================ */

.spark {
    position: fixed;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9996;
    transform: translate(-50%, -50%);
    animation: sparkFly 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    will-change: transform, opacity;
}

@keyframes sparkFly {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(calc(-50% + var(--dx, 0px)), calc(-50% + var(--dy, 0px))) scale(0);
        opacity: 0;
    }
}

/* ============================================
   КЛИК ПО ФОНУ — ВОЛНЫ
   ============================================ */

.click-ripple {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9995;
    transform: translate(-50%, -50%);
    animation: clickRippleAnim 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    box-shadow: 0 0 20px var(--accent-glow), inset 0 0 10px var(--accent-glow);
    will-change: transform, opacity;
}

@keyframes clickRippleAnim {
    0% {
        transform: translate(-50%, -50%) scale(0.3);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(15);
        opacity: 0;
    }
}

/* ============================================
   ВЗРЫВ ЧАСТИЦ ПРИ КЛИКЕ
   ============================================ */

.click-particle {
    position: fixed;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9994;
    transform: translate(-50%, -50%);
    animation: clickParticleFly 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    will-change: transform, opacity;
}

@keyframes clickParticleFly {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(calc(-50% + var(--dx, 0px)), calc(-50% + var(--dy, 0px))) scale(0);
        opacity: 0;
    }
}

/* ============================================
   АДАПТАЦИЯ ПОД МОБИЛКУ
   ============================================ */

@media (max-width: 768px) {
    .bg-blobs {
        filter: blur(60px);
    }

    .bg-canvas-container {
        display: none;
    }

    .cursor-trail,
    .cursor-dot,
    .cursor-ring,
    .cursor-glow {
        display: none !important;
    }

    .spark,
    .click-particle {
        width: 3px;
        height: 3px;
    }
}

/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    .bg-blob {
        animation: none !important;
    }

    .bg-canvas-container {
        display: none !important;
    }

    .cursor-trail,
    .cursor-dot,
    .cursor-ring,
    .cursor-glow,
    .spark,
    .click-particle,
    .click-ripple {
        display: none !important;
    }
}