/* ============================================================
   sizkz — clean modern design
   Blue (#1f8fef) + white. No Bootstrap, no jQuery.
   ============================================================ */

:root {
    /* Brand */
    --primary:        hsl(210, 88%, 53%);          /* #1f8fef */
    --primary-dark:   hsl(210, 88%, 40%);
    --primary-soft:   hsla(210, 88%, 53%, 0.10);
    --primary-soft-2: hsla(210, 88%, 53%, 0.18);

    /* Neutrals */
    --fg:             hsl(220, 25%, 12%);
    --fg-soft:        hsl(220, 15%, 30%);
    --muted:          hsl(220, 10%, 48%);
    --muted-bg:       hsl(220, 22%, 97%);
    --border:         hsl(220, 18%, 90%);
    --border-soft:    hsl(220, 18%, 94%);
    --bg:             #ffffff;
    --bg-alt:         hsl(220, 30%, 98%);
    --card:           #ffffff;

    /* Dark slab (footer, counter) */
    --slab:           hsl(220, 35%, 13%);
    --slab-soft:      hsl(220, 30%, 19%);

    /* Status */
    --success:        hsl(142, 71%, 45%);
    --danger:         hsl(0, 75%, 55%);

    /* Type */
    --font-h:         "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    --font-b:         "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

    /* Layout */
    --container:      1240px;
    --radius:         12px;
    --radius-sm:      8px;
    --radius-lg:      20px;
    --shadow-sm:      0 1px 2px hsla(220, 30%, 12%, 0.04);
    --shadow:         0 4px 12px hsla(220, 30%, 12%, 0.06), 0 1px 3px hsla(220, 30%, 12%, 0.04);
    --shadow-lg:      0 16px 40px hsla(220, 30%, 12%, 0.08), 0 4px 12px hsla(220, 30%, 12%, 0.06);

    /* Navbar height (used as scroll offset for sticky) */
    --nav-h:          68px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    /* Match footer colour so iOS overscroll / safe-area below the footer
       blends in instead of flashing white. */
    background: var(--slab);
}
@media (hover: none) { html { scroll-behavior: auto; } }

body {
    font-family: var(--font-b);
    font-weight: 400;
    color: var(--fg);
    /* Dark slab so iOS overscroll past the footer never reveals a white band. */
    background: var(--slab);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    overscroll-behavior-y: none;
}

/* Main content sits on top of the dark body bg and shows white. */
.page-main {
    background: var(--bg);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-h);
    font-weight: 700;
    letter-spacing: -0.018em;
    color: var(--fg);
    line-height: 1.2;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.75rem;
}
@media (min-width: 768px) { .container { padding: 0 2rem; } }

button { font-family: inherit; cursor: pointer; }

/* ============================================================
   Navbar
   ============================================================ */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 22, 38, 0.92);
    backdrop-filter: blur(10px) saturate(160%);
    -webkit-backdrop-filter: blur(10px) saturate(160%);
    border-bottom: 1px solid hsla(210, 60%, 60%, 0.12);
}
.nav .brand { color: #fff; }
.nav .brand-name span { color: hsl(210, 100%, 70%); }
.nav .nav-link { color: rgba(255, 255, 255, 0.78); }
.nav .nav-link:hover { color: #fff; }
.nav .nav-link.active { color: hsl(210, 100%, 70%); }
.nav .nav-cart {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.18);
    color: #fff;
}
.nav .nav-cart:hover { background: rgba(255, 255, 255, 0.18); border-color: rgba(255, 255, 255, 0.30); color: #fff; }
.nav .nav-cart.has-items { color: hsl(210, 100%, 75%); }
.nav .nav-cart .cart-count { border-color: rgb(15, 22, 38); }
.nav .nav-burger { color: #fff; }
.nav .nav-burger:hover { background: rgba(255, 255, 255, 0.10); }
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-h);
    gap: 1rem;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-h);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--fg);
    letter-spacing: -0.025em;
}
.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-weight: 800;
    font-size: 0.875rem;
}
.brand-name { line-height: 1; }
.brand-name span { color: var(--primary); }
.brand img { display: block; height: 36px; width: auto; }
.footer .brand img { height: 40px; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}
.nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--fg-soft);
    transition: color 0.15s;
}
.nav-link:hover { color: var(--primary); }
.nav-link.active { color: var(--primary); font-weight: 600; }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.nav-cart {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: var(--fg);
    border: 1px solid var(--border);
    background: var(--bg);
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.nav-cart:hover { background: var(--muted-bg); border-color: var(--primary-soft-2); color: var(--primary); }
.nav-cart.has-items { color: var(--primary); border-color: var(--primary-soft-2); }
.nav-cart .cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 9999px;
    background: var(--muted);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg);
}
.nav-cart.has-items .cart-count { background: var(--primary); }

.nav-burger {
    display: none;
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    color: var(--fg);
    border-radius: 8px;
}
.nav-burger:hover { background: var(--muted-bg); }

/* Language switcher (desktop nav) */
.lang-switcher { position: relative; }
.lang-current {
    display: inline-flex; align-items: center; gap: 0.25rem;
    padding: 0.4375rem 0.75rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 8px;
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}
.lang-current::after {
    content: ""; display: inline-block; width: 0.4rem; height: 0.4rem;
    border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg); margin-left: 0.25rem; margin-top: -0.25rem;
    transition: transform 0.2s;
}
.lang-current:hover { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.5); color: #fff; }
.lang-switcher[data-open="true"] .lang-current::after { transform: rotate(-135deg); margin-top: 0.15rem; }
.lang-menu {
    position: absolute; top: calc(100% + 0.375rem); right: 0;
    min-width: 90px;
    margin: 0; padding: 0.375rem;
    list-style: none;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.10);
    opacity: 0; visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.15s, transform 0.15s, visibility 0s 0.15s;
    z-index: 100;
}
.lang-switcher[data-open="true"] .lang-menu,
.lang-switcher:hover .lang-menu {
    opacity: 1; visibility: visible; transform: translateY(0);
    transition: opacity 0.15s, transform 0.15s;
}
.lang-menu li { margin: 0; }
.lang-menu a {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    color: var(--fg);
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
}
.lang-menu a:hover { background: var(--muted-bg); color: var(--primary); }

/* Drawer language switcher */
.drawer-lang {
    display: flex; gap: 0.5rem; margin-top: auto; padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}
.drawer-lang a {
    flex: 1; text-align: center;
    padding: 0.625rem 0.5rem;
    background: var(--muted-bg);
    border-radius: 8px;
    color: var(--fg);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
}
.drawer-lang a:hover { background: var(--primary-soft); color: var(--primary); }

@media (max-width: 880px) {
    .nav-links { display: none; }
    .nav-burger { display: inline-flex; align-items: center; justify-content: center; }
    .lang-switcher { display: none; }  /* show only in drawer on mobile */
}

