/* Shared mechbox-chrome (header + footer). Synced from web/src/shared/mechbox-chrome.
   Update with scripts/sync-chrome-shop.mjs — do not edit mechbox-chrome.css directly. */
@import "./mechbox-chrome.css?v=2";

/* ===== MechBox Design System ===== */

:root {
    --bg: #FBFAF8;
    --bg-secondary: #F4F2EE;
    --bg-card: #FFFFFF;
    --bg-card-hover: #FAF8F4;
    --bg-accent-subtle: rgba(255, 90, 31, 0.10);
    --text: #1A1916;
    --text-secondary: #4E4A43;
    --text-muted: #857F75;
    --accent: #FF5A1F;          /* bright orange из палитры make.mechbox.tech */
    --accent-hover: #E84A10;
    --accent-blue: #2563EB;     /* electric blue для secondary акцентов в hero */
    --accent-glow: rgba(255, 90, 31, 0.14);
    --accent-strong-glow: rgba(255, 90, 31, 0.24);
    --success: #4C7A4F;
    --success-subtle: rgba(76, 122, 79, 0.10);
    --price: #1A1916;
    --border: #E8E3DB;
    --border-hover: #D6CFC2;
    --shadow-sm: 0 1px 2px rgba(26, 25, 22, 0.04), 0 1px 3px rgba(26, 25, 22, 0.06);
    --shadow-md: 0 4px 12px rgba(26, 25, 22, 0.06), 0 2px 4px rgba(26, 25, 22, 0.04);
    --shadow-lg: 0 12px 32px rgba(26, 25, 22, 0.08), 0 4px 12px rgba(26, 25, 22, 0.05);
    --shadow-glow: 0 8px 24px rgba(255, 90, 31, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --max-width: 1200px;
    --font: 'Space Grotesk', system-ui, -apple-system, sans-serif;
    --transition: 0.2s ease;
}

/* ===== Reset ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    /* Радиальный градиент начинается с самого верха страницы и виден сквозь
     * полупрозрачную шапку (shared chrome имеет rgba(255,255,255,0.85) + blur).
     * См. docs/design/INTERFACE-DESIGN-SYSTEM.md. */
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, var(--accent-glow) 0%, transparent 60%),
        var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--accent-hover);
}

/* ===== Typography ===== */
h1, h2, h3, h4 {
    color: var(--text);
    line-height: 1.2;
    font-weight: 700;
}

h1 { font-size: 2.5rem; letter-spacing: -0.03em; }
h2 { font-size: 1.75rem; letter-spacing: -0.02em; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }

p { margin-bottom: 1rem; }

/* ===== Layout ===== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.section-warm {
    background: var(--bg-secondary);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    margin-bottom: 0.75rem;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Grid ===== */
.grid {
    display: grid;
    gap: 1.5rem;
}

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

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

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

@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    .section { padding: 3rem 0; }
}

/* ===== Header ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(251, 250, 248, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.header-logo-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text);
    text-decoration: none;
    transition: opacity var(--transition);
}
.header-logo-brand:hover { opacity: 0.75; }

.header-logo img {
    width: 32px;
    height: 32px;
}

.header-logo-name {
    letter-spacing: -0.01em;
}

/* «|» разделитель между «Мехбокс» и названием модуля */
.header-logo-sep {
    color: var(--text-secondary);
    font-weight: 300;
    margin: 0 0.5rem;
    user-select: none;
    opacity: 0.5;
}

.header-logo-module {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

/* Центральная навигация по экосистеме (одинаковая на всех модулях) */
.header-eco {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 0 auto;
    font-size: 0.9375rem;
}
.header-eco a {
    color: var(--text-secondary);
    font-weight: 500;
    transition: color var(--transition);
    position: relative;
    padding-bottom: 4px;
}
.header-eco a:hover { color: var(--text-primary); }
.header-eco a.active {
    color: var(--text-primary);
    font-weight: 700;
    border-bottom: 2px solid var(--accent);
}

/* Локальная навигация модуля shop (Каталог / Документация / О нас) */
.header-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-nav a {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color var(--transition);
    position: relative;
}

.header-nav a:hover,
.header-nav a.active {
    color: var(--accent);
}

.header-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Hamburger */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 1px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav */
.mobile-nav {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(251, 250, 248, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 99;
    padding: 2rem 1.5rem;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav a {
    display: block;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.mobile-nav a:hover,
.mobile-nav a.active {
    color: var(--accent);
}

@media (max-width: 768px) {
    .header-nav, .header-cta {
        display: none;
    }
    .hamburger {
        display: block;
    }
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: inherit;
    border: none;
    /* По диздоку (Концепция 7): средние кнопки = 8px. */
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1.4;
}

.btn-primary {
    background: var(--accent);
    color: #0E0E11;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(255, 90, 31, 0.3);
    color: #0E0E11;
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1.5px solid var(--border-hover);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--border-hover);
}
.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.0625rem;
    /* По диздоку (Концепция 7): большая primary-кнопка = 14px, как в make. */
    border-radius: 14px;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* ===== Product Cards ===== */
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
}

.product-card:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
    border-color: var(--border-hover);
}

.product-card-image {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.product-card-image img {
    max-height: 100%;
    object-fit: contain;
}

.product-card-body {
    padding: 1.5rem;
}

.product-card-category {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--success);
    margin-bottom: 0.5rem;
}

.product-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.product-card-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.product-card-price {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text);
}

