:root {
    color-scheme: light;
    --bg: #ffffff;
    --panel: #f5f5f3;
    --panel-strong: #ececea;
    --text: #111111;
    --muted: #6e716d;
    --line: rgba(17, 17, 17, .11);
    --accent: #1c352d;
    --accent-2: #8aa899;
    --on-accent: #ffffff;
    --radius: 14px;
    --shadow: 0 24px 80px rgba(17, 17, 17, .12);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0e0f0d;
    --panel: #171917;
    --panel-strong: #22251f;
    --text: #f5f4ef;
    --muted: #a7aba4;
    --line: rgba(245, 244, 239, .12);
    --accent: #8aa899;
    --accent-2: #1c352d;
    --on-accent: #08100d;
    --shadow: 0 24px 80px rgba(0, 0, 0, .36);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-size: 16px;
    line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 28px;
    min-height: 74px;
    padding: 12px clamp(18px, 4vw, 56px);
    border-bottom: 1px solid transparent;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: blur(18px);
}
.site-header.is-scrolled { border-color: var(--line); }
.brand-mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: var(--text);
}
.brand-mark svg { width: 38px; height: 38px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.brand-mark.small { width: 36px; height: 36px; }
.desktop-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 26px;
    color: var(--muted);
    font-size: 14px;
}
.desktop-nav a:hover { color: var(--text); }
.mega-trigger {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 52px;
}
.mega-trigger::after {
    content: "";
    position: absolute;
    left: -28px;
    right: -28px;
    top: 100%;
    height: 18px;
}
.mega-menu {
    position: absolute;
    left: 50%;
    top: calc(100% + 10px);
    z-index: 20;
    display: grid;
    width: min(760px, 90vw);
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(8px);
    transition: .2s ease;
}
.mega-trigger:hover .mega-menu { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.mega-trigger:focus-within .mega-menu { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.mega-menu a {
    display: grid;
    gap: 6px;
    min-height: 84px;
    padding: 14px;
    border-radius: 10px;
    background: var(--panel);
}
.mega-menu small { color: var(--muted); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
    position: relative;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: color-mix(in srgb, var(--bg) 72%, transparent);
    cursor: pointer;
}
.icon-btn svg, .mobile-tabbar svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.cart-button span, .mobile-tabbar b {
    position: absolute;
    right: -2px;
    top: -2px;
    display: grid;
    place-items: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--bg);
    color: var(--text);
    cursor: pointer;
    font-weight: 650;
}
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.subtle { background: var(--panel); }

main { min-height: 70vh; }
.hero {
    position: relative;
    min-height: min(760px, calc(100vh - 74px));
    overflow: hidden;
    display: grid;
    align-items: end;
    isolation: isolate;
}
.hero img {
    position: absolute;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(255,255,255,.88), rgba(255,255,255,.36) 48%, rgba(255,255,255,.04));
}
[data-theme="dark"] .hero::after { background: linear-gradient(90deg, rgba(0,0,0,.74), rgba(0,0,0,.28) 52%, rgba(0,0,0,.02)); }
.hero-copy {
    width: min(650px, 92vw);
    padding: clamp(48px, 9vw, 110px) clamp(20px, 6vw, 80px);
}
.hero-copy span, .section-head p, .filters p, .product-detail > p, .text-page p:first-child,
.journal-page > p, .support-page > p, .contacts-page p:first-child, .checkout-page p:first-child,
.account-page > p, .admin-page > p, .promo-page p:first-of-type {
    color: var(--accent);
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 760;
    text-transform: uppercase;
    letter-spacing: 0;
}
h1, h2, h3, p { overflow-wrap: anywhere; }
.hero h1 {
    margin: 0 0 18px;
    max-width: 620px;
    font-size: clamp(42px, 7vw, 86px);
    line-height: .96;
    letter-spacing: 0;
}
.hero p { max-width: 520px; margin: 0 0 28px; color: var(--muted); font-size: 18px; }

