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

/* Скрытие скроллбара для всех браузеров */
html {
    overflow-y: scroll; /* Всегда показывать вертикальную прокрутку (для предотвращения сдвига контента) */
    -ms-overflow-style: none; /* IE и Edge */
    scrollbar-width: none; /* Firefox */
}

html::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
    width: 0;
    height: 0;
}

:root {
    /* Палитра цветов */
    --black-matte: #0a0a0a;
    --black-glossy: #000000;
    --graphite: #2b2b2b;
    --gray-graphite: #4a4a4a;
    
    /* Основные цвета */
    --primary-color: #4a4a4a;
    --primary-dark: #2b2b2b;
    --secondary-color: #5a5a5a;
    --text-dark: #e5e7eb;
    --text-light: #9ca3af;
    --bg-dark: #151515;
    --bg-card: #2b2b2b;
    --bg-card-hover: #3a3a3a;
    --border-color: #3a3a3a;
    --gradient: linear-gradient(135deg, #2b2b2b 0%, #4a4a4a 50%, #5a5a5a 100%);
    --gradient-text: linear-gradient(135deg, #4a4a4a 0%, #5a5a5a 100%);
    --gradient-text-light: linear-gradient(135deg, #b0b0b0 0%, #d0d0d0 100%);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--bg-dark);
    -ms-overflow-style: none; /* IE и Edge */
    scrollbar-width: none; /* Firefox */
    position: relative;
    min-height: 100vh;
}

body::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
    width: 0;
    height: 0;
}

/* Splash Screen - анимация запуска */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--black-glossy);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.5s ease-out;
    pointer-events: none;
}

.splash-screen:not(.hidden) {
    pointer-events: all;
}

.splash-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.splash-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.splash-letters {
    display: flex;
    gap: 0.5rem;
    font-size: 8rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    color: var(--text-dark);
}

.splash-letter {
    display: inline-block;
    position: relative;
    opacity: 0;
    transform: scale(0.8);
    animation: letterDraw 1s ease-out forwards;
}

.splash-letter:nth-child(1) {
    animation-delay: 0.2s;
}

.splash-letter:nth-child(2) {
    animation-delay: 0.6s;
}

.splash-letter:nth-child(3) {
    animation-delay: 1s;
}

/* Анимация написания букв */
@keyframes letterDraw {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.1) translateY(-5px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Splash: обёртка под SVG-логотип */
.splash-logo-wrapper {
    width: 100%;
    max-width: 512px;
    padding: 0 1rem;
}
.splash-logo-wrapper svg {
    width: 100%;
    height: auto;
    display: block;
}

/* Анимация SVG-логотипа на телефонах — меньше размер */
@media (max-width: 768px) {
    .splash-logo-wrapper {
        max-width: 320px;
        padding: 0 1.5rem;
    }
}

@media (max-width: 480px) {
    .splash-logo-wrapper {
        max-width: 260px;
        padding: 0 1rem;
    }
}

@media (max-width: 360px) {
    .splash-logo-wrapper {
        max-width: 200px;
        padding: 0 0.75rem;
    }
}


/* Скрытие основного контента во время анимации */
body.splash-active {
    overflow: hidden;
}

body.splash-active .header {
    opacity: 0;
    transition: opacity 0.5s ease-in;
}

body.splash-active .main-content,
body.splash-active .category-content {
    opacity: 0;
    visibility: hidden;
}

/* После завершения анимации плавно показываем header */
body:not(.splash-active) .header {
    opacity: 1;
    transition: opacity 0.8s ease-in;
}

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

/* Header */
.header {
    background: #000000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

/* Верхний слой - Логотип */
.header-top {
    background: #000000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.4rem 0;
}

.logo-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    gap: 0.5rem;
    transition: opacity 0.3s;
    text-align: center;
    width: 100%;
}

.logo-top:hover {
    opacity: 0.8;
}

.logo-main {
    font-size: 3rem;
    font-weight: 900;
    color: #ffffff;
    font-family: 'Arial Black', 'Impact', sans-serif;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    line-height: 1;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    display: block;
    text-align: center;
    margin: 0;
    padding: 0;
    width: 100%;
}

.logo-img {
    max-height: 45px;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

.logo-subtitle {
    font-size: 0.75rem;
    font-weight: 400;
    color: #ffffff;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.8;
    display: block;
    text-align: center;
    margin: 0;
    padding: 0;
    width: 100%;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    position: relative;
    min-height: 50px;
    background: #000000;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
    margin-left: 12rem;
    z-index: 5;
    margin-right: auto;
}

.nav-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    z-index: 10;
}

.nav-about {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-right: auto;
    z-index: 10;
}

.nav-link-about {
    color: #ffffff;
    text-decoration: none;
    font-weight: 400;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.6;
    white-space: nowrap;
}

.nav-link-about:hover {
    opacity: 0.9;
}

.nav-link-about.active {
    opacity: 1;
    color: #ffffff;
    font-weight: 600;
}

.nav-link-about::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #ffffff;
    transition: width 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.nav-link-about.active::after {
    width: 80%;
    opacity: 1;
    animation: slideInUnderline 0.3s ease;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    flex-shrink: 0;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 400;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.6;
    white-space: nowrap;
}

.nav-link:hover {
    opacity: 0.9;
}

.nav-link.active {
    opacity: 1;
    color: #ffffff;
    font-weight: 600;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #ffffff;
    transition: width 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.nav-link.active::after {
    width: 80%;
    opacity: 1;
    animation: slideInUnderline 0.3s ease;
}


@keyframes slideInUnderline {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 80%;
        opacity: 1;
    }
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
    margin-right: -160px;
    flex-shrink: 0;
}

.nav-actions .btn-secondary {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-width: 1px;
}

.nav-icon-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-decoration: none;
}