.product-card-price span {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-muted);
}

/* ===== Doc Cards ===== */
.doc-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: all var(--transition);
    text-decoration: none;
    display: block;
    color: var(--text);
}

.doc-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--accent);
    color: var(--text);
}

.doc-card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.doc-card-title {
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.doc-card-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ===== Hero ===== */
.hero {
    position: relative;
    padding: 10rem 0 6rem;
    overflow: hidden;
}
.hero-bg {
    /* Градиент теперь на body — начинается с верха страницы и виден сквозь шапку.
     * Этот блок оставлен для обратной совместимости разметки, но скрыт. */
    display: none;
}
.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.hero-text { max-width: 540px; }
.hero-badge {
    display: inline-block;
    padding: 0.375rem 1rem;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--bg-accent-subtle);
    border: 1px solid rgba(255, 90, 31, 0.20);
    border-radius: 999px;
    margin-left: -1rem;
    margin-bottom: 1.5rem;
}
.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    max-width: none;
    text-align: left;
}
.hero-slogan {
    font-size: 5rem;
    line-height: 0.95;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 1.75rem;
}
.hero-slogan span { display: block; }
.hero-ware {
    font-style: normal;
    font-size: 0.88em;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: inherit;
}
.hero-plus {
    color: var(--accent);
    font-style: normal;
    font-weight: 700;
    display: inline-block;
    margin-right: 0.2em;
}
.hero p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 440px;
    margin-bottom: 2.5rem;
    text-align: left;
    margin-left: 0;
}
.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}
.hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-image img {
    max-height: 460px;
    object-fit: contain;
    filter: drop-shadow(0 20px 30px rgba(26, 25, 22, 0.12));
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
@media (max-width: 768px) {
    .hero { padding: 7rem 0 3rem; }
    .hero-grid { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
    .hero-text { max-width: none; }
    .hero h1 { font-size: 2.25rem; text-align: center; }
    .hero-slogan { font-size: 3rem; align-items: center; text-align: center; }
    .hero p { text-align: center; margin: 0 auto 2rem; }
    .hero-buttons { justify-content: center; }
    .hero-image img { max-height: 280px; }
}

/* ===== Features Strip ===== */
.features-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all var(--transition);
}
.feature-item:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}
.feature-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--bg-accent-subtle);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.feature-item h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.feature-item p { font-size: 0.875rem; color: var(--text-secondary); margin: 0; }
@media (max-width: 768px) {
    .features-strip { grid-template-columns: 1fr; }
}

/* ===== Social Proof ===== */
.social-proof {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
}
.proof-stat { text-align: center; }
.proof-number { display: block; font-size: 2rem; font-weight: 700; color: var(--accent); line-height: 1.2; }
.proof-label { font-size: 0.875rem; color: var(--text-secondary); }
.proof-divider { width: 1px; height: 3rem; background: var(--border); }
@media (max-width: 768px) {
    .social-proof { flex-direction: column; gap: 1.5rem; }
    .proof-divider { width: 3rem; height: 1px; }
}

/* ===== CTA Block ===== */
.cta-block {
    text-align: center;
    padding: 4rem 2rem;
    border-radius: var(--radius-lg);
    background: radial-gradient(ellipse at center, var(--accent-glow) 0%, transparent 70%), var(--bg-secondary);
    border: 1px solid var(--border);
}
.cta-block h2 { margin-bottom: 0.75rem; }
.cta-block p { color: var(--text-secondary); font-size: 1.125rem; margin-bottom: 0; }

/* ===== Footer ===== */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 1.5rem 0;
}
.footer-simple {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: var(--text-muted);
}
.footer-links-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.footer-store-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--accent);
    background: var(--bg-accent-subtle);
    border: 1px solid rgba(255, 90, 31, 0.25);
    border-radius: 10px;
    text-decoration: none;
    transition: all var(--transition);
}
.footer-store-link:hover {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
}
.footer-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition);
}
.footer-icon-link:hover {
    color: var(--text);
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .footer-simple {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* ===== Modal ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.close-button {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    line-height: 1;
    transition: color var(--transition);
}

.close-button:hover {
    color: var(--text);
}

/* ===== Forms ===== */
.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
}

.form-input {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--text);
    font-family: inherit;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--bg-accent-subtle);
}

