                                                                    /* Сброс стилей и базовые настройки */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 3px;
}

:root {
    /* Основные цвета */
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    
    /* Светлая тема */
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --text-muted: #9ca3af;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    --bg-dark: #111827;
    
    --border-color: #e5e7eb;
    --border-light: #f3f4f6;
    
    /* Тени */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* Градиенты */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    
    /* Компоненты */
    --navbar-bg: rgba(255, 255, 255, 0.95);
    --card-bg: #ffffff;
    --code-bg: rgba(0, 0, 0, 0.3);
    --input-bg: #ffffff;
    --button-bg: #ffffff;
    
    /* Анимации */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Темная тема */
[data-theme="dark"] {
    /* Основные цвета остаются */
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    
    /* Темная тема - тексты */
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --text-light: #9ca3af;
    --text-muted: #6b7280;
    
    /* Темная тема - фоны */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --bg-dark: #020617;
    
    /* Темная тема - границы */
    --border-color: #334155;
    --border-light: #475569;
    
    /* Темная тема - тени */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    
    /* Темная тема - градиенты */
    --gradient-hero: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    
    /* Темная тема - компоненты */
    --navbar-bg: rgba(15, 23, 42, 0.95);
    --card-bg: #1e293b;
    --code-bg: rgba(255, 255, 255, 0.1);
    --input-bg: #334155;
    --button-bg: #334155;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    transition: var(--transition);
}

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

/* Навигация */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--navbar-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
}

/* Состояния навбара при скролле */
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Темная тема - улучшенные состояния навбара */
[data-theme="dark"] .navbar {
    background: var(--navbar-bg);
}

[data-theme="dark"] .navbar.scrolled {
    background: rgba(15, 23, 42, 0.98) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link i,
.nav-link svg {
    font-size: 1.2rem;
    transition: var(--transition);
    color: var(--text-primary);
    margin-right: 5px;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover i,
.nav-link:hover svg {
    transform: scale(1.1);
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: var(--transition);
    border-radius: 2px;
}

/* Переключатель языка - всегда видимый */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang-switcher {
    display: flex !important;
}

/* Мобильный переключатель языка */
.mobile-lang-switcher {
    display: none;
}

.lang-switcher-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
    margin-top: 1rem;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    padding: 2px 8px;
    border-radius: 6px;
    transition: var(--transition);
    outline: none;
    min-width: 30px;
    text-align: center;
}

.lang-btn.active,
.lang-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

.lang-divider {
    color: var(--text-light);
    font-size: 1.1rem;
    user-select: none;
}

/* Переключатель темы */
.theme-switcher {
    display: flex;
    align-items: center;
    margin-left: 1rem;
}

.theme-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--text-primary);
    position: relative;
    width: 40px;
    height: 40px;
}

