/* ============================================
   ХИМПАК - Modern Redesign
   Budget: 60,000 RUB
   Template for MODX Revo
   ============================================ */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary: #0f172a;
    --accent: #10b981;
    --accent-dark: #059669;
    --text: #334155;
    --text-light: #64748b;
    --text-white: #ffffff;
    --bg: #ffffff;
    --bg-light: #f8fafc;
    --bg-gray: #f1f5f9;
    --border: #e2e8f0;
    --border-strong: #cbd5e1;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 12px 24px -8px rgba(15, 23, 42, 0.16);
    --shadow-xl: 0 24px 48px -16px rgba(15, 23, 42, 0.24);
    --radius: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --grad-brand: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    --grad-ink: linear-gradient(140deg, #0f172a 0%, #1e293b 55%, #172554 100%);
    --transition: all 0.2s ease;
    --container: 1200px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 8px 24px -12px rgba(15, 23, 42, 0.22);
    border-color: var(--border-strong);
}

.header-top {
    background: var(--secondary);
    color: var(--text-white);
    padding: 8px 0;
    font-size: 14px;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top a {
    color: var(--text-white);
    opacity: 0.8;
}

.header-top a:hover {
    opacity: 1;
    color: var(--text-white);
}

.header-contacts {
    display: flex;
    gap: 24px;
}

.header-contacts span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-main {
    padding: 16px 0;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--secondary);
}

.logo img {
    height: 48px;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.logo-text span {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: var(--text-light);
}

.nav {
    display: flex;
    gap: 32px;
}

.nav a {
    color: var(--text);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

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

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.1px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
    border: none;
    text-decoration: none;
}

.btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.btn-primary {
    background: var(--grad-brand);
    color: var(--text-white);
    box-shadow: 0 8px 18px -8px rgba(37, 99, 235, 0.7);
}

.btn-primary:hover {
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: 0 14px 26px -10px rgba(37, 99, 235, 0.75);
}

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

.btn-outline:hover {
    background: var(--primary);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: 0 12px 22px -12px rgba(37, 99, 235, 0.8);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: var(--text-white);
    box-shadow: 0 8px 18px -8px rgba(16, 185, 129, 0.7);
}

.btn-accent:hover {
    background: var(--accent-dark);
    color: var(--text-white);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
    border-radius: var(--radius-lg);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    background: var(--grad-ink);
    color: var(--text-white);
    padding: 96px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 18% 78%, rgba(37, 99, 235, 0.42) 0%, transparent 52%),
        radial-gradient(circle at 84% 18%, rgba(16, 185, 129, 0.26) 0%, transparent 48%),
        radial-gradient(circle at 46% 40%, rgba(255, 255, 255, 0.06) 0%, transparent 42%);
    opacity: 1;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(circle at 30% 30%, #000 0%, transparent 72%);
    -webkit-mask-image: radial-gradient(circle at 30% 30%, #000 0%, transparent 72%);
    pointer-events: none;
}

.hero .container {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    margin-bottom: 22px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: #dbeafe;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    backdrop-filter: blur(8px);
}

.hero-eyebrow::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.22);
}

.hero-content h1 {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -1.2px;
    margin-bottom: 24px;
}

.hero-content h1 span {
    background: linear-gradient(120deg, #60a5fa 0%, #34d399 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-content p {
    font-size: 18px;
    line-height: 1.65;
    color: rgba(226, 232, 240, 0.86);
    margin-bottom: 34px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-buttons .btn-outline {
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

.hero-buttons .btn-outline:hover {
    background: #fff;
    border-color: #fff;
    color: var(--secondary);
}

.hero-visual {
    position: relative;
    align-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-visual::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.45) 0%, rgba(16, 185, 129, 0.16) 55%, transparent 72%);
}

.hero-stage {
    position: relative;
    width: 100%;
    max-width: 470px;
    height: 470px;
}

.hero-prod {
    position: absolute;
    filter: drop-shadow(0 28px 26px rgba(2, 6, 23, 0.55));
    animation: hero-float 7s ease-in-out infinite;
}

.hero-prod-1 { left: 7%; bottom: 6%; width: 42%; animation-delay: -1.4s; }
.hero-prod-2 { left: 35%; bottom: 12%; width: 40%; z-index: 2; animation-delay: -3.1s; }
.hero-prod-3 { right: 0; bottom: 4%; width: 30%; z-index: 3; animation-delay: -4.8s; }

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

@media (prefers-reduced-motion: reduce) {
    .hero-prod { animation: none; }
}

.hero-float {
    position: absolute;
    z-index: 4;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    box-shadow: 0 18px 34px -18px rgba(2, 6, 23, 0.85);
}

.hero-float strong {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.2px;
}

.hero-float span {
    font-size: 12px;
    color: rgba(226, 232, 240, 0.72);
}

.hero-float-a { top: 4%; right: 0; }
.hero-float-b { top: 20%; left: -4%; }

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 52px;
}

