/* ============================================
   EXON IMPEX — Modern Design System v2
   ============================================ */

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

/* ===== Tokens (Light) ===== */
:root {
    /* Brand */
    --brand: #0f8e89;
    --brand-2: #2b8ca0;
    --brand-glow: rgba(15, 142, 137, 0.35);
    --gradient-brand: linear-gradient(135deg, #0f8e89 0%, #2b8ca0 50%, #286c9e 100%);
    --gradient-warm: linear-gradient(135deg, #ff8a3d 0%, #d98a12 100%);
    --gradient-cool: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    --gradient-mesh: radial-gradient(at 25% 15%, rgba(15, 142, 137, 0.18) 0px, transparent 50%),
                     radial-gradient(at 80% 0%, rgba(99, 102, 241, 0.15) 0px, transparent 50%),
                     radial-gradient(at 80% 90%, rgba(236, 72, 153, 0.12) 0px, transparent 50%);

    /* Surface */
    --bg: #fafaf9;
    --bg-soft: #f3f6f8;
    --surface: #ffffff;
    --surface-2: #f8fafc;
    --surface-glass: rgba(255, 255, 255, 0.72);
    --line: #e5eaf0;
    --line-soft: #eef2f6;

    /* Ink */
    --ink: #0f172a;
    --ink-2: #1f2937;
    --muted: #64748b;
    --muted-soft: #94a3b8;

    /* Status */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;

    /* Effects */
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 18px 50px rgba(15, 23, 42, 0.12);
    --shadow-xl: 0 28px 70px rgba(15, 23, 42, 0.15);
    --shadow-glow: 0 10px 32px var(--brand-glow);

    /* Geometry */
    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-pill: 999px;

    /* Motion */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

    /* Type */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
}

/* ===== Tokens (Dark) ===== */
[data-theme="dark"] {
    --bg: #0a0e17;
    --bg-soft: #0f172a;
    --surface: #131b2a;
    --surface-2: #1a2333;
    --surface-glass: rgba(19, 27, 42, 0.72);
    --line: #1f2a3d;
    --line-soft: #182232;

    --ink: #f1f5f9;
    --ink-2: #e2e8f0;
    --muted: #94a3b8;
    --muted-soft: #64748b;

    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.5);
    --gradient-mesh: radial-gradient(at 25% 15%, rgba(15, 142, 137, 0.22) 0px, transparent 50%),
                     radial-gradient(at 80% 0%, rgba(99, 102, 241, 0.18) 0px, transparent 50%),
                     radial-gradient(at 80% 90%, rgba(236, 72, 153, 0.15) 0px, transparent 50%);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.5;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
a { color: inherit; text-decoration: none; transition: color 0.2s var(--ease); }
img { max-width: 100%; display: block; }
::selection { background: var(--brand); color: #fff; }

h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.02em; color: var(--ink); }

/* ===== Layout ===== */
.wrap { width: min(1200px, calc(100% - 32px)); margin: 0 auto; }

/* ===== Header (Glassmorphism) ===== */
.top {
    border-bottom: 1px solid var(--line);
    background: var(--surface-glass);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    position: sticky;
    top: 0;
    z-index: 50;
    transition: box-shadow 0.25s var(--ease);
}
.top.is-scrolled {
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}
.top.is-scrolled .masthead { min-height: 78px; }
.topline {
    background: linear-gradient(135deg, #0f172a 0%, #18334f 50%, #1e293b 100%);
    color: #e2e8f0;
    font-size: 12.5px;
    padding: 9px max(16px, calc((100% - 1180px) / 2));
    display: flex;
    justify-content: space-between;
    gap: 18px;
    font-weight: 500;
}
.topline a { transition: color 0.2s var(--ease); }
.topline a:hover { color: #5ab0c2; }
.topline__links { display: flex; gap: 18px; flex-wrap: wrap; }

.masthead {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 96px;
    display: grid;
    grid-template-columns: 250px 1fr auto;
    gap: 24px;
    align-items: center;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark { width: 46px; height: 46px; display: grid; place-items: center; background: var(--gradient-brand); color: #fff; font-weight: 800; border-radius: var(--radius-sm); }
.brand__logo { width: 232px; height: 96px; object-fit: contain; }
.brand__text { display: none; }
.logo { --logo-arrow-dark: #1f4a73; --logo-arrow-light: #5da5bc; --logo-ring: #1f4a73; --logo-text: #1f4a73; display: inline-flex; align-items: center; gap: 14px; font-family: var(--font-display); color: var(--logo-ring); }
.logo--dark { --logo-arrow-dark: #5da5bc; --logo-arrow-light: #8ec8d6; --logo-ring: #8ec8d6; --logo-text: #eaf8fb; }
.logo__icon { width: 56px; height: 56px; display: block; flex: 0 0 auto; }
.logo__icon svg { width: 100%; height: 100%; display: block; transition: transform 0.4s var(--ease-out); }
.brand:hover .logo__icon svg { transform: rotate(8deg) scale(1.05); }
.logo__text { display: grid; gap: 2px; }
.logo__exon { color: var(--logo-text); font-size: 30px; font-weight: 800; line-height: .9; letter-spacing: 1px; }
.logo__impex { color: var(--logo-text); font-size: 13px; font-weight: 700; line-height: 1; letter-spacing: 2.4px; }

[data-theme="dark"] .logo { --logo-text: #e2e8f0; --logo-ring: #8ec8d6; --logo-arrow-dark: #5da5bc; --logo-arrow-light: #8ec8d6; }

.search {
    display: grid;
    grid-template-columns: 1fr auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    overflow: hidden;
    background: var(--surface);
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-glow); }
.search input { border: 0; outline: 0; padding: 13px 20px; font: inherit; width: 100%; background: transparent; color: var(--ink); }
.search input::placeholder { color: var(--muted-soft); }
.search button { border-radius: 0; padding: 0 22px; background: var(--gradient-brand); }

.filters input, .form input, .form textarea, .subscribe input {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font: inherit;
    width: 100%;
    background: var(--surface);
    color: var(--ink);
    outline: 0;
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.filters input:focus, .form input:focus, .form textarea:focus, .subscribe input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px var(--brand-glow);
}

button, .btn {
    border: 0;
    background: var(--gradient-brand);
    color: #fff;
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    font-family: inherit;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease), filter 0.2s var(--ease);
    position: relative;
    overflow: hidden;
}
button:hover, .btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-glow); filter: brightness(1.05); }
button:active, .btn:active { transform: translateY(0); }
.ghost, .btn--light {
    background: var(--surface-2);
    color: var(--brand);
    border: 1px solid var(--line);
    box-shadow: none;
}
.ghost:hover, .btn--light:hover { background: var(--bg-soft); }
.danger { background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%); }

.quick { display: flex; align-items: center; gap: 10px; font-size: 14px; white-space: nowrap; }
.quick a { padding: 8px 12px; border-radius: var(--radius-sm); font-weight: 500; color: var(--muted); transition: all 0.2s var(--ease); }
.quick a:hover { background: var(--surface-2); color: var(--ink); }
.quick__cart { color: var(--brand) !important; font-weight: 700 !important; }
.quick__logo { display: inline-flex; align-items: center; padding: 0 0 0 6px !important; color: inherit !important; background: transparent !important; }
.quick__logo:hover { background: transparent !important; transform: translateY(-1px); }
.quick__logo .logo { gap: 8px; }
.quick__logo .logo__icon { width: 42px; height: 42px; }
.quick__logo .logo__exon { font-size: 23px; letter-spacing: .7px; }
.quick__logo .logo__impex { font-size: 10px; letter-spacing: 1.8px; }
.quick__icon { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0 !important; border: 1px solid var(--line); border-radius: 50%; background: var(--surface-2); color: var(--ink) !important; transition: all 0.2s var(--ease); }
.quick__icon:hover { background: var(--brand) !important; border-color: var(--brand); color: #fff !important; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.quick__icon svg { display: block; }
.quick__badge { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; line-height: 1; box-shadow: 0 0 0 2px var(--surface); }.quick__admin { padding: 9px 14px !important; border-radius: var(--radius-sm); background: var(--gradient-brand); color: #fff !important; font-weight: 700 !important; box-shadow: var(--shadow-sm); }
.quick__admin:hover { box-shadow: var(--shadow-glow); transform: translateY(-1px); background: var(--gradient-brand) !important; color: #fff !important; }

.lang-switch { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); }
.lang-switch a { min-width: 34px; text-align: center; padding: 6px 8px; border-radius: 6px; font-weight: 700; font-size: 12px; color: var(--muted); }
.lang-switch a.active { background: var(--gradient-brand); color: #fff; box-shadow: var(--shadow-sm); }

/* Theme toggle */
.theme-toggle {
    width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    color: var(--ink);
    border: 1px solid var(--line);
    box-shadow: none;
    transition: all 0.25s var(--ease);
}
.theme-toggle:hover { background: var(--bg-soft); transform: rotate(-15deg) translateY(-1px); box-shadow: var(--shadow-sm); }
.theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: block; }

/* Hamburger */
.hamburger { display: none; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); width: 44px; height: 44px; padding: 0; cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px; min-height: 44px; box-shadow: none; }
.hamburger:hover { background: var(--bg-soft); transform: none; box-shadow: none; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .25s var(--ease); }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Nav scroller */
.nav { width: min(1200px, calc(100% - 32px)); margin: 0 auto; min-height: 50px; display: flex; align-items: center; gap: 0; overflow: hidden; position: relative; border-top: 1px solid var(--line-soft); }
.nav__track { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; padding-right: 10px; animation: nav-slide 38s linear infinite; }
.nav--single .nav__track[aria-hidden="true"] { display: none; }
.nav:hover .nav__track { animation-play-state: paused; }
.nav a { padding: 12px 14px; color: var(--muted); font-size: 13.5px; font-weight: 500; border-radius: var(--radius-sm); white-space: nowrap; transition: all 0.2s var(--ease); }
.nav a:hover { background: var(--surface-2); color: var(--brand); }
@keyframes nav-slide { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* ===== Hero ===== */
.hero {
    background: var(--bg);
    background-image: var(--gradient-mesh);
    border-bottom: 1px solid var(--line);
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(15, 142, 137, 0.12), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: float-blob 18s ease-in-out infinite;
}
@keyframes float-blob {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-40px, 30px) scale(1.08); }
}
.hero__grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 40px; align-items: center; padding: 56px 0 64px; position: relative; z-index: 1; }
.hero__copy h1 { font-family: var(--font-display); font-size: clamp(36px, 4.6vw, 60px); line-height: 1.05; margin: 12px 0 18px; letter-spacing: -0.025em; font-weight: 800; }
.hero__copy h1 .accent { background: var(--gradient-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__copy p { color: var(--muted); font-size: 17px; line-height: 1.6; max-width: 520px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.hero__stats { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.hero__stats span { background: var(--surface); border: 1px solid var(--line); padding: 12px 16px; border-radius: var(--radius-md); color: var(--muted); font-size: 13px; box-shadow: var(--shadow-xs); transition: transform 0.2s var(--ease); }
.hero__stats span:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.hero__stats strong { color: var(--ink); font-weight: 700; }
.hero__image { border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden; }
.hero-slider { overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-lg); }
.hero-slider__track { display: flex; width: max-content; animation: hero-products 50s linear infinite; }
.hero-slider:hover .hero-slider__track { animation-play-state: paused; }
.hero-slide { width: 320px; min-height: 300px; display: grid; align-content: start; gap: 9px; padding: 18px; border-right: 1px solid var(--line); background: var(--surface); }
.hero-slide img { width: 100%; aspect-ratio: 18 / 13; object-fit: contain; border-radius: var(--radius-sm); background: var(--bg-soft); border: 1px solid var(--line-soft); }
.hero-slide span { color: var(--brand); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.hero-slide strong { color: var(--ink); line-height: 1.3; font-weight: 600; }
.hero-slide small { color: var(--muted); font-weight: 600; }
@keyframes hero-products { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===== Common section blocks ===== */
.eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: 11.5px; color: var(--brand); font-weight: 700; margin: 0 0 8px; display: inline-block; padding: 5px 10px; background: rgba(15, 142, 137, 0.08); border-radius: var(--radius-pill); }
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 32px 0; }
.benefits div { padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease), border-color 0.2s var(--ease); }
.benefits div:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--brand); }
.benefits strong { display: block; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.benefits span { color: var(--muted); font-size: 13.5px; }

.panel, .category, .product, .articles article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); }
.section { padding: 56px 0; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section__head h2, .consult h2, .page-title h1 { font-family: var(--font-display); font-size: clamp(26px, 3.2vw, 38px); line-height: 1.15; margin: 0; letter-spacing: -0.02em; font-weight: 800; }
.section__head a { color: var(--brand); font-weight: 600; transition: gap 0.2s var(--ease); display: inline-flex; align-items: center; gap: 4px; }
.section__head a:hover { gap: 8px; }

/* ===== Categories ===== */
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.category { padding: 22px; min-height: 154px; display: flex; flex-direction: column; gap: 10px; transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease), border-color 0.2s var(--ease); position: relative; overflow: hidden; }
.category::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--gradient-brand); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease-out); }
.category:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand); }
.category:hover::before { transform: scaleX(1); }
.category span { width: 44px; height: 44px; display: grid; place-items: center; background: rgba(15, 142, 137, 0.1); color: var(--brand); border-radius: var(--radius-sm); font-weight: 700; }
.category small { color: var(--muted); line-height: 1.5; }
.band { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ===== Products ===== */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.product { overflow: hidden; display: flex; flex-direction: column; min-height: 100%; transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease), border-color 0.2s var(--ease); position: relative; }
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--brand); }
.product__image { position: relative; aspect-ratio: 18 / 13; background: linear-gradient(135deg, var(--surface-2) 0%, var(--bg-soft) 100%); border-bottom: 1px solid var(--line); overflow: hidden; }
.product__image img { width: 100%; height: 100%; object-fit: contain; padding: 14px; transition: transform 0.5s var(--ease-out); }
.product:hover .product__image img { transform: scale(1.06); }
.badge { position: absolute; left: 12px; top: 12px; background: var(--surface); color: var(--brand); border: 1px solid rgba(15, 142, 137, 0.25); border-radius: var(--radius-pill); padding: 5px 12px; font-size: 11.5px; font-weight: 700; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.product__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.sku { color: var(--muted-soft); font-size: 11.5px; margin: 0; font-weight: 500; letter-spacing: 0.04em; }
.product h3 { font-family: var(--font-sans); font-size: 16px; line-height: 1.35; margin: 0; font-weight: 600; letter-spacing: 0; }
.product p { color: var(--muted); line-height: 1.5; margin: 0; font-size: 13.5px; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; margin-top: auto; padding-top: 8px; }
.price strong { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.price span { color: var(--muted-soft); text-decoration: line-through; font-size: 12px; white-space: nowrap; }
.product__actions { display: flex; gap: 8px; justify-content: flex-start; }
.product__actions form, .product-detail__actions form { margin: 0; }
.product__actions button { width: 44px; height: 44px; padding: 0 !important; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.product__actions button svg { flex-shrink: 0; }
.product__fav.is-active { background: #fff0f1 !important; border-color: #ef4444 !important; color: #ef4444 !important; }
.product__fav.is-active svg { fill: #ef4444; stroke: #ef4444; }
.product__fav:hover { color: #ef4444 !important; border-color: #ef4444 !important; }

.compare-section { display: grid; gap: 22px; }
.compare-cats { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.compare-cats a { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 9px; padding: 10px 15px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--surface); color: var(--ink); font-weight: 600; font-size: 13px; transition: all 0.2s var(--ease); }
.compare-cats a:hover { border-color: var(--brand); color: var(--brand); }
.compare-cats a.active { background: var(--gradient-brand); border-color: transparent; color: #fff; box-shadow: var(--shadow-sm); }
.compare-cats strong { min-width: 22px; height: 22px; display: grid; place-items: center; border-radius: var(--radius-pill); background: rgba(15, 142, 137, 0.1); color: var(--brand); font-size: 11px; font-weight: 700; }
.compare-cats a.active strong { background: rgba(255,255,255,.2); color: #fff; }

/* ===== Articles ===== */
.articles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.articles article { padding: 24px; transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease); }
.articles article:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.articles time { color: var(--muted-soft); font-size: 12.5px; font-weight: 500; }
.articles h3 { margin: 12px 0; font-size: 19px; line-height: 1.3; }
.articles p { color: var(--muted); line-height: 1.55; }
.articles a { color: var(--brand); font-weight: 600; }

/* ===== Partners ===== */
.partners { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.partners--slider { display: flex; gap: 18px; overflow: hidden; position: relative; }
.partners__track { flex: 0 0 auto; display: flex; gap: 18px; min-width: max-content; animation: partners-slide 32s linear infinite; }
.partners--slider:hover .partners__track { animation-play-state: paused; }
.partner-card { width: 280px; min-height: 150px; display: grid; place-items: center; gap: 12px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); text-align: center; transition: transform .25s var(--ease-out), box-shadow .25s var(--ease), border-color .2s var(--ease); }
.partner-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--brand); }
.partner-card img { max-width: 160px; max-height: 76px; object-fit: contain; filter: grayscale(0.3); transition: filter 0.3s var(--ease); }
.partner-card:hover img { filter: grayscale(0); }
.partner-card strong { font-size: 15px; color: var(--ink); }
@keyframes partners-slide { from { transform: translateX(0); } to { transform: translateX(calc(-100% - 18px)); } }

/* ===== Consult / Footer band ===== */
.consult { padding: 56px 0; }
.consult__grid { display: grid; grid-template-columns: 1fr 440px; gap: 32px; align-items: center; }
.form { padding: 24px; display: grid; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }

.footer { background: linear-gradient(180deg, #0f172a 0%, #020617 100%); color: #cbd5e1; padding: 56px 0 32px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.footer h3 { color: #f1f5f9; font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; font-weight: 700; }
.footer p, .footer small { color: #94a3b8; line-height: 1.6; }
.footer a { display: block; color: #cbd5e1; margin: 8px 0; font-size: 14px; transition: color 0.2s var(--ease), padding-left 0.2s var(--ease); }
.footer a:hover { color: #5ab0c2; padding-left: 4px; }
.brand--footer .brand__mark { background: var(--gradient-warm); }
.brand--footer .logo__icon { width: 48px; height: 48px; }
.brand--footer .logo__exon { font-size: 24px; }
.brand--footer .logo__impex { font-size: 11px; letter-spacing: 2.2px; }
.subscribe { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 14px; }
.subscribe input { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); color: #f1f5f9; }
.subscribe input::placeholder { color: #64748b; }
.subscribe input:focus { border-color: #5ab0c2; box-shadow: 0 0 0 3px rgba(90, 176, 194, 0.2); }
.subscribe button { background: var(--gradient-warm); }

/* ===== Page titles ===== */
.page-title { padding: 48px 0 26px; position: relative; }
.page-title p { color: var(--muted); font-size: 16px; }

/* ===== Catalog ===== */
.catalog-layout { display: grid; grid-template-columns: 270px 1fr; gap: 28px; padding-bottom: 56px; }
.sidebar { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 16px; align-self: start; position: sticky; top: 130px; max-height: calc(100vh - 150px); overflow: auto; background: var(--surface); }
.sidebar h3 { margin: 4px 8px 12px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.sidebar a { display: block; padding: 9px 10px; border-radius: var(--radius-xs); color: var(--ink-2); font-size: 13.5px; font-weight: 500; transition: all 0.15s var(--ease); }
.sidebar a:hover, .sidebar a.active { background: rgba(15, 142, 137, 0.08); color: var(--brand); }
.filters { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-bottom: 16px; }
.found { color: var(--muted); font-size: 14px; margin-bottom: 16px; }

/* ===== Product detail ===== */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 42px; padding: 48px 0; }
.product-detail__image { aspect-ratio: 18 / 13; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: linear-gradient(135deg, var(--surface) 0%, var(--bg-soft) 100%); display: grid; place-items: center; box-shadow: var(--shadow-md); }
.product-detail__image img { width: 100%; height: 100%; object-fit: contain; padding: 24px; }
.product-detail__body h1 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; margin: 14px 0; }
.product-detail__body p { color: var(--muted); line-height: 1.6; font-size: 15px; }
.breadcrumb { color: var(--brand); font-weight: 600; font-size: 13px; }
.price--big strong { font-size: 34px; }
.features { padding-left: 22px; color: var(--ink-2); line-height: 1.9; }
.product-detail__actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 26px; }
.qty { width: 76px; min-height: 44px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px; background: var(--surface); color: var(--ink); }

/* ===== Cart / Contacts ===== */
.cart-layout, .contacts-layout { display: grid; grid-template-columns: 1fr 380px; gap: 28px; padding-bottom: 56px; }
.panel { padding: 22px; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td { border-bottom: 1px solid var(--line); padding: 14px 12px; text-align: left; font-size: 14px; }
.cart-table th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.cart-table input { width: 76px; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); }
.cart-total { display: flex; justify-content: space-between; align-items: center; padding-top: 18px; }
.contact-card p { color: var(--muted); line-height: 1.7; }

/* ===== Article page ===== */
.article-page { padding: 48px 0; max-width: 820px; }
.article-page h1 { font-size: clamp(32px, 4vw, 46px); line-height: 1.1; }
.article-page p { color: var(--muted); line-height: 1.75; font-size: 17px; }

/* ===== Admin ===== */
.admin-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; padding-bottom: 24px; }
.dashboard-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 28px; }
.dashboard-head h1 { margin: 0; font-size: 36px; line-height: 1; font-weight: 700; }
.dashboard-head p { margin: 8px 0 0; color: var(--muted); }
.dashboard-filters { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
.dashboard-filters label { position: relative; min-width: 200px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.dashboard-filters label::after { content: ""; position: absolute; right: 16px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.dashboard-filters label span { position: absolute; top: -9px; left: 11px; padding: 0 6px; background: var(--surface); color: var(--muted); font-size: 12px; }
.dashboard-filters select { width: 100%; min-height: 52px; border: 0; background: transparent; appearance: none; padding: 17px 42px 9px 14px; font: inherit; color: var(--ink); outline: 0; }

.admin-dashboard { display: grid; grid-template-columns: repeat(4, minmax(180px, 1fr)); gap: 20px; margin-bottom: 28px; }
.admin-dashboard .metric { position: relative; min-height: 120px; overflow: hidden; border: 0; border-radius: var(--radius-md); padding: 22px 26px; color: #fff; box-shadow: var(--shadow-md); transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease); }
.admin-dashboard .metric:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.admin-dashboard .metric--violet { background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%); }
.admin-dashboard .metric--amber { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.admin-dashboard .metric--magenta { background: linear-gradient(135deg, #ec4899 0%, #be185d 100%); }
.admin-dashboard .metric--teal { background: var(--gradient-brand); }
.admin-dashboard .metric strong { position: relative; z-index: 1; display: block; color: #fff; font-size: 28px; line-height: 1.05; font-weight: 700; letter-spacing: -0.01em; }
.admin-dashboard .metric span { position: relative; z-index: 1; display: block; margin-top: 6px; color: rgba(255, 255, 255, .9); font-size: 14px; font-weight: 600; }
.admin-dashboard .metric small { position: relative; z-index: 1; display: block; margin-top: 14px; color: rgba(255, 255, 255, .8); font-weight: 600; font-size: 12px; }
.admin-dashboard .metric em { position: absolute; right: 22px; top: 18px; width: 48px; height: 48px; display: grid; place-items: center; border-radius: var(--radius-pill); background: rgba(255, 255, 255, .2); color: #fff; font-style: normal; font-size: 12px; font-weight: 800; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

.admin-status-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 22px; }
.admin-status-grid .metric { position: relative; overflow: hidden; border: 1px solid var(--line); border-left: 5px solid var(--card-accent, var(--brand)); border-radius: var(--radius-md); padding: 18px 20px; background: var(--surface); box-shadow: var(--shadow-sm); }
.admin-status-grid .metric:nth-child(1) { --card-accent: #38bdf8; }
.admin-status-grid .metric:nth-child(2) { --card-accent: #f59e0b; }
.admin-status-grid .metric:nth-child(3) { --card-accent: #22c55e; }
.metric span { position: relative; z-index: 1; color: var(--muted); display: block; font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.metric strong { position: relative; z-index: 1; font-size: 28px; display: block; margin-top: 8px; letter-spacing: -0.01em; color: var(--card-accent, var(--ink)); font-weight: 700; }
.admin-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-bottom: 48px; }
.admin-monitor {
    column-count: 2;
    column-gap: 24px;
    column-fill: balance;
}
.admin-monitor > section {
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    margin-bottom: 24px;
    display: block;
    width: 100%;
}
.admin-monitor .dash-panel--wide,
.admin-monitor .dash-panel--summary {
    column-span: all;
    -webkit-column-span: all;
}
.dash-panel { overflow: hidden; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-md); }
.dash-panel__head { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 22px 24px; background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%); color: #fff; }
.dash-panel__head h2 { margin: 0; font-size: 19px; line-height: 1.05; color: #fff; font-weight: 700; }
.dash-panel__head span { display: block; margin-top: 5px; color: rgba(255, 255, 255, .85); font-weight: 600; font-size: 13px; }
.dash-actions { display: flex; gap: 18px; color: #fff; font-size: 22px; font-weight: 800; }
.dash-panel > h2 { margin: 0; padding: 22px 22px 6px; font-size: 19px; }
.dash-panel > p { margin: 0; padding: 0 22px 18px; color: var(--muted); }
.dash-panel .monitor-row { margin: 0 22px; }
.revenue-board { display: grid; grid-template-columns: 158px minmax(0, 1fr); gap: 26px; padding: 28px 24px; }
.revenue-summary { display: grid; align-content: start; gap: 9px; }
.revenue-summary small { color: var(--muted); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.revenue-summary strong { color: var(--ink); font-size: 26px; font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; }
.revenue-summary .goal { color: var(--success); }
.bar-chart { min-height: 280px; display: grid; grid-template-columns: repeat(auto-fit, minmax(48px, 1fr)); gap: 22px; align-items: end; padding: 10px 0 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 100% 56px, 97px 100%; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.bar-month { min-width: 0; display: grid; grid-template-rows: 238px auto; gap: 8px; align-items: end; text-align: center; color: var(--muted); font-size: 12px; font-weight: 600; }
.bar-pair { height: 238px; display: flex; justify-content: center; align-items: end; gap: 8px; }
.bar { width: min(32px, 42%); border-radius: 6px 6px 0 0; min-height: 5px; transition: height .5s var(--ease-out); }
.bar--previous { background: linear-gradient(180deg, #c4b5fd 0%, #a78bfa 100%); }
.bar--current { background: linear-gradient(180deg, #8b5cf6 0%, #6d28d9 100%); }
.segment-chart { min-height: 340px; padding: 30px 24px; display: grid; align-content: center; gap: 22px; }
.pie { width: min(264px, 82%); aspect-ratio: 1; border-radius: var(--radius-pill); margin: 0 auto; position: relative; box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .05); }
.pie::after { content: ""; position: absolute; inset: 34%; border-radius: inherit; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.segment-legend { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.segment-legend span { display: inline-flex; align-items: center; gap: 7px; }
.segment-legend i { width: 36px; height: 8px; display: inline-block; border-radius: 4px; }
.admin-monitor h2 { margin: 0 0 14px; font-size: 18px; }
.admin-monitor .dash-panel__head h2 { margin: 0; font-size: 19px; }
.monitor-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 14px 0 14px 16px; border-top: 1px solid var(--line-soft); }
.monitor-row::before { content: ""; position: absolute; left: 0; top: 16px; width: 5px; height: 24px; border-radius: var(--radius-pill); background: var(--card-accent, var(--brand)); animation: status-pulse 2.6s ease-in-out infinite; }
.monitor-row:first-of-type { border-top: 0; }
.monitor-row span { font-weight: 600; overflow-wrap: anywhere; }
.monitor-row small { color: var(--muted); }
.monitor-row strong { color: var(--card-accent, var(--ink)); text-align: right; white-space: nowrap; font-weight: 700; }

.status-badge { display: inline-flex; align-items: center; min-height: 24px; padding: 4px 11px; border-radius: var(--radius-pill); font-size: 11.5px; font-weight: 700; line-height: 1; vertical-align: middle; border: 1px solid transparent; }
.status-badge--new { color: #0369a1; background: #e0f2fe; border-color: #bae6fd; }
.status-badge--pending { color: #92400e; background: #fef3c7; border-color: #fde68a; }
.status-badge--confirmed { color: #166534; background: #dcfce7; border-color: #bbf7d0; }
.status-badge--cancelled, .status-badge--deleted { color: #991b1b; background: #fee2e2; border-color: #fecaca; }
.stat-updating { animation: stat-pop .45s var(--ease-out); }

@keyframes status-pulse { 0%, 100% { opacity: .5; transform: scaleY(.8); } 50% { opacity: 1; transform: scaleY(1); } }
@keyframes stat-pop { 0% { transform: scale(.96); } 55% { transform: scale(1.05); } 100% { transform: scale(1); } }

.admin-login { min-height: 60vh; display: grid; place-items: center; padding: 48px 0; }
.admin-login__box { width: min(420px, 100%); display: grid; gap: 14px; padding: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.admin-login__box h1 { margin: 0 0 8px; }
.admin-login__box label { display: grid; gap: 7px; font-weight: 600; color: var(--ink); font-size: 13px; }
.admin-login__box input { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; background: var(--surface); color: var(--ink); }
.adminbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; color: var(--muted); font-weight: 600; font-size: 13px; }
.adminbar form { margin: 0; }

.admin-shell { width: calc(100% - 32px); max-width: none; margin-left: 16px; margin-right: 16px; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 22px; padding: 24px 0 48px; align-items: start; }
.admin-side { position: sticky; top: 18px; display: grid; gap: 10px; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 16px; background: var(--surface); box-shadow: var(--shadow-sm); }
.admin-side__head { display: grid; gap: 4px; padding: 6px 6px 14px; border-bottom: 1px solid var(--line); }
.admin-side__head small { color: var(--muted); font-size: 12px; }
.admin-side a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 13px; border-radius: var(--radius-sm); color: var(--ink); font-weight: 600; font-size: 14px; transition: all 0.15s var(--ease); }
.admin-side a:hover { background: var(--surface-2); }
.admin-side a.active { background: var(--gradient-brand); color: #fff; box-shadow: var(--shadow-sm); }
.admin-side__links { display: grid; gap: 7px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.admin-side__links small { padding: 0 4px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 11px; }
.admin-side__links a { padding: 9px 12px; background: var(--surface-2); border: 1px solid var(--line); }
.admin-side__links a strong { color: var(--brand); }
.admin-side button { width: 100%; }
.admin-work { min-width: 0; display: grid; gap: 16px; }
.admin-work__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 4px 0; }
.admin-work__head h1 { margin: 0; font-size: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 10px 14px; border-radius: var(--radius-sm); font-weight: 600; }

.admin-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.admin-form label { display: grid; gap: 6px; font-weight: 600; color: var(--ink); font-size: 13px; }
.admin-form input, .admin-form select, .admin-form textarea { width: 100%; min-height: 42px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; background: var(--surface); color: var(--ink); }
.admin-form input[type="checkbox"] { width: auto; min-height: 0; }
.admin-form .span-2 { grid-column: 1 / -1; }

.admin-table { display: grid; gap: 10px; background: transparent; border: 0; padding: 0; }
.admin-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-xs); transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease); }
.admin-row:hover { box-shadow: var(--shadow-sm); }
.admin-row--product { grid-template-columns: 82px minmax(0, 1fr) auto auto; }
.admin-row--request { grid-template-columns: minmax(190px, .9fr) minmax(220px, 1fr) auto; align-items: start; }
.admin-row--request p { margin: 0; color: var(--ink-2); line-height: 1.5; overflow-wrap: anywhere; font-size: 14px; }
.admin-row--request time { color: var(--muted); font-size: 12.5px; white-space: nowrap; }

.admin-order { display: grid; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-xs); }
.admin-order__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: start; }
.admin-order__head small, .admin-order__items small { display: block; margin-top: 5px; color: var(--muted); }
.admin-order__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-order__actions form { margin: 0; }
.admin-order__actions button { min-height: 38px; padding: 9px 13px; }
.admin-order > p { margin: 0; color: var(--ink-2); line-height: 1.5; }
.admin-order__items { display: grid; gap: 8px; }
.admin-order__items div { display: grid; grid-template-columns: minmax(0, 1fr) 150px 140px; gap: 10px; align-items: center; padding: 11px 14px; border-radius: var(--radius-sm); background: var(--surface-2); }
.admin-order__items span { overflow-wrap: anywhere; font-weight: 600; }
.admin-order__items strong { text-align: right; font-weight: 700; }

.admin-thumb { width: 82px; height: 58px; object-fit: contain; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.admin-row > div { min-width: 0; }
.admin-row strong { display: block; overflow-wrap: anywhere; line-height: 1.3; font-weight: 600; }
.admin-row small { display: block; margin-top: 5px; color: var(--muted); overflow-wrap: anywhere; font-size: 12.5px; }
.admin-row a { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 9px 14px; border: 1px solid rgba(15, 142, 137, 0.3); border-radius: var(--radius-sm); color: var(--brand); background: rgba(15, 142, 137, 0.08); font-weight: 600; white-space: nowrap; box-shadow: none; }
.admin-row a:hover { background: rgba(15, 142, 137, 0.15); transform: none; }
.admin-row form { margin: 0; }
.admin-row button { min-height: 40px; padding: 9px 14px; white-space: nowrap; }

/* ===== Flash messages (Toast-style) ===== */
.flash {
    width: min(1200px, calc(100% - 32px));
    margin: 16px auto 0;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    background: rgba(16, 185, 129, 0.1);
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.25);
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    animation: flash-in 0.4s var(--ease-out);
}
.flash.warn { background: rgba(245, 158, 11, 0.1); color: #92400e; border-color: rgba(245, 158, 11, 0.3); }
[data-theme="dark"] .flash { color: #6ee7b7; }
[data-theme="dark"] .flash.warn { color: #fcd34d; }
@keyframes flash-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

.static-page { min-height: 380px; }

/* ===== Mobile drawer ===== */
.mobile-drawer { display: block; position: fixed; inset: 0; background: rgba(15, 23, 42, .55); z-index: 100; opacity: 0; pointer-events: none; transition: opacity .3s var(--ease); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.mobile-drawer[aria-hidden="false"] { opacity: 1; pointer-events: auto; }
.mobile-drawer__panel { position: absolute; top: 0; right: 0; width: min(340px, 88%); height: 100%; background: var(--surface); box-shadow: -8px 0 30px rgba(15, 23, 42, .2); padding: 26px 22px; overflow-y: auto; transform: translateX(100%); transition: transform .35s var(--ease-out); }
.mobile-drawer[aria-hidden="false"] .mobile-drawer__panel { transform: translateX(0); }
.mobile-drawer h3 { margin: 0 0 12px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.mobile-drawer a { display: block; padding: 13px 12px; border-radius: var(--radius-sm); color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--line-soft); transition: all 0.15s var(--ease); }
.mobile-drawer a:last-child { border-bottom: 0; }
.mobile-drawer a:hover { background: var(--surface-2); color: var(--brand); padding-left: 16px; }
.mobile-drawer__close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; min-height: 36px; padding: 0; background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); font-size: 20px; box-shadow: none; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 980px) {
    .masthead { grid-template-columns: auto 1fr auto; gap: 14px; padding: 14px 0; min-height: auto; }
    .quick { display: none; }
    .hamburger { display: inline-flex; }
    .nav { display: none; }
    .hero__grid, .consult__grid, .product-detail, .cart-layout, .contacts-layout, .footer__grid { grid-template-columns: 1fr; }
    .hero__grid { padding: 40px 0 48px; }
    .products, .category-grid { grid-template-columns: repeat(2, 1fr); }
    .catalog-layout { grid-template-columns: 1fr; }
    .sidebar { position: static; max-height: none; }
    .benefits, .articles, .partners, .admin-grid, .admin-lists, .admin-dashboard { grid-template-columns: 1fr 1fr; }
    .dashboard-head { flex-direction: column; align-items: stretch; }
    .dashboard-filters { justify-content: flex-start; }
    .admin-monitor { column-count: 1; column-gap: 0; }
    .admin-shell { grid-template-columns: 1fr; }
    .admin-side { position: static; }
}
@media (max-width: 620px) {
    body { font-size: 14.5px; }
    .topline { display: block; text-align: center; }
    .topline__links { justify-content: center; margin-top: 6px; }
    .hero__copy h1 { font-size: 32px; }
    .products, .category-grid, .benefits, .articles, .partners, .admin-grid, .admin-lists, .admin-dashboard, .admin-status-grid, .admin-monitor, .monitor-row { grid-template-columns: 1fr; }
    .dashboard-head h1 { font-size: 28px; }
    .dashboard-filters, .dashboard-filters label { width: 100%; }
    .revenue-board { grid-template-columns: 1fr; }
    .bar-chart { gap: 10px; overflow-x: auto; padding-bottom: 4px; }
    .admin-form, .admin-row, .admin-row--product { grid-template-columns: 1fr; }
    .admin-row a, .admin-row button { width: 100%; }
    .admin-thumb { width: 100%; height: 160px; }
    .admin-order__head, .admin-order__items div { grid-template-columns: 1fr; }
    .admin-order__items strong { text-align: left; }
    .section__head, .cart-total { align-items: flex-start; flex-direction: column; }
    .product__actions, .filters { grid-template-columns: 1fr; }
    .cart-table { font-size: 13px; }
    .cart-table th, .cart-table td { padding: 10px 8px; }
    .section { padding: 40px 0; }
}

/* ============================================
   ADMIN PANEL — Modern overrides
   ============================================ */

/* Admin shell - sidebar background gradient */
.admin-shell {
    background:
        radial-gradient(at 0% 0%, rgba(15, 142, 137, 0.04) 0px, transparent 40%),
        radial-gradient(at 100% 100%, rgba(124, 58, 237, 0.04) 0px, transparent 40%);
    border-radius: var(--radius-lg);
    padding: 24px 16px 48px !important;
}

/* Admin login - more polished */
.admin-login__box {
    padding: 36px 32px !important;
    border-radius: var(--radius-xl) !important;
    box-shadow: var(--shadow-xl) !important;
    background: var(--surface);
    position: relative;
    overflow: hidden;
}
.admin-login__box::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--gradient-brand);
}
.admin-login__box .eyebrow {
    align-self: start;
}
.admin-login__box h1 {
    font-size: 28px;
    margin-bottom: 12px;
}
.admin-login__box button {
    margin-top: 6px;
    height: 48px;
    font-size: 14px;
    font-weight: 700;
}

/* Admin sidebar - elevated, modern */
.admin-side {
    border-radius: var(--radius-lg) !important;
    padding: 18px !important;
    box-shadow: var(--shadow-md) !important;
    background: var(--surface);
    border-color: var(--line) !important;
}
.admin-side__head {
    padding: 4px 6px 16px !important;
}
.admin-side__head strong {
    display: block;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 800;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 4px;
}
.admin-side a {
    border-radius: var(--radius-sm);
    padding: 11px 13px !important;
    font-size: 13.5px !important;
    position: relative;
}
.admin-side__label {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    flex: 1;
    min-width: 0;
}
.admin-side__icon {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--surface-2);
    color: var(--muted);
    transition: all 0.2s var(--ease);
    flex: 0 0 auto;
}
.admin-side a:hover .admin-side__icon {
    background: rgba(15, 142, 137, 0.12);
    color: var(--brand);
}
.admin-side a.active .admin-side__icon {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}
.admin-side a strong {
    min-width: 24px;
    height: 22px;
    padding: 0 7px;
    display: inline-grid;
    place-items: center;
    background: var(--surface-2);
    color: var(--muted);
    font-size: 11px;
    border-radius: var(--radius-pill);
    font-weight: 700;
}
.admin-side a.active strong {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}
.admin-side a:not(.active):hover strong {
    background: rgba(15, 142, 137, 0.12);
    color: var(--brand);
}

/* Dashboard metric cards - shimmer on hover */
.admin-dashboard .metric {
    cursor: default;
}
.admin-dashboard .metric::after {
    content: "";
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.7s var(--ease-out);
    pointer-events: none;
}
.admin-dashboard .metric:hover::after {
    left: 100%;
}

/* Status grid metrics - animated number counter feel */
.admin-status-grid .metric strong {
    font-family: var(--font-display);
}

/* Admin work area */
.admin-work__head h1 {
    font-family: var(--font-display);
    background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.02em;
}

/* Admin forms - modern */
.admin-form {
    padding: 26px !important;
    border-radius: var(--radius-lg) !important;
    background: var(--surface);
    box-shadow: var(--shadow-sm) !important;
}
.admin-form label {
    font-size: 12.5px !important;
    color: var(--muted) !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.admin-form input,
.admin-form select,
.admin-form textarea {
    padding: 12px 14px !important;
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px var(--brand-glow);
    outline: 0;
}

/* Admin rows - modern list item */
.admin-row {
    border-radius: var(--radius-md) !important;
    transition: transform 0.2s var(--ease-out), box-shadow 0.25s var(--ease), border-color 0.2s var(--ease) !important;
}
.admin-row:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md) !important;
    border-color: rgba(15, 142, 137, 0.3) !important;
}

/* Logout button in sidebar */
.admin-side button {
    margin-top: 6px;
    background: var(--surface-2) !important;
    color: var(--danger) !important;
    border: 1px solid var(--line) !important;
    font-weight: 600 !important;
    box-shadow: none !important;
}
.admin-side button:hover {
    background: rgba(239, 68, 68, 0.08) !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
    transform: none !important;
    color: var(--danger) !important;
}

/* Dashboard chart panel - modern */
.dash-panel {
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-md) !important;
    border-color: var(--line) !important;
}
.dash-panel__head {
    padding: 24px 26px !important;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%) !important;
}

/* Bar chart bars - smooth gradient */
.bar { box-shadow: 0 -2px 8px rgba(124, 58, 237, 0.15); }

/* Recent orders/requests list panels */
.dash-panel > h2 {
    font-family: var(--font-display);
    font-weight: 700;
    padding: 22px 24px 8px !important;
}

/* Order items row */
.admin-order {
    border-radius: var(--radius-md) !important;
    padding: 20px !important;
}
.admin-order:hover {
    box-shadow: var(--shadow-sm) !important;
}

/* Admin table rows / hover lift */
.admin-table { gap: 12px !important; }

/* Admin segments / pie legend dots */
.segment-legend i { border-radius: var(--radius-pill); }

/* Dashboard filters - modern selects */
.dashboard-filters label {
    border-radius: var(--radius-sm) !important;
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.dashboard-filters label:focus-within {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px var(--brand-glow);
}

/* Dashboard head - polished */
.dashboard-head h1 {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.02em;
}
.dashboard-head p {
    font-size: 14.5px;
    line-height: 1.5;
}

/* Admin shell on smaller screens */
@media (max-width: 980px) {
    .admin-shell { padding: 18px 12px 40px !important; }
}

/* ===== Modern dashboard polish ===== */
.dashboard-head h1 { font-size: clamp(26px, 2.6vw, 32px); margin: 0 !important; line-height: 1.2; }
.dashboard-head {
    padding: 0 !important;
    margin: 0 0 22px !important;
    align-items: center !important;
}
/* Align admin-work content with sidebar top */
.admin-work { padding-top: 0; }
.admin-work > *:first-child { margin-top: 0 !important; }
.admin-shell { padding-top: 18px !important; align-items: start; }
.admin-side { margin-top: 0; }
.admin-side__head { padding: 2px 4px 12px !important; }
.admin-side__head strong { margin-bottom: 2px !important; }
.admin-side__head .lang-switch { margin-top: 6px !important; }

/* KPI metric cards - bigger emoji, polished */
.admin-dashboard { gap: 22px !important; }
.admin-dashboard .metric {
    min-height: 132px !important;
    padding: 24px 26px !important;
    border-radius: var(--radius-lg) !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 4px;
}
.admin-dashboard .metric em {
    position: absolute !important;
    right: 18px !important;
    top: 16px !important;
    width: 52px !important;
    height: 52px !important;
    font-size: 22px !important;
    background: rgba(255, 255, 255, 0.22) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.admin-dashboard .metric strong {
    font-family: var(--font-display);
    font-size: 30px !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em;
    margin-top: 8px;
}
.admin-dashboard .metric span {
    font-size: 13px !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600 !important;
    margin-top: 4px !important;
}
.admin-dashboard .metric small {
    font-size: 12px !important;
    margin-top: 10px !important;
    opacity: 0.85;
}

/* Status grid */
.admin-status-grid .metric {
    transition: transform 0.2s var(--ease-out), box-shadow 0.25s var(--ease);
}
.admin-status-grid .metric:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.admin-status-grid .metric span {
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Goal progress bar */
.goal-bar {
    margin-top: 12px;
    height: 8px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    overflow: hidden;
    width: 100%;
}
.goal-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--brand) 0%, #22c55e 100%);
    border-radius: inherit;
    transition: width 0.6s var(--ease-out);
    box-shadow: 0 0 8px rgba(15, 142, 137, 0.4);
}

/* Dash panel improvements */
.dash-panel { transition: transform 0.2s var(--ease-out), box-shadow 0.25s var(--ease); }
.dash-panel:hover { box-shadow: var(--shadow-lg) !important; }
.dash-panel > h2 {
    font-family: var(--font-display);
    font-size: 17px !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em;
    color: var(--ink);
}

/* Wider revenue panel takes 2 columns */
.dash-panel--wide { grid-column: span 2; }
@media (max-width: 980px) {
    .dash-panel--wide { grid-column: auto; }
}

/* Monitor rows */
.monitor-row { transition: background 0.15s var(--ease); border-radius: var(--radius-xs); }
.monitor-row:hover { background: var(--surface-2); }

/* Bar chart improvements */
.bar { box-shadow: 0 -3px 10px rgba(124, 58, 237, 0.2); }
.bar--current { background: linear-gradient(180deg, #a855f7 0%, #6d28d9 100%); }
.bar--previous { background: linear-gradient(180deg, #ddd6fe 0%, #a78bfa 100%); opacity: 0.85; }

/* Pie chart drop shadow */
.pie { filter: drop-shadow(0 8px 24px rgba(15, 23, 42, 0.12)); }

/* Segment legend pills */
.segment-legend span {
    padding: 6px 12px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink);
}

/* ===== Statistical rows in dashboard panels ===== */
.dash-panel__title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 22px 22px 14px;
    border-bottom: 1px solid var(--line-soft);
}
.dash-panel__title h2 {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 16px !important;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.01em;
}
.dash-panel__total {
    font-size: 12.5px;
    color: var(--muted);
    font-weight: 700;
    padding: 4px 10px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
}
.dash-empty {
    margin: 0 !important;
    padding: 32px 22px !important;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
}

.stat-row {
    padding: 12px 22px;
    border-bottom: 1px solid var(--line-soft);
    display: grid;
    gap: 8px;
    transition: background 0.15s var(--ease);
}
.stat-row:last-of-type { border-bottom: 0; }
.stat-row:hover { background: var(--surface-2); }
.stat-row--simple { padding: 14px 22px; }
.stat-row__head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    min-width: 0;
}
.stat-row__name {
    font-weight: 600;
    color: var(--ink);
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}
.stat-row__head strong {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
    white-space: nowrap;
}
.stat-row__bar {
    height: 6px;
    background: var(--surface-2);
    border-radius: var(--radius-pill);
    overflow: hidden;
}
.stat-row__bar span {
    display: block;
    height: 100%;
    background: var(--gradient-brand);
    border-radius: inherit;
    transition: width 0.6s var(--ease-out);
    min-width: 4px;
    box-shadow: 0 0 8px rgba(15, 142, 137, 0.3);
}
.stat-row__meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
    font-size: 12px;
}
.stat-row__meta small { color: var(--muted); }
.stat-share {
    color: var(--brand) !important;
    font-weight: 700;
}

.stat-rank {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--surface-2);
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    border: 1px solid var(--line);
    flex: 0 0 auto;
}
.stat-rank--top {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
}

.stat-avatar {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-pill);
    background: var(--gradient-brand);
    color: #fff;
    font-weight: 800;
    font-size: 13px;
    flex: 0 0 auto;
    box-shadow: var(--shadow-sm);
}

/* Period summary panel */
.dash-panel--summary { padding: 22px !important; }
.dash-panel--summary h2 {
    padding: 0 !important;
    margin: 0 0 16px !important;
    font-family: var(--font-display);
    font-size: 17px !important;
    font-weight: 700;
}
.period-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}
.period-stat {
    padding: 16px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    transition: transform 0.2s var(--ease-out), border-color 0.2s var(--ease);
}
.period-stat:hover {
    transform: translateY(-2px);
    border-color: var(--brand);
}
.period-stat span {
    display: block;
    font-size: 11.5px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    margin-bottom: 6px;
}
.period-stat strong {
    display: block;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.01em;
}
@media (max-width: 980px) {
    .period-stats { grid-template-columns: repeat(2, 1fr); }
    .dash-panel--summary { grid-column: auto; }
}
@media (max-width: 620px) {
    .period-stats { grid-template-columns: 1fr; }
}
.dash-panel--summary { grid-column: 1 / -1; }

/* Make panels accept dash-panel__title structure (no double padding) */
.dash-panel:has(.dash-panel__title) > h2 { display: none; }

/* ===== Language tabs in admin forms ===== */
.lang-tabs {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    width: max-content;
    margin-bottom: 4px;
}
.lang-tab {
    background: transparent;
    color: var(--muted);
    padding: 8px 18px;
    min-height: 36px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    border-radius: 6px;
    box-shadow: none;
    border: 0;
    cursor: pointer;
    transition: all 0.2s var(--ease);
}
.lang-tab:hover { color: var(--ink); transform: none; box-shadow: none; }
.lang-tab.active {
    background: var(--gradient-brand);
    color: #fff;
    box-shadow: var(--shadow-sm);
}
.lang-tab.active:hover { color: #fff; }
.lang-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 18px;
    background: var(--surface-2);
    border: 1px dashed var(--line);
    border-radius: var(--radius-md);
    animation: lang-fade .25s var(--ease-out);
}
.lang-panel[hidden] { display: none; }
.lang-panel .span-2 { grid-column: 1 / -1; }
@keyframes lang-fade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 620px) {
    .lang-panel { grid-template-columns: 1fr; }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}