.section-head, .text-page, .journal-page, .support-page, .contacts-page, .account-page, .admin-page {
    width: min(1180px, calc(100% - 36px));
    margin: 80px auto 30px;
}
.section-head h2, .text-page h1, .journal-page h1, .support-page h1, .contacts-page h1,
.checkout-page h1, .account-page h1, .admin-page h1 {
    margin: 0;
    font-size: clamp(32px, 5vw, 60px);
    line-height: 1.02;
    letter-spacing: 0;
}
.product-grid {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto 86px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.product-card {
    position: relative;
    display: grid;
    gap: 14px;
    min-width: 0;
}
.product-media {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--panel);
}
.product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.product-card:hover .product-media img { transform: scale(1.035); }
.product-media span {
    position: absolute;
    left: 12px;
    top: 12px;
    padding: 5px 9px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    font-size: 12px;
}
.product-info {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}
.product-info h3 { margin: 0; font-size: 16px; }
.product-info p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.card-buy {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 76px;
    opacity: 0;
    transform: translateY(8px);
    transition: .2s ease;
}
.product-card:hover .card-buy { opacity: 1; transform: translateY(0); }

.category-showcase {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto 28px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.category-showcase a {
    min-height: 170px;
    display: grid;
    align-content: end;
    gap: 8px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    transition: transform .2s ease, background .2s ease;
}
.category-showcase a:hover {
    transform: translateY(-3px);
    background: var(--panel-strong);
}
.category-showcase span,
.series-feature p:first-child,
.bundle-band p,
.journal-strip p,
.support-cta p {
    margin: 0;
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}
.category-showcase strong { font-size: 22px; line-height: 1.05; }
.category-showcase small { color: var(--muted); }

.series-feature {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto 28px;
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--line);
}
.series-feature > div {
    display: grid;
    align-content: center;
    gap: 18px;
    padding: clamp(26px, 5vw, 54px);
    background: var(--bg);
}
.series-feature h2,
.bundle-band h2,
.journal-strip h2,
.support-cta h2 {
    margin: 0;
    font-size: clamp(30px, 4.7vw, 58px);
    line-height: 1.02;
}
.series-feature p:not(:first-child) {
    margin: 0;
    color: var(--muted);
    max-width: 560px;
}
.series-feature img {
    width: 100%;
    height: 100%;
    min-height: 520px;
    object-fit: cover;
    background: var(--panel);
}
.feature-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.feature-pills span {
    padding: 7px 10px;
    border-radius: 999px;
    background: var(--panel);
    color: var(--muted);
    font-size: 13px;
}
.bundle-band,
.support-cta {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: clamp(22px, 4vw, 38px);
    border-radius: var(--radius);
    background: var(--accent);
    color: var(--on-accent);
}
.bundle-band p,
.support-cta p { color: currentColor; opacity: .72; }
.bundle-band .btn.primary,
.support-cta .btn.primary {
    background: var(--bg);
    border-color: var(--bg);
    color: var(--text);
}
.compatibility,
.proof-section {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto 28px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.compatibility div,
.proof-section article {
    min-height: 150px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
}
.compatibility span,
.proof-section span {
    color: var(--accent);
    font-weight: 800;
}
.compatibility strong,
.proof-section strong {
    display: block;
    margin-top: 28px;
    font-size: 20px;
}
.compatibility small,
.proof-section p {
    display: block;
    margin-top: 8px;
    color: var(--muted);
}
.journal-strip {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto 28px;
    display: grid;
    grid-template-columns: 1fr auto 260px 260px;
    gap: 12px;
    align-items: stretch;
}
.journal-strip > div,
.journal-strip > a,
.journal-strip article {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
}
.journal-strip > a {
    display: grid;
    place-items: center;
    font-weight: 800;
}
.journal-strip article {
    display: grid;
    gap: 10px;
}
.journal-strip img {
    width: 100%;
    aspect-ratio: 1.5;
    object-fit: cover;
    border-radius: 10px;
}
.journal-strip article span {
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}
.support-cta {
    margin-bottom: 96px;
    background: var(--panel);
    color: var(--text);
    border: 1px solid var(--line);
}
.support-cta > div:last-child {
    display: flex;
    gap: 10px;
}

.benefits {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto 96px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--line);
}
.benefits article { min-height: 210px; padding: 28px; background: var(--bg); }
.benefits span { color: var(--accent); font-weight: 800; }
.benefits h3 { margin: 44px 0 10px; }
.benefits p { margin: 0; color: var(--muted); }