.hero-stat {
    text-align: center;
    padding: 22px 16px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.hero-stat:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-3px);
}

.hero-stat-number {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.6px;
    background: linear-gradient(120deg, #93c5fd 0%, #6ee7b7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-stat-label {
    font-size: 13px;
    color: rgba(226, 232, 240, 0.75);
    margin-top: 4px;
}

/* ============================================
   SECTION STYLES
   ============================================ */
.section {
    padding: 88px 0;
}

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

.section-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--primary);
    background: #eaf1ff;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.8px;
    color: var(--secondary);
    margin-bottom: 14px;
}

.section-header p {
    font-size: 17px;
    color: var(--text-light);
    max-width: 620px;
    margin: 0 auto;
}

.section-header.centered {
    text-align: center;
}

.section-header.left {
    text-align: left;
    margin-bottom: 40px;
}

.section-header.left p {
    margin: 0;
}

/* ============================================
   CATEGORIES GRID
   ============================================ */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}

.category-card {
    --cat: var(--primary);
    --cat-soft: var(--bg-light);
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.category-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--cat), transparent);
    opacity: 0;
    transition: var(--transition);
}

.category-card:hover {
    border-color: var(--border-strong);
    border-color: color-mix(in srgb, var(--cat) 38%, var(--border));
    box-shadow: var(--shadow-xl);
    transform: translateY(-6px);
}

.category-card:hover::after {
    opacity: 1;
}

.category-card-media {
    aspect-ratio: 16 / 10;
    background: radial-gradient(circle at 50% 42%, #ffffff 0%, #ffffff 44%, var(--cat-soft) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 24px;
    position: relative;
    overflow: hidden;
}

.category-card-media::before {
    content: '';
    position: absolute;
    width: 60%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--cat);
    background: color-mix(in srgb, var(--cat) 16%, transparent);
    filter: blur(28px);
}

.category-card-media img {
    position: relative;
    max-height: 152px;
    width: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
    filter: drop-shadow(0 14px 18px rgba(15, 23, 42, 0.16));
    transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.category-card:hover .category-card-media img {
    transform: scale(1.06) translateY(-3px);
}

.category-card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 22px 24px 24px;
    flex: 1;
}

.category-card-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.category-card h3 {
    font-size: 19px;
    font-weight: 700;
    color: var(--secondary);
    letter-spacing: -0.2px;
}

.category-card-count {
    font-size: 12px;
    font-weight: 600;
    color: var(--cat);
    background: var(--cat-soft);
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.category-card p {
    font-size: 14px;
    color: var(--text-light);
}

.category-card-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--cat);
}

.category-card-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.category-card:hover .category-card-link svg {
    transform: translateX(4px);
}

.category-card .btn {
    width: 100%;
}

/* ============================================
   PRODUCTS GRID
   ============================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(288px, 1fr));
    gap: 26px;
}

.product-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--border-strong);
    transform: translateY(-5px);
}

.product-card-image {
    aspect-ratio: 4 / 3;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    border-bottom: 1px solid var(--border);
}

.product-card-image img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.3, 1);
}

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

.product-card-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: var(--text-white);
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2px;
    box-shadow: 0 6px 14px -6px rgba(16, 185, 129, 0.8);
}

.product-card-body {
    padding: 22px 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.product-card-category {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.product-card-title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.2px;
    color: var(--secondary);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-body > .btn {
    margin-top: auto;
}

.product-card-desc {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* full description in a floating panel on hover / keyboard focus */
@media (hover: hover) {
    .product-card:hover,
    .product-card:focus-within {
        z-index: 30;
    }

    .product-card:hover .product-card-desc,
    .product-card:focus-within .product-card-desc {
        position: absolute;
        top: calc(100% + 8px);
        left: 10px;
        right: 10px;
        z-index: 12;
        display: block;
        -webkit-line-clamp: unset;
        overflow: visible;
        margin: 0;
        padding: 14px 16px;
        background: var(--bg);
        color: var(--text);
        border: 1px solid var(--border-strong);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-xl);
        font-size: 13.5px;
        line-height: 1.5;
        animation: desc-pop 0.22s ease both;
        pointer-events: none;
    }

    .product-card:hover .product-card-desc::before,
    .product-card:focus-within .product-card-desc::before {
        content: "";
        position: absolute;
        top: -6px;
        left: 24px;
        width: 10px;
        height: 10px;
        background: var(--bg);
        border-left: 1px solid var(--border-strong);
        border-top: 1px solid var(--border-strong);
        transform: rotate(45deg);
    }
}

