/* ============================================================
   РИВ АВАНГАРД — Design System v2
   shadcn × iOS dark · amber/copper accent · glass · soft shadows
   ============================================================ */

/* === DESIGN TOKENS === */
:root {
    /* Surface ladder */
    --c-bg: #F4F6F9;
    --c-surface: #FFFFFF;
    --c-surface-2: #F0F2F5;
    --c-surface-3: #E8EBF0;
    --c-elevated: #FFFFFF;

    /* Glass surface */
    --surface-glass: #FFFFFF;
    --surface-glass-hover: #F8F9FB;
    --inset-edge: inset 0 1px 0 rgba(255,255,255,0.8);

    /* Borders */
    --c-border: rgba(0,0,0,0.08);
    --c-border-strong: rgba(0,0,0,0.14);
    --c-border-soft: rgba(0,0,0,0.05);
    --c-ring: rgba(245,166,35,0.40);

    /* Text */
    --c-text-1: #0F1923;
    --c-text-2: #4A5568;
    --c-text-3: #718096;
    --c-text-4: #A0AEC0;

    /* Brand — yellow accent + navy blue */
    --c-amber: #F5A623;
    --c-amber-hover: #FFBA42;
    --c-copper: #D4891A;
    --c-copper-deep: #B87214;
    --c-amber-soft: rgba(245,166,35,0.12);
    --c-amber-glow: rgba(245,166,35,0.28);
    --c-grad-amber: linear-gradient(135deg, #FFBA42 0%, #F5A623 50%, #D4891A 100%);

    /* Navy blue */
    --c-navy: #1B3A5C;
    --c-navy-2: #152E4A;
    --c-navy-3: #0F2238;

    /* Legacy aliases */
    --c-orange: #F5A623;
    --c-orange-hover: #FFBA42;
    --c-orange-soft: rgba(245,166,35,0.12);
    --c-charcoal: #1B3A5C;
    --c-charcoal-2: #152E4A;
    --c-charcoal-3: #0F2238;

    /* Status */
    --c-blue: #3B82F6;
    --c-green: #10B981;
    --c-red: #EF4444;
    --c-yellow: #F5A623;

    /* Shadows — мягкие, плавные, без резких краёв */
    --shadow-xs: 0 1px 2px rgba(20,30,50,0.025);
    --shadow-sm: 0 2px 6px rgba(20,30,50,0.03), 0 6px 18px rgba(20,30,50,0.025);
    --shadow-md: 0 6px 16px rgba(20,30,50,0.035), 0 18px 40px rgba(20,30,50,0.04);
    --shadow-lg: 0 12px 28px rgba(20,30,50,0.04), 0 32px 70px rgba(20,30,50,0.05);
    --shadow-xl: 0 20px 44px rgba(20,30,50,0.05), 0 44px 100px rgba(20,30,50,0.06);
    --shadow-amber: 0 6px 18px rgba(245,166,35,0.12);
    --shadow-amber-lg: 0 12px 32px rgba(245,166,35,0.16);

    /* Radii */
    --radius-sm: 6px;
    --radius: 10px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    /* Motion */
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --dur: 220ms;
    --dur-slow: 360ms;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; }
html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    background: #F4F6F9;
    color-scheme: light;
}
/* Принудительно светлая тема — отключаем авто-dark в iOS Safari/Android */
@media (prefers-color-scheme: dark) {
    :root {
        --c-bg: #F4F6F9 !important;
        --c-surface: #FFFFFF !important;
        --c-surface-2: #F0F2F5 !important;
        --c-surface-3: #E8EBF0 !important;
        --c-elevated: #FFFFFF !important;
        --surface-glass: #FFFFFF !important;
        --surface-glass-hover: #F8F9FB !important;
        --c-text-1: #0F1923 !important;
        --c-text-2: #4A5568 !important;
        --c-text-3: #718096 !important;
        --c-text-4: #A0AEC0 !important;
    }
    html, body { background: #F4F6F9 !important; color: #0F1923 !important; }
}
body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--c-text-1);
    background: var(--c-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: 'cv11', 'ss01', 'ss03';
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}
/* Subtle ambient grain on whole page */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.012;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 200px 200px;
    mix-blend-mode: overlay;
}
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; padding: 0; color: inherit; }
a { color: inherit; text-decoration: none; transition: color var(--dur) var(--ease); }
input, select, textarea { font-family: inherit; font-size: inherit; }
main { flex: 1; position: relative; z-index: 1; }
::selection { background: var(--c-navy); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.22); border: 2px solid transparent; background-clip: padding-box; }

/* === LAYOUT === */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
}
@media (max-width: 640px) { .container { padding: 0 16px; } }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.items-baseline { align-items: baseline; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 4px; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-6 { gap: 24px; } .gap-8 { gap: 32px; }

.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2,1fr); }
.grid-cols-3 { grid-template-columns: repeat(3,1fr); }
.grid-cols-4 { grid-template-columns: repeat(4,1fr); }

@media (min-width: 640px) {
    .sm\:grid-cols-2 { grid-template-columns: repeat(2,1fr); }
    .sm\:grid-cols-3 { grid-template-columns: repeat(3,1fr); }
    .sm\:flex-row { flex-direction: row; }
}
@media (min-width: 768px) {
    .md\:grid-cols-3 { grid-template-columns: repeat(3,1fr); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4,1fr); }
    .md\:flex-row { flex-direction: row; }
    .md\:block { display: block; } .md\:flex { display: flex; } .md\:hidden { display: none; }
}
@media (min-width: 1024px) {
    .lg\:grid-cols-2 { grid-template-columns: repeat(2,1fr); }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3,1fr); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4,1fr); }
    .lg\:grid-cols-5 { grid-template-columns: repeat(5,1fr); }
    .lg\:grid-cols-6 { grid-template-columns: repeat(6,1fr); }
    .lg\:flex-row { flex-direction: row; }
    .lg\:block { display: block; } .lg\:flex { display: flex; } .lg\:hidden { display: none; }
}

.hidden { display: none; }
.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }
.overflow-hidden { overflow: hidden; }
.w-full { width: 100%; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }
.mt-2 { margin-top: 8px; } .mt-4 { margin-top: 16px; } .mt-8 { margin-top: 32px; } .mt-12 { margin-top: 48px; }
.mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; } .mb-8 { margin-bottom: 32px; }

.line-clamp-1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* === TYPOGRAPHY === */
.h1 {
    font-size: clamp(34px, 5vw, 60px);
    line-height: 1.04;
    font-weight: 700;
    letter-spacing: -0.035em;
    color: var(--c-text-1);
    margin: 0;
}
.h2 {
    font-size: clamp(26px, 3.4vw, 38px);
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: -0.028em;
    color: var(--c-text-1);
    margin: 0;
}
.h3 {
    font-size: 19px;
    line-height: 1.3;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--c-text-1);
    margin: 0;
}
.h4 {
    font-size: 15px;
    line-height: 1.35;
    font-weight: 600;
    color: var(--c-text-1);
    margin: 0;
}

/* === EYEBROW — просто текст подходящего цвета, без декораций === */
.eyebrow,
.abento-label,
.bento-eyebrow,
.bento-cats-label {
    display: inline-block;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--c-copper-deep);
    line-height: 1;
    margin-bottom: 18px;
}
.eyebrow::before,
.abento-label::before,
.bento-eyebrow::before,
.bento-cats-label::before { content: none; }
/* На тёмных блоках */
.cta-block .eyebrow,
.finder .eyebrow { color: #FFC766; }

.lead { font-size: 16.5px; line-height: 1.6; color: var(--c-text-2); }
.muted { color: var(--c-text-3); }
.text-xs { font-size: 11px; }
.text-sm { font-size: 13px; }
.text-base { font-size: 14.5px; }
.text-lg { font-size: 16px; }
.font-mono { font-family: 'JetBrains Mono', 'SF Mono', Menlo, ui-monospace, monospace; font-feature-settings: 'tnum'; letter-spacing: -0.01em; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.uppercase { text-transform: uppercase; letter-spacing: 0.10em; }
.tabular { font-variant-numeric: tabular-nums; }

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius);
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1;
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    border: 1px solid transparent;
    -webkit-tap-highlight-color: transparent;
    transform: translateZ(0);
}
.btn svg { width: 15px; height: 15px; }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--c-bg), 0 0 0 4px var(--c-ring); }

.btn-primary {
    background: #F5A623;
    color: #1B3A5C;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(245,166,35,0.18);
}
.btn-primary:hover {
    background: #FFBA42;
    transform: translateY(-1px) translateZ(0);
    box-shadow: 0 8px 22px rgba(245,166,35,0.24);
}
.btn-primary:active { transform: translateY(0) translateZ(0); }
.btn-primary:active { transform: translateY(0); }