select.form-input {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%2388889a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

select.form-input option {
    background: var(--bg-secondary);
    color: var(--text);
    padding: 0.5rem;
}

/* ===== Step Indicator ===== */
.step-indicator {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.step.active {
    color: var(--accent);
    font-weight: 600;
}

.step-number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
}

.step.active .step-number {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.step.completed .step-number {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.step-content { display: none; }
.step-content.active { display: block; }

.step-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.step-button { flex: 1; }

.step-button.secondary {
    background: var(--bg);
    color: var(--text);
    border: 1.5px solid var(--border);
}

.step-button.secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ===== Product Order Info ===== */
.product-order-info {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 0.5rem;
}

.product-order-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
}

.quantity-label {
    font-size: 0.875rem;
    font-weight: 500;
}

.quantity-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.quantity-button {
    width: 36px;
    height: 36px;
    border: 1.5px solid var(--border);
    background: var(--bg);
    color: var(--text);
    border-radius: var(--radius-sm);
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.quantity-button:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.quantity-display {
    min-width: 40px;
    text-align: center;
    font-size: 1.125rem;
    font-weight: 600;
}

/* ===== Delivery Info ===== */
.delivery-info-block {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    margin-bottom: 1.5rem;
}

.delivery-info-icon {
    flex-shrink: 0;
    color: var(--accent);
    margin-top: 0.125rem;
}

.delivery-info-text strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.delivery-info-text p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

.tariff-period {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.loading-delivery {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

/* ===== Order Summary ===== */
.order-summary {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-top: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
}

.summary-row:last-child {
    margin-bottom: 0;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    font-weight: 700;
    font-size: 1.0625rem;
}

.summary-total {
    color: var(--accent);
}

/* ===== Submit Button (in modals) ===== */
.submit-button {
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    background: var(--accent);
    color: #0E0E11;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
}

.submit-button:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(255, 90, 31, 0.3);
}

.submit-button:active {
    transform: translateY(0);
}

.submit-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ===== Breadcrumbs ===== */
.breadcrumbs {
    padding: 1rem 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.breadcrumbs a {
    color: var(--text-muted);
}

.breadcrumbs a:hover {
    color: var(--accent);
}

.breadcrumbs span {
    margin: 0 0.5rem;
    color: var(--text-muted);
}

/* ===== Doc Page ===== */
.doc-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.doc-content h1 {
    margin-bottom: 1.5rem;
}

.doc-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.doc-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.doc-content ul, .doc-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.doc-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.doc-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
}

.doc-content th,
.doc-content td {
    border: 1px solid var(--border);
    padding: 0.625rem 0.875rem;
    text-align: left;
}

.doc-content th {
    background: var(--bg-secondary);
    font-weight: 600;
}

.doc-content tr:nth-child(even) {
    background: var(--bg-secondary);
}

.doc-content img {
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
}

.doc-content pre {
    background: #0D0D14;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    line-height: 1.7;
}

.doc-content code {
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.875em;
}

.doc-content p > code {
    background: var(--bg-secondary);
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-size: 0.875em;
}

.doc-content .warning {
    background: rgba(255, 152, 0, 0.1);
    border-left: 4px solid #FF9800;
    padding: 1rem 1.25rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
}

/* ===== Product Detail ===== */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 2rem 0;
}

.product-detail-image {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    aspect-ratio: 1;
}

.product-detail-image img {
    max-height: 100%;
    object-fit: contain;
}

.product-detail-info h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.product-detail-category {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--success);
    margin-bottom: 1rem;
}

.product-detail-price {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.product-detail-desc {
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--success);
    background: var(--success-subtle);
    padding: 0.375rem 0.75rem;
    border-radius: 999px;
    margin-bottom: 1.5rem;
}

.stock-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
}

@media (max-width: 768px) {
    .product-detail {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .product-detail-image {
        aspect-ratio: 4/3;
    }
}

/* ===== Tabs ===== */
.tabs {
    margin-top: 3rem;
}

.tab-buttons {
    display: flex;
    border-bottom: 1px solid var(--border);
    gap: 0;
    overflow-x: auto;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-muted);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    font-family: inherit;
}

.tab-btn:hover {
    color: var(--text);
}

.tab-btn.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    font-weight: 600;
}

.tab-panel {
    display: none;
    padding: 2rem 0;
}

.tab-panel.active {
    display: block;
}

/* ===== Catalog Filter ===== */
.catalog-filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
}

.filter-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.filter-btn.active {
    background: var(--accent);
    color: #0E0E11;
    border-color: var(--accent);
}