@keyframes desc-pop {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* keep the buttons pinned to the bottom while the description leaves the flow */
.product-card:hover .product-card-actions,
.product-card:focus-within .product-card-actions {
    margin-top: auto;
}

.product-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 14px;
    font-size: 12px;
    color: var(--text-light);
}

.product-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-weight: 500;
}

.product-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.product-card-actions .btn {
    flex: 1;
    padding: 10px 16px;
    font-size: 13px;
}

/* ============================================
   ADVANTAGES
   ============================================ */
.advantages {
    background: var(--bg-light);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.advantage-card {
    text-align: left;
    padding: 30px 26px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-strong);
}

.advantage-icon {
    width: 52px;
    height: 52px;
    background: var(--grad-brand);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    box-shadow: 0 10px 20px -12px rgba(37, 99, 235, 0.9);
}

.advantage-icon svg {
    width: 26px;
    height: 26px;
    color: var(--text-white);
}

.advantage-card h3 {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.2px;
    color: var(--secondary);
    margin-bottom: 8px;
}

.advantage-card p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-light);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta {
    background: linear-gradient(125deg, #1e40af 0%, var(--primary) 45%, #1d4ed8 100%);
    color: var(--text-white);
    padding: 76px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.16) 0%, transparent 42%),
        radial-gradient(circle at 88% 78%, rgba(16, 185, 129, 0.28) 0%, transparent 46%);
    pointer-events: none;
}

.cta .container {
    position: relative;
    z-index: 1;
}

.cta h2 {
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -0.8px;
    margin-bottom: 14px;
}

.cta p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.86);
    margin-bottom: 34px;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta .btn-outline {
    border-color: rgba(255, 255, 255, 0.55);
    color: var(--text-white);
}

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

.cta .btn-primary {
    background: #fff;
    color: var(--primary-dark);
    box-shadow: 0 14px 28px -12px rgba(2, 6, 23, 0.6);
}

.cta .btn-primary:hover {
    background: #f1f5f9;
    color: var(--primary-dark);
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.about-image-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--accent);
    color: var(--text-white);
    padding: 24px;
    border-radius: var(--radius-lg);
    text-align: center;
}

.about-image-badge-number {
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
}

.about-image-badge-text {
    font-size: 14px;
    margin-top: 4px;
}

.about-content h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 24px;
}

.about-content p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 24px;
}

.about-list {
    list-style: none;
    margin-bottom: 32px;
}

.about-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.about-list li:last-child {
    border-bottom: none;
}

.about-list-icon {
    width: 32px;
    height: 32px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.about-list-icon svg {
    width: 16px;
    height: 16px;
    color: var(--text-white);
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-section {
    background: var(--bg-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.contact-info h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 24px;
}

.contact-info-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    background: var(--primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-icon svg {
    width: 24px;
    height: 24px;
    color: var(--text-white);
}

.contact-info-text h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 4px;
}

.contact-info-text p {
    font-size: 16px;
    color: var(--text-light);
}

.contact-info-text a {
    color: var(--text);
}

.contact-form {
    background: var(--bg);
    padding: 40px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
}

.form-checkbox input {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
}

.form-checkbox label {
    font-size: 14px;
    color: var(--text-light);
    cursor: pointer;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--secondary);
    color: var(--text-white);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-invert img {
    background: #fff;
    padding: 7px 14px;
    border-radius: 12px;
    box-shadow: 0 10px 24px -14px rgba(2, 6, 23, 0.9);
}

.footer-brand p {
    font-size: 14px;
    opacity: 0.8;
    margin-top: 16px;
    max-width: 300px;
}

.footer-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

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

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

.footer-links a {
    color: var(--text-white);
    opacity: 0.7;
    font-size: 14px;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--text-white);
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
    font-size: 14px;
    opacity: 0.6;
}

/* ============================================
   BREADCRUMBS
   ============================================ */
.breadcrumbs {
    background: var(--bg-light);
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.breadcrumbs-list {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    font-size: 14px;
}

.breadcrumbs-list li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumbs-list li::after {
    content: '/';
    color: var(--text-light);
}

.breadcrumbs-list li:last-child::after {
    display: none;
}

.breadcrumbs-list li:last-child {
    color: var(--text-light);
}

.breadcrumbs-list a {
    color: var(--primary);
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}

.pagination:has(> ul:empty) {
    display: none;
}

.pagination ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    text-decoration: none;
}

.pagination a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--text-white);
}

