:root {
    /* Core Colors */
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-primary: #8b5cf6;
    /* Violet */
    --accent-secondary: #ec4899;
    /* Pink */
    --accent-cyan: #06b6d4;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-highlight: rgba(255, 255, 255, 0.05);

    /* Functional Colors */
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;

    /* Typography */
    --font-main: system-ui, -apple-system, sans-serif;
    --font-display: 'Inter', system-ui, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

/* Уважаем предпочтения пользователей по анимации */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    background-image:
        radial-gradient(circle at 15% 50%, rgba(139, 92, 246, 0.15), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(236, 72, 153, 0.15), transparent 25%);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

[data-animate].in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Header & Nav */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    background: rgba(15, 23, 42, 0.8);
    border-bottom: 1px solid var(--glass-border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-mark {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.logo-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.logo-labels {
    display: flex;
    flex-direction: column;
}

.logo-text-primary {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
}

.logo-text-secondary {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:not(.nav-cta):hover {
    color: var(--text-primary);
}

.nav-cta {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white !important;
    padding: 0.6rem 1.2rem;
    border-radius: 99px;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
    transition: opacity 0.3s, transform 0.2s;
}

.nav-cta:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.nav-cta span {
    font-size: 0.7rem;
    opacity: 0.9;
    font-weight: 400;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
    position: relative;
}

.section-dark {
    /* Default background is already dark */
}

.section-alt {
    background: rgba(255, 255, 255, 0.02);
}

/* Hero */
.hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    min-height: 80vh;
}

.hero-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--glass-highlight);
    border: 1px solid var(--glass-border);
    padding: 0.4rem 1rem;
    border-radius: 99px;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: var(--accent-cyan);
}

.hero-kicker {
    color: var(--accent-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #94a3b8);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-text {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: var(--glass-highlight);
    border-color: var(--text-secondary);
}

.hero-note {
    font-size: 0.9rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

/* Hero Card (Right Side) */
.hero-visual-svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(139, 92, 246, 0.2));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.teremok-zone {
    transition: transform 0.3s ease, filter 0.3s ease;
}

.teremok-zone:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.4));
    z-index: 10;
    cursor: pointer;
}

/* Subtle pulse for zones to attract attention */
@keyframes zonePulse {
    0% {
        filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0));
    }

    50% {
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
    }

    100% {
        filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0));
    }
}

.teremok-zone {
    animation: zonePulse 4s infinite;
}

.teremok-zone:nth-child(odd) {
    animation-delay: 1s;
}

.teremok-zone:nth-child(even) {
    animation-delay: 2s;
}

/* Common Components */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-kicker {
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 1.5rem;
}

.section-lead {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
}

.card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.card ul {
    list-style: none;
    padding-left: 0;
}

.card ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.card ul li::before {
    content: '•';
    color: var(--accent-primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.highlight {
    background: rgba(139, 92, 246, 0.1);
    border-left: 3px solid var(--accent-primary);
    padding: 1rem;
    border-radius: 0 8px 8px 0;
    margin-top: 1rem;
    font-size: 0.95rem;
}

.pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.pill {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.4rem 0.8rem;
    border-radius: 99px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
}

/* Interactive Level Cards */
.levels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.level-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 0;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.level-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Card Header - Image + Title side by side */
/* Card Header - Compact Redesign */
.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    /* Reduced gap */
    padding: 1rem;
    /* Reduced padding */
    background: transparent;
    /* Remove header-specific background to blend */
}

.card-icon {
    font-size: 2.5rem;
    width: 64px;
    /* Reduced from 90px */
    height: 64px;
    /* Reduced from 90px */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    padding: 2px;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
    overflow: hidden;
}

.card-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 50%;
}

.card-title-block {
    flex: 1;
    min-width: 0;
}

.card-title-block h3 {
    font-size: 1.3rem;
    /* Reduced from 1.6rem */
    margin-bottom: 0.2rem;
    color: var(--text-primary);
}

.card-header .level-subtitle {
    margin-bottom: 0;
    font-size: 0.7rem;
    /* Reduced from 0.8rem */
    color: var(--text-secondary);
    /* Softer color */
}

/* Card Body - Description */
.card-body {
    padding: 1rem 1.5rem 1.5rem;
}