/* ===== About Page ===== */
.about-hero {
    text-align: center;
    padding: 8rem 0 3rem;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-secondary) 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: start;
}

.about-qr {
    text-align: center;
}

.about-qr img {
    width: 180px;
    border-radius: var(--radius-md);
    margin: 0 auto 0.75rem;
}

.about-qr p {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    .about-qr {
        order: -1;
    }
}

/* ===== Utilities ===== */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ===== Page padding for fixed header ===== */
.page-content {
    padding-top: 64px;
}

/* ===== Loading ===== */
.loading {
    text-align: center;
    font-size: 1rem;
    padding: 3rem;
    color: var(--text-muted);
}

/* ===== Badge ===== */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.badge-success {
    background: var(--success-subtle);
    color: var(--success);
}

/* ===== Two-col form grid ===== */
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 480px) {
    .modal-content {
        padding: 1.25rem;
        border-radius: 16px;
    }
}

/* ===== Selection ===== */
::selection { background: var(--accent); color: var(--bg); }

/* ===== Scroll Reveal ===== */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ===== Scroll-Groups (Catalog + Docs shared engine) ===== */
.sg-root {
    --sg-header-h: 64px;
    --sg-tabs-h: 64px;
    font-feature-settings: "tnum" 1, "lnum" 1;
}

.sg-tabs-wrap {
    position: sticky;
    top: var(--sg-header-h);
    z-index: 40;
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--border);
}
.sg-tabs {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
}
.sg-tabs::-webkit-scrollbar { display: none; }
.sg-tab {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 999px;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.18s ease;
    scroll-snap-align: start;
    position: relative;
}
.sg-tab:hover {
    border-color: var(--border-hover);
    color: var(--text);
}
.sg-tab.is-active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
}
.sg-tab.is-active .sg-tab-count {
    background: rgba(255,255,255,0.22);
    color: #fff;
}
.sg-tab-count {
    display: inline-flex;
    min-width: 22px;
    height: 20px;
    padding: 0 7px;
    align-items: center;
    justify-content: center;
    background: var(--bg-accent-subtle);
    color: var(--accent);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.sg-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px 64px;
}

.sg-section {
    position: relative;
    padding-top: 24px;
    scroll-margin-top: calc(var(--sg-header-h) + var(--sg-tabs-h) + 8px);
}

.sg-group-head {
    position: sticky;
    top: calc(var(--sg-header-h) + var(--sg-tabs-h));
    z-index: 20;
    margin: 0 -24px 16px;
    padding: 20px 24px 16px;
    background: color-mix(in srgb, var(--bg) 94%, transparent);
    backdrop-filter: saturate(180%) blur(8px);
    -webkit-backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--border);
}
.sg-group-title {
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--text);
}
.sg-group-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 780px;
    margin: 0;
    line-height: 1.55;
}

.sg-empty {
    padding: 48px 24px;
    text-align: center;
    color: var(--text-muted);
    background: var(--bg-secondary);
    border: 1px dashed var(--border);
    border-radius: var(--radius-md);
}

/* ===== Product Card ===== */
.sg-products {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-top: 8px;
}

.sg-product {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(260px, 1.4fr) 240px;
    gap: 20px;
    padding: 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.sg-product:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.sg-product-gallery {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 12px;
    align-items: start;
}
.sg-product.is-single-image .sg-product-gallery {
    grid-template-columns: 1fr;
}
.sg-thumbs {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.sg-thumb {
    width: 64px;
    aspect-ratio: 1 / 1;
    padding: 0;
    background: var(--bg-secondary);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.15s ease, transform 0.15s ease;
}
.sg-thumb:hover { border-color: var(--border-hover); }
.sg-thumb.is-active {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-glow);
}
.sg-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sg-hero {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    padding: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: zoom-in;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.sg-hero:hover { border-color: var(--border-hover); }
.sg-hero img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    padding: 12px;
}
.sg-hero-zoom {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--accent);
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.sg-hero:hover .sg-hero-zoom { opacity: 1; transform: translateY(0); }

.sg-product-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-height: 420px;
}
.sg-product-category {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.sg-product-name {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.3;
    margin: 0 0 10px;
    color: var(--text);
}
.sg-product-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    overflow-y: auto;
    padding-right: 4px;
    flex: 1;
}
.sg-product-desc p { margin: 0 0 10px; }
.sg-product-desc > *:last-child { margin-bottom: 0; }
.sg-product-desc .sg-desc-lead {
    color: var(--text);
    font-weight: 600;
    margin: 4px 0 6px;
}
.sg-product-desc .sg-desc-lead:first-child { margin-top: 0; }
.sg-product-desc .sg-desc-list {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.sg-product-desc .sg-desc-list li {
    position: relative;
    padding-left: 18px;
}
.sg-product-desc .sg-desc-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 8px;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
}