.catalog-layout {
    width: min(1320px, calc(100% - 36px));
    margin: 34px auto 90px;
    display: grid;
    grid-template-columns: 290px 1fr;
    gap: 34px;
}
.filters {
    position: sticky;
    top: 96px;
    align-self: start;
    display: grid;
    gap: 16px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
}
.filters h1 { margin: 0 0 8px; }
.filters label { display: grid; gap: 8px; color: var(--muted); font-size: 13px; }
select, input, textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--bg);
    min-height: 44px;
    padding: 0 12px;
}
textarea { padding-top: 12px; resize: vertical; }
.color-filters { display: flex; gap: 10px; }
.color-filters button, .swatches a {
    width: 28px;
    height: 28px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--swatch);
    cursor: pointer;
}
.catalog-top { display: flex; align-items: baseline; gap: 8px; margin: 0 0 16px; color: var(--muted); }
.catalog-top span { color: var(--text); font-weight: 800; font-size: 26px; }
.catalog-grid { width: 100%; margin: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); }

.product-page {
    width: min(1220px, calc(100% - 36px));
    margin: 38px auto 100px;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
    gap: 48px;
}
.gallery > img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius);
    background: var(--panel);
}
.thumb-row { display: grid; grid-template-columns: repeat(2, 92px); gap: 10px; margin-top: 12px; }
.thumb-row button { border: 1px solid var(--line); border-radius: 10px; padding: 0; overflow: hidden; background: var(--panel); }
.product-detail { align-self: start; position: sticky; top: 98px; }
.product-detail h1 { margin: 0 0 12px; font-size: clamp(36px, 5vw, 64px); line-height: 1; }
.product-detail p { color: var(--muted); }
.price-line { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; }
.price-line strong { font-size: 24px; }
.price-line span { color: var(--muted); text-decoration: line-through; }
.variant-block { display: grid; gap: 12px; margin: 26px 0; }
.swatches { display: flex; gap: 10px; }
.swatches .active { outline: 2px solid var(--accent); outline-offset: 3px; }
.specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--line);
}
.specs div { padding: 14px; background: var(--panel); }
.specs dt { color: var(--muted); font-size: 12px; }
.specs dd { margin: 4px 0 0; font-weight: 700; }
.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 0; list-style: none; }
.feature-list li { padding: 12px; border-radius: 10px; background: var(--panel); }
.add-main { width: 100%; margin: 12px 0; }
.bundle { margin-top: 16px; padding: 18px; border-radius: var(--radius); background: var(--panel); }
.bundle p { margin: 8px 0 14px; }
.sticky-cta { display: none; }

.checkout-page, .contacts-page {
    width: min(1120px, calc(100% - 36px));
    margin: 48px auto 96px;
    display: grid;
    grid-template-columns: 1fr 390px;
    gap: 40px;
}
.checkout-form, .contact-form {
    display: grid;
    gap: 14px;
    margin-top: 28px;
}
.checkout-form label, .contact-form label { display: grid; gap: 8px; color: var(--muted); font-size: 14px; }
.segmented, .pay-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.segmented { grid-template-columns: repeat(2, 1fr); }
.segmented label, .pay-row button {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel);
}
.segmented input { width: auto; min-height: 0; margin-right: 8px; }
.checkout-summary {
    align-self: start;
    padding: 20px;
    border-radius: var(--radius);
    background: var(--panel);
}
.checkout-summary h2 { margin-top: 0; }
.mini-cart-row { display: grid; grid-template-columns: 54px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mini-cart-row img { width: 54px; height: 54px; object-fit: cover; border-radius: 8px; }
.form-note { color: var(--muted); font-size: 14px; }

.image-led {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    align-items: center;
}
.image-led img { border-radius: var(--radius); aspect-ratio: 1.15; object-fit: cover; }
.text-page > p:not(:first-child), .text-page div p:not(:first-child) { color: var(--muted); font-size: 18px; }
.journal-grid, .account-grid, .admin-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 28px;
}
.journal-grid article, .account-grid article, .admin-grid article, .support-page details {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
}
.journal-grid img { aspect-ratio: 1.1; object-fit: cover; border-radius: 10px; margin-bottom: 16px; }
.journal-grid span, .account-grid span { color: var(--accent); font-size: 13px; font-weight: 800; }
.journal-grid h2, .admin-grid h2 { font-size: 22px; line-height: 1.12; }
.support-page { max-width: 860px; }
.support-page details { margin-top: 12px; }
.support-page summary { cursor: pointer; font-weight: 750; }
.bulk-row { display: grid; grid-template-columns: 1fr 70px 70px; gap: 8px; margin: 12px 0; }