.btn-dark {
    background: var(--c-elevated);
    color: var(--c-text-1);
    border-color: var(--c-border-strong);
    box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,0.04);
}
.btn-dark:hover {
    background: var(--c-surface-3);
    border-color: rgba(255,255,255,0.16);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--c-text-1);
    border: 1px solid var(--c-border-strong);
}
.btn-ghost:hover {
    background: var(--c-surface-2);
    border-color: rgba(255,255,255,0.16);
}

.btn-glass {
    background: transparent;
    color: var(--c-navy);
    border: 1.5px solid var(--c-navy);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}
.btn-glass:hover {
    background: var(--c-navy);
    color: #FFFFFF;
    border-color: var(--c-navy);
    transform: translateY(-1px);
}

.btn-lg { padding: 14px 26px; font-size: 14.5px; border-radius: var(--radius-md); }
.btn-lg svg { width: 16px; height: 16px; }
.btn-sm { padding: 7px 14px; font-size: 12.5px; border-radius: var(--radius-sm); }
.btn-sm svg { width: 13px; height: 13px; }
.btn-block { display: flex; width: 100%; }

/* === TOPBAR === */
.topbar {
    background: #1B3A5C;
    color: rgba(255,255,255,0.70);
    font-size: 12px;
    border-bottom: 1px solid var(--c-border-soft);
    position: relative;
    z-index: 51;
}
.topbar a { color: rgba(255,255,255,0.60); transition: color var(--dur) var(--ease); }
.topbar a:hover { color: #FFFFFF; }
.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 36px;
}
@media (max-width: 768px) { .topbar { display: none; } }

/* === NAVIGATION === */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,0.92);
    backdrop-filter: saturate(180%) blur(24px);
    -webkit-backdrop-filter: saturate(180%) blur(24px);
    border-bottom: 1px solid var(--c-border);
}
.nav::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(0,0,0,0.015), transparent 50%);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 24px;
}
.nav-logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-logo img { height: 38px; width: auto; }
.nav-links {
    display: none;
    align-items: center;
    gap: 2px;
    padding: 4px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-full);
}
@media (min-width: 1024px) { .nav-links { display: flex; } }
.nav-link {
    padding: 7px 14px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 500;
    color: var(--c-text-2);
    transition: all var(--dur) var(--ease);
    position: relative;
}
.nav-link:hover { color: var(--c-text-1); }
.nav-link.active {
    color: var(--c-text-1);
    background: var(--c-surface-3);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
}

.nav-actions { display: flex; align-items: center; gap: 4px; }
.nav-icon-btn {
    width: 38px; height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    color: var(--c-text-2);
    transition: all var(--dur) var(--ease);
    position: relative;
}
.nav-icon-btn:hover { background: var(--c-surface-2); color: var(--c-text-1); }
.nav-icon-btn:active { transform: scale(0.95); }
.nav-icon-btn svg { width: 18px; height: 18px; }
.nav-icon-btn img { width: 18px; height: 18px; object-fit: contain; }
.nav-icon-btn.hide-mobile { display: none; }
@media (min-width: 768px) { .nav-icon-btn.hide-mobile { display: inline-flex; } }

.cart-badge {
    position: absolute;
    top: 4px; right: 4px;
    min-width: 16px; height: 16px;
    padding: 0 4px;
    background: var(--c-amber);
    color: #1B3A5C;
    font-size: 10px;
    font-weight: 700;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #FFFFFF;
    box-shadow: 0 0 12px var(--c-amber-glow);
}

/* === SEARCH === */
.search-overlay {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border-bottom: 1px solid var(--c-border);
    padding: 20px 0;
    box-shadow: var(--shadow-lg);
    animation: slideDown 0.25s var(--ease-out);
    z-index: 50;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
.search-input-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--c-surface-2);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-full);
    padding: 4px 4px 4px 18px;
    box-shadow: none;
}
.search-input-wrap:focus-within {
    border-color: var(--c-border);
    box-shadow: none;
}
.search-input,
input.search-input {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}
.search-input:focus,
input.search-input:focus {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}
.search-input {
    flex: 1;
    border: 0;
    outline: none;
    background: transparent;
    font-size: 14.5px;
    padding: 12px 0;
    color: var(--c-text-1);
}
.search-input::placeholder { color: var(--c-text-3); }

/* === MOBILE MENU — выпадающее меню под хедером === */
.mobile-menu {
    background: rgba(255,255,255,0.98);
    border-top: 1px solid var(--c-border);
    padding: 10px 14px 16px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 12px 32px rgba(20,30,50,0.08);
    animation: mobileMenuDown 0.22s var(--ease-out);
    position: relative;
    z-index: 49;
}
@keyframes mobileMenuDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
.mobile-menu a {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    color: var(--c-text-1);
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
    border-bottom: 1px solid var(--c-border-soft);
}
.mobile-menu a:last-child { border-bottom: 0; }
.mobile-menu a:hover, .mobile-menu a:active { background: var(--c-surface-2); color: var(--c-text-1); }
.mobile-menu a.featured {
    margin-top: 10px;
    background: var(--c-grad-amber);
    color: #1B3A5C;
    font-weight: 700;
    box-shadow: var(--shadow-amber);
    border: 0;
    justify-content: center;
}

/* Бургер-кнопка на мобиле — чуть заметнее */
@media (max-width: 1023px) {
    #mobileToggle { background: var(--c-surface-2); }
    #mobileToggle:hover { background: var(--c-surface-3); }
}

/* === HERO BANNER — natural colors, palette-matched image === */
.hero-banner {
    position: relative;
    width: 100%;
    background: var(--c-bg);
    line-height: 0;
    overflow: hidden;
}
.hero-banner img {
    width: 100%;
    height: auto;
    display: block;
}
/* Soft fade into page bottom */
.hero-banner-fade {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 140px;
    background: linear-gradient(to bottom, transparent 0%, var(--c-bg) 95%);
    pointer-events: none;
    z-index: 2;
}

/* === HERO CONTENT (below banner) === */
.hero-content-section {
    background: var(--c-bg);
    padding: 48px 0 72px;
    position: relative;
    border-bottom: 1px solid var(--c-border);
}
.hero-content-section::before {
    content: '';
    position: absolute;
    top: -1px; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--c-amber-soft) 50%, transparent);
}
.hero-content-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 64px;
}
@media (max-width: 900px) { .hero-content-inner { grid-template-columns: 1fr; gap: 36px; } }
.hero-content-left { min-width: 0; }
.hero-content-title {
    font-size: clamp(32px, 4.5vw, 56px);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -0.038em;
    color: var(--c-text-1);
    margin: 0 0 20px;
}
.hero-content-sub {
    font-size: 16px;
    color: var(--c-text-2);
    line-height: 1.6;
    margin: 0 0 32px;
    max-width: 480px;
}
.hero-content-cta { display: flex; flex-wrap: wrap; gap: 10px; }

.hero-content-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: rgba(27,58,92,0.15);
    border: 1px solid rgba(27,58,92,0.20);
    border-radius: var(--radius-lg);
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}
@media (max-width: 900px) { .hero-content-stats { grid-template-columns: repeat(4,1fr); } }
@media (max-width: 560px) { .hero-content-stats { grid-template-columns: repeat(2,1fr); } }
.hstat {
    background: #FFFFFF;
    padding: 20px 24px;
    text-align: center;
    transition: background var(--dur) var(--ease);
    position: relative;
}
.hstat::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.04), transparent);
}
.hstat:hover { background: var(--c-surface-2); }
.hstat-val {
    font-size: 22px;
    font-weight: 700;
    color: var(--c-navy);
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 6px;
}
.hstat-label {
    font-size: 10px;
    color: var(--c-text-3);
    text-transform: uppercase;
    letter-spacing: 0.10em;
    font-weight: 500;
}

/* === LEGACY HERO (fallback if hero class used elsewhere) === */
.hero { padding: 80px 0; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }
.hero-title { font-size: clamp(34px, 5vw, 60px); font-weight: 700; line-height: 1.04; letter-spacing: -0.035em; margin: 0 0 20px; }
.hero-sub { font-size: 16.5px; color: var(--c-text-2); line-height: 1.6; margin: 0 0 28px; max-width: 480px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--c-border); border-radius: var(--radius-lg); overflow: hidden; }
.hero-stat-num { font-size: 22px; font-weight: 700; color: var(--c-text-1); }
.hero-stat-label { font-size: 11px; color: var(--c-text-3); text-transform: uppercase; letter-spacing: 0.1em; }
.hero-image-wrap { position: relative; border-radius: var(--radius-2xl); overflow: hidden; box-shadow: var(--shadow-xl); }
.hero-image { width: 100%; height: auto; display: block; }

/* === SECTION === */
.section { padding: 72px 0; position: relative; }
@media (max-width: 768px) { .section { padding: 48px 0; } }
.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.section-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--c-text-2);
    padding: 8px 14px;
    border-radius: var(--radius-full);
    border: 1px solid var(--c-border);
    background: var(--c-surface);
    transition: all var(--dur) var(--ease);
}
.section-link:hover {
    color: var(--c-text-1);
    background: var(--c-surface-2);
    border-color: var(--c-border-strong);
    transform: translateX(2px);
}
.section-link svg { transition: transform var(--dur) var(--ease); }
.section-link:hover svg { transform: translateX(2px); }