.nav-icon-btn:hover {
    opacity: 0.7;
    background: rgba(255, 255, 255, 0.1);
}

.nav-icon-btn svg {
    width: 20px;
    height: 20px;
}

/* Стили для информации о пользователе */
.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-link {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
}

.user-link:hover {
    opacity: 0.8;
}

.user-logout {
    background: transparent;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    transition: all 0.3s;
}

.user-logout:hover {
    color: var(--text-dark);
}

.auth-error {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    padding: 0.75rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-size: 0.875rem;
    text-align: center;
}

/* Стили для информации о пользователе */
.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-link {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
}

.user-link:hover {
    opacity: 0.8;
}

.user-logout {
    background: transparent;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    transition: all 0.3s;
}

.user-logout:hover {
    color: var(--text-dark);
}

.field-error {
    color: #dc3545;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: none;
}

.form-error {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    text-align: center;
    display: none;
}

.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: #ffffff;
    color: #000000;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.nav-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-menu-toggle span {
    width: 24px;
    height: 1px;
    background: #ffffff;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Hero Section */
.hero {
    background: var(--bg-dark);
    color: white;
    padding: 10rem 0 8rem;
    position: relative;
    overflow: hidden;
    margin-top: 0; /* Убираем отступ сверху, так как он уже в #main-content */
}

.hero-minimal {
    padding: 15rem 0 10rem;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.hero-content {
    position: relative;
    z-index: 1;
    text-align: left;
    max-width: 100%;
    margin: 0;
    padding-right: 2rem;
}

.hero-content-minimal {
    text-align: center;
    padding-right: 0;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
    background: var(--gradient-text-light);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: left;
    word-break: keep-all;
    overflow-wrap: break-word;
    padding-right: 1rem;
}

.hero-title-minimal {
    font-size: 5rem;
    text-align: center;
    padding-right: 0;
    margin-bottom: 2rem;
}

.hero-subtitle-wrapper {
    margin-bottom: 2rem;
}

.hero-znd {
    font-size: 5rem;
    font-weight: 900;
    font-family: 'Arial Black', 'Impact', sans-serif;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    background: var(--gradient-text-light);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
    transform: skew(-5deg);
    font-style: italic;
    margin-bottom: 3rem;
}

.hero-minimal .hero-znd {
    display: block;
}

.hero-brand-img {
    max-width: 600px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}
    margin: 0 auto 3rem;
}

.hero-subtitle {
    font-size: 1.8rem;
    margin-bottom: 3rem;
    opacity: 0.85;
    color: var(--text-dark);
    font-weight: 400;
    line-height: 1.6;
}

