/* ============ БАЗОВЫЕ СТИЛИ ============ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0d0b2b;
    color: #ffffff;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

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

/* ============ ШАПКА ============ */
.header {
    background: rgba(13, 11, 43, 0.95);
    backdrop-filter: blur(12px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(106, 17, 203, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

.logo {
    text-decoration: none;
}

.logo h1 {
    font-size: 1.9rem;
    font-weight: 900;
    letter-spacing: 3px;
    background: linear-gradient(135deg, #a78bfa 0%, #6a11cb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Навигация */
.nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 28px;
}

.nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s;
    padding: 8px 4px;
    position: relative;
}

.nav a:hover {
    color: #a78bfa;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #6a11cb 0%, #a78bfa 100%);
    transition: width 0.3s;
}

.nav a:hover::after {
    width: 100%;
}

.nav a.active {
    color: #a78bfa;
}

.nav a.active::after {
    width: 100%;
}

/* Кнопки в навигации */
.nav-buttons {
    display: flex;
    gap: 12px;
}

.btn-login, .btn-register {
    padding: 10px 22px !important;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-login {
    background: transparent;
    border: 2px solid #6a11cb;
    color: #ffffff;
}

.btn-login:hover {
    background: rgba(106, 17, 203, 0.15);
    color: #a78bfa;
}

.btn-login::after, .btn-register::after {
    display: none;
}

.btn-register {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    border: none;
    color: #ffffff;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(106, 17, 203, 0.5);
}

/* Бургер-меню */
.burger-menu {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1100;
}

.burger-menu span {
    width: 26px;
    height: 3px;
    background: #ffffff;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* ============ ГЛАВНЫЙ БАННЕР ============ */
.hero {
    padding: 160px 0 100px;
    background: radial-gradient(ellipse at top, rgba(106, 17, 203, 0.25) 0%, transparent 60%),
                linear-gradient(135deg, #0d0b2b 0%, #1a1245 100%);
    margin-top: 70px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(106, 17, 203, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    max-width: 750px;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(106, 17, 203, 0.2);
    border: 1px solid rgba(167, 139, 250, 0.4);
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: #a78bfa;
}

.hero h2 {
    font-size: 3.8rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #ffffff 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.85;
    max-width: 620px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.btn-primary, .btn-secondary {
    padding: 16px 36px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: #ffffff;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(106, 17, 203, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.hero-stats {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat strong {
    font-size: 2rem;
    font-weight: 900;
    color: #a78bfa;
}

.stat span {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ============ ПРЕИМУЩЕСТВА ============ */
.features {
    padding: 80px 0;
    background: #0a0824;
}

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

.feature-card {
    padding: 35px 25px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(106, 17, 203, 0.2);
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: #6a11cb;
    box-shadow: 0 15px 35px rgba(106, 17, 203, 0.2);
    background: rgba(106, 17, 203, 0.08);
}

.feature-card i {
    font-size: 2.5rem;
    color: #a78bfa;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.92rem;
    opacity: 0.7;
}

/* ============ СЕКЦИИ ============ */
.categories, .bestsellers, .about-store, .catalog-products, .rules-content {
    padding: 80px 0;
}

.section-title {
    font-size: 2.6rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 15px;
}

.section-subtitle {
    text-align: center;
    opacity: 0.7;
    margin-bottom: 50px;
    font-size: 1.05rem;
}

/* ============ КАТЕГОРИИ ============ */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.category-card {
    padding: 40px 25px;
    background: linear-gradient(135deg, rgba(106, 17, 203, 0.12) 0%, rgba(37, 117, 252, 0.12) 100%);
    border: 1px solid rgba(106, 17, 203, 0.25);
    border-radius: 16px;
    text-align: center;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.3s;
}

.category-card:hover {
    transform: translateY(-8px);
    border-color: #a78bfa;
    box-shadow: 0 15px 35px rgba(106, 17, 203, 0.25);
}

.category-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.category-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.category-card p {
    font-size: 0.88rem;
    opacity: 0.7;
}

/* ============ ТОВАРЫ ============ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 28px;
}

.product-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: #6a11cb;
    box-shadow: 0 15px 35px rgba(106, 17, 203, 0.25);
}

.product-image {
    position: relative;
    height: 320px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 14px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffffff;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.product-category {
    font-size: 0.85rem;
    opacity: 0.6;
    margin-bottom: 15px;
}

.product-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 900;
    color: #a78bfa;
}

.btn-cart {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    border: none;
    color: #ffffff;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-cart:hover {
    transform: scale(1.12);
    box-shadow: 0 8px 20px rgba(106, 17, 203, 0.5);
}

/* ============ О МАГАЗИНЕ ============ */
.about-store {
    background: #0a0824;
}

.about-store-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-store-content h2 {
    font-size: 2.4rem;
    font-weight: 900;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #ffffff 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-store-content p {
    font-size: 1.05rem;
    opacity: 0.85;
    margin-bottom: 18px;
}

.about-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.about-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-stat i {
    font-size: 2rem;
    color: #a78bfa;
    margin-bottom: 10px;
}

.about-stat strong {
    font-size: 1.8rem;
    font-weight: 900;
    color: #a78bfa;
}

.about-stat span {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ============ СТРАНИЦА КАТАЛОГА ============ */
.page-header {
    padding: 140px 0 60px;
    text-align: center;
    background: radial-gradient(ellipse at top, rgba(106, 17, 203, 0.25) 0%, transparent 60%),
                linear-gradient(135deg, #0d0b2b 0%, #1a1245 100%);
    margin-top: 70px;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.15rem;
    opacity: 0.75;
}

/* Фильтры категорий */
.catalog-categories {
    padding: 40px 0;
    background: #0a0824;
    position: sticky;
    top: 72px;
    z-index: 100;
    border-bottom: 1px solid rgba(106, 17, 203, 0.2);
}

.category-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 10px 22px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.filter-btn:hover {
    background: rgba(106, 17, 203, 0.2);
    border-color: #6a11cb;
}

.filter-btn.active {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    border-color: transparent;
}

/* Секции каталога */
.catalog-section {
    margin-bottom: 70px;
}

.catalog-section:last-child {
    margin-bottom: 0;
}

.catalog-title {
    font-size: 1.9rem;
    font-weight: 800;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.catalog-title i {
    color: #a78bfa;
}

.catalog-desc {
    opacity: 0.7;
    margin-bottom: 35px;
    font-size: 1rem;
}

.catalog-section.hidden {
    display: none;
}

/* ============ ПРАВИЛА ============ */
.rules-block {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(106, 17, 203, 0.2);
    border-left: 4px solid #6a11cb;
    border-radius: 14px;
    padding: 35px 40px;
    margin-bottom: 30px;
    transition: all 0.3s;
}

.rules-block:hover {
    border-color: #a78bfa;
    background: rgba(106, 17, 203, 0.06);
}

.rules-block h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #a78bfa;
}

.rules-block p {
    margin-bottom: 12px;
    opacity: 0.9;
    font-size: 1rem;
}

.rules-block ul {
    margin: 15px 0 15px 25px;
}

.rules-block li {
    margin-bottom: 8px;
    opacity: 0.9;
}

.contact-info {
    margin-top: 20px;
    padding: 20px;
    background: rgba(106, 17, 203, 0.1);
    border-radius: 12px;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.contact-info i {
    color: #a78bfa;
    width: 20px;
}

.legal-info {
    padding: 20px;
    background: rgba(106, 17, 203, 0.1);
    border-radius: 12px;
}

.legal-info p {
    margin-bottom: 8px;
}

.legal-info strong {
    color: #a78bfa;
}

/* ============ ФУТЕР ============ */
.footer {
    background: #08061c;
    padding: 60px 0 25px;
    margin-top: 80px;
    border-top: 2px solid rgba(106, 17, 203, 0.4);
}

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

.footer-col h3 {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 18px;
    background: linear-gradient(135deg, #a78bfa 0%, #6a11cb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-col h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 18px;
    color: #a78bfa;
}

.footer-col p {
    opacity: 0.7;
    font-size: 0.92rem;
    margin-bottom: 15px;
}

.footer-col ul {
    list-style: none;
}

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

.footer-col ul a {
    color: #ffffff;
    text-decoration: none;
    opacity: 0.7;
    font-size: 0.92rem;
    transition: all 0.3s;
}

.footer-col ul a:hover {
    opacity: 1;
    color: #a78bfa;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.8;
    font-size: 0.92rem;
}

.contact-list i {
    color: #a78bfa;
    width: 18px;
}

.socials {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.socials a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(106, 17, 203, 0.15);
    border: 1px solid rgba(106, 17, 203, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 1rem;
}

.socials a:hover {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    transform: translateY(-3px);
    border-color: transparent;
}

.footer-legal {
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    margin-bottom: 20px;
}

.footer-legal p {
    font-size: 0.9rem;
    opacity: 0.65;
    margin-bottom: 6px;
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    font-size: 0.88rem;
    opacity: 0.5;
}

/* ============ АДАПТИВНОСТЬ ============ */
@media (max-width: 1024px) {
    .hero h2 {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 35px;
    }
    
    .catalog-categories {
        position: static;
    }
}

@media (max-width: 768px) {
    /* Бургер-меню */
    .burger-menu {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: #0d0b2b;
        border-left: 1px solid rgba(106, 17, 203, 0.3);
        transition: right 0.35s ease;
        padding: 90px 25px 40px;
        overflow-y: auto;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .nav.active {
        right: 0;
    }

    .nav ul {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
    }

    .nav li {
        width: 100%;
    }

    .nav a {
        display: block;
        padding: 16px 15px;
        font-size: 1.05rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav a::after {
        display: none;
    }

    .nav a.active {
        background: rgba(106, 17, 203, 0.15);
        border-radius: 8px;
    }

    .nav-buttons {
        flex-direction: column;
        margin-top: 25px;
        gap: 12px;
    }

    .btn-login, .btn-register {
        justify-content: center;
        width: 100%;
        padding: 13px 22px !important;
    }

    /* Бургер анимация */
    .burger-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .burger-menu.active span:nth-child(2) {
        opacity: 0;
    }

    .burger-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    /* Hero */
    .hero {
        padding: 130px 0 70px;
        margin-top: 65px;
    }

    .hero h2 {
        font-size: 2.2rem;
    }

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

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

    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
        padding: 15px 30px;
    }

    .hero-stats {
        gap: 30px;
    }

    .stat strong {
        font-size: 1.5rem;
    }

    /* Секции */
    .section-title {
        font-size: 1.9rem;
    }

    .about-store-content h2 {
        font-size: 1.8rem;
    }

    .page-header {
        padding: 120px 0 50px;
        margin-top: 65px;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }

    /* Правила */
    .rules-block {
        padding: 25px 22px;
    }

    .rules-block h2 {
        font-size: 1.25rem;
    }

    /* Футер */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-stats {
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .catalog-title {
        font-size: 1.4rem;
    }
    
    .product-image {
        height: 260px;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .hero-stats {
        gap: 25px;
    }
    
    .stat strong {
        font-size: 1.3rem;
    }
}