/* === TRUST STRIP === */
.trust-strip {
    padding: 48px 0;
    border-bottom: 1px solid var(--c-border);
    background: var(--c-bg);
}
.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
@media (max-width: 900px) { .trust-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px) { .trust-grid { grid-template-columns: 1fr; } }
.trust-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: var(--surface-glass);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    position: relative;
    transition: all var(--dur) var(--ease);
    box-shadow: var(--inset-edge);
}
.trust-item::before {
    content: '';
    position: absolute;
    top: 0; left: 12px; right: 12px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.04), transparent);
}
.trust-item:hover {
    border-color: var(--c-border-strong);
    background: var(--surface-glass-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md), var(--inset-edge);
}
.trust-icon {
    width: 40px; height: 40px;
    border-radius: var(--radius);
    background: var(--c-surface-3);
    border: 1px solid var(--c-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-amber);
    flex-shrink: 0;
}
.trust-icon svg { width: 20px; height: 20px; }
.trust-title { font-size: 13.5px; font-weight: 600; color: var(--c-text-1); margin-bottom: 2px; }
.trust-sub { font-size: 12px; color: var(--c-text-3); }

/* === ABENTO GRID — Category bento === */
.abento-section { padding: 72px 0; position: relative; }
.abento-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}
/* .abento-label — стилизуется глобальным правилом .eyebrow/.abento-label выше */
.abento-title {
    font-size: clamp(28px, 3.4vw, 40px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--c-text-1);
    margin: 0;
}
.abento-all-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--c-text-2);
    padding: 8px 14px;
    border-radius: var(--radius-full);
    border: 1px solid var(--c-border);
    background: var(--c-surface);
    transition: all var(--dur) var(--ease);
}
.abento-all-link:hover {
    color: var(--c-text-1);
    background: var(--c-surface-2);
    border-color: var(--c-border-strong);
}
.abento-all-link svg { transition: transform var(--dur) var(--ease); }
.abento-all-link:hover svg { transform: translateX(2px); }

.abento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 168px;
    gap: 12px;
}
@media (max-width: 1023px) {
    .abento-grid { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 160px; }
}
@media (max-width: 639px) {
    .abento-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; gap: 10px; }
    .abento-cell-inner { padding: 14px !important; gap: 10px !important; }
    .abento-cell--1 .abento-cell-inner { padding: 16px !important; gap: 12px !important; }
    .abento-icon { width: 100% !important; height: 110px !important; max-width: none !important; }
    .abento-cell--1 .abento-icon { width: 100% !important; height: 150px !important; }
    .abento-icon svg { width: 44px !important; height: 44px !important; }
    .abento-cell--1 .abento-icon svg { width: 60px !important; height: 60px !important; }
    .abento-icon img { padding: 10px !important; }
    .abento-name { font-size: 13px !important; -webkit-line-clamp: 3 !important; line-height: 1.25 !important; }
    .abento-cell--1 .abento-name { font-size: 17px !important; }
    .abento-arrow { display: none !important; }
}

.abento-cell--1 { grid-column: span 6; grid-row: span 2; }
.abento-cell--2 { grid-column: span 3; grid-row: span 1; }
.abento-cell--3 { grid-column: span 3; grid-row: span 1; }
.abento-cell--4 { grid-column: span 3; grid-row: span 1; }
.abento-cell--5 { grid-column: span 3; grid-row: span 1; }
.abento-cell--6 { grid-column: span 4; grid-row: span 1; }
.abento-cell--7 { grid-column: span 4; grid-row: span 1; }
.abento-cell--8 { grid-column: span 4; grid-row: span 1; }

@media (max-width: 1023px) {
    .abento-cell--1 { grid-column: span 6; grid-row: span 2; }
    .abento-cell--2 { grid-column: span 3; grid-row: span 1; }
    .abento-cell--3 { grid-column: span 3; grid-row: span 1; }
    .abento-cell--4 { grid-column: span 3; grid-row: span 1; }
    .abento-cell--5 { grid-column: span 3; grid-row: span 1; }
    .abento-cell--6 { grid-column: span 2; grid-row: span 1; }
    .abento-cell--7 { grid-column: span 2; grid-row: span 1; }
    .abento-cell--8 { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 639px) {
    .abento-cell--1, .abento-cell--2, .abento-cell--3, .abento-cell--4,
    .abento-cell--5, .abento-cell--6, .abento-cell--7, .abento-cell--8 {
        grid-column: span 1; grid-row: span 1;
    }
    .abento-cell--1 { grid-column: span 2; grid-row: span 1; }
}

.abento-cell {
    position: relative;
    background: #FFFFFF;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--dur-slow) var(--ease), box-shadow var(--dur-slow) var(--ease), border-color var(--dur-slow) var(--ease), background-color var(--dur-slow) var(--ease);
    isolation: isolate;
    box-shadow: var(--inset-edge);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
}
.abento-cell::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(0,0,0,0.02) 0%, transparent 30%);
    pointer-events: none;
    z-index: 1;
}
.abento-cell::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, transparent 0%, transparent 50%, rgba(245,158,11,0) 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    transition: background var(--dur-slow) var(--ease);
    z-index: 2;
}
.abento-cell:hover {
    border-color: rgba(245,166,35,0.40);
    background: var(--surface-glass-hover);
    transform: translate3d(0,-3px,0);
    box-shadow: var(--shadow-lg), var(--inset-edge), 0 0 0 1px rgba(245,166,35,0.15);
}
.abento-cell:hover::after {
    background: linear-gradient(135deg, rgba(245,166,35,0.4) 0%, transparent 50%, transparent 100%);
}

/* Large cell: same surface as others, just bigger */

.abento-cell-inner {
    position: relative;
    z-index: 3;
    padding: 22px;
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 10px;
}
.abento-cell--1 .abento-cell-inner { padding: 32px; gap: 14px; }

.abento-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 88px; height: 88px;
    background: var(--c-surface-3);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    color: var(--c-amber);
    flex-shrink: 0;
    margin-bottom: auto;
    transition: all var(--dur) var(--ease);
    overflow: hidden;
}
.abento-cell--1 .abento-icon { width: 180px; height: 180px; border-radius: var(--radius-lg); }
.abento-icon svg { width: 40px; height: 40px; }
.abento-cell--1 .abento-icon svg { width: 72px; height: 72px; }
.abento-icon img { width: 100%; height: 100%; object-fit: contain; padding: 8px; opacity: 1; transition: opacity var(--dur) ease; }
.abento-cell--1 .abento-icon img { padding: 14px; }
.abento-cell:hover .abento-icon {
    background: var(--c-amber-soft);
    border-color: rgba(245,158,11,0.30);
    color: var(--c-amber-hover);
}
.abento-cell:hover .abento-icon img { opacity: 1; }

.abento-name {
    font-size: 14px;
    font-weight: 600;
    color: #0F1923;
    line-height: 1.3;
    letter-spacing: -0.01em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--dur) var(--ease);
}
.abento-cell--1 .abento-name {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.025em;
    -webkit-line-clamp: 3;
}
.abento-count { display: none; }
.abento-arrow {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 28px; height: 28px;
    background: var(--c-surface-3);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-text-3);
    opacity: 0;
    transform: translateX(-4px);
    transition: all var(--dur) var(--ease);
    z-index: 3;
}
.abento-cell:hover .abento-arrow {
    opacity: 1;
    transform: translateX(0);
    background: var(--c-amber);
    border-color: var(--c-amber);
    color: #1B3A5C;
}

/* Shared bento noise texture */
.bento-noise {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 0;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 180px 180px;
}

/* === BENTO HERO (alt hero variant — preserved from old templates) === */
.bento-hero {
    background: var(--c-bg);
    padding: 56px 0 64px;
    position: relative;
    overflow: hidden;
}
.bento-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 70% 50% at 70% 60%, rgba(245,166,35,0.10) 0%, transparent 60%),
        radial-gradient(ellipse 50% 70% at 15% 85%, rgba(27,58,92,0.06) 0%, transparent 55%);
}
.bento-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 12px;
    position: relative;
}
@media (max-width: 1023px) { .bento-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 639px) { .bento-grid { grid-template-columns: 1fr; } }

.bento-cell {
    position: relative;
    background: var(--surface-glass);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    isolation: isolate;
    box-shadow: var(--inset-edge);
}
.bento-cell::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(0,0,0,0.02), transparent 30%);
    pointer-events: none;
}

.bento-main { grid-column: span 2; grid-row: span 2; padding: 36px; min-height: 360px; display: flex; flex-direction: column; justify-content: space-between; }
.bento-main-inner { position: relative; z-index: 2; max-width: 480px; }
@media (max-width: 1023px) { .bento-main { grid-column: span 2; min-height: 280px; padding: 28px; } }
@media (max-width: 639px) { .bento-main { grid-column: span 1; padding: 24px; min-height: 240px; } }