.sg-product-buy {
    align-self: start;
    position: sticky;
    top: calc(var(--sg-header-h) + var(--sg-tabs-h) + 96px);
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}
.sg-buy-price-label {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-muted);
}
.sg-buy-price {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.1;
}
.sg-price-original {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}
.sg-price-original.is-crossed {
    text-decoration: line-through;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
    order: 2;
}
.sg-price-discounted {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    order: 1;
}
.sg-buy-promo-label {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 6px;
}
.sg-buy-promo {
    display: flex;
    gap: 6px;
}
.sg-promo-input {
    flex: 1;
    min-width: 0;
    padding: 9px 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font: inherit;
    font-size: 0.9rem;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.sg-promo-input::placeholder { letter-spacing: 0.08em; color: var(--text-muted); }
.sg-promo-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.sg-promo-input:disabled {
    background: var(--bg-secondary);
    color: var(--text-muted);
    cursor: not-allowed;
}
.sg-promo-apply {
    padding: 9px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    transition: all 0.15s ease;
}
.sg-promo-apply:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.sg-promo-apply:disabled { opacity: 0.55; cursor: not-allowed; }
.sg-promo-status {
    font-size: 0.82rem;
    min-height: 1.2em;
    line-height: 1.4;
    color: var(--text-muted);
}
.sg-promo-status[data-state="ok"] { color: #4C7A4F; }
.sg-promo-status[data-state="err"] { color: #B53C29; }
.sg-promo-status[data-state="warn"] { color: var(--accent); }
.sg-promo-status[data-state="pending"] { color: var(--text-muted); }

.sg-buy-buttons {
    margin-top: 4px;
    display: flex;
    gap: 8px;
}
.sg-buy-btn {
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 13px 14px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font: inherit;
    font-size: 0.98rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: var(--shadow-glow);
}
.sg-buy-btn:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-md), var(--shadow-glow); }
.sg-buy-btn:active { transform: translateY(0); }

.sg-buy-btn-ozon {
    background: #005BFF;
    box-shadow: 0 6px 14px rgba(0, 91, 255, 0.22);
}
.sg-buy-btn-ozon:hover { background: #0048CC; box-shadow: 0 8px 18px rgba(0, 91, 255, 0.28); }
.sg-buy-btn-ozon svg { flex-shrink: 0; }

@media (max-width: 420px) {
    .sg-buy-buttons { flex-direction: column; }
}

.sg-buy-note {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: center;
}

/* ===== Doc Card ===== */
.sg-docs {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 8px;
}
.sg-doc-card {
    display: grid;
    grid-template-columns: 88px 1fr 28px;
    gap: 24px;
    align-items: center;
    padding: 24px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.sg-doc-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.sg-doc-icon {
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    background: var(--bg-accent-subtle);
    color: var(--accent);
    border-radius: var(--radius-md);
}
.sg-doc-icon svg {
    width: 36px;
    height: 36px;
}
.sg-doc-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 6px;
    color: var(--text);
    line-height: 1.3;
    letter-spacing: -0.01em;
}
.sg-doc-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.55;
    max-width: 72ch;
}
.sg-doc-arrow {
    color: var(--text-muted);
    transition: color 0.15s ease, transform 0.15s ease;
}
.sg-doc-arrow svg {
    width: 28px;
    height: 28px;
}
.sg-doc-card:hover .sg-doc-arrow {
    color: var(--accent);
    transform: translateX(4px);
}
@media (max-width: 640px) {
    .sg-doc-card {
        grid-template-columns: 64px 1fr;
        gap: 16px;
        padding: 18px;
    }
    .sg-doc-icon { width: 64px; height: 64px; }
    .sg-doc-icon svg { width: 28px; height: 28px; }
    .sg-doc-arrow { display: none; }
    .sg-doc-title { font-size: 1.1rem; }
    .sg-doc-desc { font-size: 0.95rem; }
}

/* ===== Lightbox ===== */
.sg-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(26, 25, 22, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.sg-lightbox.is-open {
    display: flex;
    animation: sg-lb-in 0.22s ease-out;
}
@keyframes sg-lb-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
.sg-lb-figure {
    margin: 0;
    max-width: min(1100px, 100%);
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    animation: sg-lb-fig-in 0.26s ease-out;
}
@keyframes sg-lb-fig-in {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}
.sg-lb-figure img {
    max-width: 100%;
    max-height: calc(100vh - 120px);
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.sg-lb-counter {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    font-variant-numeric: tabular-nums;
}
.sg-lb-close, .sg-lb-prev, .sg-lb-next {
    position: absolute;
    width: 48px;
    height: 48px;
    border: none;
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background 0.15s ease;
}
.sg-lb-close:hover, .sg-lb-prev:hover, .sg-lb-next:hover { background: rgba(255,255,255,0.22); }
.sg-lb-close { top: 24px; right: 24px; }
.sg-lb-prev  { left: 24px; top: 50%; transform: translateY(-50%); }
.sg-lb-next  { right: 24px; top: 50%; transform: translateY(-50%); }

/* ===== Responsive ===== */
@media (max-width: 1100px) {
    .sg-product {
        grid-template-columns: 1fr;
    }
    .sg-product-info { max-height: none; }
    .sg-product-buy { position: static; }
}

@media (max-width: 720px) {
    .sg-tabs { padding: 10px 16px; }
    .sg-tab { padding: 9px 14px; font-size: 0.88rem; }
    .sg-content { padding: 0 16px 48px; }
    .sg-group-head { margin: 0 -16px 12px; padding: 16px 16px 12px; }
    .sg-group-title { font-size: 1.2rem; }
    .sg-group-desc { font-size: 0.88rem; }
    .sg-product { padding: 14px; gap: 14px; }
    .sg-product-gallery {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
    }
    .sg-thumbs {
        flex-direction: row;
        order: 2;
        overflow-x: auto;
        scrollbar-width: none;
    }
    .sg-thumbs::-webkit-scrollbar { display: none; }
    .sg-hero { order: 1; aspect-ratio: 4 / 3; }
    .sg-thumb { width: 60px; flex-shrink: 0; }
    .sg-lb-close { top: 12px; right: 12px; }
    .sg-lb-prev { left: 8px; }
    .sg-lb-next { right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
    .sg-lightbox, .sg-lb-figure, .sg-buy-btn, .sg-product, .sg-hero-zoom, .sg-doc-card, .sg-doc-arrow, .sg-tab {
        animation: none !important;
        transition: none !important;
    }
}

/* ════════════════════════════════════════════════════════════════
   Chrome accent override for shop (мехbox-chrome shared токены)
   Заставляем shared header/footer использовать bright orange shop
   accent, не трогая mechbox-chrome.css (он общий с edu/make).
   ══════════════════════════════════════════════════════════════ */
.mb-header[data-app="shop"],
.mb-footer[data-app="shop"] {
    --mb-accent: #FF5A1F;
    --mb-accent-hover: #E84A10;
}

/* ════════════════════════════════════════════════════════════════
   ELECTRIC TYPEWRITER — полный перенос темы из mock-4
   Применяется только на главной странице (Hero / Features / Social
   Proof / CTA — эти классы есть только в index.html).
   Не затрагивает catalog/about/payment/docs.

   Структура:
     §1 Slogan layout & typewriter caret
     §2 Hero subtle grid + scan-line
     §3 Hero badge — mono + hard-shadow + pulsing dot
     §4 Hero image — rotating dashed border + glow halo
     §5 Buttons — running-light primary + animated ghost
     §6 Logo dot — ping animation (shop chrome only)
     §7 Features Strip — HUD corners + > prefix + electric ring
     §8 Social Proof — dark LCD theme + mono numbers
     §9 CTA — scan-line + dual radial glow
     §10 Reduced-motion guards
   ══════════════════════════════════════════════════════════════ */

/* §1 — SLOGAN LAYOUT & CARET ─────────────────────────────────── */

/* Жёсткий !important override + фиксированная height каждой строки:
   - .hero-slogan = block, font-size clamp, line-height 1
   - каждая <span> (line) = block, height 1em константно — это критично:
     при активации caret (через ::after) высота строки НЕ меняется,
     поэтому нет «прыжков» между переходами line→line.
   - caret реализован как ::after pseudo-element на .is-active —
     не создаёт DOM-элемент, не вносит изменений в layout. */
.hero h1.hero-slogan {
    display: block !important;
    font-size: clamp(2.8rem, 5.6vw, 5rem) !important;
    line-height: 1 !important;
    letter-spacing: -0.025em !important;
    margin: 0 0 1.75rem !important;
    padding: 0 !important;
}
.hero h1.hero-slogan > span {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    height: 1em !important;
    min-height: 1em !important;
    max-height: 1em !important;
    white-space: nowrap !important;
    overflow: visible !important;
    transition: none !important;
}
@media (max-width: 480px) {
    .hero h1.hero-slogan > span {
        white-space: normal !important;
        height: auto !important;
        max-height: none !important;
    }
}

.hero-ware {
    color: var(--accent);
    text-shadow: 0 0 28px rgba(255, 90, 31, 0.32);
}
.hero-plus {
    color: var(--accent-blue) !important;
    text-shadow: 0 0 28px rgba(37, 99, 235, 0.50);
    transition: opacity 80ms;
}
.hero-slogan .tw-word {
    white-space: pre;
    display: inline;
}
.hero-slogan .tw-off {
    opacity: 0;
}
/* Caret через ::after pseudo-element. Появляется только когда line имеет
   .is-active. Поскольку pseudo-element не существует когда селектор не
   matches — нет добавления/удаления DOM-элемента, layout стабилен. */
.hero-slogan > span.is-active::after {
    content: '';
    display: inline-block;
    width: 0.06em;
    height: 0.72em;
    background: var(--accent);
    margin-left: 0.08em;
    vertical-align: -0.06em;
    box-shadow: 0 0 8px rgba(255, 90, 31, 0.55);
    animation: hero-caret-blink 1.0s steps(2) infinite;
    border-radius: 1px;
}
@keyframes hero-caret-blink { 50% { opacity: 0; } }
/* Legacy .hero-caret (если осталась в DOM от старого JS) — спрятать */
.hero-caret { display: none !important; }

/* Lede + кнопки появляются после завершения typewriter.
   Класс .is-typing ставится JS-скриптом на .hero сразу. */
.hero.is-typing .hero-text > p,
.hero.is-typing .hero-buttons {
    opacity: 0;
    transform: translateY(8px);
    animation: hero-rise-in 0.6s ease-out forwards;
}
.hero.is-typing .hero-text > p { animation-delay: 3.4s; }
.hero.is-typing .hero-buttons   { animation-delay: 3.6s; }
@keyframes hero-rise-in { to { opacity: 1; transform: translateY(0); } }

/* §2 — HERO GRID + SCAN-LINE ─────────────────────────────────── */
.hero { position: relative; overflow: hidden; }
.hero::before {
    content: '';
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background-image:
      linear-gradient(to right, rgba(255, 90, 31, 0.06) 1px, transparent 1px),
      linear-gradient(to bottom, rgba(255, 90, 31, 0.06) 1px, transparent 1px);
    background-size: 60px 60px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black, transparent 80%);
            mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black, transparent 80%);
}
.hero::after {
    content: '';
    position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 1;
    background: linear-gradient(90deg, transparent, var(--accent) 30%, var(--accent-blue) 70%, transparent);
    animation: hero-scan-h 8s linear infinite;
    opacity: 0.55;
    pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
@keyframes hero-scan-h {
    0%   { transform: translateY(0); }
    100% { transform: translateY(640px); }
}

/* §3 — HERO BADGE — mono + hard-shadow + pulsing dot ─────────── */
.hero-badge {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text);
    background: var(--bg-card);
    border: 1px solid var(--border-hover);
    border-radius: 6px;
    padding: 8px 16px 8px 32px;
    margin-left: 0;
    box-shadow: 4px 4px 0 #0A0A0A;
    position: relative;
}
.hero-badge::before {
    content: '';
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    width: 8px; height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--accent), 0 0 12px var(--accent);
    animation: hero-badge-pulse 1.6s ease-in-out infinite;
}
@keyframes hero-badge-pulse {
    0%, 100% { opacity: 1;   transform: translateY(-50%) scale(1); }
    50%      { opacity: 0.4; transform: translateY(-50%) scale(1.4); }
}

/* §4 — HERO IMAGE — glow halo (rotating dashed border убран) ──── */
.hero-image { position: relative; }
.hero-image::after {
    content: '';
    position: absolute; inset: 18%;
    background: radial-gradient(ellipse 60% 50% at 50% 60%, rgba(255, 90, 31, 0.40) 0%, transparent 65%);
    filter: blur(20px);
    z-index: 0;
    animation: hero-glow-pulse 3.5s ease-in-out infinite;
    pointer-events: none;
}
.hero-image img { position: relative; z-index: 1; }
@keyframes hero-glow-pulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50%      { opacity: 1;   transform: scale(1.10); }
}