.btn-hero {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 1.2rem 3rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    text-decoration: none;
    display: inline-block;
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-hero-minimal {
    padding: 1rem 2.5rem;
    font-size: 1rem;
    border-radius: 8px;
}

.hero-note {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Products Carousel Section */
.products-carousel-section {
    background: var(--bg-dark);
    padding: 5rem 0;
    margin-top: -3rem;
    position: relative;
    z-index: 2;
}

.products-carousel-minimal {
    padding: 8rem 0;
    margin-top: 0;
}

.carousel-wrapper {
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
    justify-content: center;
}

.carousel-container {
    flex: 1;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    position: relative;
    overflow: visible;
    padding: 0;
    margin: 0 auto;
}

.carousel-track {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    width: 100%;
    min-height: 400px;
    will-change: transform;
}

.product-card {
    flex-shrink: 0;
    width: 220px;
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    will-change: transform, opacity, width;
}

.product-card.side {
    transform: scale(0.85);
    opacity: 0.7;
}

.product-card.active {
    width: 280px;
    transform: scale(1.05);
    box-shadow: 0 12px 50px rgba(74, 74, 74, 0.3);
    background: var(--bg-card-hover);
    border-color: var(--primary-color);
    opacity: 1;
    z-index: 10;
}

.product-card:hover {
    opacity: 0.8;
}

.product-card.active:hover {
    transform: scale(1.08);
    opacity: 1;
}

.product-image {
    font-size: 5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 140px;
    background: var(--bg-dark);
    border-radius: 12px;
    border: 2px solid var(--border-color);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, width, height;
}

.product-card.active .product-image {
    font-size: 6.5rem;
    width: 180px;
    height: 180px;
    border-color: var(--primary-color);
    box-shadow: 0 0 30px rgba(74, 74, 74, 0.3);
}

.product-card.side .product-image {
    width: 120px;
    height: 120px;
    font-size: 4rem;
}

.product-info {
    width: 100%;
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.5s, opacity 0.3s ease;
    opacity: 1;
}

.product-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
    background: var(--gradient-text-light);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-description {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
    font-size: 1rem;
}

.product-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.product-price {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-product {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    text-decoration: none;
    display: inline-block;
}

.btn-product:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.carousel-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
    flex-shrink: 0;
}

.carousel-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: scale(1.1);
}

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

.carousel-btn svg {
    width: 24px;
    height: 24px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    padding: 0;
}

.carousel-dot.active {
    background: var(--primary-color);
    width: 30px;
    border-radius: 5px;
}

@media (max-width: 768px) {
    .hero-minimal {
        padding: 8rem 0 6rem;
        min-height: 70vh;
    }
    
    .hero-content {
        text-align: center;
        padding-right: 0;
    }
    
    .hero-content-minimal {
        text-align: center;
    }
    
    .hero-title {
        text-align: center;
        padding-right: 0;
        font-size: 2.5rem;
    }
    
    .hero-title-minimal {
        font-size: 3rem;
    }
    
    .hero-brand-img {
        max-width: 90%;
        padding: 0 1rem;
    }
    
    .hero-znd {
        font-size: 3rem;
        letter-spacing: 0.2em;
        display: block;
        text-align: center;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        text-align: center;
    }
    
    .btn-hero-minimal {
        padding: 0.875rem 2rem;
        font-size: 0.95rem;
    }
    
    .products-carousel-minimal {
        padding: 4rem 0;
    }
    
    .carousel-container {
        padding: 0;
        width: 100%;
    }
    
    .carousel-wrapper {
        gap: 0.5rem;
        width: 100%;
    }
    
    .carousel-track {
        gap: 1rem;
        width: 100%;
    }
    
    .product-card {
        width: 150px;
        padding: 1.5rem;
    }
    
    .product-card.side {
        display: none;
    }
    
    .product-card.active {
        width: 250px;
        transform: scale(1.05);
    }
    
    .product-image {
        font-size: 3.5rem;
        width: 100px;
        height: 100px;
    }
    
    .product-card.active .product-image {
        font-size: 5.5rem;
        width: 160px;
        height: 160px;
    }
    
    .product-info {
        padding: 2rem;
    }
    
    .product-title {
        font-size: 1.5rem;
    }
    
    .product-details {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-product {
        width: 100%;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .carousel-btn svg {
        width: 20px;
        height: 20px;
    }
}

/* Catalog Section */
.catalog {
    background: var(--bg-dark);
    padding: 0.5rem 0;
    position: relative;
    z-index: 1;
}

/* Специальные стили для админ-панели */
.admin-panel-section.catalog {
    padding-top: 180px !important;
    padding-bottom: 3rem !important;
    min-height: calc(100vh - 200px) !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 1 !important;
}

.admin-panel-section .container {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 400px !important;
    position: relative !important;
    z-index: 2 !important;
}

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

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 0.5rem;
    margin-bottom: 0;
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.course-card {
    background: var(--bg-card);
    padding: 0.75rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
    position: relative;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    min-height: 400px;
    overflow: hidden;
}

.course-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    flex-shrink: 0;
}

.course-card > div:first-child {
    aspect-ratio: 1 / 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(74, 74, 74, 0.2);
    background: var(--bg-card-hover);
}

.course-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gradient);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.course-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    flex-shrink: 0;
    min-height: 3rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.course-description {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    font-size: 0.9rem;
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.btn-course {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: transform 0.2s;
}

.btn-course:hover {
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: #d0d0d0;
    border: 2px solid #d0d0d0;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background: var(--gradient);
    color: white;
    border-color: transparent;
}

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

/* Features Section */
.services {
    background: var(--bg-dark);
    padding: 6rem 0;
}

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

.service-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(74, 74, 74, 0.2);
    background: var(--bg-card-hover);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

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

.btn-service {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-service:hover {
    transform: translateY(-2px);
}

/* Team Section */
.experts {
    background: var(--bg-dark);
    padding: 6rem 0;
}

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

.expert-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
    border: 1px solid var(--border-color);
}

.expert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(74, 74, 74, 0.2);
    background: var(--bg-card-hover);
}

.expert-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.expert-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.expert-role {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    background: var(--gradient-text-light);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.expert-bio {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Content Overlay */
.content-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 500;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.content-overlay.active {
    pointer-events: auto;
}

/* Footer z-index для правильного отображения поверх overlay */

#main-content,
#category-content,
#about-content {
    min-height: calc(100vh - 320px);
    opacity: 1;
    transition: opacity 0.3s ease;
    position: relative;
    z-index: 100;
    padding-top: 130px; /* Отступ для фиксированного header */
}

#category-content {
    padding: 0;
    padding-top: 150px; /* Отступ для фиксированного header (130px header + 20px дополнительный отступ) */
    padding-bottom: 0;
}

/* About Section */
#about-content {
    min-height: calc(100vh - 320px);
    opacity: 1;
    transition: opacity 0.3s ease;
    position: relative;
    z-index: 100;
    padding: 0;
    padding-top: 150px; /* Отступ для фиксированного header (130px header + 20px дополнительный отступ) */
    padding-bottom: 4rem;
}