.bento-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    border: 0;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--c-text-2);
    margin-bottom: 22px;
    line-height: 1.2;
}
.bento-dot { display: none; }
.bento-title {
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--c-text-1);
    margin: 0 0 16px;
}
.bento-sub {
    font-size: 15.5px;
    color: var(--c-text-2);
    line-height: 1.6;
    margin: 0 0 28px;
}
.bento-cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
.bento-accent {
    background: var(--c-grad-amber);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.bento-truck {
    position: relative;
    grid-column: span 1;
    grid-row: span 2;
    overflow: hidden;
    background: var(--c-surface);
    min-height: 360px;
}
.bento-truck-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(1.05) saturate(0.95);
}
.bento-truck-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 50% at 50% 100%, rgba(245,158,11,0.20), transparent 70%);
    pointer-events: none;
}
.bento-truck-badge {
    position: absolute;
    top: 14px; right: 14px;
    padding: 6px 10px;
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--c-border-strong);
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    color: var(--c-text-1);
}
@media (max-width: 1023px) { .bento-truck { grid-column: span 2; grid-row: span 1; min-height: 240px; } }
@media (max-width: 639px) { .bento-truck { grid-column: span 1; min-height: 200px; } }

.bento-stat {
    grid-column: span 1;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 120px;
}
.bento-stat--orange {
    background:
        radial-gradient(ellipse 100% 100% at 100% 0%, rgba(245,166,35,0.10), transparent 60%),
        var(--c-surface);
}
.bento-stat-icon {
    width: 36px; height: 36px;
    border-radius: var(--radius);
    background: var(--c-surface-3);
    border: 1px solid var(--c-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-amber);
}
.bento-stat-icon svg { width: 18px; height: 18px; }
.bento-stat-val {
    font-size: 22px;
    font-weight: 700;
    color: var(--c-text-1);
    letter-spacing: -0.02em;
    line-height: 1;
}
.bento-stat-label {
    font-size: 11px;
    color: var(--c-text-3);
    text-transform: uppercase;
    letter-spacing: 0.10em;
    font-weight: 500;
}

.bento-brands { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.bento-brand-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--c-surface-2);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-full);
    font-size: 12px;
    color: var(--c-text-2);
    transition: all var(--dur) var(--ease);
}
.bento-brand-chip:hover {
    color: var(--c-text-1);
    border-color: var(--c-border-strong);
    background: var(--c-surface-3);
}

/* Bento cats secondary section */
.bento-cats-section { padding: 72px 0; }
.bento-cats-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.bento-cats-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    border: 0;
    font-size: 11px;
    color: var(--c-text-2);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 18px;
    font-weight: 600;
    line-height: 1.2;
}
.bento-cats-title {
    font-size: clamp(26px, 3.2vw, 38px);
    font-weight: 700;
    letter-spacing: -0.028em;
    color: var(--c-text-1);
    margin: 0;
}
.bento-cats-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--c-text-2);
    padding: 8px 14px;
    border-radius: var(--radius-full);
    border: 1px solid var(--c-border);
    background: var(--c-surface);
    transition: all var(--dur) var(--ease);
}
.bento-cats-link:hover { color: var(--c-text-1); background: var(--c-surface-2); border-color: var(--c-border-strong); }
.bento-cats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
@media (max-width: 900px) { .bento-cats-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px) { .bento-cats-grid { grid-template-columns: 1fr; } }

.bento-cat-cell {
    position: relative;
    padding: 20px;
    background: var(--surface-glass);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    transition: all var(--dur-slow) var(--ease);
    overflow: hidden;
    box-shadow: var(--inset-edge);
}
.bento-cat-cell::before {
    content: '';
    position: absolute;
    top: 0; left: 12px; right: 12px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.04), transparent);
}
.bento-cat-cell:hover {
    border-color: rgba(245,158,11,0.30);
    background: var(--surface-glass-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md), var(--inset-edge);
}
.bento-cat-icon {
    width: 36px; height: 36px;
    background: var(--c-surface-3);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-amber);
    margin-bottom: 14px;
    transition: all var(--dur) var(--ease);
}
.bento-cat-icon svg { width: 18px; height: 18px; }
.bento-cat-cell:hover .bento-cat-icon { background: var(--c-amber-soft); border-color: rgba(245,158,11,0.30); }
.bento-cat-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--c-text-1);
    line-height: 1.35;
    margin-bottom: 4px;
}
.bento-cat-count {
    font-size: 11px;
    color: var(--c-text-3);
    letter-spacing: 0.04em;
}
.bento-cat-arrow {
    position: absolute;
    top: 18px; right: 18px;
    color: var(--c-text-4);
    opacity: 0;
    transform: translateX(-4px);
    transition: all var(--dur) var(--ease);
}
.bento-cat-cell:hover .bento-cat-arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--c-amber);
}

/* === FINDER (selector CTA block) === */
.finder {
    position: relative;
    padding: 56px 48px;
    background:
        radial-gradient(ellipse 60% 80% at 100% 100%, rgba(245,166,35,0.18) 0%, transparent 60%),
        radial-gradient(ellipse 50% 50% at 0% 0%, rgba(59,130,246,0.06) 0%, transparent 60%),
        linear-gradient(135deg, #1E4270 0%, #1B3A5C 100%);
    border: 1px solid var(--c-border-strong);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.finder::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255,255,255,0.05), transparent 35%);
    pointer-events: none;
}
.finder > * { position: relative; z-index: 1; }
.finder h2 { color: var(--c-text-1); margin: 0 0 8px; font-weight: 700; letter-spacing: -0.03em; }
.finder p { color: var(--c-text-2); margin: 0 0 28px; max-width: 520px; line-height: 1.6; }
@media (max-width: 768px) { .finder { padding: 40px 28px; } }

/* === BRAND TILES === */
.brand-tile {
    position: relative;
    padding: 18px 14px;
    background: var(--surface-glass);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 100px;
    transition: all var(--dur) var(--ease);
    overflow: hidden;
    box-shadow: var(--inset-edge);
}
.brand-tile::before {
    content: '';
    position: absolute;
    top: 0; left: 16px; right: 16px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.04), transparent);
}
.brand-tile img {
    max-width: 70%;
    max-height: 36px;
    object-fit: contain;
    opacity: 0.65;
    transition: opacity var(--dur) ease;
}
.brand-tile:hover {
    border-color: var(--c-border-strong);
    background: var(--surface-glass-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md), var(--inset-edge);
}
.brand-tile:hover img { opacity: 1; }
.brand-tile-fallback {
    font-size: 14px;
    font-weight: 700;
    color: var(--c-text-2);
    letter-spacing: 0.04em;
}
.brand-tile-name {
    font-size: 11px;
    font-weight: 500;
    color: var(--c-text-3);
    letter-spacing: 0.02em;
    text-align: center;
}
.brand-tile:hover .brand-tile-name { color: var(--c-text-1); }

/* === PRODUCT CARDS (catalog grid) === */
.card {
    position: relative;
    background: var(--surface-glass);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all var(--dur-slow) var(--ease);
    isolation: isolate;
    box-shadow: var(--inset-edge);
}
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 16px; right: 16px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.04), transparent);
    z-index: 2;
}
.card:hover {
    border-color: var(--c-border-strong);
    background: var(--surface-glass-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg), var(--inset-edge);
}
.card-image {
    display: block;
    position: relative;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #F0F2F5 0%, #E8EBF0 100%);
    overflow: hidden;
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--dur-slow) var(--ease);
}
.card:hover .card-image img { transform: scale(1.05); }
.card-image-empty {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-text-4);
}
.card-image-empty svg { width: 40%; height: auto; max-width: 64px; opacity: 0.5; }