.admin-shell {
    width: min(1480px, calc(100% - 28px));
    margin: 22px auto 110px;
}
.admin-login {
    width: min(560px, 100%);
    margin: 84px auto;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
}
.admin-login h1, .admin-hero h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1;
}
.admin-hero {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
}
.admin-shell p:first-child,
.admin-panel-head p {
    color: var(--accent);
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 760;
    text-transform: uppercase;
}
.admin-flash,
.admin-warning {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin: 14px 0;
    padding: 12px 14px;
    border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--accent) 10%, var(--panel));
}
.admin-warning span {
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--bg);
    color: var(--muted);
    font-size: 13px;
}
.admin-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}
.admin-sidebar {
    position: sticky;
    top: 90px;
    min-height: calc(100vh - 112px);
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 18px;
    padding: 18px;
    border-radius: var(--radius);
    background: #101410;
    color: #f6f5ef;
    box-shadow: var(--shadow);
}
.admin-brand {
    display: grid;
    gap: 5px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,.12);
}
.admin-brand span {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #d8e6dd;
    color: #101410;
    font-size: 12px;
    font-weight: 900;
}
.admin-brand small { color: rgba(246,245,239,.62); }
.admin-tabs {
    display: grid;
    align-content: start;
    gap: 7px;
}
.admin-tabs a {
    padding: 11px 12px;
    border-radius: 10px;
    color: rgba(246,245,239,.72);
}
.admin-tabs a:hover { background: rgba(255,255,255,.1); color: #fff; }
.admin-sidebar-note {
    padding: 14px;
    border-radius: 12px;
    background: rgba(255,255,255,.08);
}
.admin-sidebar-note span {
    display: block;
    font-size: 32px;
    font-weight: 900;
    line-height: 1;
}
.admin-sidebar-note p {
    margin: 8px 0 0;
    color: rgba(246,245,239,.65);
}
.admin-main {
    min-width: 0;
}
.admin-command {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg);
}
.admin-command p {
    margin: 0 0 8px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}