.about-section {
    background: var(--bg-dark);
    padding: 0;
    position: relative;
    z-index: 1;
}

.about-section .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

.about-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 4rem;
    line-height: 1.1;
    color: var(--text-dark);
    text-align: center;
    text-transform: uppercase;
}

/* Блоки страницы "О бренде" */
.about-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    margin-bottom: 6rem;
    align-items: center;
}

.about-block:last-child {
    margin-bottom: 0;
}

.about-block-2 {
    grid-template-columns: 1fr 1fr;
}

.about-block-2 .about-text-wrapper {
    order: 1;
}

.about-block-2 .about-gallery-wrapper {
    order: 2;
}

.about-gallery-wrapper {
    width: 100%;
}

.about-text-wrapper {
    width: 100%;
}

.about-text {
    color: var(--text-light);
    font-size: 1.25rem;
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 1.5rem;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-text em {
    font-style: italic;
    color: var(--text-dark);
    font-size: 1.25rem;
}

/* Слайдшоу для страницы "О бренде" */
.about-gallery {
    position: relative;
    width: 100%;
}

.about-gallery-main {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
    position: relative;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y;
}

.about-gallery-main:active {
    cursor: grabbing;
}

.about-gallery-slider {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.about-gallery-slide {
    min-width: 100%;
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.about-gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.about-gallery-main.dragging .about-gallery-slider {
    transition: none;
}

.about-gallery-thumbnails {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    scrollbar-width: thin;
    max-width: 100%;
}

.about-gallery-thumbnails::-webkit-scrollbar {
    height: 4px;
}

.about-gallery-thumbnails::-webkit-scrollbar-thumb {
    background: var(--gray-graphite);
    border-radius: 2px;
}

.about-gallery-thumbnail {
    min-width: 80px;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s;
    background: var(--bg-dark);
    flex-shrink: 0;
}

.about-gallery-thumbnail.active {
    border-color: var(--text-dark);
}

.about-gallery-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-gallery-prev,
.about-gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    border: none;
    color: #ffffff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s, opacity 0.3s;
    z-index: 10;
    opacity: 0.6;
}

.about-gallery-prev:hover,
.about-gallery-next:hover {
    background: rgba(0, 0, 0, 0.5);
    opacity: 1;
}

.about-gallery-prev {
    left: 1rem;
}

.about-gallery-next {
    right: 1rem;
}

.about-gallery-prev svg,
.about-gallery-next svg {
    width: 24px;
    height: 24px;
}

/* Footer */
.footer {
    background: #000000;
    color: #ffffff;
    padding: 3rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 4rem;
    position: relative;
    z-index: 1000;
    width: 100%;
    clear: both;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: #ffffff;
    font-family: 'Arial Black', 'Impact', sans-serif;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.footer-logo-img {
    max-height: 40px;
    width: auto;
    height: auto;
    display: block;
    margin-bottom: 1rem;
    object-fit: contain;
}

.footer-copyright {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
    letter-spacing: 0.05em;
    margin: 0;
}

.footer-right {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: right;
}

.footer-info-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 0.5rem 0;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-end;
}

.footer-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.footer-info-label {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-info-link {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.3s;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.5);
}

.footer-info-link:hover {
    opacity: 0.7;
    border-bottom-color: rgba(255, 255, 255, 0.8);
}

/* Responsive */
@media (max-width: 768px) {
    .nav {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        position: relative;
        padding: 0.3rem 1rem 0.3rem 0.5rem;
        min-height: 50px;
    }
    
    /* Mobile Header - объединяем header-top и nav в одну строку */
    .header {
        display: flex;
        flex-direction: row;
        align-items: center;
        position: relative;
    }
    
    .header-top {
        padding: 0;
        border-bottom: none;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: auto;
        z-index: 1;
    }
    
    .header-top .container {
        padding: 0;
    }
    
    .logo-top {
        margin: 0;
        padding: 0;
    }
    
    .logo-img {
        max-height: 30px;
    }
    
    /* Объединяем nav с header-top */
    .header .nav {
        border-top: none;
        padding: 0.3rem 0;
        flex: 1;
        min-height: 50px;
        justify-content: flex-end;
    }
    
    .logo-main {
        font-size: 2rem;
        letter-spacing: 0.2em;
    }
    
    .logo-subtitle {
        font-size: 0.65rem;
    }
    
    /* Overlay для мобильного меню */
    .mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 50px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.7);
        z-index: 998;
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }
    
    .mobile-menu-overlay.active {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }
    
    /* Кнопка "О бренде" на мобильной версии */
    .nav-about {
        display: none; /* Скрываем на мобильной, будет в меню */
    }
    
    /* Мобильное меню категорий - выдвижное */
    .nav-menu {
        display: flex;
        position: fixed;
        top: 50px;
        left: 0;
        bottom: 0;
        background: #000000;
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
        z-index: 999;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        width: 80%;
        max-width: 320px;
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-menu .nav-link {
        padding: 1rem 2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        text-align: left;
        color: #ffffff;
        font-size: 1.1rem;
        transition: all 0.3s ease;
        opacity: 0.6;
        position: relative;
    }
    
    .nav-menu .nav-link:hover {
        background: rgba(255, 255, 255, 0.05);
        opacity: 0.9;
    }
    
    .nav-menu .nav-link.active {
        opacity: 1;
        font-weight: 600;
        background: rgba(255, 255, 255, 0.08);
    }
    
    .nav-menu .nav-link.active::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: 0;
        width: 4px;
        height: 100%;
        background: #ffffff;
        animation: slideInLeftBar 0.3s ease;
    }
    
    @keyframes slideInLeftBar {
        from {
            height: 0;
            opacity: 0;
        }
        to {
            height: 100%;
            opacity: 1;
        }
    }
    
    /* Гамбургер-меню слева */
    .nav-menu-toggle {
        display: flex !important;
        position: absolute;
        left: 1rem;
        order: -1;
    }
    
    .nav-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Иконки в центре, корзина справа */
    .nav-actions {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        gap: 0.5rem;
        flex: 1;
        margin: 0;
        position: relative;
        padding-right: 0;
        padding-left: 50px; /* Отступ слева для меню */
    }
    
    /* Кнопка корзины справа на мобильной версии */
    #cart-btn {
        margin-left: auto;
        margin-right: 0;
    }
    
    /* Скрываем некоторые кнопки на мобильной версии для освобождения места */
    #media-btn {
        display: none;
    }
    
    .nav-icon-btn {
        width: 36px;
        height: 36px;
    }
    
    /* Скрываем админ кнопку на мобильных */
    .admin-btn {
        display: none;
    }
    
    /* Footer Mobile */
    .footer {
        width: 100%;
        position: relative;
        z-index: 1000;
        left: 0;
        right: 0;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        align-items: flex-start;
    }
    
    .footer-right {
        text-align: left;
        width: 100%;
    }
    
    .footer-info {
        align-items: flex-start;
    }
    
    .footer-info-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    /* About Section Mobile */
    #about-content {
        padding-top: 120px;
        padding-bottom: 2rem;
    }
    
    .about-section .container {
        padding: 0 1.5rem;
    }
    
    .about-title {
        font-size: 2.5rem;
        margin-bottom: 2rem;
    }
    
    .about-block {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 4rem;
    }
    
    .about-block-2 .about-text-wrapper {
        order: 1;
    }
    
    .about-block-2 .about-gallery-wrapper {
        order: 2;
    }
    
    .about-text {
        font-size: 1.1rem;
        line-height: 1.7;
    }
    
    .about-text em {
        font-size: 1.1rem;
        gap: 0.25rem;
        padding: 0.4rem;
    }
    
    .nav-icon-btn svg {
        width: 18px;
        height: 18px;
    }
    
    /* Увеличиваем иконки корзины и логина на мобильной версии */
    #cart-btn svg,
    #login-btn svg {
        width: 24px;
        height: 24px;
    }
    
    /* Увеличиваем кнопки корзины и логина для лучшей видимости */
    #cart-btn,
    #login-btn {
        width: 44px;
        height: 44px;
    }
    
    .cart-count {
        width: 18px;
        height: 18px;
        font-size: 0.7rem;
    }
    
    .modal__signin-content {
        padding: 2rem 1.5rem;
        width: 95%;
    }
    
    .auth-title {
        font-size: 1.5rem;
    }
    
    .hero-title-minimal {
        font-size: 2.5rem;
    }
    
    .hero-znd {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .stats-grid,
    .courses-grid,
    .services-grid,
    .experts-grid {
        grid-template-columns: 1fr;
    }
}