.card-tags {
    position: absolute;
    top: 10px; left: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    z-index: 2;
}
.card-tag {
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 9.5px;
    font-weight: 500;
    color: #FFFFFF;
    background: var(--c-navy);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1.5;
    filter: none;
    box-shadow: none;
}
.card-wishlist {
    position: absolute;
    top: 10px; right: 10px;
    width: 32px; height: 32px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.90);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--c-border-strong);
    color: var(--c-text-2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--dur) var(--ease);
    z-index: 3;
}
.card-wishlist svg { width: 15px; height: 15px; }
.card-wishlist:hover { background: var(--c-amber); border-color: var(--c-amber); color: #1B3A5C; }
.card-wishlist.active { background: var(--c-amber); border-color: var(--c-amber); color: #1B3A5C; }

.card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}
.card-cat {
    font-size: 11px;
    color: var(--c-text-3);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
    margin: 0;
}
.card-title {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--c-text-1);
    line-height: 1.35;
    letter-spacing: -0.01em;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--dur) ease;
}
.card-title:hover { color: var(--c-amber-hover); }
.card-sku {
    font-size: 11.5px;
    color: var(--c-text-3);
    margin: 0;
    font-family: 'JetBrains Mono', 'SF Mono', Menlo, ui-monospace, monospace;
    letter-spacing: 0;
}
.card-foot {
    margin-top: auto;
    padding-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.card-price {
    font-size: 19px;
    font-weight: 700;
    color: var(--c-text-1);
    letter-spacing: -0.02em;
    font-family: 'JetBrains Mono', 'SF Mono', Menlo, ui-monospace, monospace;
}
.card-price-cur {
    font-size: 13px;
    color: var(--c-text-3);
    margin-left: 2px;
}
.card-price-req {
    font-size: 12.5px;
    color: var(--c-text-2);
    font-weight: 500;
}
.card-add-btn {
    width: 36px; height: 36px;
    border-radius: var(--radius);
    background: var(--c-grad-amber);
    color: #1B3A5C;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--dur) var(--ease);
    box-shadow: var(--shadow-amber), inset 0 1px 0 rgba(255,255,255,0.25);
}
.card-add-btn svg { width: 16px; height: 16px; stroke-width: 2.5; }
.card-add-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-amber-lg); }
.card-add-btn:active { transform: translateY(0); }

/* Product card alias */
.product-card {
    background: var(--surface-glass);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    margin-bottom: 32px;
    box-shadow: var(--shadow-md), var(--inset-edge);
    position: relative;
}
.product-card::before {
    content: '';
    position: absolute;
    top: 0; left: 24px; right: 24px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.04), transparent);
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: stretch;
}
@media (max-width: 900px) { .product-grid { grid-template-columns: 1fr; } }

.product-gallery {
    padding: 28px;
    background: linear-gradient(135deg, var(--c-surface-2) 0%, var(--c-surface) 100%);
    border-right: 1px solid var(--c-border);
    display: flex;
    flex-direction: column;
    gap: 14px;
}
@media (max-width: 900px) {
    .product-gallery { border-right: 0; border-bottom: 1px solid var(--c-border); }
}
.product-main-img {
    aspect-ratio: 4 / 3;
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-main-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.2s ease;
}
.product-thumbs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.product-thumb {
    width: 64px; height: 64px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--c-bg);
    cursor: pointer;
    transition: all var(--dur) var(--ease);
    padding: 0;
}
.product-thumb img { width: 100%; height: 100%; object-fit: contain; }
.product-thumb:hover { border-color: var(--c-border-strong); }
.product-thumb.active {
    border-color: var(--c-amber);
    box-shadow: 0 0 0 2px rgba(245,166,35,0.18);
}

.product-info { padding: 32px; display: flex; flex-direction: column; }
@media (max-width: 600px) { .product-info { padding: 24px; } }
.product-title {
    font-size: clamp(22px, 2.5vw, 28px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
    color: var(--c-text-1);
    margin: 6px 0 12px;
}
.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    font-size: 13px;
    color: var(--c-text-3);
    margin-bottom: 18px;
}
.product-meta strong { color: var(--c-text-1); font-weight: 600; }
.product-meta .sep { color: var(--c-text-4); }

/* === STOCK STATUS — flat industrial labels, no glow === */
.stock-pill {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 3px;
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.02em;
    width: fit-content;
    margin-top: 2px;
    line-height: 1.55;
}
.stock-pill.stock-in { background: rgba(16,185,129,0.08); color: #059669; }
.stock-pill.stock-order { background: rgba(245,158,11,0.08); color: var(--c-amber-hover); }
.stock-pill.stock-out { background: rgba(113,113,122,0.10); color: var(--c-text-3); }

.stock-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.01em;
    margin-bottom: 18px;
    width: fit-content;
    line-height: 1.5;
}
.stock-badge.in { background: rgba(16,185,129,0.08); color: #059669; }
.stock-badge.order { background: rgba(245,158,11,0.08); color: var(--c-amber-hover); }
.stock-badge.out { background: rgba(113,113,122,0.10); color: var(--c-text-3); }

/* === PRICE BLOCK === */
.price-block {
    margin: 8px 0 20px;
    padding: 20px;
    background: var(--surface-glass);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    position: relative;
    box-shadow: var(--inset-edge);
}
.price-block::before {
    content: '';
    position: absolute;
    top: 0; left: 16px; right: 16px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.04), transparent);
}
.price-label {
    font-size: 11px;
    color: var(--c-text-3);
    text-transform: uppercase;
    letter-spacing: 0.10em;
    margin-bottom: 6px;
    font-weight: 500;
}
.price-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--c-text-1);
    letter-spacing: -0.03em;
    line-height: 1;
    font-family: 'JetBrains Mono', 'SF Mono', Menlo, ui-monospace, monospace;
    display: inline-block;
}
.price-value sup {
    font-size: 16px;
    font-weight: 500;
    color: var(--c-text-3);
    margin-left: 4px;
    top: -0.6em;
}
.price-wholesale {
    margin-top: 8px;
    font-size: 13px;
    color: var(--c-amber-hover);
    font-weight: 500;
}

.qty-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
    margin-top: 18px;
}
.qty-input {
    width: 80px;
    padding: 14px;
    background: var(--c-bg);
    border: 1px solid var(--c-border-strong);
    border-radius: var(--radius);
    color: var(--c-text-1);
    font-size: 15px;
    font-weight: 600;
    font-family: 'JetBrains Mono', 'SF Mono', Menlo, ui-monospace, monospace;
    text-align: center;
    transition: border-color var(--dur);
    outline: none;
    -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-input:focus { border-color: var(--c-border-strong); box-shadow: 0 0 0 4px rgba(245,166,35,0.08); }

/* === COMPATIBILITY === */
.compat-block {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--c-border);
}
.compat-label {
    font-size: 11px;
    color: var(--c-text-3);
    text-transform: uppercase;
    letter-spacing: 0.10em;
    margin-bottom: 12px;
    font-weight: 500;
}
.compat-tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 11px;
    background: var(--c-surface-2);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    font-size: 12px;
    color: var(--c-text-2);
    margin: 0 6px 6px 0;
    transition: all var(--dur) var(--ease);
}
.compat-tag:hover {
    background: var(--c-surface-3);
    color: var(--c-text-1);
    border-color: var(--c-border-strong);
}

/* === TABS === */
.tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--c-border);
    margin-bottom: 24px;
    overflow-x: auto;
    scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab-btn {
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 500;
    color: var(--c-text-2);
    border: 0;
    background: transparent;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all var(--dur) var(--ease);
    margin-bottom: -1px;
    white-space: nowrap;
}
.tab-btn:hover { color: var(--c-text-1); }
.tab-btn.active {
    color: var(--c-navy);
    border-bottom-color: var(--c-navy);
}
.tab-panel { padding: 8px 0; color: var(--c-text-2); }

/* === SPEC TABLE === */
.spec-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
    background: var(--surface-glass);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--inset-edge);
}
.spec-table tr:nth-child(odd) td { background: var(--c-surface-2); }
.spec-table tr td { border-bottom: 1px solid var(--c-border-soft); }
.spec-table tr:last-child td { border-bottom: 0; }
.spec-table td { padding: 12px 18px; }
.spec-table td:first-child { color: var(--c-text-3); width: 40%; font-size: 13px; }
.spec-table td:last-child { font-weight: 500; color: var(--c-text-1); }

/* === CATALOG LAYOUT === */
.cat-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}
@media (min-width: 1024px) {
    .cat-layout { grid-template-columns: 280px 1fr; gap: 40px; }
}

.sidebar { width: 100%; }
.sidebar-card {
    background: var(--surface-glass);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: 18px;
    margin-bottom: 12px;
    position: relative;
    box-shadow: var(--inset-edge);
}
.sidebar-card::before {
    content: '';
    position: absolute;
    top: 0; left: 14px; right: 14px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.04), transparent);
}
.sidebar-title {
    font-size: 11px;
    color: var(--c-text-3);
    text-transform: uppercase;
    letter-spacing: 0.10em;
    margin: 0 0 12px;
    font-weight: 600;
}
.sidebar-cat-list {
    list-style: none;
    padding: 0 4px 0 0;
    margin: 0 -2px 0 0;
    max-height: 380px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.18) transparent;
}
.sidebar-cat-list::-webkit-scrollbar { width: 6px; }
.sidebar-cat-list::-webkit-scrollbar-track { background: transparent; }
.sidebar-cat-list::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.12);
    border-radius: 999px;
    transition: background .2s ease;
}
.sidebar-cat-list:hover::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.22); }
.sidebar-cat-list::-webkit-scrollbar-thumb:hover { background: var(--c-amber); }

/* === SLIM CUSTOM SCROLLBAR for the whole sidebar === */
.sidebar {
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.18) transparent;
}
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.12);
    border-radius: 999px;
    transition: background .2s ease;
}
.sidebar:hover::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.22); }
.sidebar::-webkit-scrollbar-thumb:hover { background: var(--c-amber); }