.pagination li.active span {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--text-white);
    font-weight: 700;
}

.pagination li.skip span {
    background: transparent;
    border-color: transparent;
    color: var(--text-light);
}

.pagination .prev,
.pagination .next {
    padding: 0 16px;
    font-weight: 600;
}

@keyframes card-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--bg);
    border-radius: var(--radius-xl);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

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

.modal-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary);
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-light);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--border);
}

.modal-body {
    padding: 24px;
}

/* ============================================
   FILTERS
   ============================================ */
.filter-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 40px;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 999px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.filter-btn:hover {
    border-color: var(--border-strong);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.filter-btn.active {
    background: var(--grad-brand);
    border-color: transparent;
    color: var(--text-white);
    box-shadow: 0 10px 20px -10px rgba(37, 99, 235, 0.8);
}

/* ============================================
   RESOURCE-BACKED CARDS & PRODUCT PAGE
   ============================================ */
.product-card-image {
    display: flex;
    text-decoration: none;
    color: inherit;
}

.product-card-category {
    text-decoration: none;
    align-self: flex-start;
}

.product-card-category:hover {
    text-decoration: underline;
}

.product-card-title a {
    color: inherit;
    text-decoration: none;
}

.product-card-title a:hover {
    color: var(--primary);
}

.btn-ghost {
    background: var(--bg-light);
    border: 1px solid var(--border);
    color: var(--text);
}

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

/* product detail page */
.product-layout {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 44px;
    align-items: start;
}

.product-media-frame {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    box-shadow: var(--shadow-md);
}

.product-media-frame img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    object-fit: contain;
}

.product-media-note {
    margin-top: 14px;
    font-size: 13px;
    color: var(--text-light);
}

.product-badge-cat {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 6px 14px;
    text-decoration: none;
    margin-bottom: 16px;
}

.product-badge-cat:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--text-white);
}

.product-title {
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 800;
    letter-spacing: -0.6px;
    line-height: 1.2;
    color: var(--secondary);
    margin-bottom: 16px;
}

.product-lead {
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    margin-bottom: 26px;
}

.product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

.product-usl {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.product-usl li {
    position: relative;
    padding-left: 28px;
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
}

.product-usl li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--grad-brand);
    box-shadow: inset 0 0 0 4px #fff;
}

.product-body {
    margin-top: 48px;
    display: grid;
    gap: 22px;
}

.product-body h2 {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.4px;
    color: var(--secondary);
    margin: 8px 0 0;
}

.product-body p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text);
    margin: 0;
}

.spec-table {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.spec-row {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) 2fr;
    gap: 16px;
    padding: 15px 22px;
    font-size: 15px;
}

.spec-row + .spec-row {
    border-top: 1px solid var(--border);
}

.spec-key {
    color: var(--text-light);
    font-weight: 500;
}

.spec-val {
    color: var(--text);
    font-weight: 600;
}

.section-alt {
    background: var(--bg-light);
}