/* §5 — BUTTONS — running-light primary + animated ghost ─────── */
.btn-primary {
    position: relative;
    z-index: 1;
    isolation: isolate;
}
.btn-primary::before {
    content: '';
    position: absolute; inset: -2px;
    border-radius: inherit;
    background: conic-gradient(from 0deg,
      transparent 0deg,
      var(--accent) 60deg,
      var(--accent-blue) 90deg,
      transparent 120deg,
      transparent 360deg);
    -webkit-mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
            mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    padding: 2px;
    animation: hero-spin 2.4s linear infinite;
    z-index: -1;
    opacity: 0;
    transition: opacity .25s;
    pointer-events: none;
}
.btn-primary:hover::before { opacity: 1; }
@keyframes hero-spin { to { transform: rotate(360deg); } }

.btn-ghost {
    position: relative;
    overflow: hidden;
}
.btn-ghost::before {
    content: '';
    position: absolute; left: 14px; right: 14px; bottom: 8px;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
    transform: translateX(-110%);
    transition: transform .55s cubic-bezier(.5, 0, .2, 1);
    pointer-events: none;
}
.btn-ghost:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.22);
}
.btn-ghost:hover::before { transform: translateX(110%); }

/* §6 — LOGO DOT — ping animation (только shop) ───────────────── */
.mb-header[data-app="shop"] .mb-header__logo {
    border-radius: 8px;
    box-shadow: 0 0 0 0 rgba(255, 90, 31, 0.45);
    animation: hero-logo-ping 2.4s ease-out infinite;
}
@keyframes hero-logo-ping {
    0%        { box-shadow: 0 0 0 0 rgba(255, 90, 31, 0.45); }
    80%, 100% { box-shadow: 0 0 0 12px transparent; }
}