/* Mobile drawer */
.drawer {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(320px, 84vw);
    background: var(--bg);
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 200;
    display: flex;
    flex-direction: column;
    padding: 4rem 1.5rem 2rem;
    overflow-y: auto;
}
.drawer.open { transform: translateX(0); }
.drawer-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: var(--muted-bg);
    border: 0;
    border-radius: 50%;
    color: var(--fg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.drawer .nav-link {
    display: block;
    padding: 0.875rem 0;
    font-size: 1rem;
    font-weight: 500;
    border-bottom: 1px solid var(--border-soft);
}
.drawer .drawer-cta {
    margin-top: 1.5rem;
    display: block;
    text-align: center;
    padding: 0.875rem 1rem;
    background: var(--primary);
    color: #fff !important;
    border-radius: var(--radius);
    font-weight: 600;
}

.drawer-bg {
    position: fixed;
    inset: 0;
    background: rgba(15, 25, 40, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s;
    z-index: 150;
}
.drawer-bg.open { opacity: 1; pointer-events: auto; }

body.no-scroll { overflow: hidden; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 44px;
    padding: 0 1.5rem;
    border-radius: var(--radius);
    font-family: var(--font-h);
    font-weight: 600;
    font-size: 0.9375rem;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 14px hsla(210, 88%, 53%, 0.30);
}
.btn-primary:hover { background: var(--primary-dark); }

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

.btn-ghost-light {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(8px);
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.20); }

.btn-lg { height: 52px; padding: 0 2rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn svg { flex-shrink: 0; }

/* ============================================================
   Section primitives
   ============================================================ */
.section { padding: 5rem 0; }
@media (max-width: 768px) { .section { padding: 3rem 0; } }
.section-alt { background: var(--bg-alt); }
.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3rem;
}
@media (max-width: 768px) { .section-head { margin-bottom: 2rem; } }

.eyebrow {
    display: inline-block;
    font-family: var(--font-h);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-soft);
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}
h2.section-title { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 0.75rem; }
.section-head .lead { color: var(--muted); font-size: 1.0625rem; }
@media (max-width: 768px) { .section-head .lead { font-size: 0.9375rem; } }

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

/* ============================================================
   Hero
   ============================================================ */
/* ── Hero v2 (photo top + glass cards below, seamless transition) ── */
.hero-v2 {
    position: relative;
    background: var(--slab);
    color: #fff;
    overflow: hidden;
    isolation: isolate;
}
.hero-v2 .hero-photo {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 460px;
    z-index: 0;
    background-color: var(--slab);
    overflow: hidden;
}
@media (min-width: 768px) {
    .hero-v2 .hero-photo { height: 540px; }
}
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 35%;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.4s ease-in-out;
    will-change: opacity;
}
.hero-slide.active { opacity: 1; }
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        transparent 0%,
        transparent 50%,
        hsla(220, 35%, 13%, 0.30) 68%,
        hsla(220, 35%, 13%, 0.65) 82%,
        hsla(220, 35%, 13%, 0.92) 94%,
        var(--slab) 100%);
    pointer-events: none;
}
.hero-v2-inner {
    position: relative;
    z-index: 1;
    padding-top: 13rem;
    padding-bottom: 1.5rem;
}
@media (min-width: 768px) {
    .hero-v2-inner { padding-top: 17rem; padding-bottom: 4rem; }
}

.hero-card {
    background: linear-gradient(160deg, hsla(220, 40%, 14%, 0.20) 0%, hsla(220, 50%, 10%, 0.20) 100%);
    border: none;
    border-radius: 1.125rem;
    padding: 1rem 0.875rem;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    color: #fff;
    max-width: 760px;
    margin: 0 auto;
}
@media (min-width: 768px) {
    .hero-card { padding: 2.5rem 2.5rem 2.5rem; border-radius: 1.5rem; }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4375rem 0.875rem;
    background: hsla(210, 88%, 60%, 0.16);
    border: 1px solid hsla(210, 90%, 75%, 0.30);
    border-radius: 9999px;
    color: hsl(210, 100%, 80%);
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 1rem;
    white-space: nowrap;
    max-width: 100%;
}
@media (min-width: 768px) { .hero-badge { font-size: 0.875rem; padding: 0.5rem 1rem; } }
.hero-badge svg { color: hsl(210, 100%, 75%); }

.hero h1 {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.18;
    margin-bottom: 0.875rem;
    color: #fff;
    letter-spacing: -0.035em;
}
@media (min-width: 480px) { .hero h1 { font-size: 1.875rem; letter-spacing: -0.025em; } }
@media (min-width: 768px) { .hero h1 { font-size: 2.5rem; line-height: 1.12; margin-bottom: 1.25rem; } }
@media (min-width: 1024px) { .hero h1 { font-size: 3.25rem; } }
.hero h1 .accent { color: hsl(210, 100%, 70%); display: inline-block; }

.hero-accent-bar {
    display: block;
    width: 42px;
    height: 3px;
    background: linear-gradient(90deg, hsl(210, 100%, 60%), hsl(210, 100%, 70%));
    border-radius: 999px;
    margin: 0 0 0.875rem;
}
@media (min-width: 768px) { .hero-accent-bar { width: 56px; height: 4px; margin: 0 0 1.25rem; } }

.hero p.lead {
    font-size: 0.875rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 1.25rem;
    font-weight: 400;
}
@media (min-width: 768px) { .hero p.lead { font-size: 1.0625rem; line-height: 1.6; margin-bottom: 1.75rem; } }
.hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}
.hero-actions .btn {
    width: 100%;
    min-width: 0;
    justify-content: center;
    padding: 0 0.5rem;
    font-size: 0.8125rem;
    gap: 0.375rem;
    height: 46px;
    border-radius: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hero-actions .btn svg { width: 14px; height: 14px; flex-shrink: 0; }
@media (min-width: 400px) { .hero-actions .btn { font-size: 0.875rem; padding: 0 0.625rem; gap: 0.4375rem; height: 48px; } .hero-actions .btn svg { width: 15px; height: 15px; } }
@media (min-width: 480px) { .hero-actions .btn { font-size: 0.9375rem; padding: 0 0.875rem; gap: 0.5rem; height: 50px; } .hero-actions .btn svg { width: 16px; height: 16px; } }
@media (min-width: 768px) { .hero-actions .btn { padding: 0 1.75rem; font-size: 1rem; height: 56px; } .hero-actions .btn svg { width: 18px; height: 18px; } }

/* Stats row inside hero — 4 columns even on mobile, like the mockup */
.hero-stats {
    margin-top: 0.5rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.375rem;
    background: linear-gradient(160deg, hsla(220, 40%, 14%, 0.78) 0%, hsla(220, 50%, 8%, 0.88) 100%);
    border: 1px solid hsla(210, 60%, 60%, 0.15);
    border-radius: 0.875rem;
    padding: 0.625rem 0.375rem;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}
@media (min-width: 640px) { .hero-stats { gap: 0.75rem; padding: 1.5rem; border-radius: 1.25rem; margin-top: 1rem; } }

.hero-stats .stat-item {
    text-align: center;
    padding: 0.125rem;
}
.hero-stats .stat-icon {
    width: 30px;
    height: 30px;
    margin: 0 auto 0.4rem;
    border-radius: 8px;
    background: hsla(210, 88%, 55%, 0.14);
    border: 1px solid hsla(210, 90%, 70%, 0.20);
    color: hsl(210, 100%, 75%);
    display: flex;
    align-items: center;
    justify-content: center;
}
@media (min-width: 400px) { .hero-stats .stat-icon { width: 34px; height: 34px; } }
@media (min-width: 480px) { .hero-stats .stat-icon { width: 38px; height: 38px; border-radius: 10px; margin-bottom: 0.5rem; } }
@media (min-width: 640px) { .hero-stats .stat-icon { width: 48px; height: 48px; border-radius: 12px; } }
.hero-stats .stat-icon svg { width: 14px; height: 14px; }
@media (min-width: 400px) { .hero-stats .stat-icon svg { width: 16px; height: 16px; } }
@media (min-width: 480px) { .hero-stats .stat-icon svg { width: 18px; height: 18px; } }
@media (min-width: 640px) { .hero-stats .stat-icon svg { width: 24px; height: 24px; } }

.hero-stats .stat-num {
    font-family: var(--font-h);
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 0.25rem;
}
@media (min-width: 400px) { .hero-stats .stat-num { font-size: 1.375rem; } }
@media (min-width: 480px) { .hero-stats .stat-num { font-size: 1.5rem; } }
@media (min-width: 640px) { .hero-stats .stat-num { font-size: 2rem; } }
.hero-stats .stat-label {
    font-size: 0.625rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.2;
}
@media (min-width: 400px) { .hero-stats .stat-label { font-size: 0.6875rem; } }
@media (min-width: 480px) { .hero-stats .stat-label { font-size: 0.75rem; line-height: 1.25; } }
@media (min-width: 640px) { .hero-stats .stat-label { font-size: 0.8125rem; } }

/* Trust badges row — 3 columns even on mobile */
.hero-trust {
    margin-top: 0.625rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.375rem;
    background: hsla(220, 40%, 12%, 0.65);
    border: 1px solid hsla(210, 60%, 60%, 0.12);
    border-radius: 0.875rem;
    padding: 0.625rem 0.5rem;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}
@media (min-width: 640px) { .hero-trust { gap: 0.75rem; padding: 1rem 1.25rem; border-radius: 1rem; margin-top: 0.75rem; } }

.hero-trust .trust-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.625rem;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.2;
}
@media (min-width: 400px) { .hero-trust .trust-item { font-size: 0.6875rem; } }
@media (min-width: 480px) { .hero-trust .trust-item { font-size: 0.75rem; gap: 0.5rem; line-height: 1.25; } }
@media (min-width: 640px) { .hero-trust .trust-item { font-size: 0.875rem; gap: 0.625rem; } }
.hero-trust .trust-ico {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: hsla(210, 88%, 55%, 0.14);
    border: 1px solid hsla(210, 90%, 70%, 0.20);
    color: hsl(210, 100%, 75%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.hero-trust .trust-ico svg { width: 11px; height: 11px; }
@media (min-width: 400px) { .hero-trust .trust-ico { width: 26px; height: 26px; } .hero-trust .trust-ico svg { width: 13px; height: 13px; } }
@media (min-width: 480px) { .hero-trust .trust-ico { width: 28px; height: 28px; border-radius: 8px; } .hero-trust .trust-ico svg { width: 14px; height: 14px; } }
@media (min-width: 640px) {
    .hero-trust .trust-ico { width: 34px; height: 34px; border-radius: 10px; }
    .hero-trust .trust-ico svg { width: 18px; height: 18px; }
}

/* ============================================================
   Stats strip
   ============================================================ */
.stats {
    background: linear-gradient(135deg, var(--slab) 0%, var(--slab-soft) 100%);
    color: #fff;
    padding: 3rem 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}
@media (max-width: 768px) { .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; } }
.stat-num {
    font-family: var(--font-h);
    font-size: clamp(1.875rem, 3.4vw, 2.75rem);
    font-weight: 800;
    color: hsl(210, 90%, 65%);
    line-height: 1;
    margin-bottom: 0.5rem;
}
.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================================
   Category grid (homepage)
   ============================================================ */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}
