:root {
    --bg-primary: #FFFFFF;
    --bg-secondary: #F5F5F7;
    --accent-primary: #5087C9;
    --accent-secondary: #B87CC7;
    --text-primary: #1D1D1F;
    --text-secondary: #6E6E73;
    --text-tertiary: #A1A1A6;
    --border: rgba(0, 0, 0, 0.08);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.04);
    --radius-lg: 1.25rem;
    --radius-xl: 1.5rem;
    --font-stack: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background-color: var(--bg-secondary);
    font-family: var(--font-stack);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.01em;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--text-tertiary);
    border-radius: 3px;
}

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

.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Хедер */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.92);
}

.logo-link {
    font-weight: 600;
    font-size: 1.3rem;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.logo-link span {
    color: var(--accent-primary);
}

.nav-link {
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
    padding: 0.5rem 0;
}

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

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: var(--accent-primary);
    color: #fff;
    padding: 0.75rem 1.8rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
}

.btn-primary:hover {
    background: #3f6fa8;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: transparent;
    border: 1.5px solid var(--accent-primary);
    color: var(--accent-primary);
    padding: 0.7rem 1.8rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-outline:hover {
    background: rgba(80, 135, 201, 0.06);
}

.glass-panel {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.glass-panel-strong {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-xl);
    padding: 2rem;
}

.price-table th,
.price-table td {
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0.5rem;
    font-size: 0.9rem;
}

.price-table th {
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
}

.price-category {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--text-primary);
}

.price-link {
    color: var(--text-primary);
    text-decoration: none;
}

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

.add-to-cart {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid var(--accent-primary);
    background: transparent;
    color: var(--accent-primary);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.add-to-cart:hover {
    background: var(--accent-primary);
    color: #fff;
}

.cart-badge {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 100;
    background: var(--accent-primary);
    color: #fff;
    border-radius: 50%;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(80, 135, 201, 0.3);
    cursor: pointer;
}

.cart-panel {
    position: fixed;
    bottom: 88px;
    right: 24px;
    width: 320px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    z-index: 99;
    padding: 1rem;
    display: none;
}

.cart-panel.active {
    display: block;
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(8px);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 2rem;
    width: 90%;
    max-width: 480px;
    box-shadow: var(--shadow-md);
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--accent-primary);
}

/* Hero видео-заглушка */
.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    overflow: hidden;
}

.hero-video-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

.hero-content {
    position: relative;
    z-index: 1;
}

@media (max-width: 640px) {
    .glass-panel {
        padding: 1.25rem;
    }

    .cart-panel {
        width: 90vw;
        right: 5vw;
    }
}