.level-subtitle {
    color: var(--accent-cyan);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.level-traits {
    list-style: none;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.level-traits li {
    margin-bottom: 0.4rem;
    padding-left: 1.2rem;
    position: relative;
    font-size: 0.95rem;
}

.level-traits li::before {
    content: '•';
    color: var(--accent-secondary);
    position: absolute;
    left: 0;
}

.level-motive {
    font-weight: 600;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-size: 0.9rem;
}

/* Level Card Accents */
.bird-level:hover {
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.1);
}

.hamster-level:hover {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.1);
}

.fox-level:hover {
    box-shadow: 0 0 20px rgba(255, 100, 0, 0.1);
}

.rat-level:hover {
    box-shadow: 0 0 20px rgba(148, 163, 184, 0.2);
    /* Neutral gray/blue glow */
    border-color: rgba(148, 163, 184, 0.3);
}

.pro-level:hover {
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.1);
}

.wolf-level:hover {
    box-shadow: 0 0 20px rgba(220, 20, 60, 0.2);
    border-color: rgba(220, 20, 60, 0.3);
}

.bear-level:hover {
    box-shadow: 0 0 20px rgba(139, 69, 19, 0.2);
    border-color: rgba(139, 69, 19, 0.3);
}

/* Testimonials */
.testimonials-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
}

.testimonial-header {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    color: var(--text-primary);
}

.testimonial-tag {
    font-size: 0.8rem;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.testimonial-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.testimonial-meta {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.testimonial-toggle-icon {
    font-size: 2rem;
    color: var(--accent-primary);
    font-weight: 300;
    transition: transform 0.3s;
}

.testimonial-item.open .testimonial-toggle-icon {
    transform: rotate(45deg);
}

.testimonial-body {
    padding: 0 1.5rem 1.5rem;
    display: none;
    color: var(--text-secondary);
    border-top: 1px solid var(--glass-border);
    padding-top: 1.5rem;
}

.testimonial-item.open .testimonial-body {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Forms & Registration */
.form-wrapper {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.event-card {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--glass-border);
}

.event-label {
    color: var(--accent-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.event-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.event-detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.5rem;
}

.event-detail-row span {
    color: var(--text-secondary);
}

.event-countdown {
    margin-top: 2rem;
}

.event-countdown-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.event-countdown-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    width: 0%;
    transition: width 1s linear;
}

/* Telegram Card */
.telegram-card {
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.telegram-icon {
    background: #0ea5e9;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.telegram-button {
    display: inline-block;
    background: #0ea5e9;
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 99px;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    padding: 2rem 0;
    border-top: 1px solid var(--glass-border);
    margin-top: 4rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

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

.footer-inner a:hover {
    color: var(--text-primary);
}

/* Modals */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-backdrop.open {
    display: flex;
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.modal-window {
    background: #1e293b;
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    z-index: 2;
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.modal-backdrop.open .modal-window {
    animation: slideUpScale 0.3s ease forwards;
}

@keyframes slideUpScale {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-primary);
}

/* Modal Lists (Restored Level Characteristics) */
.modal-list {
    list-style: none;
    color: var(--text-secondary);
    margin: 1rem 0;
    padding-left: 0;
    font-size: 1rem;
    line-height: 1.6;
}

.modal-list li {
    margin-bottom: 0.6rem;
    padding-left: 1.5rem;
    position: relative;
}

.modal-list li::before {
    content: '•';
    color: var(--accent-secondary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Fullscreen Privacy Modal */
#privacyModal .modal-window {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    border-radius: 0;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
}

#privacyModal .modal-content {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.policy-frame {
    width: 100%;
    flex: 1;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    margin-top: 1rem;
}

/* Form Elements */
.field-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.input,
.select,
textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    padding: 0.8rem 1rem;
    border-radius: 12px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.input:focus,
.select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(0, 0, 0, 0.5);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Test 2.0 Styles */
.test-progress {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.test-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    width: 0%;
    transition: width 0.3s ease;
}

.test-question-card h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
    text-align: center;
}

.test-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.test-option-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 1.2rem;
    border-radius: 12px;
    color: var(--text-secondary);
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.test-option-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-primary);
    color: var(--text-primary);
    transform: translateX(5px);
}

.test-option-btn.selected {
    background: rgba(139, 92, 246, 0.2);
    border-color: var(--accent-primary);
    color: white;
}

/* Detailed Result Card */
.result-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    animation: fadeUp 0.5s ease;
}

.result-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.result-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
}

.result-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #fff, var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.result-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.result-section {
    margin-bottom: 1.5rem;
}