@media (max-width: 1024px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; } }

.cat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.5rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
    color: var(--fg);
}
.cat-card:hover {
    box-shadow: 0 16px 36px rgba(15, 25, 50, 0.10), 0 2px 6px rgba(15, 25, 50, 0.04);
    border-color: var(--primary-soft-2);
    transform: translateY(-3px);
}

/* v1 — photo-icon (kept for backward compat / homepage) */
.cat-card-img {
    background: transparent;
    border-radius: var(--radius-sm);
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
@media (max-width: 760px) { .cat-card-img { height: 130px; } }
.cat-card-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s;
}
.cat-card:hover .cat-card-img img { transform: scale(1.06); }

/* v2 — clean SVG icon in a soft-tinted square */
.cat-grid-v2 .cat-card { padding: 1.5rem 1.25rem 1.25rem; }
.cat-card-icon {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    background: linear-gradient(135deg, hsla(210, 88%, 60%, 0.10), hsla(210, 88%, 60%, 0.04));
    border: 1px solid hsla(210, 88%, 60%, 0.18);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.875rem;
    transition: background 0.2s, color 0.2s, transform 0.3s;
}
.cat-card:hover .cat-card-icon {
    background: var(--primary);
    color: #fff;
    transform: scale(1.05);
    border-color: var(--primary);
}

/* ============================================================================
 * Inline page editor (visible only to editor/admin). Rewritten 2026-05-29.
 * ========================================================================== */