/* === SIDEBAR — скроллбар слева, с отступом от карточек === */
.sidebar { direction: rtl; padding-left: 10px; }
.sidebar > * { direction: ltr; }

/* === SIDEBAR SEARCH — янтарная рамка постоянно, без серых обводок === */
.sidebar-search {
    position: relative;
    display: flex;
    align-items: center;
    background: transparent;
    border: 1px solid var(--c-amber);
    border-radius: var(--radius);
    padding: 0 12px;
    box-shadow: none;
}
.sidebar-search-icon {
    flex-shrink: 0;
    color: var(--c-amber);
    margin-right: 8px;
}
.sidebar-search-input,
input.sidebar-search-input {
    flex: 1;
    min-width: 0;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    font-size: 13.5px;
    font-family: inherit;
    color: var(--c-text-1);
    padding: 8px 0 !important;
    margin: 0;
    box-shadow: none !important;
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
}
.sidebar-search-input:focus,
input.sidebar-search-input:focus {
    outline: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
}
.sidebar-search-input::placeholder { color: var(--c-text-4); }
.sidebar-cat {
    display: block;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    color: var(--c-text-2);
    transition: all var(--dur) var(--ease);
    margin-bottom: 2px;
}
.sidebar-cat:hover { background: var(--c-surface-2); color: var(--c-text-1); }
.sidebar-cat.active {
    background: rgba(27,58,92,0.08);
    color: var(--c-navy);
    font-weight: 600;
    border: 1px solid rgba(27,58,92,0.20);
}

.sidebar-cta {
    background:
        radial-gradient(ellipse 60% 80% at 100% 100%, rgba(27,58,92,0.12) 0%, transparent 60%),
        var(--c-surface);
    border: 1px solid var(--c-border-strong);
    border-radius: var(--radius-lg);
    padding: 18px;
    position: relative;
    overflow: hidden;
}
.sidebar-cta::before {
    content: '';
    position: absolute;
    top: 0; left: 14px; right: 14px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.04), transparent);
}
.sidebar-cta-title { font-size: 14px; font-weight: 700; margin-bottom: 4px; color: var(--c-text-1); }
.sidebar-cta-text { font-size: 12.5px; color: var(--c-text-2); margin-bottom: 14px; line-height: 1.5; }

/* === FORMS === */
.field { margin-bottom: 14px; }
.field:last-child { margin-bottom: 0; }
.field-label {
    display: block;
    font-size: 11px;
    color: var(--c-text-3);
    text-transform: uppercase;
    letter-spacing: 0.10em;
    margin-bottom: 6px;
    font-weight: 600;
}
.input,
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"],
.field input[type="password"],
.field input[type="search"],
.field select,
.field textarea,
input[type="text"]:not(.search-input):not(.qty-input):not(.nav-icon-btn):not(.sidebar-search-input):not(.chat-ai-input),
input[type="email"], input[type="tel"], input[type="password"],
select, textarea {
    width: 100%;
    padding: 10px 12px;
    background: var(--c-bg);
    border: 1px solid var(--c-border-strong);
    border-radius: var(--radius);
    color: var(--c-text-1);
    font-size: 13.5px;
    font-family: inherit;
    line-height: 1.5;
    outline: none;
    transition: border-color var(--dur), box-shadow var(--dur);
    appearance: none;
    -webkit-appearance: none;
}
.input:focus,
.field input:focus, .field select:focus, .field textarea:focus,
input:focus:not(.search-input):not(.sidebar-search-input):not(.chat-ai-input):not(.qty-input),
select:focus, textarea:focus {
    border-color: var(--c-border-strong);
    box-shadow: 0 0 0 4px rgba(245,166,35,0.08), 0 4px 14px rgba(20,30,50,0.04);
}
.input::placeholder, input::placeholder, textarea::placeholder { color: var(--c-text-4); }
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234A5568' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}
textarea { min-height: 96px; resize: vertical; }
.input-row { display: flex; align-items: center; gap: 8px; }

/* === TOOLBAR (catalog top) === */
.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    background: var(--surface-glass);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    margin-bottom: 18px;
    flex-wrap: wrap;
    box-shadow: var(--inset-edge);
}
.toolbar-count { font-size: 13px; color: var(--c-text-3); }
.toolbar-count strong { color: var(--c-text-1); font-weight: 600; }

/* === BREADCRUMBS === */
.crumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--c-text-3);
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.crumbs a { color: var(--c-text-3); transition: color var(--dur) var(--ease); }
.crumbs a:hover { color: var(--c-text-1); }
.crumbs .sep { color: var(--c-text-4); font-size: 11px; }
.crumbs .current { color: var(--c-text-2); font-weight: 500; }

/* === STEPS === */
.steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
@media (min-width: 768px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step {
    background: var(--surface-glass);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: relative;
    transition: all var(--dur) var(--ease);
    box-shadow: var(--inset-edge);
}
.step::before {
    content: '';
    position: absolute;
    top: 0; left: 16px; right: 16px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.04), transparent);
}
.step:hover { border-color: var(--c-border-strong); background: var(--surface-glass-hover); transform: translateY(-2px); box-shadow: var(--shadow-md), var(--inset-edge); }
.step-num {
    width: 44px; height: 44px;
    background: var(--c-surface-3);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-amber);
    margin-bottom: 16px;
    transition: all var(--dur) var(--ease);
}
.step-num svg { width: 20px; height: 20px; }
.step:hover .step-num { background: var(--c-amber-soft); border-color: rgba(245,158,11,0.30); }
.step-title { font-size: 15px; font-weight: 600; color: var(--c-text-1); margin: 0 0 6px; letter-spacing: -0.01em; }
.step-text { font-size: 13px; color: var(--c-text-3); line-height: 1.5; margin: 0; }

/* === CTA BLOCK (bottom of pages) === */
.cta-block {
    position: relative;
    padding: 64px 32px;
    background:
        radial-gradient(ellipse 50% 80% at 50% 100%, rgba(245,166,35,0.15) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 0% 0%, rgba(59,130,246,0.05) 0%, transparent 60%),
        linear-gradient(135deg, #1E4270 0%, #1B3A5C 100%);
    border: 1px solid var(--c-border-strong);
    border-radius: var(--radius-2xl);
    text-align: center;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.cta-block::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255,255,255,0.05), transparent 35%);
    pointer-events: none;
}
.cta-block > * { position: relative; z-index: 1; }
.cta-block h2 {
    color: var(--c-text-1);
    margin: 0 0 12px;
    font-weight: 700;
    letter-spacing: -0.03em;
}
.cta-block p {
    color: var(--c-text-2);
    margin: 0 0 28px;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* === CAT TILES (alternate) === */
.cat-tile {
    position: relative;
    padding: 22px;
    background: var(--surface-glass);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    transition: all var(--dur) var(--ease);
    overflow: hidden;
    box-shadow: var(--inset-edge);
}
.cat-tile::before {
    content: '';
    position: absolute;
    top: 0; left: 14px; right: 14px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.04), transparent);
}
.cat-tile:hover { border-color: rgba(245,158,11,0.30); background: var(--surface-glass-hover); transform: translateY(-2px); box-shadow: var(--shadow-md), var(--inset-edge); }
.cat-tile-icon {
    width: 38px; height: 38px;
    background: var(--c-surface-3);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-amber);
    margin-bottom: 14px;
}
.cat-tile-name { font-size: 14px; font-weight: 600; color: var(--c-text-1); margin-bottom: 4px; }
.cat-tile-count { font-size: 11px; color: var(--c-text-3); }

/* === FOOTER === */
.footer {
    background: #1B3A5C;
    border-top: 1px solid var(--c-border);
    padding: 56px 0 24px;
    margin-top: auto;
    position: relative;
    z-index: 1;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.footer h4 {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.45);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 0 0 18px;
}
.footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer a {
    font-size: 13.5px;
    color: rgba(255,255,255,0.60);
    transition: color var(--dur) var(--ease);
}
.footer a:hover { color: #FFFFFF; }
.footer-logo img { height: 36px; width: auto; }
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid var(--c-border);
    font-size: 12px;
    color: rgba(255,255,255,0.30);
    flex-wrap: wrap;
    gap: 12px;
}
.footer-contact { display: flex; flex-direction: column; gap: 12px; font-size: 13px; }
.footer-contact a { display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.60); }
.footer-contact a:hover { color: #FFFFFF; }
.footer-contact svg { width: 14px; height: 14px; flex-shrink: 0; }

.social-row { display: flex; gap: 8px; margin-top: 16px; }
.social-row a {
    width: 36px; height: 36px;
    border-radius: var(--radius);
    background: var(--c-surface-2);
    border: 1px solid var(--c-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--dur) var(--ease);
}
.social-row a:hover { background: var(--c-surface-3); border-color: var(--c-border-strong); transform: translateY(-2px); }
.social-row img { width: 16px; height: 16px; object-fit: contain; }
.footer .social-row a { background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.15); }
.footer .social-row a:hover { background: rgba(255,255,255,0.18); }