.result-section h4 {
    color: var(--accent-primary);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.result-section p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.result-warning {
    background: rgba(239, 68, 68, 0.1);
    border-left: 3px solid var(--danger);
    padding: 1rem;
    border-radius: 0 8px 8px 0;
    margin-bottom: 1.5rem;
}

.result-advice {
    background: rgba(34, 197, 94, 0.1);
    border-left: 3px solid var(--success);
    padding: 1rem;
    border-radius: 0 8px 8px 0;
}

/* ===== ACCESSIBILITY ===== */

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    background: var(--accent-primary);
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 8px;
    z-index: 9999;
    font-weight: 600;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 1rem;
}

/* Enhanced focus styles for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--accent-primary);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.2);
}

.level-card:focus-visible {
    outline: 3px solid var(--accent-primary);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.2);
    transform: translateY(-5px);
}

.nav-links a:focus-visible {
    background: rgba(139, 92, 246, 0.1);
    border-radius: 8px;
    padding: 0.5rem;
}

/* Remove default focus outline when using mouse */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
    outline: none;
}

/* ===== END ACCESSIBILITY ===== */


/* Responsive */
@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-actions {
        flex-direction: column;
    }

    .two-cols {
        grid-template-columns: 1fr;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }


    .nav-cta {
        width: 100%;
        text-align: center;
    }

    /* Mobile Menu Button */
    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 2rem;
        height: 2rem;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
    }

    .mobile-menu-btn span {
        width: 100%;
        height: 3px;
        background: var(--text-primary);
        border-radius: 10px;
        transition: all 0.3s ease;
    }

    .mobile-menu-btn.open span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .mobile-menu-btn.open span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.open span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    /* Mobile Navigation - FULLSCREEN на весь экран */
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        background: #0f172a;
        /* Полностью непрозрачный цвет */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 2rem;
        gap: 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-100%);
        transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
        z-index: 2000;
        /* Очень высокий z-index */
    }

    .nav-links.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-links a,
    .nav-links a:visited,
    .nav-links a:hover,
    .nav-links a:active {
        font-size: 1.4rem;
        /* Чуть крупнее */
        font-weight: 600;
        /* Жирнее */
        padding: 1.5rem 2rem;
        width: 100%;
        max-width: 400px;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        color: #ffffff !important;
        /* Ярко-белый */
        opacity: 1 !important;
        display: block;
        text-decoration: none;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        /* Тень для контраста */
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    /* Mobile Overlay - ТОЛЬКО визуальное затемнение, НЕ блокирует клики */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: 997;
        opacity: 0;
        pointer-events: none !important;
        /* ВСЕГДА none - не блокирует клики */
        transition: opacity 0.3s ease;
    }

    .nav-overlay.open {
        opacity: 1;
        /* pointer-events остаётся none! */
    }

    h1 {
        font-size: 2.5rem;
    }
}

/* Desktop - hide mobile menu button */
@media (min-width: 769px) {
    .mobile-menu-btn {
        display: none !important;
    }

    .nav-overlay {
        display: none !important;
    }
}

/* Image-Based Teremok Styles */
.teremok-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    /* Adjust based on image aspect ratio */
    margin: 0 auto;
}

.teremok-image {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

.teremok-zone {
    position: absolute;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    /* Debug border - remove later */
    /* border: 1px solid rgba(255, 255, 255, 0.3); */
}

.teremok-zone:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(2px);
    border-radius: 8px;
}

.zone-content {
    text-align: center;
    animation: floatIcon 3s ease-in-out infinite;
}

.zone-icon {
    display: block;
    font-size: 2.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.zone-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    margin-top: 5px;
    opacity: 0;
    transform: translateY(5px);
    transition: all 0.3s ease;
}

.teremok-zone:hover .zone-label {
    opacity: 1;
    transform: translateY(0);
}