/* Floating control panel — bottom-right, draggable, collapsible */
.ed-panel {
    position: fixed; bottom: 16px; right: 16px; z-index: 10000;
    width: 280px; max-width: calc(100vw - 32px);
    background: #131b29; color: #e6edf3;
    border: 1px solid #283349; border-radius: 16px;
    box-shadow: 0 14px 48px rgba(0,0,0,0.45);
    font: 500 13px/1.35 system-ui, -apple-system, sans-serif;
    padding: 12px;
    display: flex; flex-direction: column; gap: 10px;
}
.ed-panel.ed-collapsed { gap: 0; }
.ed-panel.ed-collapsed > :not(.ed-panel-head) { display: none !important; }
.ed-panel-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ed-panel-head { cursor: grab; user-select: none; }
.ed-panel-head:active { cursor: grabbing; }
.ed-panel-brand {
    font-weight: 800; letter-spacing: .2px;
    background: linear-gradient(135deg, hsl(210,90%,62%), hsl(210,90%,48%));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ed-panel-collapse {
    margin-left: auto; background: rgba(255,255,255,0.08); border: 0; color: #c7d2e0;
    width: 24px; height: 24px; border-radius: 7px; cursor: pointer; font-size: 13px; line-height: 1;
}
.ed-panel-collapse:hover { background: rgba(255,255,255,0.18); }
.ed-panel-user { color: #8b97a8; font-size: 12px; margin-left: auto; }
.ed-panel-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ed-panel-hint {
    font-size: 12px; line-height: 1.4; color: #9fb0c4;
    background: rgba(43,180,255,0.08); border: 1px solid rgba(43,180,255,0.18);
    border-radius: 10px; padding: 8px 10px;
}
.ed-panel-danger { border-top: 1px solid #283349; padding-top: 10px; }

.ed-btn {
    font: inherit; cursor: pointer; border: 0; border-radius: 10px;
    padding: 8px 12px; text-decoration: none; color: #e6edf3;
    background: rgba(255,255,255,0.08); transition: background .15s, transform .05s;
    display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.ed-btn:hover { background: rgba(255,255,255,0.16); }
.ed-btn:active { transform: translateY(1px); }
.ed-btn:disabled { opacity: .6; cursor: default; }
.ed-btn-primary { background: linear-gradient(135deg, hsl(210,90%,56%), hsl(210,90%,46%)); color: #fff; font-weight: 700; flex: 1 1 100%; justify-content: center; }
.ed-btn-primary:hover { background: linear-gradient(135deg, hsl(210,90%,60%), hsl(210,90%,50%)); }
.ed-btn-ghost { background: rgba(255,255,255,0.06); color: #c7d2e0; }
.ed-btn-save { background: rgba(45,202,123,0.18); color: #4ddb91; font-weight: 700; flex: 1 1 auto; justify-content: center; }
.ed-btn-save.ed-has-changes { background: linear-gradient(135deg, hsl(150,65%,45%), hsl(150,65%,38%)); color: #fff; box-shadow: 0 4px 16px rgba(45,202,123,0.35); }
.ed-btn-save:hover:not(:disabled) { filter: brightness(1.08); }
.ed-btn-danger { background: rgba(255,90,90,0.14); color: #ff8a8a; flex: 1 1 100%; justify-content: center; }
.ed-btn-danger:hover { background: rgba(255,90,90,0.26); color: #ff6f6f; }

/* Re-login banner when the session has expired */
.editor-overlay-badge {
    position: fixed; top: 14px; right: 14px; z-index: 10000;
    background: linear-gradient(135deg, hsl(38,92%,52%), hsl(30,90%,46%));
    color: #fff; padding: 10px 14px; border-radius: 24px;
    font: 700 13px/1.2 system-ui, -apple-system, sans-serif;
    display: flex; gap: 10px; align-items: center;
    box-shadow: 0 8px 28px rgba(0,0,0,0.3);
}
.editor-overlay-badge a {
    color: #fff; text-decoration: none; cursor: pointer;
    background: rgba(255,255,255,0.22); border: 0;
    padding: 5px 12px; border-radius: 14px; font: inherit;
}
.editor-overlay-badge a:hover { background: rgba(255,255,255,0.36); }

/* Edit-mode affordances on the page itself */
body.ed-on [data-ed] {
    outline: 1px dashed rgba(43,180,255,0.55);
    outline-offset: 3px; border-radius: 3px;
    cursor: text; transition: outline-color .12s, background .12s;
}
body.ed-on [data-ed]:hover { outline: 2px dashed #2bb4ff; background: rgba(43,180,255,0.07); }
body.ed-on [data-ed]:focus { outline: 2px solid #2dca7b; background: rgba(45,202,123,0.08); }
body.ed-on [data-ed].ed-dirty { outline: 2px solid #f0b429; background: rgba(240,180,41,0.10); }
body.ed-on [data-ed-img] { outline: 2px dashed #2bb4ff; outline-offset: 4px; cursor: pointer; }
body.ed-on [data-ed-img]:hover { outline: 3px solid #2bb4ff; }
body.ed-on [data-ed-img].ed-dirty { outline: 3px solid #f0b429; }
body.ed-on [data-ed-link] { position: relative; }
body.ed-on [data-ed-link].ed-dirty { outline: 2px solid #f0b429; outline-offset: 2px; border-radius: 3px; }
.ed-link-btn {
    position: absolute; top: -10px; right: -10px; z-index: 9;
    width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%;
    background: #2bb4ff; color: #fff; font-size: 11px; line-height: 22px;
    cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.ed-link-btn:hover { background: #1f8fef; }

/* Link / document editor popover */
.ed-popover {
    position: fixed; z-index: 10002; width: 300px; max-width: calc(100vw - 16px);
    background: #131b29; color: #e6edf3; border: 1px solid #2d3a4f;
    border-radius: 14px; padding: 14px; box-shadow: 0 16px 50px rgba(0,0,0,0.5);
    font: 500 13px/1.35 system-ui, -apple-system, sans-serif;
    display: flex; flex-direction: column; gap: 8px;
}
.ed-pop-title { font-weight: 700; }
.ed-pop-label { font-size: 11px; color: #8b97a8; }
.ed-pop-input {
    width: 100%; box-sizing: border-box; background: #0d141f; color: #e6edf3;
    border: 1px solid #2d3a4f; border-radius: 8px; padding: 8px 10px; font: inherit;
}
.ed-pop-input:focus { outline: 2px solid #2bb4ff; border-color: #2bb4ff; }
.ed-pop-row { display: flex; gap: 8px; }
.ed-pop-foot { margin-top: 4px; }
.ed-pop-foot .ed-btn { flex: 1 1 auto; justify-content: center; }

/* Toast */
.ed-toast {
    position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 120%);
    z-index: 10001; padding: 11px 18px; border-radius: 12px;
    font: 600 13px/1.2 system-ui, -apple-system, sans-serif;
    background: #1c2636; color: #e6edf3; border: 1px solid #2d3a4f;
    box-shadow: 0 12px 40px rgba(0,0,0,0.45);
    opacity: 0; transition: transform .25s, opacity .25s; pointer-events: none;
    max-width: 90vw; text-align: center;
}
.ed-toast.show { transform: translate(-50%, 0); opacity: 1; }
.ed-toast-ok { border-color: #2dca7b; color: #6ee7a8; }
.ed-toast-err { border-color: #ff6f6f; color: #ff9a9a; }
.ed-toast-info { border-color: #2bb4ff; color: #7fd0ff; }

/* Video embed (YouTube presentation) */
.video-embed {
    position: relative; width: 100%; max-width: 960px;
    margin: 1.5rem auto 0; aspect-ratio: 16/9;
    border-radius: var(--radius); overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    background: #000;
}
.video-embed iframe {
    position: absolute; inset: 0;
    width: 100%; height: 100%; border: 0;
}

/* v3 — AI-generated icon, no background plate */
.cat-grid-photos .cat-card { padding: 1.25rem; }
.cat-card-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: transparent;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    overflow: hidden;
    padding: 0.5rem;
}
.cat-card-photo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.35s;
}
.cat-card:hover .cat-card-photo img { transform: scale(1.06); }
.cat-card-title {
    font-family: var(--font-h);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
}
@media (max-width: 760px) { .cat-card-title { font-size: 0.875rem; } }
.cat-card-desc {
    font-size: 0.8125rem;
    color: var(--muted);
    line-height: 1.45;
}
@media (max-width: 480px) { .cat-card-desc { display: none; } }
.cat-card-link {
    margin-top: auto;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.8125rem;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

/* ============================================================
   Feature cards (4-col: О компании)
   ============================================================ */
.feat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
@media (max-width: 1024px) { .feat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .feat-grid { grid-template-columns: 1fr; gap: 1rem; } }

.feat {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: left;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.feat:hover { box-shadow: var(--shadow); border-color: var(--primary-soft-2); }
.feat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--primary-soft);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: background 0.2s, color 0.2s;
}
.feat:hover .feat-icon { background: var(--primary); color: #fff; }
.feat h3 {
    font-size: 1.0625rem;
    margin-bottom: 0.5rem;
}
.feat p {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.55;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
    background: var(--slab);
    color: rgba(255, 255, 255, 0.65);
    /* Extend dark colour into the iOS home-indicator safe-area so no white
       band shows past the footer when overscroll-bouncing on mobile. */
    padding: 4rem 0 calc(1.5rem + env(safe-area-inset-bottom, 0));
    font-size: 0.9375rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; } }

.footer .brand { color: #fff; font-size: 1.25rem; margin-bottom: 0.875rem; }
.footer .brand-name span { color: hsl(210, 90%, 65%); }
.footer-desc { font-size: 0.875rem; line-height: 1.55; margin-bottom: 1rem; }
.footer h4 {
    font-family: var(--font-h);
    font-size: 0.9375rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: 0.01em;
}
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    font-size: 0.875rem;
}
.footer-links a { color: rgba(255,255,255,0.65); transition: color 0.15s; }
.footer-links a:hover { color: hsl(210, 90%, 70%); }
.footer-contact { display: flex; flex-direction: column; gap: 0.75rem; font-size: 0.875rem; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 0.625rem; }
.footer-contact-item svg { color: hsl(210, 90%, 65%); flex-shrink: 0; margin-top: 0.125rem; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.25rem;
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.5);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.socials { display: flex; gap: 0.5rem; margin-top: 1rem; }
.socials a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.75);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}
.socials a:hover { background: var(--primary); color: #fff; }

/* ============================================================
   Catalog listing (sidebar + grid)
   ============================================================ */
.catalog {
    padding: 2rem 0 4rem;
}
.catalog-head {
    padding: 1.25rem 0 1.25rem;
    margin-bottom: 1.5rem;
}
.catalog-head h1 {
    font-size: clamp(1.875rem, 3vw, 2.75rem);
    margin-bottom: 0.5rem;
    font-weight: 800;
}
.catalog-head .breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 0.4375rem;
    padding: 0.4375rem 0.875rem;
    margin-bottom: 1.25rem;
    font-size: 0.8125rem;
    color: var(--muted);
    background: var(--muted-bg);
    border-radius: 9999px;
}
.catalog-head .breadcrumb a { color: var(--muted); display: inline-flex; }
.catalog-head .breadcrumb a:hover { color: var(--primary); }
.catalog-head .breadcrumb .bc-sep { color: var(--muted); opacity: 0.5; }
.catalog-head .breadcrumb .bc-curr { color: var(--fg); font-weight: 500; }
.catalog-head .lead {
    color: var(--muted);
    max-width: 760px;
    font-size: 0.9375rem;
    line-height: 1.55;
}

/* Trust strip at top of catalog */
.trust-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.875rem;
    margin-bottom: 1.5rem;
}
@media (max-width: 1024px) { .trust-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .trust-strip { grid-template-columns: 1fr; gap: 0.5rem; } }
.trust-pill {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--fg);
    line-height: 1.3;
}
.trust-pill-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: var(--primary-soft);
    color: var(--primary);
    flex-shrink: 0;
}

/* Catalog bar: quick-pills + sort */
.catalog-main { min-width: 0; }
.catalog-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.quick-pills {
    display: flex;
    gap: 0.4375rem;
    flex-wrap: wrap;
}
@media (max-width: 640px) {
    .quick-pills {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0.125rem 1rem 0.5rem;
        margin: 0 -1rem;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .quick-pills::-webkit-scrollbar { display: none; }
    .quick-pills .qp { scroll-snap-align: start; flex-shrink: 0; }
}
.quick-pills .qp {
    display: inline-flex;
    align-items: center;
    gap: 0.4375rem;
    padding: 0.5rem 0.875rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 9999px;
    font-family: var(--font-h);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--fg-soft);
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.quick-pills .qp:hover { background: var(--muted-bg); color: var(--fg); }
.quick-pills .qp.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.catalog-sort .sort-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4375rem;
    padding: 0.5rem 0.875rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 9px;
    font-family: var(--font-h);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--fg);
    cursor: pointer;
}
.catalog-sort .sort-btn:disabled { opacity: 0.65; cursor: default; }

.filter-count-row {
    margin-bottom: 1rem;
    font-size: 0.75rem;
    color: var(--muted);
}
.filter-count-row strong { color: var(--fg); font-weight: 700; }
.filter-reset-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3125rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}
.filter-reset-link:hover { text-decoration: underline; }

.catalog-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
}
@media (max-width: 880px) { .catalog-layout { grid-template-columns: 1fr; gap: 1rem; } }

.catalog-sidebar {
    position: sticky;
    top: calc(var(--nav-h) + 1rem);
    max-height: calc(100vh - var(--nav-h) - 2rem);
    overflow-y: auto;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}
@media (max-width: 880px) {
    .catalog-sidebar { position: static; max-height: none; padding: 1rem; }
    .catalog-sidebar.collapsed .filter-body { display: none; }
}
.filter-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.875rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}
.filter-head .title {
    font-family: var(--font-h);
    font-weight: 700;
    font-size: 1rem;
}
.filter-count {
    font-size: 0.75rem;
    color: var(--muted);
    background: var(--muted-bg);
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-weight: 500;
}
.filter-group {
    margin: 0 0 1rem;
    padding: 0 0 1rem;
    border: 0;
    border-bottom: 1px solid var(--border-soft);
}
.filter-group:last-of-type { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
.filter-legend {
    font-family: var(--font-h);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--fg);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.625rem;
    padding: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.filter-option {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.375rem 0;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--fg);
    user-select: none;
}
.filter-option input[type=checkbox] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px; height: 18px;
    border: 1.5px solid var(--border);
    border-radius: 5px;
    background: #fff;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    transition: border-color 0.15s, background 0.15s;
}
.filter-option input[type=checkbox]:hover { border-color: var(--primary); }
.filter-option input[type=checkbox]:checked {
    background: var(--primary);
    border-color: var(--primary);
}
.filter-option input[type=checkbox]:checked::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.filter-option .lbl { flex: 1; }
.filter-option .count {
    font-size: 0.75rem;
    color: var(--muted);
    background: var(--muted-bg);
    padding: 0.0625rem 0.5rem;
    border-radius: 9999px;
    min-width: 22px;
    text-align: center;
}
.filter-option.is-empty {
    color: var(--muted);
    opacity: 0.5;
    cursor: not-allowed;
}
.filter-reset {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary);
    margin-top: 0.5rem;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}
.filter-reset:hover { text-decoration: underline; }

.catalog-toggle {
    display: none;
}
@media (max-width: 880px) {
    .catalog-toggle {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 1rem;
        padding: 0.625rem 1rem;
        background: var(--card);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        font-family: var(--font-h);
        font-weight: 600;
        font-size: 0.875rem;
    }
}

/* Product grid (catalog) */
.prod-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}
@media (max-width: 1180px) { .prod-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 880px)  { .prod-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; } }

.prod-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
    color: var(--fg);
}
.prod-card:hover {
    box-shadow: 0 12px 28px rgba(15, 25, 50, 0.10), 0 2px 6px rgba(15, 25, 50, 0.04);
    border-color: var(--primary-soft-2);
    transform: translateY(-2px);
}
.prod-card-img {
    background: #fff;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 1.25rem;
    position: relative;
}
@media (max-width: 880px) { .prod-card-img { height: 150px; padding: 0.75rem; } }
.prod-card-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: brightness(1.04) contrast(1.08);
    mix-blend-mode: multiply;
}

/* FFP class badge — top-right corner */
.prod-class-badge {
    position: absolute;
    top: 0.625rem;
    right: 0.625rem;
    display: inline-flex;
    align-items: center;
    padding: 0.1875rem 0.625rem;
    background: hsl(150, 60%, 95%);
    color: hsl(150, 65%, 30%);
    border: 1px solid hsl(150, 50%, 80%);
    border-radius: 9999px;
    font-family: var(--font-h);
    font-weight: 700;
    font-size: 0.6875rem;
    letter-spacing: 0.04em;
    z-index: 2;
}

.prod-card-body {
    padding: 0.875rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    border-top: 1px solid var(--border-soft);
}
@media (max-width: 880px) { .prod-card-body { padding: 0.625rem 0.75rem 0.875rem; gap: 0.375rem; } }
.prod-card-brand {
    font-size: 0.6875rem;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 0.06em;
}
.prod-card-title {
    font-family: var(--font-h);
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--fg);
}
@media (max-width: 880px) { .prod-card-title { font-size: 0.8125rem; } }
.prod-card-desc {
    font-size: 0.75rem;
    color: var(--muted);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
@media (max-width: 880px) { .prod-card-desc { display: none; } }
.prod-card-cta {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4375rem;
    padding: 0.5625rem 0.875rem;
    background: var(--primary);
    color: #fff;
    border-radius: 9px;
    font-family: var(--font-h);
    font-size: 0.8125rem;
    font-weight: 600;
    transition: background 0.15s;
}
.prod-card:hover .prod-card-cta { background: var(--primary-dark); }
@media (max-width: 880px) { .prod-card-cta { font-size: 0.75rem; padding: 0.4375rem 0.625rem; } }

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--muted);
}
.empty-state h2 { color: var(--fg); margin-bottom: 0.5rem; }

/* ============================================================
   Product detail
   ============================================================ */
.product {
    padding: 2rem 0 4rem;
}
.product-v2 .breadcrumb {
    font-size: 0.875rem;
    color: var(--muted);
    margin-bottom: 1.25rem;
}
.product-v2 .breadcrumb a:hover { color: var(--primary); }

.prod-grid-v2 {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 3rem;
    align-items: start;
}
@media (max-width: 880px) {
    .prod-grid-v2 { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ── Product v3: 3-col grid (thumbs | image+button | info) ── */
.prod-grid-v3 {
    display: grid;
    grid-template-columns: 80px minmax(0, 9fr) minmax(0, 5fr);
    gap: 1.5rem 2.5rem;
    align-items: start;
}
@media (max-width: 1024px) {
    .prod-grid-v3 { grid-template-columns: 64px minmax(0, 9fr) minmax(0, 5fr); gap: 1rem 2rem; }
}
@media (max-width: 880px) {
    .prod-grid-v3 { grid-template-columns: 1fr; gap: 1.25rem; }
}

.prod-thumbs {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    position: sticky;
    top: calc(var(--nav-h) + 1rem);
}
@media (max-width: 880px) {
    .prod-thumbs {
        position: static;
        flex-direction: row;
        gap: 0.5rem;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0 1rem 0.5rem;
        margin: 0 -1rem;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .prod-thumbs::-webkit-scrollbar { display: none; }
    .prod-thumbs .thumb-btn { scroll-snap-align: start; }
}
.thumb-btn {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    background: transparent;
    padding: 0.25rem;
    cursor: pointer;
    transition: border-color 0.15s;
    flex-shrink: 0;
}
.thumb-btn img { width: 100%; height: 100%; object-fit: contain; }
.thumb-btn:hover, .thumb-btn.active { border-color: var(--primary); }
@media (max-width: 1024px) { .thumb-btn { width: 64px; height: 64px; padding: 0.25rem; } }
@media (max-width: 880px)  { .thumb-btn { width: 56px; height: 56px; } }
.thumb-cert {
    margin-top: 0.5rem;
    display: flex;
    justify-content: center;
}
.cert-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    padding: 0.25rem 0.5rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-h);
    font-weight: 700;
    font-size: 0.6875rem;
    color: var(--fg-soft);
    letter-spacing: 0.06em;
}
@media (max-width: 880px) { .thumb-cert { display: none; } }

/* Spec rows on the right info column */
.spec-rows {
    margin: 0 0 1.25rem;
    border-top: 1px solid var(--border);
}
.spec-row {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: 1.25rem;
    padding: 0.6875rem 0;
    border-bottom: 1px solid var(--border-soft);
}
.spec-label {
    font-family: var(--font-h);
    font-weight: 700;
    color: var(--fg);
    font-size: 0.8125rem;
}
.spec-value {
    color: var(--fg-soft);
    font-size: 0.8125rem;
    line-height: 1.45;
}

/* Spec table + vertical icon column wrapper */
.spec-with-badges {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: start;
    margin-bottom: 1.25rem;
}
.spec-with-badges .spec-rows { margin-bottom: 0; }

/* Side icon badges — vertical column on the right */
.prod-badges {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    padding: 0.5rem 0;
}
.prod-badge {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: transparent;
    border: 1px solid var(--border);
    color: var(--fg-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
@media (max-width: 880px) {
    .spec-with-badges { grid-template-columns: 1fr; }
    .prod-badges { flex-direction: row; padding: 0; }
}

/* KZ flag (made-in-Kazakhstan marker) */
.kz-flag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.5rem 0.25rem 0.375rem;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid hsla(189, 100%, 35%, 0.30);
    border-radius: 6px;
    font-family: var(--font-h);
    font-weight: 700;
    font-size: 0.6875rem;
    letter-spacing: 0.04em;
    color: hsl(189, 100%, 25%);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.kz-flag img { display: block; border-radius: 2px; flex-shrink: 0; }

/* On product cards — small flag ribbon in corner */
.prod-card .kz-flag {
    position: absolute;
    top: 0.625rem;
    left: 0.625rem;
    z-index: 2;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    gap: 0;
    font-size: 0;
    color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    pointer-events: none;
}
.prod-card .kz-flag img {
    display: block;
    width: 44px;
    height: 22px;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}
.prod-card-img { position: relative; overflow: hidden; }

.kz-flag-lg {
    padding: 0.4375rem 0.75rem 0.4375rem 0.5rem;
    font-size: 0.8125rem;
    gap: 0.5rem;
}
.kz-flag-lg img { width: 26px; height: 17px; }

.prod-info-meta {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex-wrap: wrap;
    margin-bottom: 0.875rem;
}
.prod-info-meta .product-brand-pill { margin-bottom: 0; }

/* Cert list inside accordion */
.acc-certs { padding: 0 0 1rem; list-style: none; }
.acc-certs li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.4375rem 0;
    color: var(--fg-soft);
    font-size: 0.9375rem;
}
.cert-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 28px;
    padding: 0 0.5rem;
    border-radius: 4px;
    border: 1px solid var(--border);
    background: var(--bg-alt);
    font-family: var(--font-h);
    font-weight: 800;
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
    color: var(--fg);
    flex-shrink: 0;
}
.cert-mark-eac { color: hsl(0, 65%, 50%); border-color: hsla(0, 65%, 50%, 0.3); background: hsla(0, 65%, 50%, 0.06); }
.cert-mark-gost { color: hsl(220, 75%, 45%); border-color: hsla(220, 75%, 45%, 0.3); background: hsla(220, 75%, 45%, 0.06); }

/* Plus icon for accordion: rotate cross to minus when open */
.prod-accordion .acc-plus-v { transition: opacity 0.2s; }
.prod-accordion[open] .acc-plus-v { opacity: 0; }
.prod-accordion[open] .acc-icon { transform: none; }

.prod-media {
    position: sticky;
    top: calc(var(--nav-h) + 1rem);
}
@media (max-width: 880px) { .prod-media { position: static; } }

.prod-image {
    background: transparent;
    border: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    margin-bottom: 1.5rem;
    overflow: hidden;
}
@media (max-width: 880px) { .prod-image { aspect-ratio: 4 / 3; margin-bottom: 1rem; } }
.prod-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: scale(1.05);
    transform-origin: center;
    /* Source photos have slight gray background — clip-light to pure white */
    filter: brightness(1.04) contrast(1.08);
    mix-blend-mode: multiply;
}
/* Per-category zoom — sparse-content categories (filters, masks) need more zoom */
.prod-image[data-cat="polumaska"]    img { transform: scale(1.3); }
.prod-image[data-cat="respiratory"]  img { transform: scale(1.2); }
.prod-image[data-cat="kaski"]        img { transform: scale(1.15); }
.prod-image[data-cat="zashchita-svarka"] img { transform: scale(1.1); }
/* Content-heavy categories — gloves/coveralls/footwear/workwear already fill the frame */
.prod-image[data-cat="perchatki"]   img,
.prod-image[data-cat="kombinezony"] img,
.prod-image[data-cat="spetsodezhda"] img,
.prod-image[data-cat="spetsobuv"]   img { transform: scale(1.0); }

.thumb-btn img { filter: brightness(1.04) contrast(1.08); mix-blend-mode: multiply; }
.prod-media-cta {
    display: flex;
    gap: 0.625rem;
    flex-wrap: wrap;
}
.btn-cart-lg {
    flex: 1 1 auto;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 56px;
    padding: 0 1.5rem;
    background: var(--primary);
    color: #fff;
    border: 0;
    border-radius: var(--radius);
    font-family: var(--font-h);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    box-shadow: 0 6px 18px hsla(210, 88%, 53%, 0.30);
}
.btn-cart-lg:hover { background: var(--primary-dark); }
.btn-cart-lg:active { transform: translateY(1px); }
.btn-cart-lg.added { background: var(--success); box-shadow: 0 6px 18px hsla(142, 71%, 45%, 0.30); }
.btn-pdf-lg {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4375rem;
    height: 56px;
    padding: 0 1.125rem;
    background: var(--card);
    color: var(--fg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-h);
    font-weight: 600;
    font-size: 0.9375rem;
    transition: border-color 0.15s, color 0.15s;
}
.btn-pdf-lg:hover { border-color: var(--primary); color: var(--primary); }

.prod-info { min-width: 0; }
.product-brand-pill {
    display: inline-block;
    font-family: var(--font-h);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-soft);
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.875rem;
}
.product-title {
    font-size: clamp(1.375rem, 2.2vw, 1.75rem);
    margin-bottom: 0.625rem;
    line-height: 1.18;
}
.product-intro {
    color: var(--muted);
    margin-bottom: 1.25rem;
    font-size: 0.9375rem;
    line-height: 1.55;
}

/* Accordions in the right info column */
.prod-accordion {
    border-top: 1px solid var(--border);
    margin: 0;
}
.prod-accordion:last-of-type { border-bottom: 1px solid var(--border); }
.prod-accordion summary {
    list-style: none;
    cursor: pointer;
    padding: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
}
.prod-accordion summary::-webkit-details-marker { display: none; }
.prod-accordion .acc-title {
    font-family: var(--font-h);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.prod-accordion .acc-icon {
    display: inline-flex;
    color: var(--muted);
    transition: transform 0.2s, color 0.15s;
}
.prod-accordion[open] .acc-icon { transform: rotate(180deg); color: var(--primary); }
.prod-accordion .acc-list,
.prod-accordion .acc-body { padding: 0 0 1rem; margin: 0; }
.prod-accordion .acc-list { list-style: none; }
.prod-accordion .acc-list-checks li {
    position: relative;
    padding: 0.4375rem 0 0.4375rem 1.75rem;
    color: var(--fg-soft);
    line-height: 1.5;
    font-size: 0.8125rem;
}
.prod-accordion .acc-list-checks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.75rem;
    width: 14px;
    height: 8px;
    border-left: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    transform: rotate(-45deg);
}
.prod-accordion .acc-list-dots li {
    position: relative;
    padding: 0.375rem 0 0.375rem 1.25rem;
    color: var(--fg-soft);
    line-height: 1.5;
    font-size: 0.8125rem;
}
.prod-accordion .acc-list-dots li::before {
    content: "";
    position: absolute;
    left: 0.25rem;
    top: 0.875rem;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--primary);
}
.prod-accordion .acc-downloads li { padding: 0.375rem 0; }
.prod-accordion .acc-downloads a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 500;
    font-size: 0.8125rem;
}
.prod-accordion .acc-downloads a:hover { text-decoration: underline; }

.spec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}
.spec-table th, .spec-table td {
    padding: 0.625rem 0.75rem;
    border-bottom: 1px solid var(--border-soft);
    text-align: left;
}
.spec-table th {
    font-weight: 600;
    color: var(--fg);
    width: 40%;
    background: var(--bg-alt);
}
@media (max-width: 640px) {
    .spec-table { font-size: 0.8125rem; }
    .spec-table th { width: 50%; }
}

