@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@300;500;700&display=swap');

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

:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-glow: rgba(99, 102, 241, 0.35);
    --accent: #ec4899;
    --bg: #0f172a;
    --surface: #1e293b;
    --surface-light: #334155;
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --border: #334155;
    --radius: 20px;
    --transition: 400ms cubic-bezier(0.16, 1, 0.3, 1);
    --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --success: #10b981;
}

html {
    scroll-behavior: smooth;
}

/* Микро-анимации */
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.1); }
}

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

@keyframes shake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(5deg); }
    50% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
    100% { transform: rotate(0deg); }
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.hover-underline::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
    transition: width 350ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hover-underline:hover::after {
    width: 100%;
}

.hover-lift {
    transition: transform 350ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hover-lift:hover {
    transform: translateY(-8px);
}

.hover-scale {
    transition: transform 350ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-glow {
    transition: box-shadow 350ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hover-glow:hover {
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4);
}

.hover-primary {
    position: relative;
    overflow: hidden;
}

.hover-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 5s ease-in-out infinite;
}

@keyframes shimmer {
    0% { left: -50%; }
    100% { left: 100%; }
}

.card-3d {
    perspective: 1000px;
    transition: transform 500ms ease;
}

.card-3d:hover {
    transform: rotateX(5deg) rotateY(5deg) translateY(-10px);
}

.bg-pattern {
    background-image: 
        radial-gradient(circle at 30% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(236, 72, 153, 0.1) 0%, transparent 40%);
}

/* Стиль для навигации с активным состоянием */
.nav-link.active {
    color: var(--primary) !important;
}

.nav-link.active::after {
    width: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent)) !important;
    box-shadow: 0 0 15px var(--primary-glow) !important;
}

body {
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

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

/* Навигация */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.92);
    box-shadow: 0 8px 32px -12px rgba(0, 0, 0, 0.4);
    border-bottom-color: rgba(99, 102, 241, 0.2);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 68px;
    padding: 0 12px;
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 900;
    font-size: 2rem;
    letter-spacing: -1px;
    color: var(--text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 300ms ease;
}

.logo:hover {
    transform: scale(1.08);
}

.logo span {
    color: var(--primary);
    text-shadow: 0 0 20px var(--primary-glow);
}

.nav-center {
    display: flex;
    gap: 48px;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 350ms ease;
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
    transition: width 350ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

.nav-link.active {
    color: var(--text);
}

.nav-link.active::after {
    width: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    box-shadow: 0 0 15px var(--primary-glow);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-icon {
    background: var(--surface);
    border: 1px solid var(--border);
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text);
    padding: 14px;
    border-radius: 16px;
    transition: all 350ms cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-icon:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 6px 20px var(--primary-glow);
}

.cart-btn {
    position: relative;
}

#cartCount {
    position: absolute;
    top: -1px;
    right: -1px;
    background: linear-gradient(135deg, var(--accent), #db2777);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg);
    font-family: 'Space Grotesk', sans-serif;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(236, 72, 153, 0.5);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 0 6px rgba(236, 72, 153, 0.3);
    }
}

.menu-btn {
    display: none;
}

.mobile-menu {
    display: none;
}

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

/* Анимация появления навигации */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.navbar {
    animation: slideDown 500ms ease-out;
}

/* Герой */
.hero {
    position: relative;
    padding: 50px 0 90px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 25%, var(--primary-glow) 0%, transparent 45%),
                radial-gradient(circle at 85% 15%, rgba(236, 72, 153, 0.12) 0%, transparent 35%);
    z-index: -1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.15) 0%, rgba(15, 23, 42, 0.88) 100%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background: rgba(99, 102, 241, 0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 24px;
    letter-spacing: 0.5px;
    animation: float 5s ease-in-out infinite;
}

.hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.8rem, 9vw, 6rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -3px;
    margin-bottom: 28px;
    color: var(--text);
}