.admin-command h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.02;
}
.admin-command-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}
.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0;
}
.admin-stats article,
.admin-panel,
.admin-editor,
.admin-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
}
.admin-stats article { padding: 16px; }
.admin-stats span { color: var(--muted); font-size: 13px; }
.admin-stats strong { display: block; margin: 8px 0; font-size: 34px; line-height: 1; }
.admin-stats p { margin: 0; color: var(--muted); }
.admin-panel {
    margin-top: 18px;
    padding: clamp(16px, 3vw, 24px);
    background: color-mix(in srgb, var(--panel) 76%, var(--bg));
}
.admin-panel-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}
.admin-panel h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.05;
}
.admin-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.admin-form.compact,
.settings-form { grid-template-columns: 1fr; }
.admin-form label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 13px;
}
.admin-form .wide { grid-column: 1 / -1; }
.admin-form .check {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding-top: 21px;
}
.admin-form .check input {
    width: auto;
    min-height: 0;
}
.admin-form small { color: var(--muted); }
.bulk-form {
    align-items: end;
    margin: 14px 0 18px;
    padding: 14px;
    border-radius: var(--radius);
    background: var(--bg);
}
.admin-product-list {
    display: grid;
    gap: 10px;
}
.admin-editor {
    overflow: hidden;
    background: var(--bg);
}
.admin-editor summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    cursor: pointer;
}
.admin-editor summary span {
    display: grid;
    gap: 3px;
}
.admin-editor summary small { color: var(--muted); }
.product-form {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 0 16px 16px;
}
.admin-actions,
.admin-row-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.admin-row-actions {
    padding: 0 16px 16px;
}
.btn.danger {
    background: #8d1f1f;
    border-color: #8d1f1f;
    color: #fff;
}
.new-editor { margin-top: 14px; }
.admin-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.admin-card {
    padding: 14px;
    background: var(--bg);
}
.admin-card h3 { margin: 0 0 12px; }
.filter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}
.filter-list span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    border-radius: 999px;
    background: var(--panel);
    font-size: 13px;
}
.filter-list form { display: inline-flex; }
.filter-list button {
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border: 0;
    border-radius: 50%;
    background: color-mix(in srgb, var(--text) 10%, transparent);
    color: var(--muted);
    cursor: pointer;
    line-height: 1;
}
.filter-list i {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--swatch);
}
.filter-list small { color: var(--muted); }
.orders-table {
    display: grid;
    gap: 8px;
}
.orders-table article {
    display: grid;
    grid-template-columns: 1fr .8fr 1fr .9fr;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    background: var(--bg);
}
.orders-table span,
.orders-table small { color: var(--muted); }
.admin-delete-inline {
    margin: -4px 0 12px;
    padding: 0 14px 14px;
}