/* === CHAT WIDGET === */
.chat-fab {
    position: fixed;
    bottom: 22px;
    right: 22px;
    width: 56px; height: 56px;
    border-radius: var(--radius-full);
    background: var(--c-grad-amber);
    color: #1B3A5C;
    box-shadow: var(--shadow-amber-lg), inset 0 1px 0 rgba(255,255,255,0.30);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 60;
    transition: transform var(--dur) var(--ease), box-shadow var(--dur);
}
.chat-fab:hover { transform: scale(1.06); }
.chat-fab:active { transform: scale(0.98); }
.chat-fab svg { width: 24px; height: 24px; }

.chat-panel {
    position: fixed;
    bottom: 90px;
    right: 22px;
    width: 320px;
    max-width: calc(100vw - 32px);
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border: 1px solid var(--c-border-strong);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    z-index: 60;
    overflow: hidden;
    animation: chatPop 0.3s var(--ease-out);
}
@keyframes chatPop {
    from { opacity: 0; transform: translateY(8px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.chat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--c-border);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--c-text-1);
}
.chat-head .pulse {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.chat-head .pulse::before {
    content: '';
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 8px rgba(16,185,129,0.6);
    animation: pulseDot 2s ease infinite;
}
@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.85); }
}
.chat-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.chat-body p {
    font-size: 13px;
    color: var(--c-text-2);
    margin: 0 0 6px;
    line-height: 1.5;
}
.chat-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--c-surface-2);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    font-size: 13.5px;
    font-weight: 500;
    color: var(--c-text-1);
    transition: all var(--dur) var(--ease);
}
.chat-link:hover { background: var(--c-surface-3); border-color: var(--c-border-strong); transform: translateX(2px); }
.chat-link img { width: 18px; height: 18px; object-fit: contain; }
.chat-link svg { width: 16px; height: 16px; color: var(--c-amber); }
.chat-link.primary {
    background: var(--c-grad-amber);
    color: #1B3A5C;
    font-weight: 600;
    border-color: transparent;
    box-shadow: var(--shadow-amber);
}
.chat-link.primary svg { color: #1B3A5C; }
.chat-link.primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-amber-lg); }
.chat-foot {
    margin-top: 6px;
    padding-top: 10px;
    border-top: 1px solid var(--c-border);
    font-size: 11px;
    color: var(--c-text-4);
    text-align: center;
}

