/* VOLGA ARM — Tactical Dark (по макету) */
:root {
    --bg: #121210;
    --bg-elevated: #1a1a18;
    --bg-card: #252523;
    --bg-card-inner: #1e1e1c;
    --bg-input: #1c1c1a;
    --gold: #c9a961;
    --gold-bright: #dbb872;
    --gold-dim: #9a8045;
    --green: #4a5c3a;
    --green-dark: #2d3824;
    --green-bright: #6b8554;
    --green-glow: rgba(74, 92, 58, 0.5);
    --gold-glow: rgba(201, 169, 97, 0.4);
    --accent-cta: #c9a961;
    --accent-cta-hover: #dbb872;
    --red: #c0392b;
    --red-bright: #e74c3c;
    --text: #e8e8e6;
    --text-bright: #ffffff;
    --text-dim: #9a9a96;
    --text-dark: #6a6a66;
    --border: rgba(201, 169, 97, 0.18);
    --border-strong: rgba(201, 169, 97, 0.35);
    --border-green: rgba(74, 92, 58, 0.45);
    --radius: 10px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
    --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.55);
    --neon-green: rgba(107, 133, 84, 0.55);
    --neon-gold: rgba(219, 184, 114, 0.35);
    --neon-red: transparent;
    --font: 'Source Sans 3', Arial, sans-serif;
    --font-display: 'Source Sans 3', Arial, sans-serif;
    /* legacy aliases for style.css */
    --bg-dark: #1e1e1c;
    --bg-card-light: #2a2a28;
    --mil-dark: #0e0e0c;
    --mil-olive: #252523;
    --mil-olive-mid: #c9a961;
    --accent: #c9a961;
    --accent-bright: #dbb872;
    --border-card: rgba(201, 169, 97, 0.18);
    --text-on-card: #e8e8e6;
    --text-on-card-bright: #ffffff;
}

#particles-canvas, #fire-canvas, .scanlines, .vignette { display: none !important; }

/* ===== Топографический фон ===== */
.site-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 90% 55% at 50% -8%, rgba(74, 92, 58, 0.28) 0%, transparent 58%),
        radial-gradient(ellipse 55% 45% at 95% 85%, rgba(201, 169, 97, 0.14) 0%, transparent 52%),
        radial-gradient(ellipse 50% 40% at 5% 75%, rgba(74, 92, 58, 0.2) 0%, transparent 48%),
        linear-gradient(180deg, #161614 0%, var(--bg) 35%, #0e0e0c 100%);
}
.site-bg-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(107, 133, 84, 0.08) 0%, transparent 35%),
        radial-gradient(circle at 80% 60%, rgba(201, 169, 97, 0.07) 0%, transparent 32%);
    animation: bgGlowPulse 12s ease-in-out infinite alternate;
}
@keyframes bgGlowPulse {
    0% { opacity: 0.7; }
    100% { opacity: 1; }
}
.site-bg-grid {
    display: block !important;
    position: absolute;
    inset: 0;
    opacity: 0.055;
    background-image:
        linear-gradient(rgba(201, 169, 97, 0.35) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201, 169, 97, 0.35) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 85% 75% at 50% 45%, black 20%, transparent 100%);
}
.site-bg-topo {
    position: absolute;
    inset: 0;
    opacity: 1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='800' viewBox='0 0 800 800'%3E%3Cg fill='none' stroke='%234a5c3a' stroke-width='0.8' opacity='0.14'%3E%3Cellipse cx='400' cy='400' rx='380' ry='160'/%3E%3Cellipse cx='400' cy='400' rx='300' ry='120'/%3E%3Cellipse cx='400' cy='400' rx='220' ry='85'/%3E%3Cellipse cx='400' cy='400' rx='140' ry='55'/%3E%3C/g%3E%3Cg fill='none' stroke='%23c9a961' stroke-width='0.6' opacity='0.1'%3E%3Cellipse cx='200' cy='600' rx='160' ry='70'/%3E%3Cellipse cx='620' cy='180' rx='140' ry='60'/%3E%3Cellipse cx='100' cy='200' rx='100' ry='45'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 800px 800px;
    animation: topoDrift 90s linear infinite;
}
.site-bg-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 35%, rgba(0, 0, 0, 0.55) 100%);
}
@keyframes topoDrift {
    0% { background-position: 0 0; }
    100% { background-position: 800px 400px; }
}
.site-bg-diagonal,
.site-bg-radar,
.site-bg-scan { display: none; }

body { background: var(--bg); color: var(--text); font-size: 18px; line-height: 1.55; }
main { position: relative; z-index: 2; }

.empty-hint { color: var(--text-dim); font-size: 17px; padding: 12px 0; }

/* ===== Верхняя полоска ===== */
.top-bar {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 14px;
    position: relative;
    z-index: 101;
}
.top-bar-inner {
    max-width: 1320px; margin: 0 auto; padding: 8px 24px;
    display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
}
.top-links {
    display: flex; gap: 18px; flex-wrap: wrap; align-items: center;
}
.top-links a { color: var(--text-dim); text-decoration: none; font-weight: 600; font-size: 14px; white-space: nowrap; }
.top-links a:hover { color: var(--gold); }
.top-contacts {
    display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-left: auto;
}
.top-social { display: flex; align-items: center; gap: 6px; }
.top-phone-label { color: var(--text-dark); font-size: 13px; white-space: nowrap; }

/* ===== Шапка ===== */
.shop-header {
    background: var(--bg-elevated) !important;
    border-bottom: 1px solid var(--border) !important;
    backdrop-filter: none !important;
    padding: 0 !important;
    box-shadow: none; position: sticky; top: 0; z-index: 100;
    max-width: 100%;
}
.shop-header-inner {
    max-width: 1320px; margin: 0 auto; padding: 14px 24px;
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap; width: 100%;
}
.shop-header .logo-link { flex-shrink: 0; text-decoration: none; }
.shop-header .logo-main {
    font-size: 20px; letter-spacing: 4px; color: var(--text-bright) !important;
    font-weight: 800; text-shadow: none !important; animation: none !important;
}
.shop-header .logo-sub {
    font-size: 10px; letter-spacing: 3px; color: var(--gold) !important;
    text-shadow: none !important; font-weight: 700;
}
.shop-header .logo-img {
    height: 52px; width: auto; max-width: 56px;
    object-fit: contain; display: block;
    background: transparent;
}

.btn-catalog {
    background: linear-gradient(135deg, var(--gold), var(--gold-bright));
    color: #121210; border: none;
    padding: 12px 22px; font-size: 15px; font-weight: 800; border-radius: var(--radius);
    cursor: pointer; white-space: nowrap; font-family: var(--font);
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s; flex-shrink: 0; letter-spacing: 0.3px;
    display: inline-flex; align-items: center; gap: 8px;
}
.btn-catalog-icon { font-size: 18px; line-height: 1; }
.btn-catalog:hover {
    background: var(--gold-bright);
    box-shadow: 0 0 16px var(--gold-glow), 0 0 24px var(--neon-green);
    transform: translateY(-1px);
}