@media (max-width: 980px) {
    .admin-stats,
    .admin-columns,
    .admin-form,
    .product-form,
    .orders-table article {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .admin-hero,
    .admin-panel-head {
        align-items: stretch;
        flex-direction: column;
    }
    .admin-stats,
    .admin-columns,
    .admin-form,
    .product-form,
    .orders-table article {
        grid-template-columns: 1fr;
    }
    .admin-tabs {
        top: 68px;
    }
}

.search-panel {
    position: fixed;
    left: 50%;
    top: 86px;
    z-index: 50;
    width: min(620px, calc(100% - 28px));
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -10px);
    transition: .2s ease;
}
.search-panel.open { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.search-panel label { display: grid; gap: 8px; color: var(--muted); font-size: 13px; }
.search-results { display: grid; gap: 8px; margin-top: 10px; }
.search-result { display: grid; grid-template-columns: 46px 1fr auto; gap: 10px; align-items: center; padding: 8px; border-radius: 10px; background: var(--panel); }
.search-result img { width: 46px; height: 46px; object-fit: cover; border-radius: 8px; }

.cart-drawer {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 70;
    display: grid;
    grid-template-rows: auto 1fr auto;
    width: min(430px, 100%);
    background: var(--bg);
    box-shadow: var(--shadow);
    transform: translateX(100%);
    transition: transform .25s ease;
}
.cart-drawer.open { transform: translateX(0); }
.cart-head, .cart-summary { padding: 18px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.cart-summary { border-top: 1px solid var(--line); border-bottom: 0; display: grid; gap: 14px; }
.cart-summary > div { display: flex; justify-content: space-between; }
.cart-items { overflow: auto; padding: 8px 18px; }
.cart-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-row img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.qty-row { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.qty-row button { width: 28px; height: 28px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); }
.drawer-scrim {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(0,0,0,.28);
    opacity: 0;
    pointer-events: none;
}
.cart-drawer.open + .drawer-scrim { opacity: 1; pointer-events: auto; }

.site-footer {
    display: grid;
    grid-template-columns: 1.4fr .7fr .9fr;
    gap: 28px;
    padding: 46px clamp(18px, 4vw, 56px) 96px;
    border-top: 1px solid var(--line);
    background: var(--panel);
}
.site-footer p { max-width: 360px; color: var(--muted); }
.site-footer nav, .footer-tools, .socials { display: grid; gap: 10px; align-content: start; }
.language-switch { display: flex; gap: 8px; }
.language-switch button { border: 1px solid var(--line); border-radius: 999px; background: var(--bg); padding: 8px 12px; }
.site-footer small { grid-column: 1 / -1; color: var(--muted); }

.mobile-tabbar { display: none; }
.promo-body { background: #050605; color: #fff; }
.promo-page {
    min-height: 100vh;
    display: grid;
    align-items: center;
    width: min(980px, calc(100% - 32px));
    margin: auto;
    padding: 36px 0;
}
.promo-video { position: relative; overflow: hidden; border-radius: var(--radius); }
.promo-video img { width: 100%; max-height: 58vh; object-fit: cover; }
.promo-video span { position: absolute; left: 16px; bottom: 16px; padding: 8px 12px; border-radius: 999px; background: rgba(0,0,0,.55); }
.promo-page h1 { font-size: clamp(42px, 8vw, 88px); line-height: .96; margin: 22px 0 12px; }
.video-reviews { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 18px; }
.video-reviews article { padding: 16px; border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius); }

@media (max-width: 980px) {
    .desktop-nav { display: none; }
    .site-header { grid-template-columns: auto 1fr; }
    .header-actions { justify-content: end; }
    .product-grid, .benefits, .journal-grid, .account-grid, .admin-grid,
    .category-showcase, .compatibility, .proof-section { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .catalog-layout, .product-page, .checkout-page, .contacts-page, .image-led { grid-template-columns: 1fr; }
    .series-feature, .journal-strip { grid-template-columns: 1fr; }
    .series-feature img { min-height: 360px; }
    .filters, .product-detail { position: static; }
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar {
        position: static;
        min-height: 0;
        grid-template-rows: auto;
    }
    .admin-tabs {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 680px) {
    body { padding-bottom: 72px; }
    .site-header { min-height: 64px; padding: 10px 14px; }
    .header-actions .icon-btn:nth-child(3) { display: none; }
    .hero { min-height: calc(100vh - 120px); }
    .hero::after { background: linear-gradient(0deg, rgba(255,255,255,.92), rgba(255,255,255,.18)); }
    [data-theme="dark"] .hero::after { background: linear-gradient(0deg, rgba(0,0,0,.82), rgba(0,0,0,.15)); }
    .hero-copy { padding: 42px 18px; align-self: end; }
    .hero h1 { font-size: 46px; }
    .product-grid, .catalog-grid, .benefits, .journal-grid, .account-grid, .admin-grid, .video-reviews,
    .category-showcase, .compatibility, .proof-section { grid-template-columns: 1fr; }
    .card-buy { opacity: 1; transform: none; position: static; }
    .specs, .feature-list, .segmented, .pay-row, .site-footer { grid-template-columns: 1fr; }
    .checkout-summary { order: -1; }
    .bundle-band,
    .support-cta,
    .admin-command {
        align-items: stretch;
        flex-direction: column;
    }
    .support-cta > div:last-child,
    .admin-command-actions {
        justify-content: stretch;
    }
    .support-cta .btn,
    .admin-command .btn {
        width: 100%;
    }
    .admin-tabs {
        grid-template-columns: repeat(2, 1fr);
    }
    .sticky-cta {
        position: fixed;
        left: 10px;
        right: 10px;
        bottom: 76px;
        z-index: 35;
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 12px;
        padding: 10px;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: var(--bg);
        box-shadow: var(--shadow);
    }
    .mobile-tabbar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 50;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        min-height: 66px;
        border-top: 1px solid var(--line);
        background: color-mix(in srgb, var(--bg) 92%, transparent);
        backdrop-filter: blur(18px);
    }
    .mobile-tabbar a, .mobile-tabbar button {
        position: relative;
        display: grid;
        place-items: center;
        align-content: center;
        gap: 3px;
        border: 0;
        background: transparent;
        color: var(--muted);
        font-size: 11px;
    }
    .mobile-tabbar b { right: 18px; top: 8px; }
}

/* Polished visual pass */
:root {
    --bg: #fbfbf8;
    --panel: #f2f3ef;
    --panel-strong: #e8ebe5;
    --surface: #ffffff;
    --text: #11140f;
    --muted: #6d7269;
    --line: rgba(17, 20, 15, .10);
    --soft-line: rgba(17, 20, 15, .07);
    --accent: #1c352d;
    --accent-deep: #10231d;
    --radius: 16px;
    --radius-lg: 24px;
    --shadow: 0 28px 80px rgba(22, 27, 21, .10);
    --shadow-soft: 0 14px 42px rgba(22, 27, 21, .075);
}

[data-theme="dark"] {
    --bg: #0d0f0c;
    --panel: #151813;
    --panel-strong: #20251d;
    --surface: #11140f;
    --text: #f7f7f0;
    --muted: #a8aea1;
    --line: rgba(247, 247, 240, .12);
    --soft-line: rgba(247, 247, 240, .08);
    --accent: #9eb6a8;
    --accent-deep: #c5d7ca;
}

body {
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--panel) 70%, transparent), transparent 420px),
        var(--bg);
}