.hero h1 .gradient {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 48px;
    line-height: 1.9;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

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

/* Кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 300ms ease;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    box-shadow: 0 20px 25px -5px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 30px 40px -10px var(--primary-glow);
    filter: brightness(1.1);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    background: var(--surface);
    border-color: var(--text-muted);
}

.btn-block {
    width: 100%;
}

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

.section.bg-light {
    background: rgba(30, 41, 59, 0.3);
}

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

.section-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 16px;
    letter-spacing: -1px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
    width: 60%;
    margin: 0 auto;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 650px;
    margin: 0 auto;
}

/* Фильтры */
.filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 300ms ease;
    font-family: 'Space Grotesk', sans-serif;
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 15px var(--primary-glow);
}

/* Сетка товаров */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
}

/* Карточка товара */
.product-card {
    background: linear-gradient(145deg, var(--surface), rgba(30, 41, 59, 0.8));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    position: relative;
    group: product;
    backdrop-filter: blur(10px);
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.6);
    border-color: rgba(99, 102, 241, 0.4);
}

.product-card:active {
    transform: translateY(-5px) scale(1);
}

.product-image {
    position: relative;
    height: 300px;
    overflow: hidden;
    background: var(--surface-light);
}

.product-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms ease;
}

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

.product-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.photo-count {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 20px;
    z-index: 2;
}

.product-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-category {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
}

.product-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
    margin-bottom: 4px;
}

.product-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 8px;
    flex: 1;
}

.product-footer {
    margin-top: auto;
    padding: 20px 24px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.product-price {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
}

.product-old-price {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.btn-add {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 300ms ease;
    white-space: nowrap;
    font-family: 'Space Grotesk', sans-serif;
}

.btn-add:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-add:disabled {
    background: var(--text-muted);
    cursor: not-allowed;
}

.size-selector {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.size-btn {
    background: var(--surface-light);
    border: 1px solid var(--border);
    color: var(--text-muted);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 250ms ease;
    font-family: 'Space Grotesk', sans-serif;
}

.size-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.size-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* Миниатюры фото */
.thumb-gallery {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.thumb-gallery .thumb {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 250ms ease, transform 250ms ease;
    border: 2px solid transparent;
}

.thumb-gallery .thumb:hover {
    opacity: 0.9;
}

.thumb-gallery .thumb.active {
    opacity: 1;
    border-color: var(--primary);
    transform: scale(1.05);
}

/* История */
.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.story-text h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--text);
}

.story-text p {
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.8;
}

.story-visual {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.stat-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    text-align: center;
    box-shadow: var(--shadow);
}

.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 6px;
}

/* Почему мы */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.why-card {
    background: linear-gradient(145deg, var(--surface), rgba(30, 41, 59, 0.6));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 32px;
    box-shadow: var(--shadow);
    transition: all 400ms cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.why-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: transform 350ms ease;
}

.why-card:hover::before {
    transform: scaleX(1);
}

.why-card:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
}

.why-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: inline-block;
}

.why-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}

.why-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Контакты */
.contact-card {
    max-width: 640px;
    margin: 0 auto;
    background: linear-gradient(145deg, var(--surface), rgba(30, 41, 59, 0.6));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 56px 40px;
    box-shadow: var(--shadow);
    text-align: center;
    backdrop-filter: blur(10px);
}

.contact-card h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text);
}

.contact-card p {
    color: var(--text-muted);
    margin-bottom: 28px;
    font-size: 1.05rem;
}

.contact-info {
    margin-top: 32px;
    text-align: left;
}

.contact-info p {
    color: var(--text);
    margin-bottom: 10px;
    font-size: 0.95rem;
}

/* Подвал */
footer {
    border-top: 1px solid var(--border);
    padding: 80px 0 50px;
    background: linear-gradient(180deg, #0b0f19, #0f172a);
    color: var(--text-muted);
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.footer-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 900;
    font-size: 2.2rem;
    color: var(--text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.footer-logo span {
    color: var(--primary);
    text-shadow: 0 0 25px var(--primary-glow);
}

footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 3px 0;
}

/* ������� - �������� ����� */
.cart-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 440px;
    height: 100%;
    background: linear-gradient(180deg, var(--surface), rgba(30, 41, 59, 0.95));
    border-right: 1px solid var(--border);
    box-shadow: var(--shadow);
    transform: translateX(-100%);
    transition: transform 350ms cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2000;
}

.cart-modal.open {
    transform: translateX(0);
}

.cart-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1999;
    opacity: 0;
    transition: opacity 350ms cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-modal.open .cart-modal-overlay {
    opacity: 1;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--border);
    background: rgba(15, 23, 42, 0.5);
}