.header-search { flex: 1; min-width: 180px; max-width: none; display: flex; position: relative; }
.header-search input {
    flex: 1; width: 100%; padding: 12px 52px 12px 16px;
    border: 1px solid var(--border); border-radius: var(--radius);
    font-size: 16px; font-family: var(--font); outline: none;
    background: #fff; color: #1a1a18;
}
.header-search input:focus { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(201,169,97,0.25); }
.header-search input::placeholder { color: #888; }
.btn-search {
    position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
    background: var(--gold); border: none; border-radius: 6px;
    padding: 8px 14px; font-size: 16px; cursor: pointer; color: #121210;
    transition: background 0.2s;
}
.btn-search:hover { background: var(--gold-bright); }

.header-user-actions {
    display: flex; align-items: center; gap: 8px; flex-shrink: 0; margin-left: auto;
}
.header-icon-btn {
    position: relative;
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    background: none; border: none; cursor: pointer; padding: 4px 10px;
    color: var(--text-dim); font-family: var(--font); min-width: 64px;
    transition: color 0.2s;
}
.header-icon-btn:hover { color: var(--gold); }
.header-icon-btn-icon { font-size: 22px; line-height: 1; }
.header-icon-btn-label { font-size: 11px; font-weight: 700; letter-spacing: 0.3px; }
.fav-badge {
    position: absolute; top: 0; right: 4px;
    min-width: 18px; height: 18px; padding: 0 5px;
    background: var(--red); color: #fff; border-radius: 999px;
    font-size: 11px; font-weight: 800; line-height: 18px; text-align: center;
}
.header-user-actions .btn-register {
    padding: 10px 16px; font-size: 13px; white-space: nowrap;
}

.top-phone { color: var(--gold); font-weight: 700; text-decoration: none; font-size: 15px; white-space: nowrap; }
.top-phone:hover { color: var(--gold-bright); }

.header-social-link {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; min-width: 32px; padding: 0;
    border-radius: 50%; border: none;
    color: #fff; text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    flex-shrink: 0;
}
.top-social .header-social-link { width: 30px; height: 30px; min-width: 30px; }
.header-social-link svg { display: block; flex-shrink: 0; }
.header-social-link.vk-icon { background: #0077FF; }
.header-social-link.vk-icon:hover {
    background: #2787ff;
    box-shadow: 0 0 14px rgba(0, 119, 255, 0.55);
    transform: scale(1.08);
}
.header-social-link.yt-icon { background: #FF0000; }
.header-social-link.yt-icon:hover {
    background: #ff3333;
    box-shadow: 0 0 14px rgba(255, 0, 0, 0.5);
    transform: scale(1.08);
}
.header-social-link.tg-icon { background: #229ED9; }
.header-social-link.tg-icon:hover {
    background: #2aabee;
    box-shadow: 0 0 14px rgba(34, 158, 217, 0.55);
    transform: scale(1.08);
}

/* ===== Навигация ===== */
.nav-secondary {
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    padding: 0 24px;
    display: flex; gap: 0; flex-wrap: wrap; justify-content: center;
    position: relative; z-index: 99;
}
.nav-secondary .nav-link {
    padding: 14px 22px; font-size: 14px; font-weight: 700; color: var(--text-dim);
    border-bottom: 2px solid transparent; letter-spacing: 0.3px;
    text-decoration: none; transition: color 0.2s, border-color 0.2s;
}
.nav-secondary .nav-link:hover { color: var(--text-bright); }
.nav-secondary .nav-link.active {
    color: var(--text-bright); border-bottom-color: var(--gold);
    background: transparent;
    box-shadow: 0 2px 12px var(--neon-green);
    text-shadow: 0 0 20px var(--neon-gold);
}

/* ===== Главная ===== */
.home-wrap { max-width: 1320px; margin: 0 auto; padding: 0 20px 48px; }

.home-hero {
    margin: 20px 0 6px;
}
.home-hero-main { min-width: 0; }
.home-hero-main .home-promo { margin: 0; }

.home-categories-section {
    padding: 4px 0 8px;
}
.home-categories-section .home-sale-cta {
    margin-bottom: 10px;
}

/* ===== Promo carousel (низкий широкий баннер ~4:1) ===== */
.home-promo {
    position: relative; border-radius: 12px; overflow: hidden;
    width: 100%;
    height: clamp(200px, 22vw, 300px);
    min-height: 200px;
    box-shadow: var(--shadow);
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--bg-card) 55%, #1a1814 100%);
    border: 1px solid var(--border-green);
}
.home-promo-slides { position: absolute; inset: 0; overflow: hidden; }
.home-promo-slide {
    position: absolute; inset: 0;
    opacity: 0; visibility: hidden;
    transform: translateX(32px);
    transition: opacity 0.52s ease, transform 0.52s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.52s;
    pointer-events: none; z-index: 0;
}
.home-promo-slide.active {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: translateX(0); z-index: 2;
}
.home-promo-slide.leave-left { opacity: 0; transform: translateX(-56px); z-index: 1; }
.home-promo-slide.leave-right { opacity: 0; transform: translateX(56px); z-index: 1; }
.home-promo-slide.enter-right { animation: promoEnterRight 0.52s cubic-bezier(0.4, 0, 0.2, 1) forwards; z-index: 3; }
.home-promo-slide.enter-left { animation: promoEnterLeft 0.52s cubic-bezier(0.4, 0, 0.2, 1) forwards; z-index: 3; }
@keyframes promoEnterRight {
    from { opacity: 0; transform: translateX(56px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes promoEnterLeft {
    from { opacity: 0; transform: translateX(-56px); }
    to { opacity: 1; transform: translateX(0); }
}
.home-promo-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    z-index: 5; width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(0,0,0,0.55); color: #fff;
    font-size: 28px; line-height: 1; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s;
    padding: 0 0 2px;
}
.home-promo-nav:hover {
    background: var(--gold); color: #121210; border-color: var(--gold);
    box-shadow: 0 0 18px var(--neon-gold);
}
.home-promo-prev { left: 14px; }
.home-promo-next { right: 14px; }
.home-promo-bg {
    position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 0;
}
.home-promo-overlay {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(90deg, rgba(18,18,16,0.92) 0%, rgba(45,56,36,0.55) 45%, rgba(18,18,16,0.2) 100%);
}
.home-promo-slide:has(.home-promo-bg[style*="background-image"]) .home-promo-overlay {
    background: linear-gradient(90deg, rgba(18,18,16,0.88) 0%, rgba(18,18,16,0.45) 55%, rgba(18,18,16,0.12) 100%);
}
.home-promo-content {
    position: relative; z-index: 2; padding: 20px 36px; color: #fff; max-width: 620px;
}
.promo-badge {
    display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 2px;
    color: var(--gold); text-transform: uppercase; margin-bottom: 8px;
    text-shadow: 0 0 12px var(--neon-gold);
}
.home-promo-content h2 {
    font-size: 24px; font-weight: 800; margin-bottom: 8px; line-height: 1.15;
    color: #fff; text-transform: uppercase; letter-spacing: 0.5px;
}
.home-promo-content p { font-size: 15px; color: var(--text-dim); margin-bottom: 16px; line-height: 1.45; }
.home-promo-content .btn {
    background: var(--gold); color: #121210; border: none;
    font-size: 13px; font-weight: 800; padding: 10px 22px; border-radius: var(--radius);
    cursor: pointer; letter-spacing: 0.5px; text-transform: uppercase;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.home-promo-content .btn:hover {
    background: var(--gold-bright);
    box-shadow: 0 0 20px var(--gold-glow), 0 0 40px var(--neon-green);
    transform: translateY(-2px);
}
.home-promo-dots {
    position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
    z-index: 4; display: flex; gap: 8px;
}
.home-promo-dots .dot {
    width: 32px; height: 5px; border-radius: 3px; background: rgba(255,255,255,0.2);
    border: none; cursor: pointer; padding: 0; transition: background 0.25s, box-shadow 0.25s;
}
.home-promo-dots .dot.active {
    background: var(--gold);
    box-shadow: 0 0 10px var(--neon-gold);
}
.home-promo-dots .dot:hover { background: var(--green-bright); }

.home-section { padding: 32px 0 8px; }
.home-heading-center { justify-content: center; text-align: center; }
.home-heading-center::before { display: none !important; }
.home-heading-row-center { justify-content: center; text-align: center; }
.home-heading-row-center h2 { justify-content: center; }
.home-heading-row-center h2::before { display: none !important; }

.home-sale-cta { display: flex; justify-content: center; margin: 0 0 20px; }
.btn-sale-home {
    background: linear-gradient(135deg, var(--red), #a93226);
    color: #fff; border: none; padding: 14px 36px;
    font-size: 15px; font-weight: 800; border-radius: var(--radius);
    cursor: pointer; letter-spacing: 1px; text-transform: uppercase;
    box-shadow: 0 0 16px rgba(192, 57, 43, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-sale-home:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 24px rgba(192, 57, 43, 0.5), 0 0 12px var(--neon-gold);
}

/* Центрированные сетки */
.centered-grid {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    grid-template-columns: unset !important;
}
.centered-grid .product-card {
    flex: 0 1 200px;
    max-width: 220px;
    width: 200px;
    display: flex;
    flex-direction: column;
}
.centered-grid .category-tile,
.centered-grid .category-group-tile,
.centered-grid .catalog-group-tile {
    flex: 0 1 150px;
    max-width: 170px;
    width: 150px;
    padding: 0;
    overflow: hidden;
}
.centered-grid.home-services .home-service-link {
    flex: 0 1 260px;
    max-width: 320px;
}

/* Товары на главной — на всю ширину, равномерно по центру */
.home-products-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    width: 100%;
    max-width: 100%;
    justify-content: center;
}
.home-products-grid .product-card {
    width: 100% !important;
    max-width: none !important;
    flex: unset !important;
}

.home-featured-grid {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    grid-template-columns: unset !important;
}
.home-featured-grid .product-card {
    flex: 0 1 180px;
    max-width: 200px;
    width: 180px;
    display: flex;
    flex-direction: column;
}

.catalog-cards-grid {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    grid-template-columns: unset !important;
}
.catalog-cards-grid .product-card {
    flex: 0 1 200px;
    max-width: 220px;
    width: 200px;
    display: flex;
    flex-direction: column;
}

.contacts-info-card { text-align: center; padding: 28px 24px; }
.contacts-social {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
}
.contacts-social .header-social-link {
    width: 44px;
    height: 44px;
    min-width: 44px;
}

.home-heading {
    font-size: 22px; font-weight: 800; color: var(--text-bright);
    margin-bottom: 20px; display: flex; align-items: center; gap: 10px;
}
.home-heading::before { display: none !important; }
.home-heading-row h2::before { display: none !important; }
.home-heading-row h2 {
    font-size: 22px; font-weight: 800; color: var(--text-bright);
    display: flex; align-items: center; gap: 10px;
}
.see-all {
    color: var(--gold); font-weight: 700; font-size: 14px; border: none;
    background: none; cursor: pointer; font-family: var(--font);
}
.see-all:hover { color: var(--gold-bright); text-decoration: underline; }

/* Категории — тёмные карточки как на макете */
.category-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}
.category-tile {
    border: 1px solid var(--border); border-radius: var(--radius);
    padding: 0; overflow: hidden; cursor: pointer;
    transition: transform 0.28s ease, border-color 0.28s, box-shadow 0.28s;
    font-family: var(--font); background: var(--bg-card);
    display: flex; flex-direction: column; text-align: center;
}
.category-tile:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 8px 28px rgba(0,0,0,0.5), 0 0 16px var(--neon-green);
    border-color: var(--border-green);
}
.category-tile.active {
    border-color: var(--gold) !important;
    box-shadow: 0 0 0 2px var(--gold), 0 0 18px var(--neon-gold);
    transform: translateY(-4px);
}
.category-tile.active .cat-name {
    color: var(--gold-bright);
    background: rgba(201, 169, 97, 0.15);
}
.category-tile.active .cat-img-wrap {
    box-shadow: inset 0 0 0 2px var(--gold);
}
.catalog-group-tile, .category-group-tile {
    min-height: unset;
    border-color: var(--border-green);
    background: linear-gradient(180deg, var(--bg-card) 0%, rgba(45,56,36,0.25) 100%);
}
.catalog-group-tile .cat-img-wrap, .category-group-tile .cat-img-wrap {
    min-height: unset;
    aspect-ratio: 1 / 1;
    width: 100%;
    background: linear-gradient(180deg, var(--bg-card-inner), rgba(45,56,36,0.15));
}
.cat-count {
    display: block; font-size: 11px; color: var(--green-bright);
    padding: 0 8px 10px; font-weight: 600;
}
.category-tile .cat-img-wrap {
    flex: none; width: 100%; aspect-ratio: 1 / 1;
    min-height: unset; padding: 0;
    display: flex; align-items: stretch; justify-content: stretch;
    background: var(--bg-card-inner);
    overflow: hidden;
}
.category-tile img {
    width: 100%; height: 100%; max-width: none;
    object-fit: cover; display: block;
}
.category-tile .cat-icon {
    font-size: 48px; display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%;
}
.category-tile .cat-name {
    padding: 10px 6px; font-size: 11px; font-weight: 800;
    color: var(--text-bright); line-height: 1.25;
    text-transform: uppercase; letter-spacing: 1px;
    background: var(--bg-card); border-top: 1px solid rgba(255,255,255,0.05);
}

.address-strip {
    background: linear-gradient(90deg, var(--green-dark), var(--bg-card) 40%, var(--bg-card));
    border: 1px solid var(--border-green);
    border-left: 3px solid var(--gold); border-radius: var(--radius);
    padding: 16px 24px; text-align: center;
    font-size: 16px; font-weight: 600; color: var(--text); margin-top: 24px;
}

.home-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; width: 100%; }
.home-service-link {
    display: flex; flex-direction: column; align-items: stretch; text-align: left;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 0; overflow: hidden; cursor: pointer; font-family: var(--font);
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.home-service-link:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
    box-shadow: 0 8px 28px rgba(0,0,0,0.45), 0 0 14px var(--neon-gold);
}
.home-service-visual {
    width: 100%; height: 140px; background: var(--bg-card-inner);
    display: flex; align-items: center; justify-content: center; overflow: hidden;
    border-bottom: 1px solid var(--border);
}
.home-service-img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.home-service-icon {
    font-size: 42px; line-height: 1; opacity: 0.85;
}
.home-service-text { padding: 14px 16px 16px; }
.home-service-link strong { display: block; font-size: 16px; color: var(--text-bright); margin-bottom: 4px; }
.home-service-link span { font-size: 14px; color: var(--text-dim); line-height: 1.45; }

/* ===== Карточки товаров ===== */
.marketplace-grid { gap: 16px; }
.product-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; box-shadow: none;
    transition: transform 0.28s ease, border-color 0.28s, box-shadow 0.28s;
    cursor: pointer; position: relative;
}
.fav-btn {
    position: absolute; top: 8px; right: 8px; z-index: 8;
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(0,0,0,0.62); border: 1px solid rgba(255,255,255,0.15);
    color: #ccc; font-size: 17px; line-height: 1; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.2s;
    padding: 0;
}
.fav-btn:hover { transform: scale(1.08); color: #fff; border-color: var(--gold); }
.fav-btn.active { color: #ff6b6b; border-color: #e74c3c; background: rgba(231,76,60,0.2); }
.modal-actions-row {
    display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px;
}
.modal-actions-row .btn { flex: 1 1 140px; }
.modal-fav-btn.active { border-color: #e74c3c !important; color: #ff8a8a !important; }
.product-img {
    height: auto !important; aspect-ratio: 1 / 1;
    background: var(--bg-card-inner);
    position: relative; overflow: hidden; flex-shrink: 0;
}
.discount-ribbon {
    position: absolute !important;
    top: 0 !important; left: 0 !important; right: auto !important;
    z-index: 6;
    margin: 0;
    padding: 5px 9px 5px 7px !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    line-height: 1.1;
    letter-spacing: 0.2px;
    color: #fff !important;
    background: linear-gradient(145deg, #b83227, #e74c3c) !important;
    border-radius: 0 0 10px 0 !important;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.45) !important;
    clip-path: none !important;
    animation: none !important;
    text-shadow: none !important;
    pointer-events: none;
}
.product-card-title {
    font-size: 14px; font-weight: 700; color: var(--text-bright);
    line-height: 1.35; margin-bottom: 8px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-body .product-desc { display: none !important; }
.product-card .book-btn { display: none !important; }
.product-img img.card-img.single,
.product-img .card-img-wrap img {
    width: 100%; height: 100%; object-fit: cover; padding: 0;
    opacity: 1; transform: none; position: absolute; inset: 0;
    transition: opacity 0.22s ease;
}
.card-img-front.card-img-switch { opacity: 0.55; }
.product-img .card-img-wrap { position: absolute; inset: 0; width: 100%; height: 100%; }
.product-body { padding: 12px 14px 14px; flex: 1; display: flex; flex-direction: column; }
.product-body h3 { font-size: 14px; min-height: auto; margin-bottom: 8px; line-height: 1.3; }
.product-cat { font-size: 11px; color: var(--green-bright); letter-spacing: 0.5px; text-transform: uppercase; font-weight: 700; }
.product-card .product-desc { display: none !important; }
#modal-desc, .product-modal-info .product-desc, .product-modal-info .modal-desc-full {
    display: block !important;
}
.product-footer { margin-top: auto; flex-direction: column; align-items: flex-start; gap: 6px; border-top: none; padding-top: 4px; }
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.5), 0 0 12px var(--neon-gold);
    border-color: var(--border-strong);
}
.product-card::before { display: none; }
.product-price, .price-new { font-size: 18px !important; font-weight: 800 !important; color: var(--gold) !important; text-shadow: none !important; animation: none !important; }
.price-old { font-size: 13px; color: var(--text-dark); }

/* ===== Страницы ===== */
.section-title {
    text-align: center !important;
    font-size: 26px; font-weight: 800; color: var(--text-bright);
    letter-spacing: 0.5px; text-shadow: none; animation: none; margin-bottom: 12px;
    display: block !important;
    width: 100%;
}
.section-title::before { display: none !important; }
.section-title::after { display: none; }
.section-desc { text-align: center; font-size: 16px; color: var(--text-dim); margin-bottom: 24px; }
.section { max-width: 1320px; padding: 28px 20px; margin: 0 auto; }

.filter-btn {
    background: var(--bg-card); border: 1px solid var(--border);
    color: var(--text); padding: 11px 18px; font-size: 14px; font-weight: 700;
    border-radius: 8px; cursor: pointer;
}
.filter-btn:hover, .filter-btn.active {
    background: var(--gold); color: #121210; border-color: var(--gold);
    box-shadow: 0 0 12px var(--neon-gold);
}
.catalog-filters.hidden, .hidden { display: none !important; }

/* Каталог — иерархия */
.catalog-breadcrumb {
    display: none; align-items: center; flex-wrap: wrap; gap: 8px;
    margin-bottom: 16px; font-size: 14px;
}
.catalog-breadcrumb.visible { display: flex; }
.catalog-breadcrumb .bc-link {
    background: none; border: none; color: var(--green-bright); cursor: pointer;
    font-family: var(--font); font-weight: 700; padding: 0;
    transition: color 0.2s, text-shadow 0.2s;
}
.catalog-breadcrumb .bc-link:hover { color: var(--gold); text-shadow: 0 0 10px var(--neon-gold); }
.catalog-breadcrumb .bc-sep { color: var(--text-dark); }
.catalog-breadcrumb .bc-current { color: var(--text-bright); font-weight: 700; }

.catalog-groups-grid {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 16px;
    margin-bottom: 24px;
}
.catalog-groups-grid .catalog-group-tile {
    flex: 0 1 200px; max-width: 220px; width: 200px; min-height: 200px;
}

.catalog-subcats-head {
    display: flex; align-items: center; gap: 16px; margin-bottom: 20px; flex-wrap: wrap;
}
.catalog-subcats-title {
    font-size: 20px; font-weight: 800; color: var(--text-bright); margin: 0;
    text-shadow: 0 0 20px var(--neon-green);
}
.catalog-back-btn { border-color: var(--border-green) !important; color: var(--green-bright) !important; }
.catalog-back-btn:hover { border-color: var(--gold) !important; color: var(--gold) !important; }
.catalog-pick-hint {
    text-align: center; color: var(--text-dim); padding: 48px 24px;
    font-size: 17px; grid-column: 1 / -1; width: 100%;
    border: 1px dashed var(--border-green); border-radius: var(--radius);
    background: rgba(45,56,36,0.12);
}

/* Анимации */
@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.anim-fade-in { animation: fadeIn 0.45s ease forwards; }
.anim-slide-up { animation: fadeSlideUp 0.5s ease forwards; }

.page.active { animation: fadeIn 0.35s ease; }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; pointer-events: auto; }
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* Админ — промо вкладки */
.admin-promo-tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.admin-promo-tab {
    background: var(--bg-card); border: 1px solid var(--border); color: var(--text-dim);
    padding: 10px 18px; border-radius: 8px; cursor: pointer; font-weight: 700; font-family: var(--font);
}
.admin-promo-tab.active, .admin-promo-tab:hover {
    border-color: var(--gold); color: var(--text-bright);
    box-shadow: 0 0 10px var(--neon-gold);
}
.admin-groups-list { margin-top: 16px; }
.admin-promo-list { margin-top: 16px; display: flex; flex-direction: column; gap: 16px; }
.admin-promo-thumb {
    width: 200px; aspect-ratio: 4 / 1; height: auto;
    object-fit: cover; border-radius: 8px; border: 1px solid var(--border);
}
.filter-sale { background: rgba(192,57,43,0.12) !important; border-color: rgba(192,57,43,0.4) !important; color: #ffb4ae !important; animation: none !important; }
.filter-sale.active { background: var(--red) !important; color: #fff !important; border-color: var(--red) !important; }
.catalog-filters, .catalog-sale-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }

/* Внутренние страницы — тёмные карточки */
.news-item, .about-block, .workshop-item, .delivery-block, .poll-card, .review-card,
.booking-item, .bookings-panel, .profile-header, .profile-form, .booking-form, .info-card, .review-form-box,
.workshop-card, .delivery-page > div {
    background: var(--bg-card) !important; border: 1px solid var(--border) !important;
    color: var(--text) !important; box-shadow: none !important; border-radius: var(--radius) !important;
}
.news-item h3, .about-block h3, .workshop-item h3, .info-card h3, .workshop-card-body h3 { color: var(--text-bright) !important; text-shadow: none !important; }
.news-item p, .about-block p, .workshop-item p, .review-text, .info-card p, .workshop-card-body p { color: var(--text-dim) !important; }
.phone-banner { background: var(--bg-card) !important; border: 1px solid var(--gold) !important; box-shadow: none !important; }
.phone-banner a { color: var(--gold) !important; text-shadow: none !important; font-size: 22px !important; }
.phone-banner p { color: var(--text-dim) !important; }

.workshop-tabs { border-bottom-color: var(--border) !important; }
.workshop-tab { color: var(--text-dim) !important; }
.workshop-tab:hover, .workshop-tab.active { color: var(--text-bright) !important; border-bottom-color: var(--gold) !important; }
.workshop-card { border-radius: var(--radius) !important; }
.workshop-card:hover { border-color: var(--gold) !important; box-shadow: var(--shadow-hover) !important; transform: translateY(-3px); }

.form-group label { color: var(--gold-dim) !important; }
.form-group input, .form-group textarea, .form-group select {
    background: var(--bg-input) !important; border: 1px solid var(--border) !important;
    color: var(--text-bright) !important; border-radius: 8px !important;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--border-strong) !important; }

.poll-option { background: var(--bg-card) !important; color: var(--text-bright) !important; border: 1px solid var(--border) !important; border-radius: 8px !important; }
.poll-option:hover { border-color: var(--gold) !important; }
.poll-result-track { background: var(--bg-input) !important; border-color: var(--border) !important; }
.poll-result-fill { background: var(--gold) !important; }
.review-author { color: var(--text-bright) !important; }
.review-card { border-left-color: var(--gold) !important; }
.reviews-list { max-width: 820px; margin-left: auto; margin-right: auto; }
.review-card-head {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 14px !important;
    flex-wrap: nowrap !important;
    margin-bottom: 12px !important;
}
.review-card-meta {
    display: flex; flex-direction: column; gap: 4px;
    flex: 1; min-width: 0;
}
.review-author { font-size: 17px !important; line-height: 1.3; }
.review-avatar {
    width: 52px; height: 52px; border-radius: 50%; object-fit: cover;
    border: 2px solid var(--gold); flex-shrink: 0;
    box-shadow: 0 0 12px rgba(201, 169, 97, 0.2);
}
.review-avatar-ph {
    width: 52px; height: 52px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--green-dark); color: var(--gold); font-weight: 800; font-size: 20px;
    border-radius: 50%; border: 2px solid var(--border-green); flex-shrink: 0;
}
.review-stars { color: var(--gold) !important; font-size: 16px !important; letter-spacing: 1px; }
.review-text { margin-bottom: 8px !important; }
.review-date { display: block; font-size: 13px !important; color: var(--text-dark) !important; }
.review-rating-select { background: var(--bg-input) !important; color: var(--text-bright) !important; border-color: var(--border) !important; }

.booking-item { border-left-color: var(--gold) !important; background: var(--bg-card) !important; }
.booking-status { background: rgba(201,169,97,0.15) !important; color: var(--gold) !important; }

.btn-register {
    background: transparent; border: 1px solid var(--border);
    color: var(--text); font-size: 13px; padding: 9px 14px; border-radius: 8px; font-weight: 700;
}
.btn-register:hover { border-color: var(--gold); color: var(--gold); background: rgba(201,169,97,0.08); }
.user-pill { background: var(--bg-card); border: 1px solid var(--border); border-radius: 999px; }
.user-pill-name { color: var(--text-bright) !important; }
.user-pill-role { color: var(--gold) !important; font-size: 10px !important; }
.user-pill.admin-pill { border-color: var(--gold) !important; background: rgba(201,169,97,0.1) !important; }
.btn-logout { border-color: var(--border) !important; color: var(--text-dim) !important; }

.btn-red { background: var(--gold) !important; color: #121210 !important; border: none !important; font-weight: 800 !important; box-shadow: none !important; text-shadow: none !important; animation: none !important; border-radius: 8px !important; }
.btn-red:hover { background: var(--gold-bright) !important; transform: none !important; }
.btn-outline { border: 1px solid var(--border) !important; color: var(--text) !important; background: transparent !important; border-radius: 8px !important; }
.btn-outline:hover { border-color: var(--gold) !important; color: var(--gold) !important; background: rgba(201,169,97,0.06) !important; }
.btn-green { background: var(--gold) !important; color: #121210 !important; border: none !important; }

.footer {
    background: var(--bg-elevated); color: var(--text-dim);
    border-top: 1px solid var(--border); padding: 28px 24px;
    text-align: center; position: relative; z-index: 2;
}
.footer a { color: var(--gold); }
.footer-sub { color: var(--text-dark); font-size: 14px; margin-top: 6px; }

/* Модалки */
.modal-overlay { background: rgba(0, 0, 0, 0.82) !important; backdrop-filter: blur(4px); }
#product-modal.modal-overlay { opacity: 0; transition: opacity 0.28s ease; }
#product-modal.modal-overlay.active { opacity: 1; }
#product-modal.modal-overlay .modal.product-modal {
    transform: scale(0.94) translateY(12px);
    opacity: 0;
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.32s ease;
}
#product-modal.modal-overlay.modal-visible .modal.product-modal {
    transform: scale(1) translateY(0);
    opacity: 1;
}
.product-modal {
    max-width: 920px !important;
    width: calc(100vw - 32px) !important;
    overflow: hidden !important;
    box-sizing: border-box;
}
.product-modal-content {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 24px !important;
    align-items: start;
    min-width: 0;
}
.product-modal-gallery {
    position: relative;
    min-width: 0;
    width: 100%;
}
.product-modal-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}
.product-modal-info h2 {
    font-size: 24px !important;
    margin-bottom: 4px;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.modal-desc-full {
    font-size: 16px !important; line-height: 1.7 !important;
    max-height: 280px; overflow-y: auto; overflow-x: hidden;
    padding: 12px 14px;
    background: var(--bg-card-inner);
    border-radius: 8px;
    border: 1px solid var(--border);
    white-space: pre-wrap !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    min-width: 0;
    flex: 1 1 auto;
}
.modal-price-block .price-new { color: var(--gold) !important; font-size: 26px !important; }
#modal-order { margin-top: 8px; font-size: 15px !important; padding: 14px !important; }
.modal {
    background: var(--bg-card); color: var(--text);
    border: 1px solid var(--border); box-shadow: var(--shadow);
    border-radius: 12px !important;
}
.modal-title { color: var(--text-bright); letter-spacing: 1px; }
.modal-note { color: var(--text-dim); }
.modal-note a { color: var(--gold); font-weight: 700; }
.confirm-text { color: var(--text-dim); }
.modal-desc-full { color: var(--text-dim) !important; }
.modal-price-block .product-price, .modal-price-block .price-new { color: var(--gold) !important; }

#regular-calc-display { background: var(--bg-input) !important; color: var(--text-bright) !important; border-color: var(--border) !important; }
.regular-calc-grid button { background: var(--bg-card) !important; color: var(--text-bright) !important; border-color: var(--border) !important; }
.regular-calc-grid button:hover { border-color: var(--gold) !important; }
.regular-calc-grid button.calc-eq { background: var(--gold) !important; color: #121210 !important; }

.gallery-main {
    background: var(--bg-card-inner) !important; border-color: var(--border) !important;
    border-radius: 8px; position: relative; overflow: hidden;
    width: 100% !important;
    min-height: 320px !important;
    height: 360px !important;
}
.gallery-main img, #gallery-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    padding: 12px;
    box-sizing: border-box;
    transition: transform 0.36s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.36s ease;
    will-change: transform, opacity;
}
#gallery-img.gal-exit-left { transform: translateX(-36px); opacity: 0; }
#gallery-img.gal-exit-right { transform: translateX(36px); opacity: 0; }
#gallery-img.gal-enter-right { animation: galEnterRight 0.42s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
#gallery-img.gal-enter-left { animation: galEnterLeft 0.42s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
@keyframes galEnterRight {
    from { transform: translateX(48px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes galEnterLeft {
    from { transform: translateX(-48px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
.gallery-arrow { background: rgba(0,0,0,0.7) !important; border-color: var(--border) !important; color: var(--text-bright) !important; border-radius: 6px; }
.gallery-arrow:hover { background: var(--gold) !important; color: #121210 !important; }
.gallery-prev { left: 8px !important; }
.gallery-next { right: 8px !important; }
.gallery-dot { transition: background 0.25s ease, transform 0.25s ease; }
.gallery-dot.active {
    background: var(--gold) !important; box-shadow: 0 0 8px var(--neon-gold) !important;
    transform: scale(1.2);
}

.catalog-promo-divider {
    display: flex; align-items: center; gap: 16px;
    margin: 36px 0 28px; width: 100%;
}
.catalog-promo-divider::before,
.catalog-promo-divider::after {
    content: ''; flex: 1; height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}
.catalog-promo-divider span {
    font-size: 13px; font-weight: 800; letter-spacing: 3px; text-transform: uppercase;
    color: var(--gold); white-space: nowrap; padding: 0 4px;
}
#catalog-sale-products { margin-bottom: 8px; }

.catalog-all-bar {
    display: flex;
    justify-content: center;
    margin: 0 0 28px;
    width: 100%;
}
.catalog-all-btn {
    position: relative;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    font-family: var(--font);
}
.catalog-all-btn-inner {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 32px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(184, 150, 62, 0.18), rgba(45, 56, 36, 0.5));
    border: 2px solid var(--gold);
    color: var(--text-bright);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    box-shadow: 0 0 24px rgba(184, 150, 62, 0.25), inset 0 1px 0 rgba(255,255,255,0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.catalog-all-btn-glow {
    position: absolute;
    inset: -4px;
    border-radius: 999px;
    background: radial-gradient(ellipse at center, rgba(184, 150, 62, 0.35), transparent 70%);
    opacity: 0.6;
    filter: blur(8px);
    transition: opacity 0.25s ease;
    pointer-events: none;
}
.catalog-all-btn-icon {
    color: var(--gold);
    font-size: 18px;
    line-height: 1;
}
.catalog-all-btn-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--gold);
    color: #121210;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
}
.catalog-all-btn:hover .catalog-all-btn-inner,
.catalog-all-btn.active .catalog-all-btn-inner {
    transform: translateY(-2px);
    border-color: var(--gold-bright, #d4b86a);
    background: linear-gradient(135deg, rgba(184, 150, 62, 0.32), rgba(45, 56, 36, 0.65));
    box-shadow: 0 0 32px rgba(184, 150, 62, 0.45), 0 8px 24px rgba(0,0,0,0.35);
}
.catalog-all-btn:hover .catalog-all-btn-glow,
.catalog-all-btn.active .catalog-all-btn-glow { opacity: 1; }
.catalog-all-btn.active .catalog-all-btn-inner {
    background: linear-gradient(135deg, rgba(184, 150, 62, 0.45), rgba(45, 56, 36, 0.75));
}

@media (max-width: 720px) {
    .product-modal-content { grid-template-columns: 1fr !important; }
    .gallery-main { height: 280px !important; min-height: 280px !important; }
}

.admin-gear { box-shadow: none !important; border-color: var(--gold) !important; background: var(--bg-card) !important; color: var(--gold) !important; }
.admin-gear:hover { background: var(--gold) !important; color: #121210 !important; }

/* Toast */
#toast-container { z-index: 10200; }
.toast {
    background: var(--bg-card) !important; border: 1px solid var(--border) !important;
    color: var(--text-bright) !important; box-shadow: var(--shadow) !important;
    border-radius: var(--radius) !important;
}
.toast.success { border-color: var(--gold) !important; }
.toast.error { border-color: var(--red) !important; }

.form-status.success { background: rgba(201,169,97,0.12) !important; border-color: var(--gold) !important; color: var(--gold) !important; }

.profile-avatar { border-color: var(--gold) !important; }
.profile-avatar-placeholder { background: var(--bg-input) !important; border-color: var(--border) !important; }
.poll-result-label { color: var(--text-bright) !important; }
.poll-result-fill { background: var(--gold) !important; box-shadow: none !important; }
.calc-result { background: var(--bg-input) !important; border-color: var(--border) !important; }
.calc-result strong { color: var(--gold) !important; }
.product-img .no-photo { animation: none !important; opacity: 0.35; }

/* ========== АДМИН-ПАНЕЛЬ ========== */
.admin-panel-page {
    --bg: #121210;
    --bg-card: #252523;
    --bg-input: #1c1c1a;
    --text: #e8e8e6;
    --text-bright: #ffffff;
    --text-dim: #9a9a96;
    --border: rgba(201, 169, 97, 0.18);
    --accent-cta: #c9a961;
    --accent-cta-hover: #dbb872;
    --neon-green: transparent;
    background: var(--bg);
    color: var(--text);
}
.admin-panel-page::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='800' viewBox='0 0 800 800'%3E%3Cg fill='none' stroke='%23c9a961' stroke-width='0.7' opacity='0.06'%3E%3Cellipse cx='400' cy='400' rx='380' ry='160'/%3E%3Cellipse cx='400' cy='400' rx='300' ry='120'/%3E%3Cellipse cx='400' cy='400' rx='220' ry='85'/%3E%3Cellipse cx='400' cy='400' rx='140' ry='55'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 800px 800px;
    z-index: 0;
}
.admin-panel-page .admin-layout { position: relative; z-index: 1; }

.admin-panel-page .admin-sidebar {
    background: #0e0e0c !important;
    border-right: 1px solid var(--border) !important;
    box-shadow: none !important;
}
.admin-panel-page .admin-sidebar-head h2 { color: var(--text-bright) !important; text-shadow: none !important; letter-spacing: 2px; font-size: 20px; }
.admin-panel-page .admin-sidebar-sub { color: var(--gold) !important; letter-spacing: 3px; }
.admin-panel-page .admin-nav-group { color: var(--text-dark) !important; }
.admin-panel-page .admin-nav-btn { color: var(--text-dim) !important; font-size: 14px; }
.admin-panel-page .admin-nav-btn:hover { color: var(--text-bright) !important; background: rgba(201,169,97,0.08) !important; border-left-color: var(--gold) !important; }
.admin-panel-page .admin-nav-btn.active {
    color: var(--text-bright) !important; background: rgba(201,169,97,0.14) !important;
    border-left-color: var(--gold) !important; box-shadow: none !important;
}

.admin-panel-page .admin-toolbar { background: var(--bg-elevated) !important; border-bottom: 1px solid var(--border) !important; }
.admin-panel-page .admin-search-input {
    background: var(--bg-input) !important; border: 1px solid var(--border) !important;
    color: var(--text-bright) !important; border-radius: 8px !important;
}
.admin-panel-page .admin-search-input:focus { border-color: var(--gold) !important; box-shadow: none !important; }
.admin-panel-page .admin-close-sidebar { border-color: var(--border) !important; color: var(--text) !important; }

.admin-panel-page .admin-section-title {
    color: var(--text-bright) !important; border-bottom-color: var(--border) !important;
    letter-spacing: 1px; font-weight: 800;
}
.admin-panel-page .admin-help {
    color: var(--text-dim) !important; background: rgba(201,169,97,0.06) !important;
    border-left-color: var(--gold) !important; border-radius: 0 8px 8px 0;
}
.admin-panel-page .admin-item {
    background: var(--bg-card) !important; border: 1px solid var(--border) !important;
    box-shadow: none !important; border-radius: var(--radius) !important;
}
.admin-panel-page .admin-item:hover { border-color: rgba(201,169,97,0.35) !important; }
.admin-panel-page .admin-item h4 { color: var(--text-bright) !important; }
.admin-panel-page .admin-item p { color: var(--text-dim) !important; }

.admin-panel-page .admin-form-box {
    background: var(--bg-card) !important; border: 1px solid var(--border) !important;
    box-shadow: none !important; border-radius: var(--radius) !important;
}
.admin-panel-page .admin-form-box h4 { color: var(--text-bright) !important; }
.admin-panel-page .form-group label { color: var(--gold-dim) !important; }
.admin-panel-page .form-group input,
.admin-panel-page .form-group textarea,
.admin-panel-page .form-group select,
.admin-panel-page .admin-textarea-lg,
.admin-panel-page .admin-actions input,
.admin-panel-page .admin-actions select,
.admin-panel-page .admin-price-field input {
    background: var(--bg-input) !important; border: 1px solid var(--border) !important;
    color: var(--text-bright) !important; border-radius: 8px !important;
}
.admin-panel-page .admin-textarea-lg:focus,
.admin-panel-page .form-group input:focus { border-color: var(--gold) !important; box-shadow: none !important; }
.admin-panel-page .admin-label { color: var(--gold-dim) !important; }
.admin-panel-page .admin-actions label { color: var(--gold-dim) !important; }

.admin-panel-page .btn-green { background: var(--gold) !important; color: #121210 !important; border: none !important; font-weight: 800 !important; border-radius: 8px !important; }
.admin-panel-page .btn-green:hover { background: var(--gold-bright) !important; }
.admin-panel-page .btn-red { background: var(--red) !important; color: #fff !important; border-radius: 8px !important; }
.admin-panel-page .btn-outline { border: 1px solid var(--border) !important; color: var(--text) !important; background: transparent !important; border-radius: 8px !important; }
.admin-panel-page .btn-outline:hover { border-color: var(--gold) !important; color: var(--gold) !important; }
.admin-panel-page .admin-new-booking { border-color: var(--red) !important; animation: none !important; }

.admin-check { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-weight: 600; font-size: 16px; color: var(--text-bright); }
.admin-muted { color: var(--text-dim); font-size: 15px; margin: 8px 0; }

.admin-upload-label { cursor: pointer; display: inline-flex !important; align-items: center; }
.feat-admin-thumb {
    width: 100%; max-width: 280px; height: 160px; object-fit: cover;
    border-radius: 8px; border: 1px solid var(--border); display: block;
}
.feat-admin-thumb-empty {
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-input); color: var(--text-dim); font-size: 14px;
}
.feat-admin-preview { margin-bottom: 14px; }
.feat-admin-box { margin-bottom: 16px; }
.admin-cat-preview, .admin-promo-preview {
    object-fit: cover; border-radius: 8px;
    border: 1px solid var(--border); display: block;
}
.admin-cat-preview {
    width: 120px; height: 120px; aspect-ratio: 1 / 1;
}
.admin-cat-preview.empty {
    width: 120px; aspect-ratio: 1 / 1; height: auto;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-input); color: var(--text-dim); font-size: 13px; font-weight: 600;
    border: 1px dashed var(--border); border-radius: 8px;
}
.admin-promo-preview {
    width: 100%; max-width: 480px; aspect-ratio: 4 / 1; height: auto;
    margin-top: 8px; border-radius: 8px;
}
.admin-promo-preview.empty {
    width: 200px; aspect-ratio: 4 / 1; height: auto;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-input); color: var(--text-dim); font-size: 13px; font-weight: 600;
    border: 1px dashed var(--border); border-radius: 8px;
}
.admin-thumb { border-color: var(--border) !important; border-radius: 6px; }

/* Admin UX: filters, groups, compact rows */
.admin-count { font-size: 14px; font-weight: 600; color: var(--text-dim); letter-spacing: 0; }
.admin-filter-bar {
    display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end;
    margin-bottom: 16px; padding: 14px 16px;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px;
}
.admin-filter-field { display: flex; flex-direction: column; gap: 4px; min-width: 160px; }
.admin-filter-field span { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--gold-dim); }
.admin-filter-field select {
    padding: 10px 12px; background: var(--bg-input); border: 1px solid var(--border);
    color: var(--text-bright); border-radius: 8px; font-family: var(--font); font-size: 14px;
}
.admin-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 22px; padding: 2px 8px; border-radius: 999px;
    background: rgba(201,169,97,0.18); color: var(--gold); font-size: 12px; font-weight: 800;
}
.admin-badge-dim { background: rgba(255,255,255,0.06); color: var(--text-dim); }
.admin-empty, .admin-empty-inline { color: var(--text-dim); text-align: center; padding: 24px 12px; }
.admin-empty-inline { text-align: left; padding: 8px 0; }

.admin-prod-group, .admin-cat-group, .admin-add-panel {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px;
    margin-bottom: 10px; overflow: hidden;
}
.admin-prod-group > summary, .admin-cat-group > summary, .admin-add-panel > summary {
    cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px;
    padding: 14px 16px; font-weight: 800; color: var(--text-bright);
    background: rgba(201,169,97,0.06); border-bottom: 1px solid transparent;
}
.admin-prod-group[open] > summary, .admin-cat-group[open] > summary { border-bottom-color: var(--border); }
.admin-prod-group > summary::-webkit-details-marker, .admin-cat-group > summary::-webkit-details-marker, .admin-add-panel > summary::-webkit-details-marker { display: none; }
.admin-prod-group-title, .admin-cat-group-title { flex: 1; }
.admin-prod-list, .admin-cat-group-body { padding: 8px 10px 12px; }
.admin-prod-row, .admin-subcat-row {
    display: flex; align-items: center; gap: 12px; padding: 10px 12px;
    border: 1px solid var(--border); border-radius: 8px; margin-bottom: 8px;
    background: var(--bg-input);
}
.admin-prod-row:hover, .admin-subcat-row:hover { border-color: rgba(201,169,97,0.35); }
.admin-prod-thumb, .admin-subcat-thumb {
    width: 48px; height: 48px; aspect-ratio: 1 / 1;
    object-fit: cover; border-radius: 6px; border: 1px solid var(--border); flex-shrink: 0;
}
.admin-prod-thumb-empty, .admin-subcat-thumb-empty {
    width: 48px; aspect-ratio: 1 / 1; height: auto;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-card); border: 1px dashed var(--border); border-radius: 6px; font-size: 20px; flex-shrink: 0;
}
.admin-prod-info, .admin-subcat-info { flex: 1; min-width: 0; }
.admin-prod-name, .admin-subcat-info strong {
    display: block; font-size: 15px; color: var(--text-bright); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.admin-prod-meta, .admin-subcat-meta { display: block; font-size: 13px; color: var(--text-dim); margin-top: 2px; }
.admin-prod-disc { color: #e63946; font-style: normal; }
.admin-prod-actions, .admin-subcat-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; flex-wrap: wrap; }
.admin-subcat-select {
    max-width: 150px; padding: 8px 10px; border-radius: 8px;
    background: var(--bg-card); color: var(--text-bright); border: 1px solid var(--border); font-size: 13px;
}
.admin-cat-group-head { display: flex; align-items: center; gap: 14px; padding: 0 4px 12px; flex-wrap: wrap; }
.admin-cat-group-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-inline-add {
    display: flex; align-items: center; gap: 8px; flex: 1; min-width: 200px;
}
.admin-inline-add .inline-cat-name {
    flex: 1; min-width: 120px; padding: 8px 12px; border-radius: 8px;
    background: var(--bg-input); color: var(--text-bright); border: 1px solid var(--border);
}
.admin-group-thumb, .admin-group-thumb-empty {
    width: 40px; aspect-ratio: 1 / 1; height: auto;
    object-fit: cover; border-radius: 6px; border: 1px solid var(--border); flex-shrink: 0;
}
.admin-group-thumb-empty {
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-card); border-style: dashed; font-size: 18px;
}
.photo-preview-hint {
    display: block; font-size: 12px; color: var(--text-dim); margin-top: 6px;
}
.photo-preview-item img,
.photo-preview-saved img,
.photo-preview-new img {
    aspect-ratio: 1 / 1; object-fit: cover;
}

/* Менеджер фото в админке */
.admin-photo-block { margin-bottom: 16px; }
.photo-mgr-grid {
    display: flex; flex-wrap: wrap; gap: 12px;
    margin-top: 10px; padding: 14px;
    background: var(--bg-input); border: 1px dashed var(--border);
    border-radius: 10px; min-height: 90px;
}
.photo-mgr-item {
    position: relative; width: 118px; text-align: center;
}
.photo-mgr-item.is-main .photo-mgr-img-wrap {
    border-color: var(--gold);
    box-shadow: 0 0 0 2px var(--gold), 0 0 16px var(--neon-gold);
}
.photo-mgr-img-wrap {
    width: 118px; height: 118px; border-radius: 8px; overflow: hidden;
    border: 2px solid var(--border); background: var(--bg-card);
    position: relative;
}
.photo-mgr-img-wrap img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.photo-mgr-toolbar {
    display: flex; justify-content: center; gap: 4px; margin-top: 6px;
}
.photo-mgr-btn {
    width: 30px; height: 28px; padding: 0; border-radius: 6px;
    border: 1px solid var(--border); background: var(--bg-card);
    color: var(--text-dim); font-size: 14px; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.photo-mgr-btn:hover { border-color: var(--gold); color: var(--text-bright); }
.photo-mgr-btn:disabled { opacity: 0.35; cursor: not-allowed; pointer-events: none; }
.photo-mgr-btn.photo-mgr-main.active {
    background: rgba(201,169,97,0.2); border-color: var(--gold); color: var(--gold-bright);
}
.photo-mgr-btn.photo-mgr-del:hover { border-color: #e74c3c; color: #ff8a8a; background: rgba(231,76,60,0.12); }
.photo-mgr-label {
    display: block; font-size: 11px; color: var(--text-dim); margin-top: 4px;
    font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px;
}
.photo-mgr-item.is-main .photo-mgr-label { color: var(--gold); }
.photo-mgr-add-row { margin-top: 10px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.admin-prod-edit-actions {
    display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
    padding-top: 8px; border-top: 1px solid var(--border); margin-top: 12px;
}
.admin-catalog-tree { display: flex; flex-direction: column; gap: 0; margin-top: 8px; }
.admin-subcat-tree { display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.admin-subcat-panel {
    background: rgba(0,0,0,0.15); border: 1px solid var(--border); border-radius: 8px;
    margin-left: 12px; overflow: hidden;
}
.admin-subcat-panel > summary {
    cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; font-weight: 700; color: var(--text-bright);
    background: rgba(201,169,97,0.04);
}
.admin-subcat-panel[open] > summary { border-bottom: 1px solid var(--border); }
.admin-subcat-panel > summary::-webkit-details-marker { display: none; }
.admin-subcat-panel-title { flex: 1; }
.admin-subcat-panel-body { padding: 8px 12px 12px; }
.admin-subcat-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.admin-inline-label { font-size: 13px; color: var(--text-dim); }
.admin-orphan-repair { margin-bottom: 12px; align-items: center; }
.admin-ungrouped > summary { border-left: 3px solid #e6a700; }
.admin-cat-group > summary .btn,
.admin-subcat-panel > summary .btn {
    padding: 2px 8px; min-width: 28px; font-size: 14px; line-height: 1.2;
}
.admin-cat-group > summary .btn:disabled,
.admin-subcat-panel > summary .btn:disabled,
.admin-prod-actions .btn:disabled { opacity: 0.35; pointer-events: none; }
.admin-badge-warn { background: rgba(230,57,70,0.15); color: #e63946; }
.admin-subcat-list { display: flex; flex-direction: column; gap: 0; }
.admin-add-panel > summary { background: rgba(201,169,97,0.04); font-size: 14px; }
.admin-products-tree .prod-edit-box { margin: 0 4px 10px; }
.privacy-page { max-width: 820px; margin: 0 auto; }
.privacy-text { color: var(--text-dim); line-height: 1.75; font-size: 16px; }
.privacy-text h3 { color: var(--text-bright); font-size: 18px; margin: 24px 0 10px; font-family: var(--font-display); }
.privacy-text p { margin: 0 0 12px; }
.privacy-text a { color: var(--gold); }
.privacy-updated { margin-top: 28px; font-size: 14px; color: var(--text-dark); }
.hidden { display: none !important; }

/* ===== Корзина & оформление заказа ===== */
.header-cart-icon { display: flex; align-items: center; justify-content: center; }
.header-cart-icon svg { display: block; }
.cart-btn.active {
    color: var(--gold) !important;
    border-color: var(--gold) !important;
    background: rgba(201, 169, 97, 0.22) !important;
}
.modal-fav-btn.active { border-color: var(--gold) !important; color: var(--gold-bright) !important; }
.cart-checkout-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    margin-bottom: 24px; padding: 18px 22px;
    background: linear-gradient(135deg, rgba(45,56,36,0.35) 0%, var(--bg-card) 100%);
    border: 1px solid var(--border-green); border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}
.cart-checkout-bar-info { font-size: 16px; color: var(--text-bright); font-weight: 600; }
.cart-checkout-bar-info span { color: var(--gold); }

.order-modal {
    max-width: 640px !important; width: calc(100% - 24px) !important;
    padding: 0 !important; overflow: hidden;
    display: flex; flex-direction: column;
    max-height: min(92vh, 760px);
}
.order-modal-head {
    padding: 24px 28px 16px;
    border-bottom: 1px solid var(--border);
    background: rgba(201,169,97,0.04);
    flex-shrink: 0;
}
.order-modal-title { margin-bottom: 16px !important; font-size: 22px !important; }
.order-steps {
    display: flex; align-items: center; justify-content: center; gap: 0; margin-bottom: 10px;
}
.order-step-dot {
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 800; font-family: var(--font-display);
    background: var(--bg-input); border: 2px solid var(--border);
    color: var(--text-dim); transition: all 0.25s;
    cursor: default;
}
.order-step-dot.clickable { cursor: pointer; }
.order-step-dot.clickable:hover { border-color: var(--gold); color: var(--gold-bright); }
.order-step-dot.active {
    background: rgba(201,169,97,0.2); border-color: var(--gold);
    color: var(--gold-bright); box-shadow: 0 0 14px var(--neon-gold);
}
.order-step-dot.done {
    background: var(--gold); border-color: var(--gold); color: #121210;
}
.order-step-line {
    width: 48px; height: 2px; background: var(--border); flex-shrink: 0;
}
.order-step-line.done { background: var(--gold); }
.order-step-caption {
    text-align: center; font-size: 14px; color: var(--text-dim); margin: 0;
}
.order-product-summary {
    padding: 14px 28px; background: var(--bg-input);
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 14px;
    flex-shrink: 0;
}
.order-summary-thumb {
    width: 56px; height: 56px; border-radius: 8px; object-fit: cover;
    border: 1px solid var(--border); flex-shrink: 0; background: var(--bg-card);
    display: flex; align-items: center; justify-content: center; font-size: 24px;
}
.order-summary-info { flex: 1; min-width: 0; }
.order-summary-info strong {
    display: block; font-size: 15px; color: var(--text-bright);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.order-summary-info span { font-size: 13px; color: var(--gold); font-weight: 700; }
.order-summary-count { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.order-step-body {
    padding: 22px 28px 16px;
    flex: 1; min-height: 0;
    overflow-y: auto; overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.order-platform-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
.order-platform-card {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    padding: 18px 12px 16px; border-radius: 12px;
    background: var(--bg-input); border: 2px solid var(--border);
    cursor: pointer; transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s, background 0.2s;
    font-family: inherit;
}
.order-platform-card:hover {
    border-color: rgba(201,169,97,0.45); transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
.order-platform-card.selected {
    border-color: var(--gold); background: rgba(201,169,97,0.1);
    box-shadow: 0 0 0 1px var(--gold), 0 0 20px var(--neon-gold);
}
.order-platform-logo {
    width: 72px; height: 48px; display: flex; align-items: center; justify-content: center;
    margin-bottom: 10px; border-radius: 8px; overflow: hidden;
}
.order-platform-logo svg { width: 100%; height: 100%; display: block; }
.order-platform-name {
    font-size: 14px; font-weight: 800; color: var(--text-bright); margin-bottom: 4px;
    font-family: var(--font-display); letter-spacing: 0.3px;
}
.order-platform-desc { font-size: 11px; color: var(--text-dim); line-height: 1.35; }

.order-delivery-form .form-group { margin-bottom: 14px; }
.order-delivery-form .form-hint {
    display: block; font-size: 12px; color: var(--text-dim); margin-top: 4px; line-height: 1.4;
}
.order-delivery-platform-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px; margin-bottom: 16px;
    background: rgba(201,169,97,0.08); border: 1px solid rgba(201,169,97,0.25);
    border-radius: 8px; font-size: 13px; font-weight: 700; color: var(--gold-bright);
}
.order-delivery-platform-badge .order-platform-logo { width: 48px; height: 32px; margin: 0; }

.order-payment-mock {
    text-align: center; padding: 12px 0 8px;
}
.order-payment-card {
    background: linear-gradient(145deg, rgba(45,56,36,0.4) 0%, var(--bg-card) 100%);
    border: 1px dashed rgba(201,169,97,0.45); border-radius: 14px;
    padding: 32px 24px; margin-bottom: 16px;
}
.order-payment-icon {
    width: 64px; height: 64px; margin: 0 auto 16px;
    border-radius: 50%; background: rgba(201,169,97,0.15);
    border: 2px solid var(--gold);
    display: flex; align-items: center; justify-content: center;
    font-size: 28px;
}
.order-payment-card h3 {
    font-size: 18px; color: var(--text-bright); margin-bottom: 8px;
    font-family: var(--font-display);
}
.order-payment-card p { font-size: 14px; color: var(--text-dim); margin: 0 0 6px; line-height: 1.55; }
.order-payment-test {
    display: inline-block; margin-top: 12px; padding: 10px 20px;
    background: rgba(201,169,97,0.12); border: 1px solid var(--gold);
    border-radius: 8px; color: var(--gold-bright); font-weight: 800; font-size: 14px;
    letter-spacing: 0.5px;
}
.order-payment-note { font-size: 12px; color: var(--text-dark); margin-top: 12px; }

.order-modal-footer {
    display: flex; justify-content: space-between; gap: 12px;
    padding: 16px 28px 24px; border-top: 1px solid var(--border);
    background: rgba(0,0,0,0.15);
    flex-shrink: 0;
}
.order-modal-footer #order-back-btn:not(.hidden) { display: inline-flex !important; }
.order-modal-footer #order-back-btn.hidden { visibility: hidden; pointer-events: none; opacity: 0; }
.order-modal-footer .btn { flex: 1; max-width: 200px; }
.order-modal-footer .btn-red { max-width: none; flex: 1.2; }

@media (max-width: 1100px) {
    .category-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
    .home-hero { margin-bottom: 4px; }
}
@media (max-width: 768px) {
    .top-bar-inner { flex-direction: column; text-align: center; }
    .top-contacts { margin-left: 0; justify-content: center; }
    .shop-header-inner { flex-direction: column; align-items: stretch; padding: 12px 16px; }
    .header-search { max-width: none; order: 3; width: 100%; }
    .header-user-actions { order: 2; justify-content: center; flex-wrap: wrap; margin-left: 0; }
    .btn-catalog { width: 100%; justify-content: center; }
    .home-promo-content h2 { font-size: 18px; }
    .home-promo-content { padding: 16px 20px; }
    .home-promo { height: clamp(180px, 42vw, 240px); }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .marketplace-grid { grid-template-columns: repeat(2, 1fr); }
    .order-platform-grid { grid-template-columns: 1fr; }
    .order-modal-footer { flex-direction: column; }
    .order-modal-footer .btn { max-width: none; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .site-bg-topo { animation: none; }
}

/* Beta-test banner */
.beta-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: linear-gradient(90deg, rgba(201,169,97,0.18) 0%, rgba(12,18,14,0.97) 40%, rgba(12,18,14,0.97) 100%);
    border-bottom: 1px solid rgba(201,169,97,0.45);
    box-shadow: 0 4px 24px rgba(0,0,0,0.35);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s ease, opacity 0.35s ease;
}
.beta-banner.is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
body.has-beta-banner { padding-top: 52px; }
.beta-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.beta-banner-badge {
    flex-shrink: 0;
    padding: 4px 10px;
    border-radius: 4px;
    background: #c9a961;
    color: #0a0f0c;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.12em;
}
.beta-banner-text {
    flex: 1;
    min-width: 200px;
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    color: var(--text-dim);
}
.beta-banner-text strong { color: var(--text-bright); }
.beta-banner-close {
    flex-shrink: 0;
    padding: 8px 16px;
    border: 1px solid rgba(201,169,97,0.5);
    border-radius: 6px;
    background: rgba(201,169,97,0.12);
    color: #f0e6cc;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}
.beta-banner-close:hover {
    background: rgba(201,169,97,0.28);
    border-color: var(--gold);
}
@media (max-width: 600px) {
    body.has-beta-banner { padding-top: 88px; }
    .beta-banner-inner { flex-direction: column; align-items: stretch; }
    .beta-banner-close { width: 100%; text-align: center; }
}

.admin-nav-group {
    font-size: 11px !important;
    letter-spacing: 0.14em !important;
    margin-top: 14px !important;
}
.admin-nav-group:first-child { margin-top: 0 !important; }
.admin-nav-btn.active {
    font-weight: 700;
}