.site-header {
    width: min(1440px, calc(100% - 28px));
    margin: 12px auto 0;
    top: 12px;
    border: 1px solid var(--soft-line);
    border-radius: 18px;
    box-shadow: 0 12px 38px rgba(17,20,15,.055);
    background: color-mix(in srgb, var(--surface) 86%, transparent);
}

.icon-btn,
.btn,
select,
input,
textarea {
    box-shadow: inset 0 1px 0 rgba(255,255,255,.5);
}

.btn {
    min-height: 48px;
    border-radius: 13px;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-soft);
}

.hero {
    width: min(1440px, calc(100% - 28px));
    min-height: min(760px, calc(100vh - 112px));
    margin: 14px auto 0;
    border-radius: 28px;
    border: 1px solid var(--soft-line);
    box-shadow: var(--shadow);
}
.hero-copy {
    padding: clamp(54px, 9vw, 118px) clamp(26px, 7vw, 88px);
}
.hero h1 {
    max-width: 680px;
}
.hero p {
    color: color-mix(in srgb, var(--text) 58%, transparent);
}

.section-head,
.product-grid,
.category-showcase,
.series-feature,
.bundle-band,
.compatibility,
.benefits,
.proof-section,
.journal-strip,
.support-cta,
.catalog-layout,
.product-page,
.checkout-page,
.contacts-page,
.text-page,
.journal-page,
.support-page,
.account-page {
    width: min(1220px, calc(100% - 40px));
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    margin-top: 96px;
    margin-bottom: 22px;
}
.section-head h2 {
    max-width: 720px;
}