/* §7 — FEATURES STRIP — HUD brackets + > prefix + ring ──────── */
.feature-item {
    position: relative;
    transition: transform .25s, border-color .25s, box-shadow .25s;
}
.feature-item::before, .feature-item::after {
    content: '';
    position: absolute;
    width: 14px; height: 14px;
    border: 2px solid var(--accent);
    opacity: 0;
    transition: opacity .25s;
    pointer-events: none;
}
.feature-item::before { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
.feature-item::after  { bottom: 8px; right: 8px; border-left: 0; border-top: 0; }
.feature-item:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}
.feature-item:hover::before, .feature-item:hover::after { opacity: 1; }

.feature-item h3::before {
    content: '> ';
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    color: var(--accent);
    font-size: 0.85em;
    font-weight: 600;
}

.feature-icon-wrap {
    position: relative;
    transition: transform .3s;
}
.feature-icon-wrap::before {
    content: '';
    position: absolute; inset: -4px;
    border: 1.5px solid var(--accent-blue);
    border-radius: 14px;
    opacity: 0;
    transform: scale(0.85);
    transition: opacity .3s, transform .3s;
    pointer-events: none;
}
.feature-item:hover .feature-icon-wrap { transform: scale(1.04); }
.feature-item:hover .feature-icon-wrap::before {
    opacity: 0.4;
    transform: scale(1);
}