.cart-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-close {
    background: none;
    border: none;
    font-size: 1.75rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 200ms ease;
}

.cart-close:hover {
    background: var(--surface-light);
    color: var(--text);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cart-item {
    display: flex;
    gap: 12px;
    align-items: center;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    transition: all 250ms ease;
}

.cart-item:hover {
    border-color: rgba(99, 102, 241, 0.3);
    transform: scale(1.02);
}

.cart-item-image {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--border);
}

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

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

.cart-item-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}

.cart-item-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--surface-light);
    border-radius: 8px;
    padding: 4px 8px;
    border: 1px solid var(--border);
}

.cart-item-qty button {
    background: none;
    border: none;
    color: var(--text);
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 200ms ease;
}

.cart-item-qty button:hover {
    background: var(--primary);
    color: #fff;
}

.cart-item-qty span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    font-family: 'Space Grotesk', sans-serif;
}

.cart-item-price {
    font-weight: 700;
    color: var(--text);
    font-family: 'Space Grotesk', sans-serif;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: all 200ms ease;
}

.cart-item-remove:hover {
    transform: scale(1.1);
    color: #f87171;
}

.cart-footer {
    padding: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: rgba(15, 23, 42, 0.3);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    font-family: 'Space Grotesk', sans-serif;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.cart-total span:first-child {
    font-weight: 500;
    color: var(--text-muted);
}

/* Уведомление */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: linear-gradient(135deg, var(--success), #059669);
    color: #fff;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 10px 30px -10px rgba(16, 185, 129, 0.4);
    z-index: 2000;
    transition: transform 350ms cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Адаптив */
@media (max-width: 768px) {
    .hero {
        padding: 35px 0 60px;
    }
    .nav-center {
        display: none;
    }

    .menu-btn {
        display: block;
    }

    .mobile-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(20px);
        z-index: 1001;
        opacity: 0;
        pointer-events: none;
        transition: opacity 300ms ease;
    }

    .mobile-menu.open {
        display: flex;
        opacity: 1;
        pointer-events: auto;
    }

    .mobile-menu-content {
        background: var(--surface);
        width: 280px;
        height: 100%;
        padding: 20px;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
        transform: translateX(-100%);
        transition: transform 350ms cubic-bezier(0.16, 1, 0.3, 1);
        overflow-y: auto;
        display: flex;
        flex-direction: column;
    }

    .mobile-menu.open .mobile-menu-content {
        transform: translateX(0);
    }

    .mobile-menu-content .close-btn {
        background: none;
        border: none;
        color: var(--text);
        font-size: 2rem;
        cursor: pointer;
        padding: 0;
        margin-bottom: 24px;
        line-height: 1;
        align-self: flex-end;
    }

    .mobile-menu-content .close-btn:hover {
        color: var(--primary);
    }

    .mobile-menu-content a {
        display: block;
        color: var(--text);
        text-decoration: none;
        font-size: 1.125rem;
        font-weight: 500;
        padding: 14px 0;
        border-bottom: 1px solid var(--border);
        transition: all 250ms ease;
    }

    .mobile-menu-content a:hover {
        color: var(--primary);
        padding-left: 8px;
        border-bottom-color: var(--primary);
    }

    .mobile-menu-content a:last-child {
        border-bottom: none;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .story-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .cart-modal-content {
        width: 100%;
    }
}
.gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 300ms ease;
}

.gallery-modal.open {
    opacity: 1;
    pointer-events: auto;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    cursor: zoom-out;
}

.gallery-content {
    position: relative;
    z-index: 10;
    width: 90vw;
    max-width: 900px;
    height: 80vh;
    max-height: 700px;
    background: var(--surface);
    border-radius: var(--radius);
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: scale(0.9);
    transition: transform 300ms ease;
}

.gallery-modal.open .gallery-content {
    transform: scale(1);
}

.gallery-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    font-size: 2.5rem;
    color: var(--text);
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border);
    color: var(--text);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 250ms ease;
}