/* === SCROLL TOP === */
.scroll-top {
    position: fixed;
    bottom: 90px;
    left: 22px;
    width: 40px; height: 40px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--c-border-strong);
    color: var(--c-text-2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    opacity: 0;
    pointer-events: none;
    transition: all var(--dur) var(--ease);
    box-shadow: var(--shadow-md);
}
.scroll-top.visible { opacity: 1; pointer-events: auto; }
.scroll-top:hover { background: var(--c-navy); border-color: var(--c-navy); color: #FFFFFF; transform: translateY(-2px); }
.scroll-top svg { width: 16px; height: 16px; }

/* === TOAST === */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: calc(100vw - 40px);
}
.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--c-border-strong);
    border-radius: var(--radius);
    color: var(--c-text-1);
    font-size: 13.5px;
    box-shadow: var(--shadow-lg);
    animation: toastIn 0.3s var(--ease-out);
    min-width: 240px;
}
@keyframes toastIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}
.toast.success::before {
    content: '✓';
    color: #10B981;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}
.toast { max-width: 320px; line-height: 1.4; }
.toast .toast-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.toast .toast-title { font-weight: 600; font-size: 13.5px; color: var(--c-text-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toast .toast-sub { font-size: 12px; color: var(--c-text-3); }
.toast .toast-link { font-size: 12px; color: var(--c-amber); font-weight: 600; text-decoration: underline; }

/* === FINDER BRAND TILES (на синем блоке "Не знаете артикул") === */
.finder-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(255,255,255,0.97);
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: var(--radius-md);
    color: var(--c-text-1);
    font-size: 13px;
    font-weight: 600;
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    min-height: 56px;
}
.finder-brand:hover {
    transform: translateY(-2px);
    background: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.10);
}
.finder-brand-logo {
    width: 36px;
    height: 36px;
    background: #F8F9FB;
    border: 1px solid var(--c-border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}
.finder-brand-logo img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}
.finder-brand-fallback {
    font-size: 10px;
    font-weight: 800;
    color: var(--c-text-2);
    letter-spacing: 0.04em;
}
.finder-brand-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* === BRAND TILES (полная сетка марок) — все лого ровно по визуальному размеру === */
.brand-tile {
    min-height: 124px;
    padding: 18px 14px;
    gap: 12px;
    justify-content: center;
}
.brand-tile-logo-wrap {
    width: 100%;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.brand-tile img,
.brand-tile-logo-wrap img {
    width: 100%;
    height: 56px;
    max-width: 100%;
    max-height: 56px;
    object-fit: contain;
    object-position: center;
    opacity: 0.88;
    filter: none;
}
.brand-tile:hover img { opacity: 1; }
.brand-tile-fallback {
    width: 100%;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    color: var(--c-text-2);
    letter-spacing: 0.04em;
}

/* finder brand (мелкие плитки в блоке "Не знаете артикул") — лого тоже в фикс-боксе */
.finder-brand-logo img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}

/* === CARD ADD BUTTON — анимация +→✓ === */
.card-add-btn .icon-plus,
.card-add-btn .icon-check { transition: transform 0.32s var(--ease), opacity 0.22s ease; }
.card-add-btn .icon-check { position: absolute; opacity: 0; transform: scale(0.4) rotate(-90deg); }
.card-add-btn { position: relative; overflow: hidden; }
.card-add-btn.added {
    background: #10B981;
    color: #fff;
    box-shadow: 0 4px 14px rgba(16,185,129,0.32);
}
.card-add-btn.added .icon-plus { opacity: 0; transform: scale(0.4) rotate(90deg); }
.card-add-btn.added .icon-check { opacity: 1; transform: scale(1) rotate(0); }

/* === CART/CHECKOUT BUTTONS — единая ширина и компактнее === */
.cart-summary-btns { display: grid; grid-template-columns: 1fr; gap: 10px; }
.cart-summary-btns .btn { width: 100%; padding: 12px 18px; }
@media (min-width: 560px) { .cart-summary-btns { grid-template-columns: 1fr 1fr; } }

/* === Тёмные блоки (finder / cta) — белый текст без подсветок === */
.cta-block h2,
.finder h2 { color: #fff !important; }
.finder p { color: rgba(255,255,255,0.78) !important; }

/* ==================================================
   === МОБИЛЬНАЯ АДАПТАЦИЯ — полный проход ===
   ================================================== */

/* --- TABLET (≤1024) --- */
@media (max-width: 1023px) {
    .nav-links { display: none; }
    .container { padding: 0 18px; }
}

/* --- ПЛАНШЕТ/ТЕЛЕФОН (≤768) --- */
@media (max-width: 768px) {
    .topbar { display: none; }
    .nav-icon-btn.hide-mobile { display: none !important; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    /* Карточка товара — детальная */
    .product-grid { grid-template-columns: 1fr; }
    .product-info { padding: 24px; }
    .product-thumb { width: 56px; height: 56px; }
    /* Все категории/секции — компактнее */
    .section { padding: 48px 0; }
    .abento-section { padding: 48px 0; }
}

/* --- ТЕЛЕФОН (≤640) --- */
@media (max-width: 640px) {
    body { font-size: 14px; }
    .h1 { font-size: clamp(26px, 7vw, 38px); }
    .h2 { font-size: clamp(22px, 5.6vw, 28px); }
    .h3 { font-size: 17px; }
    .container { padding: 0 16px; }

    /* Глобально: любые inline grid 1fr 1fr / repeat(2,1fr) / repeat(3,1fr) → 1 столбец */
    [style*="grid-template-columns:1fr 1fr"],
    [style*="grid-template-columns: 1fr 1fr"],
    [style*="grid-template-columns:repeat(2,1fr)"],
    [style*="grid-template-columns: repeat(2,1fr)"],
    [style*="grid-template-columns:repeat(2, 1fr)"],
    [style*="grid-template-columns:repeat(3,1fr)"],
    [style*="grid-template-columns: repeat(3,1fr)"],
    [style*="grid-template-columns:repeat(3, 1fr)"] {
        grid-template-columns: 1fr !important;
    }
    /* Большие гэпы тоже в норму */
    [style*="gap:32px"], [style*="gap: 32px"] { gap: 16px !important; }

    /* Header */
    .nav-inner { height: 56px; gap: 10px; }
    .nav-logo span:first-child { width: 40px; height: 40px; }
    .nav-logo img { height: 30px; }
    .nav-actions { gap: 2px; }
    .nav-icon-btn { width: 36px; height: 36px; }

    /* Hero */
    .hero-content-section { padding: 32px 0 24px; }
    .hero-content-title { font-size: clamp(28px, 8vw, 42px); }
    .hero-content-cta { flex-direction: column; }
    .hero-content-cta .btn { width: 100%; }
    .hero-content-stats { grid-template-columns: repeat(2,1fr) !important; gap: 10px; }
    .hstat { padding: 12px; }
    .hstat-val { font-size: 20px; }

    /* Секции */
    .section { padding: 36px 0; }
    .abento-section { padding: 36px 0; }
    .section-head { gap: 14px; margin-bottom: 22px; }

    /* Финдер и CTA */
    .finder { padding: 28px 20px; }
    .finder .grid { grid-template-columns: 1fr; gap: 24px; }
    .cta-block { padding: 40px 20px; }
    .cta-block .btn { width: 100%; }

    /* Footer */
    .footer { padding: 40px 0 18px; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; margin-bottom: 24px; }

    /* Чат */
    .chat-panel { right: 8px; left: 8px; width: auto; bottom: 80px; max-width: none; }
    .chat-fab { bottom: 14px; right: 14px; width: 50px; height: 50px; }

    /* Карточки товара (сетка) */
    .card-foot { gap: 6px; }
    .card-price { font-size: 17px; }
    .card-add-btn { width: 34px; height: 34px; }

    /* Toast — на всю ширину минус отступы, без растягивания */
    .toast { min-width: 0; max-width: 100%; padding: 10px 14px; }
    #toast-container { top: 12px; right: 12px; left: 12px; }

    /* Хлебные крошки — мельче */
    .crumbs { font-size: 11px; flex-wrap: wrap; }

    /* Каталог: сайдбар сверху, не сбоку */
    .cat-layout { gap: 20px; }
    .sidebar { position: static !important; max-height: none !important; padding-left: 0 !important; direction: ltr; }

    /* Корзина — карточка товара в столбик */
    #cart-items > div > div > div[style*="display:flex"][style*="align-items:center"] {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }
    /* Кнопки корзины уже в 1fr через cart-summary-btns */
    .cart-summary-btns { grid-template-columns: 1fr; }
    .cart-summary-btns .btn { padding: 14px; }

    /* Карточка детали товара */
    .product-card { margin-bottom: 20px; }
    .product-info { padding: 20px; }
    .product-title { font-size: 20px; }
    .product-thumbs { gap: 6px; }
    .product-thumb { width: 48px; height: 48px; }

    /* Кнопки большие */
    .btn-lg { padding: 12px 16px; font-size: 14px; }
}

/* --- УЗКИЙ ТЕЛЕФОН (≤480) --- */
@media (max-width: 480px) {
    .container { padding: 0 14px; }
    .abento-grid { gap: 8px; }
    .grid.grid-cols-3 { grid-template-columns: repeat(2,1fr); }
    .grid.lg\:grid-cols-4 { grid-template-columns: 1fr 1fr; }
    .grid.lg\:grid-cols-6 { grid-template-columns: repeat(3,1fr); }
    .nav-logo span:first-child { width: 36px; height: 36px; }
    .nav-logo img { height: 26px; }
    .nav-logo span:last-child { font-size: 13px !important; }
    .h1 { font-size: clamp(24px, 8vw, 32px); }
    .hero-content-title { font-size: clamp(24px, 8vw, 32px); }
    .hero-content-stats { grid-template-columns: 1fr 1fr !important; }
    .footer-contact a { font-size: 12.5px; }
    .pagination a, .pagination span { min-width: 32px; height: 32px; font-size: 12px; }
}

/* --- ОЧЕНЬ УЗКИЙ (≤360) --- */
@media (max-width: 360px) {
    .nav-actions { gap: 0; }
    .nav-icon-btn { width: 32px; height: 32px; }
    .nav-logo span:last-child { display: none; }
}

/* === PAGINATION === */
.pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 32px;
    flex-wrap: wrap;
}
.pagination a, .pagination span {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 500;
    color: var(--c-text-2);
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    transition: all var(--dur) var(--ease);
}
.pagination a:hover { background: var(--c-surface-2); color: var(--c-text-1); border-color: var(--c-border-strong); }
.pagination .current {
    background: var(--c-amber);
    color: #1B3A5C;
    border-color: var(--c-amber);
    font-weight: 600;
}

/* === DOC LINK === */
.doc-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    color: var(--c-text-1);
    font-size: 13.5px;
    font-weight: 500;
    transition: all var(--dur) var(--ease);
    margin: 0 6px 6px 0;
}
.doc-link svg { width: 16px; height: 16px; color: var(--c-amber); }
.doc-link:hover { background: var(--c-surface-2); border-color: var(--c-border-strong); transform: translateY(-1px); }

/* === LAZY IMAGE FADE === */
img[loading="lazy"] { opacity: 0; transition: opacity 0.4s ease; }
img[loading="lazy"].loaded,
img[loading="lazy"][src] { opacity: 1; }

/* === ACCESSIBILITY === */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
:focus-visible { outline: 2px solid var(--c-amber); outline-offset: 2px; border-radius: 6px; }
button:focus-visible, a:focus-visible { outline-offset: 3px; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: none; }

/* === ANTI-JITTER: GPU layer + explicit linear-out transitions for all hover cards === */
:root {
    --ease-card: cubic-bezier(0.4, 0, 0.2, 1); /* Material standard — без эластичного хвоста */
    --dur-card: 180ms;
}
/* Только РОДИТЕЛЬСКИЕ карточки получают свой композиторный слой.
   Текст и медиа внутри должны рисоваться в слое родителя, чтобы ехать с ним
   как единое целое — без «всплывания» во время анимации. */
.abento-cell,
.cat-tile,
.step,
.card,
.chat-link,
.chat-fab,
.social-row a,
.scroll-top,
.doc-link,
.card-add-btn,
.section-link,
.abento-all-link {
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
}
/* Глобальное сглаживание для устойчивого рендера текста под transform */
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
/* ВНУТРЕННИЕ элементы (текст, иконки): только сглаживание + sub-pixel-перевод выключен.
   НИКАКОГО will-change или translateZ — иначе они отделяются в свой слой и расходятся. */
.abento-name,
.cat-tile-name,
.card-title,
.step-title,
.abento-icon,
.cat-tile-icon,
.abento-arrow {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transform: none;
    will-change: auto;
}
.abento-cell { transition: transform var(--dur-card) var(--ease-card), box-shadow var(--dur-card) var(--ease-card), border-color var(--dur-card) var(--ease-card), background-color var(--dur-card) var(--ease-card) !important; }
.cat-tile { transition: transform var(--dur-card) var(--ease-card), box-shadow var(--dur-card) var(--ease-card), border-color var(--dur-card) var(--ease-card), background-color var(--dur-card) var(--ease-card) !important; }
.step { transition: transform var(--dur-card) var(--ease-card), box-shadow var(--dur-card) var(--ease-card), border-color var(--dur-card) var(--ease-card), background-color var(--dur-card) var(--ease-card) !important; }
.card { transition: transform var(--dur-card) var(--ease-card), box-shadow var(--dur-card) var(--ease-card), border-color var(--dur-card) var(--ease-card) !important; }
.chat-link { transition: transform var(--dur-card) var(--ease-card), box-shadow var(--dur-card) var(--ease-card), border-color var(--dur-card) var(--ease-card), background-color var(--dur-card) var(--ease-card) !important; }
.social-row a { transition: transform var(--dur-card) var(--ease-card), background-color var(--dur-card) var(--ease-card), border-color var(--dur-card) var(--ease-card) !important; }
.scroll-top { transition: transform var(--dur-card) var(--ease-card), background-color var(--dur-card) var(--ease-card), border-color var(--dur-card) var(--ease-card), color var(--dur-card) var(--ease-card) !important; }
.doc-link { transition: transform var(--dur-card) var(--ease-card), background-color var(--dur-card) var(--ease-card), border-color var(--dur-card) var(--ease-card) !important; }
.abento-cell:hover { transform: translate3d(0,-3px,0); }
.cat-tile:hover { transform: translate3d(0,-2px,0); }
.step:hover { transform: translate3d(0,-2px,0); }
.social-row a:hover { transform: translate3d(0,-2px,0); }
.scroll-top:hover { transform: translate3d(0,-2px,0); }
.doc-link:hover { transform: translate3d(0,-1px,0); }
.chat-link.primary:hover { transform: translate3d(0,-1px,0); }
.card-add-btn:hover { transform: translate3d(0,-1px,0); }
/* Children inside hover cards — same easing/duration as parent */
.card .card-image img { transition: transform var(--dur-card) var(--ease-card) !important; }
.abento-icon { transition: background-color var(--dur-card) var(--ease-card), border-color var(--dur-card) var(--ease-card), color var(--dur-card) var(--ease-card) !important; }
.abento-icon img { transition: opacity var(--dur-card) var(--ease-card) !important; }
.abento-name { transition: color var(--dur-card) var(--ease-card) !important; }