/* Модальные окна */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
}

.modal.active {
    opacity: 1;
}

.modal.active,
.modal.enter-done {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal[style*="opacity"] {
    transition: opacity 0.3s ease !important;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    z-index: 2001;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
    transform: scale(0.95) translateY(-20px);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.modal.active .modal-content,
.modal.enter-done .modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.modal__signin-content {
    max-width: 420px;
    padding: 3rem 2.5rem 2.5rem;
    background: #ffffff;
    border-radius: 12px;
}

.modal-media {
    max-width: 400px;
    text-align: center;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666666;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
    background: transparent;
    border: none;
    padding: 0;
}

.modal-close svg {
    width: 24px;
    height: 24px;
}

.modal-close:hover {
    color: #000000;
    transform: rotate(90deg);
}

.modal-content h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-text-light);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-content input {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-dark);
    color: var(--text-dark);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.modal-content input:focus {
    outline: none;
    border-color: var(--gray-graphite);
}

/* Модальное окно входа/регистрации */
.modal__signin {
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal__signin.active,
.modal__signin[style*="display: flex"] {
    display: flex !important;
    visibility: visible;
}

.modal__signin.active,
.modal__signin.enter-done {
    opacity: 1;
    visibility: visible;
}

.auth-form-login {
    width: 100%;
}

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

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #999999;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.form-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #f5f5f5;
    color: #000000;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.form-group input::placeholder {
    color: #999999;
    opacity: 0.6;
}

.form-group input:focus {
    outline: none;
    border-color: #999999;
    background: #ffffff;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
}

.form-group input:hover {
    border-color: #cccccc;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666666;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
    cursor: pointer;
}

.checkbox-label span {
    user-select: none;
}

.forgot-password {
    color: #666666;
    text-decoration: none;
    border-bottom: 1px dotted #666666;
    transition: color 0.3s;
}

.forgot-password:hover {
    color: #000000;
}

.btn-login {
    width: 100%;
    padding: 1rem;
    margin-bottom: 2rem;
    background: #333333;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background: #000000;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.btn-login svg {
    width: 16px;
    height: 16px;
}

.social-login {
    margin-bottom: 1.5rem;
}

.social-login-title {
    font-size: 0.875rem;
    color: #666666;
    text-align: center;
    margin-bottom: 1rem;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: #000000;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    transition: all 0.3s ease;
    padding: 0;
}

.social-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

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

.social-divider {
    text-align: center;
    color: #999999;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.quick-register {
    display: block;
    text-align: center;
    color: #000000;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s;
}

.quick-register:hover {
    color: #666666;
}


.media-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.media-link {
    padding: 1rem 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 600;
}

.media-link:hover {
    background: var(--bg-card-hover);
    border-color: var(--gray-graphite);
    transform: translateY(-2px);
}

/* Админ-панель */
.modal-admin-content {
    max-width: 900px;
    width: 95%;
}

.admin-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.admin-tab {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-light);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
}