/* §8 — SOCIAL PROOF — dark LCD theme + mono numbers ──────────── */
.social-proof {
    background: #0A0A0A;
    color: #fff;
    border-color: var(--border-hover);
    box-shadow:
      0 12px 36px rgba(0, 0, 0, 0.18),
      0 0 0 1px rgba(255, 90, 31, 0.18);
    position: relative;
    overflow: hidden;
}
.social-proof::before {
    content: '';
    position: absolute; inset: 0;
    background:
      repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 3px),
      radial-gradient(ellipse 60% 80% at 50% 50%, rgba(255, 90, 31, 0.14) 0%, transparent 60%);
    pointer-events: none;
}
.social-proof .proof-stat,
.social-proof .proof-divider { position: relative; z-index: 1; }
.social-proof .proof-number {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    color: var(--accent);
    text-shadow: 0 0 16px rgba(255, 90, 31, 0.50);
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    letter-spacing: -0.02em;
}
.social-proof .proof-label {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 500;
}
.social-proof .proof-divider {
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.18), transparent);
}

/* §9 — CTA BLOCK — scan-line + dual radial glow ──────────────── */
.cta-block {
    position: relative;
    overflow: hidden;
    background: var(--bg-card);
}
.cta-block::before {
    content: '';
    position: absolute; left: 0; right: 0; top: 0; height: 3px;
    background: linear-gradient(90deg,
      transparent 0%,
      var(--accent) 30%,
      var(--accent-blue) 70%,
      transparent 100%);
    background-size: 200% 100%;
    animation: hero-scan-line 3s linear infinite;
    z-index: 1;
}
.cta-block::after {
    content: '';
    position: absolute; inset: 0;
    background:
      radial-gradient(ellipse 40% 60% at 25% 50%, rgba(255, 90, 31, 0.32) 0%, transparent 60%),
      radial-gradient(ellipse 40% 60% at 75% 50%, rgba(37, 99, 235, 0.22) 0%, transparent 60%);
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}
.cta-block > * { position: relative; z-index: 1; }
@keyframes hero-scan-line {
    0%   { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

/* §10 — REDUCED-MOTION ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .hero::after,
    .hero-image::after,
    .hero-badge::before,
    .hero-caret,
    .btn-primary::before,
    .feature-icon-wrap::before,
    .cta-block::before,
    .mb-header[data-app="shop"] .mb-header__logo {
        animation: none !important;
    }
    .hero-caret { visibility: hidden !important; }
    .hero.is-typing .hero-text > p,
    .hero.is-typing .hero-buttons {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}