.gallery-nav:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.gallery-prev { left: -60px; }
.gallery-next { right: -60px; }

.gallery-image-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    overflow: hidden;
    background: #000;
}

.gallery-image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.gallery-counter {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none;
}

.gallery-thumbs::-webkit-scrollbar {
    display: none;
}

.gallery-thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    opacity: 0.6;
    border: 2px solid transparent;
    transition: all 250ms ease;
    flex-shrink: 0;
}

.gallery-thumb:hover {
    opacity: 0.9;
}

.gallery-thumb.active {
    opacity: 1;
    border-color: var(--primary);
    transform: scale(1.1);
}

.gallery-info {
    margin-top: 20px;
    text-align: center;
}

.gallery-info h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 8px;
}

.gallery-info p {
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 700;
}

/* Кнопка просмотра фото на карточке товара */
.btn-view {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    transition: all 250ms ease;
    z-index: 5;
}

.btn-view:hover {
    background: var(--primary);
    transform: scale(1.1);
}

.product-image {
    position: relative;
}

/* ========== МОБИЛЬНОЕ МЕНЮ (стили в @media) ========== */

/* ========== АДМИН-ПАНЕЛЬ СТИЛИ ========== */
.admin-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.admin-modal.open {
    display: flex;
}

.admin-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1;
}

.admin-content {
    position: relative;
    z-index: 2;
    background: var(--surface);
    border-radius: var(--radius);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.admin-header h3 {
    margin: 0;
    color: var(--text);
    font-size: 1.25rem;
    font-weight: 600;
}

.admin-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.75rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

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

.admin-section {
    padding: 24px;
}

.admin-section + .admin-section {
    border-top: 1px solid var(--border);
}

.admin-section h4 {
    margin: 0 0 12px 0;
    color: var(--text);
    font-size: 1rem;
    font-weight: 600;
}

.admin-section p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0 0 16px 0;
}

.admin-form-group {
    margin-bottom: 16px;
}

.admin-form-group label {
    display: block;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 6px;
}

.admin-form-group select,
.admin-form-group input[type="file"] {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 0.9rem;
    font-family: inherit;
}

.admin-form-group select:focus,
.admin-form-group input[type="file"]:focus {
    outline: none;
    border-color: var(--primary);
}

.admin-preview {
    margin-top: 12px;
    min-height: 60px;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

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

.nav-admin {
    position: relative;
}

.nav-admin::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 300ms ease;
}

.nav-admin.active::after {
    opacity: 1;
}

/* Адаптив для админ-панели */
@media (max-width: 480px) {
    .admin-content {
        width: 95%;
        margin: 20px;
    }
}

/* Кнопка удаления фото в galerии */
.gallery-delete-btn {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(236, 72, 153, 0.9);
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.2rem;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    z-index: 10;
    transition: all 250ms ease;
}

.gallery-delete-btn:hover {
    background: var(--accent);
    transform: scale(1.1);
}



/* Обёртка миниатюры с кнопкой удаления */
.thumb-wrapper {
    position: relative;
    display: inline-block;
}

.thumb-delete {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--accent);
    color: #fff;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    z-index: 5;
    transition: all 200ms ease;
}

.thumb-delete:hover {
    background: #db2777;
    transform: scale(1.1);
}

.thumb-wrapper .thumb {
    border-radius: 8px;
}

/* Кнопка удаления объявления на карточке товара */
.btn-delete-product {
    background: rgba(236, 72, 153, 0.9);
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    backdrop-filter: blur(4px);
    transition: all 250ms ease;
}

.btn-delete-product:hover {
    background: #db2777;
    transform: scale(1.05);
}