.admin-tab:hover {
    color: var(--text-dark);
}

.admin-tab.active {
    color: var(--text-dark);
    border-bottom-color: var(--gray-graphite);
}

.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
}

.admin-tab-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.admin-tab-content h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    margin-top: 2rem;
    color: var(--text-dark);
}

.admin-tab-content h4:first-of-type {
    margin-top: 0;
}

.admin-tab-content h5 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

#orders-list,
#products-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Стили для управления страницей "О бренде" */
.about-admin-block {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.about-admin-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1rem;
}

.about-admin-left,
.about-admin-right {
    display: flex;
    flex-direction: column;
}

.about-admin-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.about-admin-image-item {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--border-color);
}

.about-admin-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-admin-image-item .remove-image {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: background 0.3s;
}

.about-admin-image-item .remove-image:hover {
    background: rgba(255, 0, 0, 0.8);
}

@media (max-width: 768px) {
    .about-admin-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.admin-item {
    background: var(--bg-dark);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-item-info {
    flex: 1;
}

.admin-item-actions {
    display: flex;
    gap: 0.5rem;
}

.admin-btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.admin-btn-edit {
    background: var(--gray-graphite);
    color: white;
}

.admin-btn-delete {
    background: #dc2626;
    color: white;
}

.admin-btn-small:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

.admin-form {
    background: var(--bg-dark);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-card);
    color: var(--text-dark);
    font-size: 0.95rem;
}

.admin-form select {
    cursor: pointer;
}

.admin-form select:focus {
    outline: none;
    border-color: var(--gray-graphite);
}

.admin-login-container {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    width: 100%;
    opacity: 1 !important;
    visibility: visible !important;
}

.admin-login-container .modal-content,
.admin-modal-content {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
}

/* Модальное окно просмотра товара */
.modal-product {
    max-width: 1200px;
    width: 95%;
    padding: 0;
    overflow: hidden;
}

.modal-product .modal-content {
    padding: 2rem;
    max-width: 100%;
    overflow-y: auto;
    max-height: 90vh;
}

.product-modal-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.product-modal-left {
    position: sticky;
    top: 0;
}

.product-gallery {
    position: relative;
    width: 100%;
}

.product-gallery-main {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--bg-dark);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
    position: relative;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y;
}