.theme-btn:hover {
    background: var(--bg-tertiary);
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.theme-btn:active {
    transform: scale(0.95);
}

.theme-btn i {
    font-size: 1.2rem;
    transition: var(--transition);
}

.light-icon {
    display: block;
    color: #f59e0b;
}

.dark-icon {
    display: none;
    color: #6366f1;
}

[data-theme="dark"] .light-icon {
    display: none;
}

[data-theme="dark"] .dark-icon {
    display: block;
}

/* Анимация переключения */
.theme-btn i {
    animation: rotateIn 0.3s ease;
}

@keyframes rotateIn {
    from {
        transform: rotate(-180deg) scale(0.5);
        opacity: 0;
    }
    to {
        transform: rotate(0deg) scale(1);
        opacity: 1;
    }
}

/* Улучшенная анимация для темной темы */
[data-theme="dark"] .theme-btn {
    background: var(--bg-tertiary);
    border-color: var(--border-light);
}

[data-theme="dark"] .theme-btn:hover {
    background: var(--bg-secondary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Главная секция */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    color: white;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.greeting {
    display: block;
    font-size: 1.5rem;
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.name {
    display: block;
    background: linear-gradient(45deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 4rem;
    margin-bottom: 0.5rem;
}

.profession {
    display: block;
    font-size: 2rem;
    font-weight: 300;
    opacity: 0.8;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--accent-color);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: #d97706;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.code-animation {
    background: var(--code-bg);
    border-radius: 12px;
    padding: 2rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    line-height: 1.8;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.code-line {
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.code-line:nth-child(1) { animation-delay: 0.2s; }
.code-line:nth-child(2) { animation-delay: 0.4s; }
.code-line:nth-child(3) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.code-keyword {
    color: #ff6b6b;
}

.code-function {
    color: #4ecdc4;
}

.code-string {
    color: #ffe66d;
}

.code-punctuation {
    color: #95a5a6;
}

.code-indent {
    color: transparent;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* Секции */
section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Обо мне */
.about {
    background: var(--bg-secondary);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(99,102,241,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.5;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.about-text {
    color: var(--text-primary);
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    padding-left: 2rem;
    position: relative;
}

.about-description::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

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

.stat-item {
    background: var(--card-bg);
    padding: 2rem 1.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: visible;
    border: 1px solid var(--border-color);
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-item:hover::before {
    transform: scaleX(1);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    display: inline-block;
    padding-right: 0.15em;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.about-image {
    display: flex;
    justify-content: center;
}

.profile-card {
    background: var(--card-bg);
    padding: 3rem 2rem;
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    max-width: 320px;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.profile-card:hover::before {
    opacity: 0.05;
}

.profile-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.profile-avatar {
    width: 120px;
    height: 120px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 3rem;
    color: white;
    position: relative;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.7);
}

.profile-avatar::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: var(--gradient-primary);
    border-radius: 50%;
    opacity: 0.3;
    z-index: -1;
    transition: var(--transition);
}

.profile-card:hover .profile-avatar {
    transform: scale(1.1);
}

.profile-card:hover .profile-avatar::before {
    opacity: 0.5;
}

.profile-info h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    position: relative;
    z-index: 2;
}

.profile-info p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.profile-info .profile-bio {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.profile-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.profile-social a {
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.profile-social a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Навыки */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.skill-category h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.skill-name {
    font-weight: 500;
    color: var(--text-primary);
}

.skill-bar {
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    transition: width 1s ease;
    width: 0;
}

/* Проекты */
.projects {
    background: var(--bg-secondary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.project-image {
    height: 200px;
    background: var(--bg-tertiary);
    position: relative;
    overflow: hidden;
}

.project-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    opacity: 0.8;
    transition: var(--transition);
}

.project-card:hover .project-placeholder {
    opacity: 1;
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    z-index: 3;
    pointer-events: none;
}

.project-card:hover .project-overlay {
    opacity: 1;
    pointer-events: auto;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    width: 45px;
    height: 45px;
    background: var(--card-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.project-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.matchmate-image {
    background: radial-gradient(120% 120% at 15% 15%, rgba(14, 165, 233, 0.35) 0%, rgba(34, 197, 94, 0.18) 40%, rgba(2, 6, 23, 1) 72%), linear-gradient(135deg, #0b1220 0%, #111827 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.matchmate-cover-link {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.matchmate-visual {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.matchmate-radar {
    position: absolute;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    border: 1px solid rgba(34, 197, 94, 0.3);
    background: radial-gradient(circle, rgba(34, 197, 94, 0.12) 0%, rgba(34, 197, 94, 0.05) 45%, rgba(2, 6, 23, 0) 70%);
    box-shadow: inset 0 0 25px rgba(34, 197, 94, 0.2);
    opacity: 0.9;
    z-index: 0;
}

.matchmate-glow {
    position: absolute;
    width: 230px;
    height: 230px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.35) 0%, rgba(34, 197, 94, 0.12) 55%, rgba(2, 6, 23, 0) 72%);
    filter: blur(18px);
    z-index: 0;
}

.matchmate-card {
    position: absolute;
    width: 80%;
    max-width: 260px;
    height: 160px;
    border-radius: 16px;
    background: rgba(2, 6, 23, 0.85);
    border: 1px solid rgba(56, 189, 248, 0.25);
    box-shadow: 0 20px 40px rgba(2, 6, 23, 0.45);
    padding: 12px 14px;
    color: #e2e8f0;
    display: flex;
    flex-direction: column;
}

.matchmate-card-back {
    transform: translate(16px, -16px) rotate(6deg);
    opacity: 0.65;
    background: linear-gradient(135deg, rgba(2, 6, 23, 0.7), rgba(30, 41, 59, 0.9));
}

.matchmate-card-front {
    transform: translate(-16px, 8px) rotate(-4deg);
    background: linear-gradient(135deg, rgba(2, 6, 23, 0.95), rgba(15, 23, 42, 0.95));
    z-index: 1;
}

.matchmate-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.matchmate-brand {
    font-weight: 600;
    color: #f8fafc;
}

.matchmate-pill {
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.15);
    color: #7dd3fc;
    border: 1px solid rgba(56, 189, 248, 0.3);
    text-transform: none;
    letter-spacing: 0.02em;
    font-size: 0.65rem;
}

.matchmate-modes {
    display: flex;
    gap: 6px;
    margin: 10px 0 6px;
    flex-wrap: wrap;
}

.matchmate-mode {
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.matchmate-avatars {
    display: flex;
    gap: 8px;
    margin: 8px 0 10px;
}

.matchmate-avatar {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: linear-gradient(135deg, #22d3ee, #3b82f6);
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.28);
}

.matchmate-avatar:nth-child(2) {
    background: linear-gradient(135deg, #f59e0b, #f97316);
}

.matchmate-avatar:nth-child(3) {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.matchmate-avatar:nth-child(4) {
    background: linear-gradient(135deg, #f43f5e, #ec4899);
}

.matchmate-actions {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.matchmate-action {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(148, 163, 184, 0.25);
    font-size: 0.75rem;
}

.matchmate-no {
    color: #fb7185;
}

.matchmate-super {
    color: #38bdf8;
}

.matchmate-yes {
    color: #4ade80;
}

.weplay-image {
    background: radial-gradient(120% 120% at 80% 10%, rgba(59, 130, 246, 0.35) 0%, rgba(34, 197, 94, 0.18) 40%, rgba(2, 6, 23, 1) 72%), linear-gradient(135deg, #0b1120 0%, #111827 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.weplay-cover-link {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.weplay-visual {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.weplay-crosshair {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 1px solid rgba(56, 189, 248, 0.35);
    box-shadow: inset 0 0 18px rgba(56, 189, 248, 0.2);
    opacity: 0.8;
    z-index: 0;
}

.weplay-glow {
    position: absolute;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.35) 0%, rgba(34, 197, 94, 0.12) 55%, rgba(2, 6, 23, 0) 72%);
    filter: blur(18px);
    z-index: 0;
}

.weplay-panel {
    position: relative;
    width: 80%;
    max-width: 270px;
    height: 160px;
    border-radius: 16px;
    background: rgba(2, 6, 23, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 20px 40px rgba(2, 6, 23, 0.45);
    padding: 12px 14px;
    color: #e2e8f0;
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.weplay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.weplay-brand {
    font-weight: 700;
    color: #f8fafc;
}

.weplay-pill {
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.18);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.3);
    text-transform: none;
    letter-spacing: 0.02em;
    font-size: 0.65rem;
}

.weplay-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 12px 0 10px;
    font-size: 0.7rem;
}

.weplay-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.weplay-stat i {
    color: #38bdf8;
}

.weplay-footer {
    margin-top: auto;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.weplay-tag {
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(226, 232, 240, 0.8);
}

.mafia-image {
    background: radial-gradient(120% 120% at 20% 10%, rgba(239, 68, 68, 0.35) 0%, rgba(15, 23, 42, 0.6) 45%, rgba(2, 6, 23, 1) 72%), linear-gradient(135deg, #0b1120 0%, #111827 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.mafia-cover-link {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.mafia-visual {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.mafia-glow {
    position: absolute;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(248, 113, 113, 0.35) 0%, rgba(244, 63, 94, 0.12) 55%, rgba(2, 6, 23, 0) 75%);
    filter: blur(22px);
    z-index: 0;
}

.mafia-card {
    position: absolute;
    width: 80%;
    max-width: 260px;
    height: 150px;
    border-radius: 18px;
    background: rgba(2, 6, 23, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 20px 40px rgba(2, 6, 23, 0.4);
    padding: 14px;
    color: #e2e8f0;
    display: flex;
    flex-direction: column;
}

.mafia-card-back {
    transform: translate(18px, -14px) rotate(6deg);
    opacity: 0.65;
    background: linear-gradient(135deg, rgba(2, 6, 23, 0.7), rgba(30, 41, 59, 0.9));
}

.mafia-card-front {
    transform: translate(-16px, 10px) rotate(-4deg);
    background: linear-gradient(135deg, rgba(2, 6, 23, 0.95), rgba(15, 23, 42, 0.95));
    z-index: 1;
}

.mafia-title {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #f8fafc;
}

.mafia-subtitle {
    margin-top: 4px;
    font-size: 0.75rem;
    color: rgba(226, 232, 240, 0.75);
}

.mafia-icons {
    display: flex;
    gap: 10px;
    margin: 14px 0 10px;
}

.mafia-chip {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: rgba(239, 68, 68, 0.18);
    border: 1px solid rgba(239, 68, 68, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f87171;
    font-size: 0.85rem;
}

.mafia-footer {
    margin-top: auto;
    display: flex;
    gap: 8px;
}

.mafia-tag {
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(226, 232, 240, 0.8);
}

.project-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.project-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.tag:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

/* Контакты */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.contact-link {
    text-decoration: none;
    color: inherit;
}

.contact-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.contact-details h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.contact-details p {
    color: var(--text-secondary);
}

.contact-link .contact-details p {
    font-weight: 500;
}

.contact-link .contact-details p::after {
    content: " \2192";
    color: var(--accent-color);
    font-weight: 600;
}

.contact-form {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--input-bg);
    color: var(--text-primary);
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Футер */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-logo .logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

/* Анимации появления элементов */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Плавный переход темы */
.theme-transition,
.theme-transition *,
.theme-transition *:before,
.theme-transition *:after {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Улучшенные анимации для карточек */
.stat-item,
.profile-card,
.skill-category,
.project-card,
.contact-item,
.contact-form {
    transition: var(--transition);
}

/* Эффект свечения для активной темы */
.theme-btn.active {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* Улучшенные hover эффекты для темной темы */
[data-theme="dark"] .stat-item:hover,
[data-theme="dark"] .profile-card:hover,
[data-theme="dark"] .skill-category:hover,
[data-theme="dark"] .project-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

/* Улучшенные тени для темной темы */
[data-theme="dark"] .navbar {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .nav-menu {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Медиа запросы */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--card-bg);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
        border-top: 1px solid var(--border-color);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu .nav-item {
        margin: 1rem 0;
    }

    .nav-menu .nav-link {
        justify-content: center;
        padding: 1rem;
        font-size: 1.1rem;
    }

    .nav-menu .nav-link i,
    .nav-menu .nav-link svg {
        font-size: 1.2rem;
    }

    .lang-switcher {
        display: flex;
    }

    .mobile-lang-switcher {
        display: block;
    }

    .lang-switcher-mobile {
        display: flex;
    }

    .theme-switcher {
        margin-left: 0;
    }

    .theme-btn {
        width: 35px;
        height: 35px;
    }

    .theme-btn i {
        font-size: 1rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .name {
        font-size: 3rem;
    }

    .profession {
        font-size: 1.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .about-description {
        padding-left: 0;
        font-size: 1.1rem;
    }

    .about-description::before {
        display: none;
    }

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

    .stat-item {
        padding: 1.5rem 1rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    .profile-card {
        padding: 2rem 1.5rem;
        max-width: 280px;
    }

    .profile-avatar {
        width: 120px;
        height: 120px;
        font-size: 3rem;
    }

    .profile-info h3 {
        font-size: 1.75rem;
    }

    .profile-info p {
        font-size: 1rem;
    }

    .profile-bio {
        font-size: 0.9rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

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

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .name {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .container {
        padding: 0 15px;
    }

    .nav-container {
        padding: 0 15px;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-item {
        padding: 1.25rem 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .profile-card {
        padding: 1.5rem 1rem;
        max-width: 260px;
    }

    .profile-avatar {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .profile-info h3 {
        font-size: 1.5rem;
    }

    .profile-info p {
        font-size: 0.9rem;
    }

    .profile-bio {
        font-size: 0.85rem;
        margin-top: 0.75rem;
        padding-top: 0.75rem;
    }

    .profile-social {
        gap: 0.75rem;
        margin-top: 1rem;
    }

    .profile-social a {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

@media (max-width: 1100px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .project-card {
        max-width: 400px;
        margin: 0 auto;
    }
    .project-image {
        height: 160px;
    }
    .project-placeholder {
        font-size: 2rem;
    }
    .project-content {
        padding: 1.25rem;
    }
    .project-content h3 {
        font-size: 1.1rem;
    }
    .project-content p {
        font-size: 0.9rem;
    }
    .tag {
        font-size: 0.75rem;
        padding: 0.2rem 0.6rem;
    }
}

.lang-switcher {
    display: flex !important;
}

.nav-controls {
    gap: 0.5rem;
}

.lang-btn {
    font-size: 0.9rem;
    padding: 1px 6px;
    min-width: 25px;
}

.theme-switcher {
    margin-left: 0;
} 

/* ===== Earn page ===== */
.earn-main {
    min-height: 100vh;
    background: var(--gradient-hero);
    padding-top: 80px;
}

.earn-hero {
    padding: 80px 0 20px;
    text-align: center;
    color: #fff;
}

.earn-title {
    font-size: 3rem;
    font-weight: 800;
    margin: 0 0 10px 0;
}

.earn-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

.earn-content {
    padding: 20px 0 80px;
}

.earn-layout { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; }
.earn-main-column { grid-column: 1 / -1; }
.earn-toolbar { display: grid; gap: 12px; margin-bottom: 10px; }
.earn-badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.badge-tile { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 12px; padding: 12px 14px; box-shadow: var(--shadow-sm); }
.badge-label { color: var(--text-secondary); font-size: .8rem; letter-spacing: .3px; }
.badge-value { display: block; color: var(--text-primary); font-weight: 800; font-size: 1.3rem; margin-top: 4px; letter-spacing: .3px; }
.earn-actions-inline { display: grid; grid-auto-flow: column; gap: 8px; justify-content: start; }
.btn.btn-sm { padding: 9px 14px; font-size: .95rem; border-radius: 999px; }

.earn-panels { display: grid; gap: 20px; }
.earn-panel { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 16px; box-shadow: var(--shadow-md); padding: 18px; }
.earn-panel-title { margin: 0 0 12px 0; color: var(--text-primary); font-size: 1.1rem; display: flex; gap: 8px; align-items: center; letter-spacing: .3px; opacity: .9; }
.earn-form { display: grid; gap: 12px; }
.earn-label { color: var(--text-secondary); font-weight: 500; }
.earn-input { width: 100%; padding: 12px 14px; border: 1px solid var(--border-color); border-radius: 14px; background: var(--bg-secondary); color: var(--text-primary); transition: var(--transition); }
.earn-input:focus { border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12); outline: none; }
.earn-actions-row { display: grid; grid-template-columns: repeat(2, minmax(140px, 1fr)); gap: 10px; }
.btn.full { width: 100%; justify-content: center; border-radius: 999px; }

.earn-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    padding: 24px;
    transition: var(--transition);
}

.earn-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.earn-card-icon { font-size: 1.8rem; color: var(--primary-color); margin-bottom: 8px; }
.earn-card-title { font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
.earn-card-value { font-size: 2rem; font-weight: 800; color: var(--text-primary); }
.earn-card-note { color: var(--text-light); margin-top: 8px; font-size: 0.95rem; }

.earn-actions .earn-section-title { margin: 0 0 12px 0; color: var(--text-primary); font-size: 1.2rem; }
.earn-actions-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.earn-action label { display: block; margin-bottom: 6px; color: var(--text-secondary); font-weight: 500; }
.earn-action input { width: 100%; padding: 12px 14px; border: 1px solid var(--border-color); border-radius: 10px; background: var(--input-bg); color: var(--text-primary); }

.earn-buttons { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.btn-accent { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); color: #0b1324; }
.btn-danger { background: linear-gradient(135deg, #ff7878 0%, #ff3d3d 100%); color: #fff; }
.btn-accent:hover, .btn-danger:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.earn-hint { color: var(--text-secondary); font-size: 0.95rem; margin-top: 6px; }

@media (max-width: 1100px) { .earn-layout { grid-template-columns: 1fr; } }
@media (max-width: 768px) {
    .earn-title { font-size: 2.2rem; }
    .earn-actions-row { grid-template-columns: 1fr; }
    .earn-badges { grid-template-columns: 1fr; }
    .earn-actions-inline { grid-auto-flow: row; grid-template-columns: 1fr 1fr; }
}

/* Earn modals */
.modal { position: fixed; inset: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center; z-index: 10010; opacity: 0; visibility: hidden; transition: var(--transition); }
.modal.scrollable { align-items: flex-start; padding: 16px; }
.modal.show { opacity: 1; visibility: visible; }
.modal .modal-content { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 16px; box-shadow: var(--shadow-xl); width: 92%; max-width: 520px; max-height: min(760px, calc(100dvh - 20px)); overflow: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; transform: scale(0.96); transition: var(--transition); display: flex; flex-direction: column; box-sizing: border-box; }
.modal.show .modal-content { transform: scale(1); }
.modal .modal-header { padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border-color); }
.modal .modal-header h2 { margin: 0; font-size: 1.2rem; color: var(--text-primary); display: flex; gap: 8px; align-items: center; }
.modal .modal-close { background: transparent; border: none; width: 36px; height: 36px; border-radius: 50%; color: var(--text-secondary); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.modal .modal-close:hover { background: var(--bg-secondary); color: var(--text-primary); }
.earn-modal .modal-content { max-width: 480px; }
.modal-body { padding: 20px 30px; flex: 1 1 auto; min-height: 0; }
.modal-actions { padding: 12px 30px 24px; display: flex; gap: 12px; justify-content: space-between; align-items: center; position: sticky; bottom: 0; background: var(--card-bg); border-top: 1px solid var(--border-color); }
.modal-actions-right { display: flex; gap: 10px; flex-wrap: wrap; }
.modal-actions .btn, .modal-actions-right .btn { min-width: 0; }
.quick-amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.quick-amounts .qa { border: 1px solid var(--border-color); background: var(--bg-secondary); color: var(--text-primary); padding: 8px 10px; border-radius: 8px; cursor: pointer; transition: var(--transition); }
.quick-amounts .qa:hover { background: var(--primary-color); color: #fff; box-shadow: 0 6px 16px rgba(99,102,241,.25); transform: translateY(-1px); }
.earn-summary-inline { display: flex; justify-content: space-between; align-items: center; color: var(--text-secondary); margin-bottom: 8px; }

@media (max-width: 480px) { 
    .quick-amounts { grid-template-columns: repeat(2, 1fr); }
    .modal-actions { flex-direction: column; align-items: stretch; gap: 10px; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
    .modal-actions-right { width: 100%; }
    .modal-actions .btn, .modal-actions-right .btn { width: 100%; }
}

/* Deposit flow UI */
.wallet-box { background: var(--bg-secondary); border: 1px dashed var(--border-color); border-radius: 12px; padding: 12px 14px; font-family: 'JetBrains Mono', monospace; word-break: break-all; display: grid; gap: 8px; }
.wallet-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.copy-btn { border: 1px solid var(--border-color); background: var(--card-bg); color: var(--text-primary); padding: 6px 10px; border-radius: 8px; cursor: pointer; transition: var(--transition); }
.copy-btn:hover { background: var(--bg-secondary); }
.countdown { margin-top: 10px; color: var(--text-secondary); font-weight: 600; }
.wallet-row strong { color: var(--text-primary); }
.deposit-hero { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.network-badge { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); color: #0b1324; padding: 8px 12px; border-radius: 999px; font-weight: 700; letter-spacing: .3px; }
.amount-badge { background: var(--card-bg); border: 1px solid var(--border-color); padding: 8px 12px; border-radius: 999px; font-weight: 800; }
.qr-box { margin-top: 10px; width: 120px; height: 120px; border-radius: 12px; background: var(--bg-tertiary); display: flex; align-items: center; justify-content: center; color: var(--text-secondary); font-weight: 700; }
.deposit-instructions { margin: 12px 0 0 16px; color: var(--text-secondary); }
.deposit-instructions li { margin-bottom: 6px; }

/* Success animation */
.success-wrap { text-align: center; padding: 20px 10px; }
.success-check { width: 72px; height: 72px; margin: 0 auto 12px; border-radius: 50%; background: #10b981; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 40px; box-shadow: 0 10px 24px rgba(16,185,129,.35); animation: popIn .4s ease; }
@keyframes popIn { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* Icon fallback styling */
.icon-fallback { font-style: normal; display: inline-flex; align-items: center; justify-content: center; }

/* Mobile modal scroll support */
.modal.scrollable .modal-content { max-height: calc(100dvh - 32px); overflow-y: auto; -webkit-overflow-scrolling: touch; }

/* Модальное окно скидки */
.discount-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.discount-modal.active {
    opacity: 1;
    visibility: visible;
}

.discount-modal-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    position: relative;
    transform: scale(0.8) translateY(50px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.discount-modal.active .discount-modal-content {
    transform: scale(1) translateY(0);
}

.discount-modal-header {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.discount-modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="sparkles" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="2" cy="2" r="1" fill="rgba(255,255,255,0.3)"/><circle cx="18" cy="18" r="1" fill="rgba(255,255,255,0.2)"/><circle cx="10" cy="15" r="0.5" fill="rgba(255,255,255,0.4)"/></pattern></defs><rect width="100" height="100" fill="url(%23sparkles)"/></svg>');
    animation: sparkle 3s linear infinite;
}

@keyframes sparkle {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(-20px) translateY(-20px); }
}

.discount-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
    animation: bounce-in 0.8s ease-out, pulse 2s ease-in-out infinite 0.8s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.discount-percentage {
    font-size: 4rem;
    font-weight: 900;
    color: #fbbf24;
    margin: 0;
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
    animation: glow 2s ease-in-out infinite alternate;
    cursor: pointer;
    transition: all 0.3s ease;
}

.discount-percentage:hover {
    animation: glow 0.3s ease-in-out infinite alternate, shake 0.5s ease-in-out;
    transform: scale(1.1);
}

@keyframes glow {
    from { 
        text-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
        transform: scale(1);
    }
    to { 
        text-shadow: 0 0 30px rgba(251, 191, 36, 0.8), 0 0 40px rgba(251, 191, 36, 0.6);
        transform: scale(1.05);
    }
}

/* Дополнительные анимации */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@keyframes bounce-in {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes slide-up {
    0% { transform: translateY(30px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes rotate-sparkle {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(1); }
}

.discount-title {
    font-size: 1.8rem;
    font-weight: 900;
    color: white;
    margin: 1rem 0 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: slide-up 0.6s ease-out 0.2s both;
    position: relative;
    display: inline-block;
}

.discount-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-weight: 600;
    animation: slide-up 0.6s ease-out 0.4s both;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.discount-modal-body {
    padding: 2rem;
    background: white;
    color: var(--text-primary);
    text-align: center;
    position: relative;
}

.discount-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    animation: slide-up 0.6s ease-out 0.6s both;
    font-weight: 500;
}

.discount-timer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem;
    border-radius: 10px;
    margin: 1.5rem 0;
    font-weight: 600;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    animation: slide-up 0.6s ease-out 0.8s both;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.discount-timer-title {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.discount-timer-value {
    font-size: 1.5rem;
    font-weight: 900;
    animation: countdown 1s ease-in-out infinite;
}

@keyframes countdown {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.discount-benefits {
    text-align: left;
    margin: 1.5rem 0;
    animation: slide-up 0.6s ease-out 1s both;
}

.discount-benefits h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.discount-benefits ul {
    list-style: none;
    padding: 0;
}

.discount-benefits li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 2rem;
    color: var(--text-secondary);
    font-size: 1rem;
    animation: slide-up 0.4s ease-out both;
    font-weight: 500;
}

.discount-benefits li:nth-child(1) { animation-delay: 1.2s; }
.discount-benefits li:nth-child(2) { animation-delay: 1.4s; }
.discount-benefits li:nth-child(3) { animation-delay: 1.6s; }
.discount-benefits li:nth-child(4) { animation-delay: 1.8s; }

.discount-benefits li::before {
    content: '✨';
    position: absolute;
    left: 0;
    top: 0.5rem;
    animation: sparkle-icon 3s linear infinite;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.discount-benefits li:hover::before {
    animation: rotate-sparkle 0.5s ease-in-out, sparkle-icon 3s linear infinite;
    transform: scale(1.3);
}

@keyframes sparkle-icon {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(5deg) scale(1.1); }
    50% { transform: rotate(0deg) scale(1); }
    75% { transform: rotate(-5deg) scale(1.1); }
}

.discount-actions {
    margin-top: 2rem;
    animation: slide-up 0.6s ease-out 2s both;
    text-align: center;
}

.discount-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(240, 147, 251, 0.4);
    position: relative;
    overflow: hidden;
    margin: 0.5rem;
}

.discount-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.discount-btn:hover::before {
    width: 300px;
    height: 300px;
}

.discount-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(240, 147, 251, 0.6);
}

.discount-btn:active {
    transform: translateY(0);
}

.discount-btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--primary-color);
    box-shadow: none;
    transition: all 0.3s ease;
}

.discount-btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
    animation: shake 0.5s ease-in-out;
}

.discount-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 10;
    animation: bounce-in 0.8s ease-out 0.5s both;
}

.discount-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1) rotate(90deg);
    animation: rotate-sparkle 0.6s ease-in-out;
}

.discount-close:active {
    transform: scale(0.95) rotate(90deg);
}

/* Анимация частиц */
.discount-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.discount-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: float-particle 6s linear infinite;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.6);
}

.discount-particle:nth-child(odd) {
    background: rgba(251, 191, 36, 0.8);
    box-shadow: 0 0 8px rgba(251, 191, 36, 0.6);
}

.discount-particle:nth-child(even) {
    background: rgba(99, 102, 241, 0.8);
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.6);
}

@keyframes float-particle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

.discount-particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.discount-particle:nth-child(2) { left: 20%; animation-delay: 1s; }
.discount-particle:nth-child(3) { left: 30%; animation-delay: 2s; }
.discount-particle:nth-child(4) { left: 40%; animation-delay: 3s; }
.discount-particle:nth-child(5) { left: 50%; animation-delay: 4s; }
.discount-particle:nth-child(6) { left: 60%; animation-delay: 5s; }
.discount-particle:nth-child(7) { left: 70%; animation-delay: 0.5s; }
.discount-particle:nth-child(8) { left: 80%; animation-delay: 1.5s; }
.discount-particle:nth-child(9) { left: 90%; animation-delay: 2.5s; }

/* Темная тема */
[data-theme="dark"] .discount-modal-body {
    background: var(--bg-primary);
    color: var(--text-primary);
}

[data-theme="dark"] .discount-description {
    color: var(--text-secondary);
}

[data-theme="dark"] .discount-benefits h4 {
    color: var(--text-primary);
}

[data-theme="dark"] .discount-benefits li {
    color: var(--text-secondary);
}

[data-theme="dark"] .discount-btn-secondary {
    color: var(--text-primary);
    border-color: var(--border-color);
}

[data-theme="dark"] .discount-btn-secondary:hover {
    background: var(--bg-secondary);
}

/* Адаптивность - улучшенная версия для мобильных */
@media (max-width: 768px) {
    .discount-modal {
        padding: 1rem;
        align-items: flex-start;
        padding-top: 2rem;
    }
    
    .discount-modal-content {
        max-width: 90%;
        width: 100%;
        margin: 0 auto;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .discount-modal-header {
        padding: 1.5rem 1rem;
    }
    
    .discount-percentage {
        font-size: 3.5rem;
    }
    
    .discount-title {
        font-size: 1.4rem;
        margin: 0.8rem 0 0.3rem;
    }
    
    .discount-subtitle {
        font-size: 1rem;
    }
    
    .discount-modal-body {
        padding: 1.5rem 1rem;
    }
    
    .discount-description {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .discount-timer {
        padding: 0.8rem;
        font-size: 1.1rem;
    }
    
    .discount-timer-value {
        font-size: 1.3rem;
    }
    
    .discount-benefits h4 {
        font-size: 1.1rem;
    }
    
    .discount-benefits li {
        font-size: 0.9rem;
        padding: 0.3rem 0;
    }
    
    .discount-actions {
        margin-top: 1.5rem;
    }
    
    .discount-btn {
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
        margin: 0.3rem;
        width: calc(50% - 0.6rem);
    }
    
    .discount-close {
        width: 35px;
        height: 35px;
        font-size: 1.3rem;
        top: 0.5rem;
        right: 0.5rem;
    }
}

@media (max-width: 480px) {
    .discount-modal {
        padding: 0.5rem;
        padding-top: 1rem;
    }
    
    .discount-modal-content {
        max-width: 95%;
        border-radius: 12px;
        max-height: 95vh;
    }
    
    .discount-modal-header {
        padding: 1rem 0.8rem;
    }
    
    .discount-badge {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }
    
    .discount-percentage {
        font-size: 2.8rem;
    }
    
    .discount-title {
        font-size: 1.2rem;
        margin: 0.5rem 0 0.2rem;
    }
    
    .discount-subtitle {
        font-size: 0.9rem;
    }
    
    .discount-modal-body {
        padding: 1rem 0.8rem;
    }
    
    .discount-description {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .discount-timer {
        padding: 0.7rem;
        font-size: 1rem;
        margin: 1rem 0;
    }
    
    .discount-timer-title {
        font-size: 0.8rem;
    }
    
    .discount-timer-value {
        font-size: 1.1rem;
    }
    
    .discount-benefits h4 {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }
    
    .discount-benefits li {
        font-size: 0.85rem;
        padding: 0.25rem 0;
        padding-left: 1.5rem;
    }
    
    .discount-actions {
        margin-top: 1rem;
    }
    
    .discount-btn {
        width: 100%;
        margin: 0.2rem 0;
        padding: 0.8rem 1rem;
        font-size: 0.95rem;
    }
    
    .discount-close {
        width: 30px;
        height: 30px;
        font-size: 1.2rem;
        top: 0.3rem;
        right: 0.3rem;
    }
}

/* Очень маленькие экраны */
@media (max-width: 360px) {
    .discount-modal-content {
        max-width: 98%;
        border-radius: 10px;
    }
    
    .discount-modal-header {
        padding: 0.8rem 0.6rem;
    }
    
    .discount-percentage {
        font-size: 2.5rem;
    }
    
    .discount-title {
        font-size: 1.1rem;
    }
    
    .discount-modal-body {
        padding: 0.8rem 0.6rem;
    }
    
    .discount-description {
        font-size: 0.85rem;
    }
    
    .discount-timer {
        padding: 0.6rem;
        font-size: 0.9rem;
    }
    
    .discount-timer-value {
        font-size: 1rem;
    }
    
    .discount-benefits li {
        font-size: 0.8rem;
    }
    
    .discount-btn {
        padding: 0.7rem 0.8rem;
        font-size: 0.9rem;
    }
}

/* Секция курсов программирования */
.courses {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
    overflow: hidden;
}

.courses::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="course-grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(99, 102, 241, 0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23course-grid)"/></svg>');
    opacity: 0.3;
}

.courses-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.courses-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.course-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.course-card.featured::before {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.course-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.course-card.featured .course-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    animation: pulse 2s infinite;
}

.course-card.coming-soon {
    opacity: 0.7;
    cursor: not-allowed;
    position: relative;
}

.course-card.coming-soon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(2px);
    border-radius: 16px;
    pointer-events: none;
}

.course-card.coming-soon:hover {
    transform: none;
    box-shadow: var(--shadow-lg);
}

.course-card.coming-soon .course-badge {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    animation: none;
}

.course-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 1.5rem;
}

.course-card.featured .course-icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

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

.course-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.course-features {
    margin-bottom: 1.5rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
}

.feature i {
    color: var(--primary-color);
    font-size: 1.1rem;
    width: 20px;
}

.course-price {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.old-price {
    font-size: 1.1rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.new-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.discount {
    background: var(--accent-color);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Секция теста */
.test-section {
    margin-top: 4rem;
    position: relative;
    z-index: 2;
}

.test-container {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.test-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(245, 158, 11, 0.05) 100%);
    pointer-events: none;
}

.test-content {
    position: relative;
    z-index: 2;
}

.test-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 2rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.test-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.test-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.test-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.test-stat {
    text-align: center;
}

.test-stat strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.test-stat span {
    font-size: 0.9rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.test-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    margin-bottom: 1rem;
    text-decoration: none;
    justify-content: center;
}

.test-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    animation: pulse 1s infinite;
}

.test-note {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
}

.test-visual {
    position: relative;
    z-index: 2;
}

.test-preview {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    backdrop-filter: blur(10px);
}

[data-theme="dark"] .test-preview {
    background: rgba(30, 41, 59, 0.8);
}

.test-preview-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
    animation: float 3s ease-in-out infinite;
}

.test-preview h4 {
    color: var(--text-primary);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.test-preview p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Адаптивность */
@media (max-width: 768px) {
    .courses-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .course-card {
        padding: 1.5rem;
    }
    
    .test-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }
    
    .test-stats {
        gap: 1rem;
    }
    
    .test-visual {
        order: -1;
    }
}

@media (max-width: 480px) {
    .courses {
        padding: 60px 0;
    }
    
    .course-card {
        padding: 1rem;
    }
    
    .course-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .test-container {
        padding: 1.5rem;
    }
    
    .test-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .test-content h3 {
        font-size: 1.5rem;
    }
    
    .test-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}

@media (max-width: 768px) {
    .code-animation,
    .scroll-indicator,
    .discount-particle {
        animation: none;
    }
}