@keyframes floatIcon {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* Zone Positioning (Percentages based on v2 image) */
/* Image has ~5 distinct vertical sections */

/* Leader (Attic Window) */
.zone-leader {
    top: 18%;
    left: 40%;
    width: 20%;
    height: 10%;
}

/* Profi (Top Rectangular Floor) */
.zone-profi {
    top: 32%;
    left: 30%;
    width: 40%;
    height: 12%;
}

/* Fox (Middle Rectangular Floor) */
.zone-fox {
    top: 48%;
    left: 25%;
    width: 50%;
    height: 12%;
}

/* Hamster (Lower Middle Floor - Split but centered) */
.zone-hamster {
    top: 64%;
    left: 20%;
    width: 60%;
    height: 12%;
}

/* Bird (Bottom Left) */
.zone-bird {
    top: 80%;
    left: 20%;
    width: 30%;
    height: 12%;
}

/* Toxic (Bottom Right) */
.zone-rat {
    top: 80%;
    left: 50%;
    width: 30%;
    height: 12%;
}

/* Expert Avatars - Compact Style */
.expert-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
}

.expert-avatar {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(139, 92, 246, 0.5);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.2);
}

.expert-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.expert-info {
    flex: 1;
}

@media (max-width: 576px) {
    .expert-header {
        flex-direction: row;
        align-items: center;
        gap: 0.8rem;
    }

    .expert-avatar {
        width: 50px;
        height: 50px;
        margin-top: 0;
    }
}

/* ========================================
   Видео-презентация персонажа
   ======================================== */


/* Мобильная адаптация */
@media (max-width: 768px) {
    /* Previous content (if any, but removing specific video block css) */
}

/* Hamster Video Block Removed */

/* Registration Stack Redesign */
.registration-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    /* Space between button and telegram module */
    width: 100%;
    /* max-width: 600px;  Removed max-width to let it be full container width if needed, or controlled by parent */
}

.telegram-module {
    width: 100%;
}

.telegram-card {
    height: 100%;
    /* Ensure it fills height if needed */
}

.btn-full-width {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 1.2rem 2rem;
    /* Larger touch area */
    font-size: 1.1rem;
    border-radius: 16px;
    /* Match other cards */
}

/* ========================================
   Card Affordances (Clickable Levels)
   ======================================== */

/* Hint above the grid */
.type-grid-hint {
    margin: 0.75rem auto 1.25rem;
    max-width: 820px;
    text-align: center;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.68);
}

/* Interactivity Base */
.level-card {
    cursor: pointer;
    position: relative;
    overflow: hidden;
    /* Ensure existing transitions are preserved */
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.level-card:focus-visible {
    outline: 2px solid rgba(255, 215, 0, 0.55);
    outline-offset: 3px;
}

/* Tap Cue (Minimalist Arrow) */
.tap-cue {
    position: absolute;
    right: 10px;
    bottom: 35px;
    /* top: 50%; removed to avoid overlap */
    /* transform: translateY(-50%); removed */
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
    opacity: 0.85;
    pointer-events: none;
    z-index: 2;
}

.tap-cue-arrow {
    font-size: 22px;
    line-height: 1;
    font-weight: 800;
    color: rgba(255, 215, 0, 0.85);
    transform: translateX(0);
}

/* Soft Nudge Animation */
@keyframes cueNudge {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(4px);
    }
}

/* Soft Border Pulse */
@keyframes cardPulse {

    0%,
    100% {
        border-color: rgba(255, 255, 255, 0.12);
    }

    50% {
        border-color: rgba(255, 215, 0, 0.28);
    }
}

/* Animation Activation Class */
.level-card.is-nudged {
    animation: cardPulse 1.8s ease-in-out 2;
}

.level-card.is-nudged .tap-cue-arrow {
    animation: cueNudge 0.9s ease-in-out 3;
}

/* Ripple Effect (CSS only) */
.level-card::after {
    content: "";
    position: absolute;
    inset: auto 10px 10px auto;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 215, 0, 0.25);
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}

.level-card:active::after {
    transform: scale(18);
    opacity: 1;
    transition: transform .35s ease, opacity .45s ease;
}

/* Mobile Adjustment */
@media (max-width: 768px) {
    .tap-cue {
        right: 12px;
        width: 32px;
        height: 32px;
    }
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {

    .level-card.is-nudged,
    .level-card.is-nudged .tap-cue-arrow {
        animation: none !important;
    }

    .level-card:active::after {
        transition: none;
    }
}