.product-gallery-main:active {
    cursor: grabbing;
}

/* Контейнер для всех изображений (слайдер) */
.product-gallery-slider {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.product-gallery-slide {
    min-width: 100%;
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.product-gallery-slide > div {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    background: var(--bg-card);
    pointer-events: none;
}

/* Плавный переход без анимации во время перетаскивания */
.product-gallery-main.dragging .product-gallery-slider {
    transition: none;
}

.product-gallery-thumbnails {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    scrollbar-width: thin;
    max-width: 100%;
}

.product-gallery-thumbnails::-webkit-scrollbar {
    height: 4px;
}

.product-gallery-thumbnails::-webkit-scrollbar-thumb {
    background: var(--gray-graphite);
    border-radius: 2px;
}

.product-gallery-thumbnail {
    min-width: 80px;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s;
    background: var(--bg-dark);
    flex-shrink: 0;
}

.product-gallery-thumbnail.active {
    border-color: var(--text-dark);
}

.product-gallery-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-gallery-thumbnail > div {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.product-gallery-prev,
.product-gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, opacity 0.3s, transform 0.3s;
    z-index: 20;
    opacity: 0.9;
    pointer-events: auto;
}

.product-gallery-prev:hover,
.product-gallery-next:hover {
    background: rgba(0, 0, 0, 0.9);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.product-gallery-prev:active,
.product-gallery-next:active {
    transform: translateY(-50%) scale(0.95);
}

.product-gallery-prev {
    left: 1rem;
}

.product-gallery-next {
    right: 1rem;
}

.product-gallery-prev svg,
.product-gallery-next svg {
    width: 24px;
    height: 24px;
    pointer-events: none;
}

.product-modal-right {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-modal-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.product-modal-price {
    font-size: 1.75rem;
    font-weight: 700;
    background: var(--gradient-text-light);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-modal-description {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 1rem;
    margin: 0;
}

.product-modal-options {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 1rem;
}

.product-size-selector label,
.product-quantity-selector label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.size-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.size-btn {
    padding: 0.75rem 1.25rem;
    border: 2px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-dark);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    min-width: 50px;
}

.size-btn:hover {
    border-color: var(--gray-graphite);
    background: var(--bg-card-hover);
}

.size-btn.selected {
    border-color: var(--text-dark);
    background: var(--text-dark);
    color: var(--bg-dark);
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border: 2px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-dark);
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.25rem;
    font-weight: 600;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    border-color: var(--gray-graphite);
    background: var(--bg-card-hover);
}

.quantity-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#product-quantity {
    width: 80px;
    height: 40px;
    text-align: center;
    border: 2px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-dark);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    padding: 0;
}

.product-stock {
    color: var(--text-light);
    font-size: 0.875rem;
}

.btn-product-modal {
    width: 100%;
    padding: 1rem;
    margin-top: 1rem;
    font-size: 1.125rem;
}

@media (max-width: 968px) {
    .product-modal-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-modal-left {
        position: relative;
    }
    
    .modal-product {
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 768px) {
    /* Модальное окно товара на весь экран на мобильной версии */
    #product-modal.active {
        display: flex !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        padding: 0;
    }
    
    #product-modal .modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.95);
    }
    
    #product-modal .modal-content.modal-product {
        max-width: 100vw !important;
        width: 100vw !important;
        min-height: 100vh !important;
        max-height: 100vh !important;
        padding: 1rem;
        padding-top: 3.5rem; /* Отступ сверху для кнопки закрытия */
        border-radius: 0 !important;
        margin: 0 !important;
        position: relative;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        box-sizing: border-box;
        align-self: flex-start;
    }
    
    #product-modal.active .modal-content.modal-product {
        height: 100vh;
    }
    
    #product-modal .modal-close {
        position: fixed !important;
        top: 1rem !important;
        right: 1rem !important;
        z-index: 2002 !important;
        background: rgba(0, 0, 0, 0.8) !important;
        backdrop-filter: blur(10px);
        border-radius: 50% !important;
        width: 44px !important;
        height: 44px !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    #product-modal .modal-close:hover {
        background: rgba(0, 0, 0, 0.9) !important;
    }
    
    #product-modal .modal-close svg {
        width: 20px;
        height: 20px;
        stroke: white;
    }
    
    .product-modal-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        min-height: auto;
        padding-bottom: 2rem;
    }
    
    .product-modal-left {
        position: relative;
        width: 100%;
    }
    
    .product-gallery-main {
        aspect-ratio: 1 / 1;
        max-height: 70vh;
    }
    
    .product-gallery-thumbnails {
        margin-top: 0.5rem;
    }
    
    .product-modal-right {
        width: 100%;
        padding-bottom: 2rem;
    }
    
    .product-modal-title {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }
    
    .product-modal-price {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .product-modal-description {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .product-modal-options {
        gap: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .size-buttons {
        gap: 0.5rem;
    }
    
    .size-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        min-width: 45px;
    }
    
    .quantity-controls {
        gap: 0.5rem;
    }
    
    .quantity-btn {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
    
    #product-quantity {
        width: 70px;
        height: 36px;
    }
    
    .btn-product-modal {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
        margin-top: 1rem;
    }
}

.admin-login-container h2 {
    color: var(--text-dark);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.admin-login-container input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-dark);
    color: var(--text-dark);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.admin-login-container input:focus {
    outline: none;
    border-color: var(--gray-graphite);
}

.admin-login-container .btn-primary {
    width: 100%;
}

.admin-form textarea {
    min-height: 100px;
    resize: vertical;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 0.5rem;
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.catalog-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border-color);
    cursor: pointer;
    text-align: center;
}