.category-showcase,
.compatibility,
.proof-section {
    gap: 18px;
    margin-bottom: 34px;
}
.category-showcase a,
.compatibility div,
.proof-section article,
.product-media,
.filters,
.checkout-summary,
.journal-grid article,
.account-grid article,
.support-page details,
.admin-card,
.admin-editor {
    border: 1px solid var(--soft-line);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.category-showcase a {
    min-height: 190px;
    padding: 22px;
    border-radius: var(--radius-lg);
}
.category-showcase a:nth-child(1) { background: linear-gradient(160deg, #ffffff, #eaf0ea); }
.category-showcase a:nth-child(2) { background: linear-gradient(160deg, #ffffff, #eef2f2); }
.category-showcase a:nth-child(3) { background: linear-gradient(160deg, #ffffff, #ececea); }
.category-showcase a:nth-child(4) { background: linear-gradient(160deg, #ffffff, #e7eee9); }
[data-theme="dark"] .category-showcase a {
    background: linear-gradient(160deg, #161914, #10130f);
}

.product-grid {
    gap: 22px;
    margin-bottom: 44px;
}
.product-card {
    padding: 10px;
    border: 1px solid var(--soft-line);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}
.product-media {
    border-radius: 18px;
    box-shadow: none;
}
.product-info {
    padding: 0 4px 2px;
}

.series-feature {
    margin-top: 22px;
    margin-bottom: 34px;
    border-radius: 28px;
    box-shadow: var(--shadow);
}
.series-feature > div {
    background: var(--surface);
}
.series-feature img {
    min-height: 560px;
}

.bundle-band {
    margin-bottom: 34px;
    border-radius: 24px;
    box-shadow: var(--shadow);
    background: linear-gradient(135deg, var(--accent-deep), #21463b);
}

.compatibility div,
.proof-section article {
    border-radius: 22px;
    padding: 22px;
}

.benefits {
    gap: 18px;
    overflow: visible;
    border: 0;
    background: transparent;
    margin-top: 34px;
}
.benefits article {
    min-height: 230px;
    border: 1px solid var(--soft-line);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.journal-strip {
    gap: 18px;
    margin-top: 34px;
}
.journal-strip > div,
.journal-strip > a,
.journal-strip article {
    border-radius: 22px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.support-cta {
    border-radius: 24px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.site-footer {
    width: min(1440px, calc(100% - 28px));
    margin: 0 auto 14px;
    border: 1px solid var(--soft-line);
    border-radius: 28px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

/* Admin polish */
.admin-shell {
    width: min(1500px, calc(100% - 28px));
    margin-top: 18px;
}
.admin-hero {
    border-radius: 24px;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--accent) 13%, transparent), transparent 45%),
        var(--surface);
    box-shadow: var(--shadow-soft);
}
.admin-layout {
    gap: 22px;
}
.admin-sidebar {
    top: 104px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 26px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.08), transparent 38%),
        #101511;
}
.admin-tabs a {
    border: 1px solid transparent;
}
.admin-tabs a:hover {
    border-color: rgba(255,255,255,.12);
}
.admin-command,
.admin-stats article,
.admin-panel {
    border: 1px solid var(--soft-line);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}
.admin-command {
    padding: 26px;
}
.admin-stats {
    gap: 18px;
    margin: 22px 0;
}
.admin-stats article {
    padding: 20px;
}
.admin-panel {
    padding: 24px;
    margin-top: 22px;
}
.admin-panel-head {
    padding-bottom: 18px;
    border-bottom: 1px solid var(--soft-line);
}
.admin-warning,
.admin-flash {
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
}
.bulk-form {
    border: 1px solid var(--soft-line);
    border-radius: 18px;
    background: var(--panel);
}
.admin-product-list {
    gap: 14px;
}
.admin-editor {
    border-radius: 18px;
}
.admin-editor summary {
    min-height: 72px;
    background: linear-gradient(180deg, color-mix(in srgb, var(--panel) 52%, transparent), transparent);
}
.admin-editor[open] summary {
    border-bottom: 1px solid var(--soft-line);
}
.product-form {
    padding-top: 18px;
}
.admin-columns {
    gap: 18px;
}
.admin-card {
    border-radius: 18px;
    padding: 18px;
}
.admin-delete-inline {
    width: fit-content;
    margin-top: -8px;
    padding: 0;
}
.admin-form input,
.admin-form select,
.admin-form textarea {
    min-height: 46px;
    border-color: var(--soft-line);
    background: var(--bg);
}
.admin-form textarea {
    min-height: 92px;
}
.orders-table article {
    min-height: 64px;
    align-items: center;
    border: 1px solid var(--soft-line);
    background: var(--panel);
}

@media (max-width: 980px) {
    .site-header,
    .hero,
    .site-footer {
        width: min(100% - 20px, 100%);
    }
    .section-head {
        align-items: start;
        flex-direction: column;
        margin-top: 62px;
    }
    .admin-sidebar {
        top: auto;
    }
}

@media (max-width: 680px) {
    .site-header {
        top: 8px;
        margin-top: 8px;
        border-radius: 16px;
    }
    .hero {
        min-height: calc(100vh - 96px);
        border-radius: 22px;
    }
    .hero-copy {
        padding: 34px 20px;
    }
    .category-showcase a,
    .compatibility div,
    .proof-section article,
    .benefits article,
    .product-card,
    .admin-panel,
    .admin-command,
    .admin-stats article {
        border-radius: 18px;
    }
    .series-feature img {
        min-height: 300px;
    }
    .admin-shell {
        width: min(100% - 18px, 100%);
    }
}