/* Add-to-cart button (product detail) */
.add-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: var(--primary);
    color: #fff;
    border: 0;
    border-radius: var(--radius);
    font-family: var(--font-h);
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    box-shadow: 0 4px 14px hsla(210, 88%, 53%, 0.30);
}
.add-cart:hover { background: var(--primary-dark); }
.add-cart:active { transform: translateY(1px); }
.add-cart.added { background: var(--success); box-shadow: 0 4px 14px hsla(142, 71%, 45%, 0.30); }
@media (max-width: 880px) { .add-cart { width: 100%; } }

/* ============================================================
   Cart page
   ============================================================ */
.cart-page { padding: 2rem 0 4rem; }
.cart-page .container { max-width: 980px; }
.cart-page h1 { font-size: clamp(1.625rem, 2.6vw, 2.125rem); margin-bottom: 0.5rem; }
.cart-sub { color: var(--muted); margin-bottom: 2rem; font-size: 0.9375rem; }
.cart-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}
.cart-item {
    display: grid;
    grid-template-columns: 88px 1fr auto auto;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
@media (max-width: 640px) {
    .cart-item {
        grid-template-columns: 64px 1fr;
        grid-template-rows: auto auto;
        padding: 0.875rem 2.5rem 0.875rem 0.875rem;
        position: relative;
        gap: 0.625rem;
    }
}
.cart-item-img {
    width: 88px; height: 88px;
    border-radius: var(--radius-sm);
    background: var(--bg-alt);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}
@media (max-width: 640px) { .cart-item-img { width: 64px; height: 64px; padding: 0.25rem; } }
.cart-item-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cart-item-name {
    font-family: var(--font-h);
    font-weight: 600;
    color: var(--fg);
    font-size: 0.9375rem;
    line-height: 1.3;
}
@media (max-width: 640px) { .cart-item-name { font-size: 0.875rem; word-break: break-word; } }
.cart-item-name:hover { color: var(--primary); }
.cart-qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 9999px;
    background: var(--bg);
    overflow: hidden;
}
@media (max-width: 640px) { .cart-qty { grid-column: 1 / -1; justify-self: start; } }
.cart-qty button {
    width: 36px; height: 36px;
    background: transparent;
    border: 0;
    cursor: pointer;
    color: var(--muted);
    font-size: 1.125rem;
    font-weight: 600;
}
.cart-qty button:hover { color: var(--primary); }
.cart-qty input {
    width: 40px; height: 36px;
    border: 0;
    text-align: center;
    background: transparent;
    font-family: var(--font-h);
    font-weight: 600;
    color: var(--fg);
    font-size: 0.9375rem;
    -moz-appearance: textfield;
}
.cart-qty input::-webkit-outer-spin-button,
.cart-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cart-item-remove {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: transparent;
    border: 0;
    color: var(--muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}
.cart-item-remove:hover { background: hsl(0, 80%, 96%); color: var(--danger); }
@media (max-width: 640px) {
    .cart-item-remove { position: absolute; right: 0.5rem; top: 0.5rem; width: 32px; height: 32px; }
}

.cart-empty {
    text-align: center;
    padding: 4rem 1rem;
    background: var(--card);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
}
.cart-empty h2 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.cart-empty p { color: var(--muted); margin-bottom: 1.5rem; }

.cart-checkout {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}
@media (max-width: 640px) { .cart-checkout { padding: 1.25rem; } }
.cart-checkout h2 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.cart-checkout .hint { color: var(--muted); margin-bottom: 1.25rem; font-size: 0.875rem; }

.cust-radio { display: flex; gap: 0.625rem; margin-bottom: 1.25rem; }
.cust-radio label {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: border-color 0.15s, background 0.15s;
}
.cust-radio input[type=radio] { accent-color: var(--primary); }
.cust-radio label:has(input:checked) {
    border-color: var(--primary);
    background: var(--primary-soft);
    color: var(--primary);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
label.field {
    display: flex;
    flex-direction: column;
    font-size: 0.875rem;
    font-weight: 500;
    gap: 0.375rem;
}
input[type=text], input[type=email], input[type=tel], textarea {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    font-size: 0.9375rem;
    font-family: inherit;
    color: var(--fg);
    transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}
textarea { resize: vertical; min-height: 90px; }

.consent {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--muted);
    margin: 1rem 0;
}
.consent input { accent-color: var(--primary); margin-top: 0.125rem; }
.submit-cta {
    width: 100%;
    padding: 0.875rem;
    background: var(--primary);
    color: #fff;
    border: 0;
    border-radius: var(--radius);
    font-family: var(--font-h);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 14px hsla(210, 88%, 53%, 0.30);
}
.submit-cta:hover { background: var(--primary-dark); }
.submit-cta:active { transform: translateY(1px); }

.success-block {
    text-align: center;
    padding: 3rem 1.5rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.success-icon {
    width: 64px; height: 64px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: var(--success);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.success-block h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }

/* ============================================================
   Reveal-on-scroll
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal-ready [data-reveal] {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.6s ease, transform 0.6s ease;
        transition-delay: var(--reveal-delay, 0ms);
    }
    .reveal-ready [data-reveal].is-visible {
        opacity: 1;
        transform: none;
    }
}

/* ============================================================
   Login page
   ============================================================ */
/* Bare-layout (login etc.) — full-screen dark gradient
   No background-attachment:fixed (breaks on iOS Safari overscroll).
   Color set directly on html to fill overscroll bounce area. */
body.bare-layout {
    background: hsl(220, 50%, 8%);
    color: #fff;
    height: 100%;
    overflow: hidden;
}
body.bare-layout .page-main {
    background:
        radial-gradient(1200px 700px at 100% 0%, hsla(210, 88%, 60%, 0.10) 0%, transparent 60%),
        radial-gradient(900px 600px at 0% 100%, hsla(220, 60%, 30%, 0.14) 0%, transparent 60%),
        linear-gradient(180deg, hsl(220, 50%, 8%) 0%, hsl(220, 45%, 11%) 100%);
    height: 100%;
    display: flex;
    overflow: hidden;
}

/* Override the generic .login-form input rule for non-text inputs */
.login-form input[type=checkbox] { width: 18px !important; height: 18px !important; padding: 0 !important; }

.login-page {
    position: relative;
    flex: 1;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 2rem 1.25rem;
    background: transparent;
    color: #fff;
    isolation: isolate;
}
.login-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.login-bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.55;
}
.login-bg-orb.orb-1 {
    width: 480px; height: 480px;
    background: hsl(210, 88%, 55%);
    top: -100px; right: -100px;
}
.login-bg-orb.orb-2 {
    width: 380px; height: 380px;
    background: hsl(195, 75%, 50%);
    bottom: -80px; left: -80px;
}
.login-bg-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(to right, hsla(0,0%,100%,0.04) 1px, transparent 1px),
        linear-gradient(to bottom, hsla(0,0%,100%,0.04) 1px, transparent 1px);
    background-size: 80px 80px;
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
            mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.login-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 460px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.login-card {
    width: 100%;
    background: hsla(220, 40%, 14%, 0.78);
    border: 1px solid hsla(210, 60%, 60%, 0.20);
    border-radius: 20px;
    padding: 2rem 1.75rem 1.5rem;
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 4px 12px rgba(0, 0, 0, 0.20);
    color: #fff;
}
@media (min-width: 480px) { .login-card { padding: 2.5rem 2.25rem 2rem; } }

.login-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-h);
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.025em;
    color: #fff;
    margin-bottom: 1.5rem;
}
.login-brand .brand-name { line-height: 1; color: #fff; }
.login-brand .brand-name span { color: hsl(210, 100%, 70%); }

.login-head h1 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}
.login-head p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.login-form { display: flex; flex-direction: column; gap: 1rem; }
.login-form .field { display: flex; flex-direction: column; gap: 0.4375rem; }
.login-form .field-label {
    font-family: var(--font-h);
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.login-form .field-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.login-form .field-ico {
    position: absolute;
    left: 14px;
    color: rgba(255, 255, 255, 0.45);
    pointer-events: none;
    display: inline-flex;
}
.login-form input {
    width: 100%;
    height: 48px;
    padding: 0 14px 0 44px;
    background: hsla(220, 30%, 18%, 0.7);
    border: 1px solid hsla(210, 50%, 60%, 0.20);
    border-radius: 12px;
    color: #fff;
    font-family: var(--font-b);
    font-size: 16px;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.login-form input::placeholder { color: rgba(255, 255, 255, 0.35); }
.login-form input:hover { border-color: hsla(210, 80%, 70%, 0.35); }
.login-form input:focus {
    outline: 0;
    border-color: hsl(210, 100%, 70%);
    background: hsla(220, 30%, 18%, 0.9);
    box-shadow: 0 0 0 3px hsla(210, 100%, 60%, 0.22);
}
.field-pwd-toggle {
    position: absolute;
    right: 8px;
    width: 36px;
    height: 36px;
    background: transparent;
    border: 0;
    color: rgba(255, 255, 255, 0.45);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.15s, background 0.15s;
}
.field-pwd-toggle:hover { color: #fff; background: hsla(0, 0%, 100%, 0.06); }
.field-pwd-toggle.on { color: hsl(210, 100%, 75%); }

.login-row-mini {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: -0.25rem;
}
.remember {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.78);
    cursor: pointer;
    user-select: none;
    font-weight: 500;
}
.remember input[type=checkbox] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px; height: 18px;
    border-radius: 5px;
    background: hsla(220, 25%, 20%, 0.85);
    border: 1.5px solid hsla(210, 50%, 65%, 0.40);
    cursor: pointer;
    position: relative;
    transition: background 0.15s ease, border-color 0.15s ease;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}
.remember input[type=checkbox]:hover { border-color: hsl(210, 100%, 70%); }
.remember input[type=checkbox]:checked {
    background: hsl(210, 100%, 55%);
    border-color: hsl(210, 100%, 55%);
}
.remember input[type=checkbox]:checked::after {
    content: "";
    position: absolute;
    left: 5px; top: 1px;
    width: 5px; height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.remember input[type=checkbox]:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 3px hsla(210, 100%, 60%, 0.30);
}
.forgot {
    font-size: 0.8125rem;
    color: hsl(210, 100%, 75%);
    font-weight: 500;
}
.forgot:hover { text-decoration: underline; }

.login-submit {
    height: 50px;
    margin-top: 0.25rem;
    border-radius: 12px;
    font-size: 0.9375rem;
    font-weight: 700;
    gap: 0.5rem;
    box-shadow: 0 8px 22px hsla(210, 88%, 53%, 0.45);
}
.login-error {
    margin-top: -0.25rem;
    padding: 0.75rem 0.875rem;
    background: hsla(0, 75%, 55%, 0.12);
    border: 1px solid hsla(0, 75%, 60%, 0.30);
    border-radius: 10px;
    color: hsl(0, 80%, 80%);
    font-size: 0.8125rem;
    line-height: 1.45;
}

.login-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0 1rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.login-divider::before,
.login-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: hsla(210, 50%, 60%, 0.2);
}
.login-divider span { padding: 0 0.75rem; }

.login-alt {
    text-align: center;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.875rem;
    line-height: 1.5;
}
.login-alt a { color: hsl(210, 100%, 75%); font-weight: 500; }
.login-alt a:hover { text-decoration: underline; }

.login-foot {
    margin-top: 1.5rem;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.75rem;
    text-align: center;
    line-height: 1.6;
}
.login-foot a {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}
.login-foot a:hover { color: hsl(210, 100%, 80%); }

/* Login button in main nav */
.nav-login {
    display: inline-flex;
    align-items: center;
    gap: 0.4375rem;
    padding: 0.5rem 0.875rem;
    background: transparent;
    border: 1px solid hsla(0, 0%, 100%, 0.22);
    border-radius: 10px;
    color: #fff;
    font-family: var(--font-h);
    font-size: 0.8125rem;
    font-weight: 600;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.nav-login:hover {
    background: hsla(0, 0%, 100%, 0.10);
    border-color: hsla(210, 90%, 70%, 0.50);
    color: hsl(210, 100%, 80%);
}
.nav-login svg { color: inherit; }
@media (max-width: 880px) {
    .nav-actions .nav-login { display: none; }
}
