/* === Общие стили и переменные === */
:root {
    /* Цветовая схема */
    --primary-color: #1e40af;
    --secondary-color: #3b82f6;
    --accent-color: #60a5fa;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --text-color: #334155;
    --text-light: #cbd5e1;
    --text-lighter: #94a3b8;
    --border-color: #e2e8f0;
    
    /* Размеры и отступы */
    --border-radius: 12px;
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    
    /* Градиенты */
    --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-reverse: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    --gradient-gold: linear-gradient(135deg, #f59e0b, #d97706);
    
    /* Темная тема */
    --bg-dark: #0f172a;
    --bg-dark-lighter: #1e293b;
    --bg-dark-darker: #020617;
    --bg-card-dark: #334155;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

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

/* === Хедер и навигация === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    height: 70px;
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.navbar {
    padding: 0;
    height: 100%;
}

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

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    transition: var(--transition);
    position: relative;
}

.logo-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: var(--transition);
}

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

.logo-icon {
    font-size: 1.8rem;
    background: var(--gradient);
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(59, 130, 246, 0); }
    100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 15px;
    height: 100%;
}

.nav-item {
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0.1;
    transition: var(--transition);
    z-index: -1;
}

.nav-item:hover::before {
    left: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
    height: 100%;
    gap: 8px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--gradient);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

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

.search-box {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    margin-left: 30px;
}

.search-container {
    display: flex;
    background: var(--light-color);
    border-radius: 50px;
    padding: 5px;
    border: 1px solid #e2e8f0;
    transition: var(--transition);
    width: 240px;
    position: relative;
    overflow: hidden;
}

.search-container:focus-within {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    border-color: var(--accent-color);
    width: 280px;
}

.search-input {
    background: transparent;
    border: none;
    padding: 8px 15px;
    font-size: 0.9rem;
    width: 100%;
    outline: none;
    color: var(--text-color);
    transition: var(--transition);
}

.search-btn {
    background: var(--gradient);
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.search-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

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

.search-icon {
    font-size: 16px;
}

.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    animation: float 15s infinite linear;
    cursor: pointer;
    transition: var(--transition);
}

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

.main-content {
    margin-top: 70px;
    min-height: calc(100vh - 70px);
    position: relative;
    z-index: 2;
}

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px) rotate(360deg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* === Футер === */
.footer {
    background: var(--dark-color);
    color: white;
    margin-top: 80px;
    position: relative;
}

.footer-top {
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-desc {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 25px;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent-color);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.footer-stat {
    text-align: center;
    flex: 1;
}

.creator-info {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
}

.creator-avatar {
    font-size: 2rem;
}

.creator-details strong {
    display: block;
    margin-bottom: 3px;
}

.creator-details span {
    font-size: 0.9rem;
    color: var(--text-lighter);
}

.footer-bottom {
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.copyright {
    color: var(--text-lighter);
}

.tech-info {
    color: var(--text-lighter);
    font-size: 0.9rem;
}

/* === Главная страница === */
.hero {
    background: var(--gradient);
    color: white;
    padding: 150px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: heroFloat 20s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.gradient-text {
    background: linear-gradient(135deg, #ffffff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    min-width: 150px;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

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

/* === Секции === */
.section {
    padding: 80px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-color);
    max-width: 600px;
    margin: 0 auto;
}

/* === О проекте === */
.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 30px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.feature-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.feature-icon {
    font-size: 2rem;
    margin-bottom: 15px;
}

.creator-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.creator-card:hover {
    transform: translateY(-5px);
}

.creator-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.creator-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.creator-card:hover .creator-image img {
    transform: scale(1.05);
}

.creator-badge {
    position: absolute;
    top: 20px;
    right: -30px;
    background: var(--gradient);
    color: white;
    padding: 5px 30px;
    font-size: 0.8rem;
    font-weight: 600;
    transform: rotate(45deg);
    box-shadow: var(--shadow);
}

.creator-info {
    padding: 25px;
    text-align: center;
}

.creator-info h3 {
    margin-bottom: 5px;
    color: var(--dark-color);
}

.social-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

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

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

.social-link.telegram:hover { background: #0088cc; }
.social-link.vk:hover { background: #0077ff; }
.social-link.youtube:hover { background: #ff0000; }

/* === Категории === */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.category-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-color);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
    transform: translateX(-100%);
    transition: var(--transition);
}

.category-card:hover::before {
    transform: translateX(0);
}

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

.category-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.category-card h3 {
    margin-bottom: 10px;
    color: var(--dark-color);
    transition: var(--transition);
}

.category-card:hover h3 {
    color: var(--primary-color);
}

.category-count {
    display: inline-block;
    background: var(--light-color);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-top: 15px;
}

.category-arrow {
    position: absolute;
    bottom: 20px;
    right: 20px;
    color: var(--primary-color);
    opacity: 0;
    transition: var(--transition);
}

.category-card:hover .category-arrow {
    opacity: 1;
    transform: translateX(5px);
}

/* === Материалы === */
.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.material-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.material-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.material-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.material-card:hover .material-image img {
    transform: scale(1.05);
}

.material-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--gradient);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.material-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.material-card h3 {
    margin-bottom: 10px;
    color: var(--dark-color);
}

.material-card h3 a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.material-card h3 a:hover {
    color: var(--primary-color);
}

.material-card p {
    color: var(--text-color);
    margin-bottom: 20px;
    flex: 1;
}

.material-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #64748b;
}

.material-date,
.material-downloads {
    display: flex;
    align-items: center;
    gap: 5px;
}

.material-actions {
    display: flex;
    gap: 10px;
}

/* === VIP ресурсы === */
.vip-section {
    background: linear-gradient(135deg, var(--dark-color) 0%, #334155 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.vip-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.vip-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 215, 0, 0.1) 0%, transparent 50%);
    background-size: 200px 200px;
    animation: vipPattern 20s linear infinite;
}

@keyframes vipPattern {
    0% { background-position: 0 0, 0 0; }
    100% { background-position: 200px 200px, -200px -200px; }
}

.vip-section .section-title {
    color: white;
}

.vip-section .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.vip-badge {
    display: inline-block;
    background: var(--gradient-gold);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 10px;
    vertical-align: middle;
}

.vip-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.benefit-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 215, 0, 0.3);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.vip-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.vip-card {
    position: relative;
}

.vip-ribbon {
    position: absolute;
    top: 15px;
    right: -30px;
    background: var(--gradient-gold);
    color: white;
    padding: 5px 30px;
    font-size: 0.8rem;
    font-weight: 600;
    transform: rotate(45deg);
    box-shadow: var(--shadow);
    z-index: 2;
}

.material-price {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    color: #f59e0b;
}

/* === База знаний === */
.knowledge-section {
    padding: 80px 0;
}

.filters-container {
    margin-bottom: 40px;
}

.search-box {
    max-width: 500px;
    margin: 0 auto 30px;
}

.search-input-group {
    display: flex;
    background: white;
    border-radius: 50px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.search-input {
    flex: 1;
    border: none;
    padding: 15px 25px;
    font-size: 1rem;
    outline: none;
}

.search-btn {
    background: var(--gradient);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
    margin: 5px;
}

.search-btn:hover {
    transform: scale(1.1);
}

.filters-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 10px 20px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-tab:hover,
.filter-tab.active {
    background: var(--gradient);
    color: white;
    border-color: transparent;
}

.filter-count {
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
}

.filter-tab.active .filter-count {
    background: rgba(255, 255, 255, 0.2);
}

.search-results {
    background: white;
    border-radius: var(--border-radius);
    padding: 15px 20px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
}

.clear-search {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.clear-search:hover {
    text-decoration: underline;
}

.materials-container {
    margin-top: 40px;
}

/* === Базовые компоненты === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    background: var(--gradient);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover {
    background: white;
    color: var(--primary-color);
}

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

.btn-lg {
    padding: 15px 40px;
    font-size: 1.1rem;
}

.btn-block {
    display: flex;
    width: 100%;
    justify-content: center;
}

.btn-gold {
    background: var(--gradient-gold);
}

.btn-gold:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
}

.btn-primary {
    background: var(--gradient);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* === Уведомления === */
.alert {
    padding: 15px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

/* === Модальные окна === */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    padding: 20px 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: var(--dark-color);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #64748b;
    transition: var(--transition);
}

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

.modal-body {
    padding: 20px;
}

.purchase-info {
    text-align: center;
    margin-bottom: 30px;
}

.purchase-info h4 {
    margin-bottom: 10px;
    color: var(--dark-color);
}

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

.payment-methods {
    margin-bottom: 30px;
}

.payment-methods h4 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.payment-option {
    cursor: pointer;
}

.payment-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--light-color);
    border-radius: var(--border-radius);
    border: 2px solid transparent;
    transition: var(--transition);
}

.payment-option input[type="radio"]:checked + .payment-card {
    border-color: var(--primary-color);
    background: white;
}

.payment-card i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.modal-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.purchase-note {
    background: #f8fafc;
    border-radius: var(--border-radius);
    padding: 15px;
    font-size: 0.9rem;
    color: var(--text-color);
}

.purchase-note p {
    margin: 0 0 5px 0;
}

/* === Страница 404 === */
.error-page {
    padding: 80px 0;
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--light-color) 0%, #e2e8f0 100%);
}

.error-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.error-code {
    font-size: 10rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

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

.error-content h1 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.error-content p {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 40px;
}

.error-image {
    margin: 40px 0;
    height: 200px;
    position: relative;
}

.error-animation {
    position: relative;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ghost {
    width: 100px;
    height: 120px;
    background: white;
    border-radius: 50px 50px 0 0;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: ghostFloat 3s ease-in-out infinite;
}

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

.ghost::before,
.ghost::after {
    content: '';
    position: absolute;
    bottom: -20px;
    width: 25px;
    height: 25px;
    background: white;
    border-radius: 50%;
}

.ghost::before {
    left: 10px;
}

.ghost::after {
    right: 10px;
}

.ghost-eyes {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
}

.ghost-eyes::before,
.ghost-eyes::after {
    content: '';
    width: 12px;
    height: 12px;
    background: var(--dark-color);
    border-radius: 50%;
    display: block;
}

.ghost-mouth {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 15px;
    border-bottom: 3px solid var(--dark-color);
    border-radius: 0 0 15px 15px;
}

.error-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
}

.error-search {
    max-width: 500px;
    margin: 0 auto 40px;
}

.error-search p {
    margin-bottom: 15px;
    color: var(--text-color);
}

.error-links {
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

.error-links h3 {
    color: var(--dark-color);
    margin-bottom: 20px;
    text-align: center;
}

.error-links ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.error-links li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: white;
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.error-links li a:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    color: var(--primary-color);
}

.error-links li a i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

/* === Пустые состояния === */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

.empty-state p {
    color: var(--text-color);
    max-width: 500px;
    margin: 0 auto;
}

/* === Темная тема === */
body.dark-theme {
    background-color: var(--bg-dark);
    color: #e2e8f0;
}

body.dark-theme .header {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-theme .logo-link {
    color: var(--accent-color);
}

body.dark-theme .nav-link {
    color: var(--text-light);
}

body.dark-theme .nav-link:hover,
body.dark-theme .nav-link.active {
    color: var(--accent-color);
}

body.dark-theme .search-container {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-theme .search-input {
    color: var(--text-color);
}

body.dark-theme .hero,
body.dark-theme .about-hero,
body.dark-theme .contacts-hero {
    background: linear-gradient(135deg, var(--bg-dark-lighter) 0%, #334155 100%);
}

body.dark-theme .card,
body.dark-theme .material-card,
body.dark-theme .category-card,
body.dark-theme .feature-card,
body.dark-theme .benefit-card,
body.dark-theme .stat-card,
body.dark-theme .creator-card,
body.dark-theme .form-card,
body.dark-theme .faq-card,
body.dark-theme .support-card,
body.dark-theme .history-card,
body.dark-theme .contact-item,
body.dark-theme .proposal-card {
    background: var(--bg-dark-lighter);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-theme .material-card h3,
body.dark-theme .category-card h3,
body.dark-theme .feature-card h3,
body.dark-theme .benefit-card h3,
body.dark-theme .creator-info h3,
body.dark-theme .footer-title {
    color: var(--dark-color);
}

body.dark-theme .vip-section {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-lighter) 100%);
}

body.dark-theme .footer {
    background: var(--bg-dark-darker);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-theme .footer-links a {
    color: var(--text-lighter);
}

body.dark-theme .footer-links a:hover {
    color: var(--dark-color);
}

body.dark-theme .form-control {
    background: var(--bg-card-dark);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-theme .form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

body.dark-theme .btn-outline {
    background: transparent;
    color: var(--text-color);
    border-color: rgba(255, 255, 255, 0.2);
}

body.dark-theme .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--dark-color);
}

body.dark-theme .filter-tab {
    background: var(--bg-card-dark);
    color: var(--text-light);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-theme .filter-tab:hover,
body.dark-theme .filter-tab.active {
    background: var(--gradient);
    color: white;
    border-color: transparent;
}

body.dark-theme .empty-state {
    background: var(--bg-dark-lighter);
    color: var(--text-lighter);
}

body.dark-theme .timeline::before {
    background: rgba(255, 255, 255, 0.1);
}

body.dark-theme .modal-content {
    background: var(--bg-dark-lighter);
    color: var(--text-color);
}

body.dark-theme .payment-card {
    background: var(--bg-card-dark);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-theme .purchase-note {
    background: var(--bg-card-dark);
    color: var(--text-light);
}

body.dark-theme .error-page {
    background: linear-gradient(135deg, var(--bg-dark-lighter) 0%, #334155 100%);
}

body.dark-theme .error-code {
    background: linear-gradient(135deg, var(--accent-color), #93c5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.dark-theme .error-content h1 {
    color: #f1f5f9;
}

body.dark-theme .error-content p {
    color: #cbd5e1;
}

body.dark-theme .ghost {
    background: #334155;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

body.dark-theme .ghost::before,
body.dark-theme .ghost::after {
    background: #334155;
}

body.dark-theme .ghost-eyes::before,
body.dark-theme .ghost-eyes::after {
    background: #f1f5f9;
}

body.dark-theme .ghost-mouth {
    border-color: #f1f5f9;
}

body.dark-theme .search-box {
    background: #334155;
}

body.dark-theme .search-box input {
    background: transparent;
    color: #e2e8f0;
}

body.dark-theme .error-links h3 {
    color: #f1f5f9;
}

body.dark-theme .error-links li a {
    background: #334155;
    color: #cbd5e1;
}

body.dark-theme .error-links li a:hover {
    background: #475569;
    color: #60a5fa;
}

body.dark-theme .error-links li a i {
    color: #60a5fa;
}

/* === Адаптивность === */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-stats {
        gap: 20px;
    }
    
    .stat-card {
        min-width: 120px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .materials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .vip-benefits {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu,
    .search-box {
        display: none;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .materials-grid,
    .categories-grid,
    .vip-benefits {
        grid-template-columns: 1fr;
    }
    
    .filters-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-stats {
        justify-content: center;
    }
    
    .creator-info {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .error-code {
        font-size: 8rem;
    }
    
    .error-content h1 {
        font-size: 2rem;
    }
    
    .error-links ul {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .card {
        padding: 20px;
    }
    
    .material-card {
        margin-bottom: 20px;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .ghost {
        width: 80px;
        height: 100px;
    }
    
    .ghost-eyes {
        top: 30px;
    }
    
    .ghost-eyes::before,
    .ghost-eyes::after {
        width: 10px;
        height: 10px;
    }
    
    .ghost-mouth {
        bottom: 20px;
        width: 25px;
    }
}