.product-related .products-grid {
    margin-top: 8px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .product-layout,
    .product-body {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .product-layout {
        margin-bottom: 8px;
    }

    .product-actions .btn {
        flex: 1 1 auto;
    }

    .spec-row {
        grid-template-columns: minmax(120px, 1fr) 2fr;
        padding: 13px 18px;
        font-size: 14px;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        width: 100%;
        max-width: 470px;
        margin: 24px auto 0;
    }

    .hero-stage {
        height: 380px;
    }

    .hero-visual::before {
        width: 340px;
        height: 340px;
    }

    .hero-float-a {
        top: 2%;
        right: 2%;
    }

    .hero-float-b {
        top: 17%;
        left: 0;
    }

    .hero-stats {
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

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

    .about-image {
        order: -1;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-top {
        display: none;
    }

    .nav {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .header-main .container {
        flex-wrap: wrap;
        gap: 12px 20px;
    }

    .header-actions {
        order: 3;
        flex: 0 0 100%;
        padding-bottom: 4px;
    }

    .header-actions .btn {
        flex: 1;
        justify-content: center;
    }

    .search-toggle,
    .search-container {
        display: none;
    }

    .nav {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        display: none;
        flex-direction: column;
        gap: 0;
        padding: 8px 0 12px;
        background: var(--bg);
        border-top: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
    }

    .nav.active {
        display: flex;
    }

    .nav a {
        padding: 14px 24px;
        border-bottom: 1px solid var(--border);
    }

    .nav a:last-child {
        border-bottom: 0;
    }

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

    body.menu-open {
        overflow: hidden;
    }

    .hero {
        padding: 48px 0;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .section {
        padding: 48px 0;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 20px;
    }

    .category-card-media img {
        max-height: 196px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 18px;
    }

    .hero-content h1 {
        letter-spacing: -0.6px;
    }

    .advantage-card {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .spec-row {
        grid-template-columns: 1fr;
        gap: 2px;
        padding: 12px 16px;
    }

    .product-actions {
        flex-direction: column;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .hero-stat {
        padding: 16px;
    }

    .hero-stat-number {
        font-size: 28px;
    }

    .cta h2 {
        font-size: 28px;
    }

    .contact-form {
        padding: 24px;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
/* Prevent jank on animated elements */
.product-card,
.category-card,
.advantage-card,
.hero-stat {
    will-change: transform;
    transform: translateZ(0);
}

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

.animate-fadeIn {
    animation: fadeIn 0.6s ease forwards;
}

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

.animate-slideUp {
    animation: slideUp 0.8s ease forwards;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary);
}

.text-accent {
    color: var(--accent);
}

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   SEARCH
   ============================================ */
/* Search Toggle Button */
.search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    transition: var(--transition);
}

.search-toggle:hover {
    background: var(--bg-light);
    color: var(--primary);
}

/* Search Container - hidden by default */
.search-container {
    position: absolute;
    top: 100%;
    right: 0;
    width: 380px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 1001;
    margin-top: 8px;
}

.search-container.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    font-size: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-icon {
    position: absolute;
    left: 26px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    pointer-events: none;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 100;
    display: none;
    max-height: 400px;
    overflow-y: auto;
}

.search-results-list {
    padding: 8px 0;
}

.search-result-item {
    display: flex;
    flex-direction: column;
    padding: 12px 16px;
    cursor: pointer;
    transition: var(--transition);
}

.search-result-item:hover {
    background: var(--bg-light);
}

.search-result-category {
    font-size: 11px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-result-title {
    font-size: 14px;
    color: var(--text);
    font-weight: 500;
}

.search-no-results {
    padding: 24px;
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
}

/* ============================================
   LAZY LOADING
   ============================================ */
img[data-src] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[data-src].loaded,
img.loaded {
    opacity: 1;
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 16px 24px;
    border-radius: var(--radius);
    color: var(--text-white);
    font-size: 14px;
    font-weight: 500;
    z-index: 3000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
}

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

.toast-success {
    background: var(--accent);
}

.toast-error {
    background: #ef4444;
}

.toast-warning {
    background: #f59e0b;
}

/* ============================================
   HIGHLIGHT ANIMATION
   ============================================ */
.product-card.highlight {
    animation: highlight 2s ease;
}

@keyframes highlight {
    0%, 100% {
        box-shadow: var(--shadow);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.3);
    }
}

/* ============================================
   FORM VALIDATION
   ============================================ */
.form-group input.error,
.form-group textarea.error,
.form-group select.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-checkbox.error {
    color: #ef4444;
}

.form-checkbox.error label {
    color: #ef4444;
}

/* ============================================
   BACK TO TOP
   ============================================ */
#backToTop {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: var(--text-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 100;
    box-shadow: var(--shadow-md);
}

#backToTop.visible {
    opacity: 1;
    visibility: visible;
}

#backToTop:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ============================================
   BREADCRUMBS MICRODATA
   ============================================ */
.breadcrumbs[itemscope] {
    display: block;
}

.breadcrumbs-list[itemtype] {
    display: flex;
    list-style: none;
}

/* ============================================
   PRODUCT SCHEMA
   ============================================ */
.product-card[itemscope] {
    display: block;
}

/* ============================================
   LOADING SPINNER
   ============================================ */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   MOBILE MENU OPEN STATE
   ============================================ */
body.menu-open {
    overflow: hidden;
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}