.catalog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

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

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

#back-to-types {
    margin-bottom: 2rem;
}

/* Выдвижная панель корзины */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    max-width: 90vw;
    height: 100vh;
    background: var(--bg-card);
    border-left: 1px solid var(--border-color);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
    z-index: 3000;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
    overflow: hidden;
}

.cart-sidebar.active {
    right: 0;
}

.cart-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.cart-sidebar-overlay.active {
    pointer-events: auto;
}

/* Когда открыто модальное окно подтверждения, overlay корзины не должен блокировать его */
body:has(#confirm-modal.active) .cart-sidebar-overlay {
    pointer-events: none;
    z-index: 2998;
}

.cart-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.cart-sidebar-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.cart-sidebar-close {
    background: transparent;
    border: none;
    color: var(--text-dark);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.cart-sidebar-close:hover {
    opacity: 0.7;
    background: var(--bg-card-hover);
}

.cart-sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-sidebar-content:empty::before {
    content: 'Корзина пуста';
    display: block;
    text-align: center;
    color: var(--text-light);
    padding: 3rem 1rem;
    font-size: 1rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-dark);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cart-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    min-width: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-image > div {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
    padding-right: 1.5rem;
}

.cart-item-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.3;
}

.cart-item-size {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
}

.cart-item-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    background: var(--gradient-text-light);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    margin-top: auto;
}

.cart-item-remove {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    padding: 0;
    flex-shrink: 0;
}

.cart-item-remove:hover {
    background: rgba(255, 0, 0, 0.7);
}

.cart-item-remove svg {
    width: 14px;
    height: 14px;
}

.cart-sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
    margin-top: 1rem;
}

.cart-total-label {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
}

.cart-total-price {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-text-light);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-cart-checkout {
    width: 100%;
    padding: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .cart-sidebar {
        width: 100vw;
        max-width: 100vw;
        right: -100vw;
    }
}

/* Система уведомлений (Toast) */
.toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 5000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    pointer-events: none;
}

/* Когда корзина открыта, уведомления должны быть слева от неё */
body.cart-open .toast-container {
    right: calc(450px + 20px);
}

@media (max-width: 768px) {
    body.cart-open .toast-container {
        right: 10px;
        left: 10px;
    }
}

.toast {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    min-width: 300px;
    max-width: 400px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    transform: translateX(400px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: auto;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast.success {
    border-left: 4px solid #4caf50;
}

.toast.error {
    border-left: 4px solid #f44336;
}

.toast.warning {
    border-left: 4px solid #ff9800;
}

.toast.info {
    border-left: 4px solid #2196f3;
}

.toast-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.toast.success .toast-icon {
    color: #4caf50;
}

.toast.error .toast-icon {
    color: #f44336;
}

.toast.warning .toast-icon {
    color: #ff9800;
}

.toast.info .toast-icon {
    color: #2196f3;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
}

.toast-message {
    color: var(--text-light);
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.toast-close {
    background: transparent;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 4px;
}

.toast-close:hover {
    color: var(--text-dark);
    background: var(--bg-card-hover);
}

/* Модальное окно подтверждения */
#confirm-modal {
    z-index: 4000 !important;
}

#confirm-modal .modal-overlay {
    z-index: 4000;
}

#confirm-modal .modal-content {
    z-index: 4001;
}

.modal-confirm {
    max-width: 400px;
    text-align: center;
}

.modal-confirm h2 {
    margin-bottom: 1rem;
}

.modal-confirm p {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.confirm-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.confirm-buttons button {
    min-width: 120px;
    padding: 0.75rem 1.5rem;
}

.btn-cart-clear {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    transition: all 0.3s;
}

.btn-cart-clear:hover {
    background: var(--bg-card-hover);
    border-color: var(--gray-graphite);
}

@media (max-width: 768px) {
    .toast-container {
        right: 10px;
        left: 10px;
        top: 80px;
    }
    
    .toast {
        min-width: auto;
        max-width: 100%;
    }
    
    .confirm-buttons {
        flex-direction: column;
    }
    
    .confirm-buttons button {
        width: 100%;
    }
}

