/* ==========================================================================
   SYSTEM POWER — MONOLIT (единый чистый стиль, редизайн 2026)
   Полностью заменяет старый styles.css. Тёмная тема + светлый вариант.
   Шрифты: Montserrat (дисплей/текст) + IBM Plex Mono (подписи).
   ========================================================================== */

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- ТОКЕНЫ (ТЗ: две темы) ---------- */
:root, [data-theme="mono"] {
    color-scheme: dark;
    --bg:#0b0b0c; --fg:#f4f3f0; --muted:#b3b1ab; --muted2:#c9c7c1; --dim:#7d7b76;
    --line:#242425; --line2:#2f2f30; --surface:#141415; --surface2:#08080a;
    --bg-blur:rgba(11,11,12,.86);
    --accent:#f4f3f0; --accent-fg:#0b0b0c;
    --band:#f4f3f0; --band-fg:#0b0b0c; --band-muted:#57544d;
    --state-danger:#ff5a4d; --state-success:#00a37a;
    /* алиасы для существующих правил */
    --bg-base:var(--bg); --bg-surface-1:var(--surface); --bg-surface-2:#1c1c1f; --bg-cream:var(--band);
    --border-strong:var(--line2); --border-subtle:var(--line);
    --text-primary:var(--fg); --text-secondary:var(--muted); --text-muted:var(--dim);
    --accent-cream:var(--fg);
    /* геометрия по ТЗ */
    --radius-sm:0; --radius-md:0; --radius-lg:0;
    --container:1360px; --pad:48px; --header-h:76px;
    --font-display:'Archivo','Montserrat',system-ui,'Helvetica Neue',Arial,sans-serif;
    --font-body:'Archivo','Montserrat',system-ui,'Helvetica Neue',Arial,sans-serif;
    --font-mono:'IBM Plex Mono',ui-monospace,'SFMono-Regular',Menlo,monospace;
}
[data-theme="color"] {
    color-scheme: light;
    --bg:#ffffff; --fg:#0b0b0c; --muted:#555555; --muted2:#3d3d3d; --dim:#858585;
    --line:#e8e8e8; --line2:#dbdbdb; --surface:#ffffff; --surface2:#f6f6f5;
    --bg-blur:rgba(255,255,255,.88);
    --accent:#0b5fff; --accent-fg:#ffffff;
    --band:#0b0b0c; --band-fg:#ffffff; --band-muted:#b3b1ab;
    --bg-surface-2:#f4f4f3; --accent-cream:var(--fg);
}

/* ---------- БАЗА / ТИПОГРАФИКА ---------- */
body {
    font-family: var(--font-body);
    font-size: 19px;
    line-height: 1.7;
    background: var(--bg);
    color: var(--muted2);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    text-wrap: pretty;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); line-height: 1.1; letter-spacing: -0.02em; color: var(--fg); text-wrap: balance; }
p { line-height: 1.7; }
strong { font-weight: 700; color: var(--fg); }
a { transition: color .15s ease; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: clamp(56px, 6.7vw, 96px) 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* eyebrow / mono-подпись */
.section-eyebrow, .mono-label {
    font-family: var(--font-mono); font-size: 13px; font-weight: 500;
    letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted);
}
.section-title-center { text-align: center; }
.section h2, .section-title-center {
    font-family: var(--font-display); font-weight: 800;
    font-size: clamp(26px, 3.4vw, 42px); line-height: 1.1; letter-spacing: -0.02em;
}

/* ---------- КНОПКИ ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--font-display); font-weight: 700; font-size: 16px; line-height: 1;
    padding: 20px 36px; border-radius: 0; border: 1px solid transparent;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
    cursor: pointer; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.btn-primary:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn-secondary, .btn-ghost { background: transparent; color: var(--fg); border: 1px solid var(--accent); }
.btn-secondary:hover, .btn-ghost:hover { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }

/* ---------- ХЕДЕР ---------- */
.site-header {
    position: sticky; top: 0; z-index: 200; height: var(--header-h);
    background: var(--bg-blur); backdrop-filter: saturate(140%) blur(14px);
    border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; gap: 24px; height: 100%; }
.site-header.is-hero { background: transparent; border-bottom-color: transparent; }
.site-header.is-scrolled { background: var(--bg-blur); border-bottom-color: var(--line); }
.logo { display: flex; align-items: center; font-family: var(--font-display); font-weight: 800; letter-spacing: 0.02em; color: var(--text-primary); }
.logo img { height: 34px; width: auto; }
[data-theme="color"] .logo img { filter: invert(1) brightness(0.12); }
.header-left { margin-right: auto; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav > a, .nav-item > span { font-family: var(--font-body); font-size: 14px; font-weight: 500; color: var(--text-secondary); cursor: pointer; }
.nav > a:hover, .nav-item:hover > span { color: var(--text-primary); }
.nav-item.has-dropdown { position: relative; }
.nav-item .dropdown {
    position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px);
    min-width: 220px; background: var(--bg-surface-1); border: 1px solid var(--border-strong);
    border-radius: var(--radius-md); padding: 8px; opacity: 0; visibility: hidden;
    transition: opacity .18s ease, transform .18s ease; display: flex; flex-direction: column; gap: 2px;
    box-shadow: 0 24px 50px rgba(0,0,0,0.4);
}
.nav-item.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(6px); }
.dropdown a { padding: 10px 14px; border-radius: var(--radius-sm); font-size: 14px; color: var(--text-secondary); }
.dropdown a:hover { background: var(--bg-surface-2); color: var(--text-primary); }
.nav-top, .nav-footer, .nav-close { display: none; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-actions .btn-ghost { padding: 10px 20px; font-size: 13px; border-color: var(--text-primary); color: var(--text-primary); }
.header-actions .btn-ghost:hover { background: var(--text-primary); color: var(--bg-base); }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); color: var(--text-secondary); }
.theme-toggle:hover { color: var(--text-primary); border-color: var(--text-primary); }
.theme-toggle svg { width: 18px; height: 18px; fill: currentColor; }
.theme-toggle .icon-sun { display: none; }
[data-theme="color"] .theme-toggle .icon-sun { display: block; }
[data-theme="color"] .theme-toggle .icon-moon { display: none; }
.language-switch { display: flex; gap: 4px; }
.language-switch a { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-muted); padding: 5px 8px; border-radius: var(--radius-sm); }
.language-switch a.active { color: var(--text-primary); background: var(--bg-surface-2); }
.language-switch a:hover { color: var(--text-primary); }

/* Гамбургер (мобилка) */
.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px; align-items: center; justify-content: center; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--text-primary); transition: transform .2s ease, opacity .2s ease; }

/* ---------- ФУТЕР ---------- */
.site-footer { background: var(--bg-base); border-top: 1px solid var(--border-strong); padding: clamp(48px, 6vw, 80px) 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 40px; }
.footer-title { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 16px; }
.footer-grid > div:first-child .footer-title { font-family: var(--font-display); font-size: 20px; font-weight: 800; letter-spacing: 0.02em; color: var(--text-primary); text-transform: none; }
.footer-text { color: var(--text-secondary); font-size: 14.5px; line-height: 1.7; display: flex; flex-direction: column; gap: 6px; }
.footer-text a { color: var(--text-secondary); }
.footer-text a:hover { color: var(--text-primary); }
.footer-social { display: flex; gap: 12px; margin-top: 18px; }
.telegram-icon, .email-copy-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); color: var(--text-secondary); position: relative; }
.telegram-icon:hover, .email-copy-icon:hover { color: var(--text-primary); border-color: var(--text-primary); }
.telegram-icon svg, .email-copy-icon svg { width: 18px; height: 18px; fill: currentColor; }
.copy-tooltip { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); background: var(--bg-surface-2); color: var(--text-primary); font-size: 11px; padding: 4px 8px; border-radius: var(--radius-sm); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s; }
.email-copy-icon.copied .copy-tooltip { opacity: 1; }
.footer-meta { color: var(--text-muted); font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; border-top: 1px solid var(--border-strong); margin-top: 40px; padding-top: 24px; }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: clamp(560px, 78vh, 760px); display: flex; align-items: center; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-video { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,11,12,0.80) 0%, rgba(11,11,12,0.88) 50%, rgba(11,11,12,0.97) 100%); }
.hero-glow, .hero-play { display: none; }
.hero .container { position: relative; z-index: 1; }
.hero-content { max-width: 960px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.hero-content h1 {
    font-family: var(--font-display); font-weight: 900; font-size: clamp(32px, 6.2vw, 88px);
    line-height: 0.94; letter-spacing: -0.03em; text-transform: uppercase; color: #fff;
    max-width: 1020px; overflow-wrap: break-word;
}
.hero-tagline { display: none; }
.hero-subtitle { font-weight: 400; font-size: clamp(16px, 1.5vw, 20px); line-height: 1.6; color: var(--text-secondary); max-width: 640px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; margin-top: 8px; flex-wrap: wrap; }

/* ---------- TRUST BAR ---------- */
.section-trust { padding: 0; }
.section-trust .container { max-width: none; padding: 0; }
.trust-bar { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border-strong); border-bottom: 1px solid var(--border-strong); }
.trust-item { padding: 34px clamp(24px, 4vw, 56px); border-left: 1px solid var(--border-strong); display: flex; flex-direction: column; gap: 8px; }
.trust-item:first-child { border-left: none; }
.trust-item strong { font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 3.6vw, 50px); line-height: 1; letter-spacing: -0.02em; color: var(--text-primary); }
.trust-item span { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }

/* ---------- LOGOS ---------- */
.section-logos { padding: clamp(44px, 5vw, 64px) 0; }
.logos-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 28px; }
.logos-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(32px, 5vw, 68px); }
.logos-item img { height: 30px; width: auto; max-width: 150px; object-fit: contain; filter: brightness(0) invert(1); opacity: 0.72; transition: filter .25s ease, opacity .25s ease; }
[data-theme="color"] .logos-item img { filter: brightness(0); opacity: 0.72; }
.logos-item:hover img { filter: none; opacity: 1; }

/* ---------- ENGINEERING (инженерный подход) ---------- */
.section-engineering { text-align: left; }
.section-engineering .eng-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 4.4vw, 64px); align-items: start; }
.eng-left .section-eyebrow { display: block; margin-bottom: 22px; }
.eng-left h2 { text-align: left; font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 2.8vw, 40px); line-height: 1.06; letter-spacing: -0.02em; margin-bottom: 22px; max-width: 600px; }
.eng-text p { text-align: left; color: var(--text-secondary); font-size: 16px; line-height: 1.75; margin-bottom: 18px; }
.eng-text p:last-child { margin-bottom: 0; }
.eng-features { display: flex; flex-direction: column; gap: 12px; }
.eng-feature { border: 1px solid var(--border-strong); border-radius: var(--radius-md); padding: 24px 28px; }
.eng-feature h3 { text-align: left; font-family: var(--font-display); font-weight: 700; font-size: 18px; margin-bottom: 8px; }
.eng-feature p { text-align: left; color: var(--text-secondary); font-size: 15px; line-height: 1.6; }

/* ---------- CATEGORY CARDS (главная: продукция) ---------- */
.section-categories h2 { margin-bottom: 40px; }
.category-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.category-card { display: flex; flex-direction: column; border: none; border-radius: 0; overflow: visible; background: transparent; }
.category-card:hover .category-card-cta { color: var(--accent); border-color: var(--accent); }
.category-card-eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); padding: 0 0 16px; }
.category-card-image { aspect-ratio: 16 / 10; overflow: hidden; }
.category-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.category-card:hover .category-card-image img { transform: scale(1.04); }
.category-card-bg { display: none; }
.category-card-content { padding: 28px 0 0; display: flex; flex-direction: column; gap: 12px; }
.category-card-content h3 { font-family: var(--font-display); font-weight: 800; font-size: clamp(26px, 3vw, 42px); line-height: 1.0; letter-spacing: -0.02em; }
.category-card-content p { color: var(--text-secondary); font-size: 15px; line-height: 1.6; max-width: 44ch; }
.category-card-cta { display: inline-block; align-self: flex-start; font-family: var(--font-display); font-size: 16px; font-weight: 600; color: var(--text-primary); border-bottom: 1px solid var(--text-primary); padding-bottom: 3px; margin-top: 12px; transition: color .15s, border-color .15s; }
.category-card-cta::after { content: " \2192"; }

/* ---------- CLIENTS ---------- */
.section-clients .section-eyebrow { display: block; margin-bottom: 22px; }
.clients-statement { max-width: 900px; }
.clients-statement p { font-family: var(--font-display); font-weight: 500; font-size: clamp(20px, 2vw, 26px); line-height: 1.4; letter-spacing: -0.01em; color: var(--text-primary); margin-bottom: 40px; }
.clients-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.client-badge { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-secondary); padding: 8px 14px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); }

/* ---------- CUSTOM CTA ---------- */
.section-custom { background: var(--bg-base); }
.custom-cta { display: flex; align-items: stretch; background: var(--bg-cream); border-radius: var(--radius-lg); overflow: hidden; }
[data-theme="color"] .custom-cta { background: #0b0b0c; }
.custom-cta-body { flex: 1 1 56%; padding: clamp(32px, 4.5vw, 60px); display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.custom-cta-body .section-eyebrow { color: #7d7b76; }
.custom-cta h2 { color: #0b0b0c; font-weight: 900; font-size: clamp(24px, 3vw, 40px); text-transform: uppercase; letter-spacing: -0.02em; line-height: 1.05; }
[data-theme="color"] .custom-cta h2 { color: #f4f3f0; }
.custom-cta p { color: #3a3833; max-width: 48ch; font-size: 16px; }
[data-theme="color"] .custom-cta p { color: #cbc9c3; }
.custom-cta .btn-secondary { align-self: flex-start; background: #0b0b0c; color: #f4f3f0; border-color: #0b0b0c; margin-top: 6px; }
[data-theme="color"] .custom-cta .btn-secondary { background: #f4f3f0; color: #0b0b0c; border-color: #f4f3f0; }
.custom-cta .btn-secondary::after { content: "→"; }
.custom-cta .btn-secondary:hover { background: #000; }
.custom-cta-media { flex: 1 1 44%; min-height: 300px; position: relative; }
.custom-cta-media img { width: 100%; height: 100%; object-fit: cover; }
.custom-cta-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 26px 20px; background: linear-gradient(transparent, rgba(11,11,12,0.9)); display: flex; flex-direction: column; gap: 4px; }
.custom-cta-caption-main { color: #f4f3f0; font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.custom-cta-caption-sub { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.13em; text-transform: uppercase; color: rgba(244,243,240,0.65); }

/* ---------- FAQ ---------- */
.section-faq h2, .faq-block h2 { margin-bottom: 32px; text-align: left; }
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--bg-surface-1); }
.faq details[open] { border-color: var(--text-muted); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 24px; font-family: var(--font-display); font-weight: 600; font-size: 16px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); font-size: 20px; color: var(--text-muted); flex-shrink: 0; }
.faq details[open] summary::after { content: "–"; }
.faq-content { padding: 0 24px 22px; color: var(--text-secondary); line-height: 1.7; }
.faq-content p { margin-bottom: 12px; }
.faq-content p:last-child { margin-bottom: 0; }

/* ---------- PAGE HEADER / BREADCRUMBS / КОНТЕНТ ---------- */
.page-header { padding: clamp(40px, 6vw, 72px) 0 clamp(24px, 3vw, 40px); border-bottom: 1px solid var(--border-strong); }
.page-header h1 { font-family: var(--font-display); font-weight: 900; font-size: clamp(32px, 4.2vw, 54px); line-height: 1.02; letter-spacing: -0.025em; }
.page-header > .container > p { color: var(--text-secondary); font-size: 17px; margin-top: 16px; max-width: 70ch; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 20px; }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--text-primary); }
.breadcrumbs span { color: var(--border-strong); }
.breadcrumbs > span:last-child { color: var(--text-secondary); }

/* Общий текстовый контент (страницы, статьи, описания) */
.content-block, .text-block, .prose, .section-text, .category-description { color: var(--text-secondary); line-height: 1.75; }
.content-block h2, .text-block h2, .prose h2, .category-description h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(22px, 2.6vw, 32px); color: var(--text-primary); margin: 40px 0 18px; letter-spacing: -0.02em; position: relative; padding-left: 18px; }
.content-block h2::before, .prose h2::before, .category-description h2::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; background: var(--accent); border-radius: 2px; }
.content-block h3, .text-block h3, .prose h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(18px, 2vw, 22px); color: var(--text-primary); margin: 28px 0 12px; }
.content-block p, .text-block p, .prose p, .section-text p { margin-bottom: 16px; }
.content-block a, .text-block a, .prose a, .section-text a { color: var(--accent); }
.content-block a:hover, .prose a:hover { color: var(--accent-hover); }
.content-block ul, .text-block ul, .prose ul { list-style: none; margin: 16px 0; display: flex; flex-direction: column; gap: 10px; }
.content-block ul li, .text-block ul li, .prose ul li { position: relative; padding-left: 22px; }
.content-block ul li::before, .text-block ul li::before, .prose ul li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }
.content-block ol, .prose ol { margin: 16px 0 16px 20px; list-style: decimal; display: flex; flex-direction: column; gap: 10px; }
.content-block table, .prose table, .text-block table { margin: 24px 0; font-size: 15px; border: 1px solid var(--border-strong); border-radius: var(--radius-md); overflow: hidden; }
.content-block th, .content-block td, .prose th, .prose td, .text-block th, .text-block td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border-strong); }
.content-block th, .prose th, .text-block th { background: var(--bg-surface-1); color: var(--text-primary); font-family: var(--font-display); font-weight: 600; }
.content-block tr:last-child td, .prose tr:last-child td { border-bottom: none; }
.content-block blockquote, .prose blockquote { border-left: 3px solid var(--accent); padding: 8px 0 8px 20px; margin: 20px 0; color: var(--text-primary); font-style: italic; }
.article-date, .blog-card-date { display: block; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-top: 12px; }

.section-header { margin-bottom: 40px; }
.section-header h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(24px, 3vw, 38px); letter-spacing: -0.02em; }
.section-header p { color: var(--text-secondary); margin-top: 12px; max-width: 70ch; }
.layout-two-columns { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.aside--sticky { position: sticky; top: calc(var(--header-h) + 24px); }
.section--hero { padding-bottom: 0; }
.section--content { padding-top: 32px; }
/* Вложенные секции внутри карточки контента: снимаем двойные отступы */
.content.prose > .section, .content.prose .section { padding: 0; }
.content.prose .section > .container { padding: 0; max-width: none; }
.content.prose .section + .section { margin-top: 36px; }
.content.prose > *:first-child { margin-top: 0; }
.content.prose { padding: clamp(28px, 3vw, 40px); }

/* ---------- КАТАЛОГ (category-show) ---------- */
.category-description .text-block ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.category-description .text-block li { background: var(--bg-surface-1); border: 1px solid var(--border-strong); border-radius: var(--radius-md); padding: 16px 18px 16px 40px; font-size: 14.5px; }
.category-description .text-block li::before { content: ""; left: 18px; top: 22px; }
.catalog-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start; margin-top: 32px; }
.catalog-filters { position: sticky; top: calc(var(--header-h) + 20px); border: 1px solid var(--border-strong); border-radius: var(--radius-md); padding: 22px; }
.filters { display: flex; flex-direction: column; gap: 20px; }
.filters .field { display: flex; flex-direction: column; gap: 8px; }
.filters-title { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.filter-options { display: flex; flex-direction: column; gap: 8px; max-height: 190px; overflow-y: auto; }
.filter-options label, .filters .field > label { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--text-secondary); cursor: pointer; }
.filters input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent); }
.filters-close { display: none; }
.catalog-toolbar { display: flex; align-items: center; justify-content: flex-end; gap: 16px; margin-bottom: 24px; }
.catalog-toolbar .field { display: flex; align-items: center; gap: 10px; }
.catalog-toolbar label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.filters-toggle { display: none; }
.filters-overlay { display: none; }

/* Инпуты/селекты */
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], textarea, select {
    width: 100%; background: var(--bg-surface-1); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
    padding: 12px 14px; font-size: 15px; color: var(--text-primary); transition: border-color .15s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); }
input::placeholder, textarea::placeholder { color: var(--text-muted); }
select { cursor: pointer; }

/* ---------- КАРТОЧКИ ТОВАРА (сетка) ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product-card { display: flex; flex-direction: column; border: 1px solid var(--border-strong); border-radius: var(--radius-md); overflow: hidden; background: var(--bg-surface-1); transition: border-color .2s, transform .2s; }
.product-card:hover { border-color: var(--text-muted); transform: translateY(-3px); }
.product-card-media { aspect-ratio: 4 / 3; background: #fff; overflow: hidden; }
.product-card-media img { width: 100%; height: 100%; object-fit: contain; }
.product-card-content { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card-content h3 { font-family: var(--font-display); font-weight: 700; font-size: 15.5px; line-height: 1.35; color: var(--text-primary); }
.product-card-content p { color: var(--text-secondary); font-size: 13.5px; line-height: 1.5; }
.product-card-content ul { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.product-card-content ul li { font-size: 12.5px; color: var(--text-muted); padding-left: 12px; position: relative; }
.product-card-content ul li::before { content: "·"; position: absolute; left: 2px; color: var(--text-muted); }
.product-card-content > span { margin-top: auto; padding-top: 6px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.rating-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-secondary); }
.rating-badge .rating-star { color: var(--accent-yellow, #ffc400); }

/* ---------- КАРТОЧКА ТОВАРА (страница) ---------- */
.product-layout { display: flex; flex-direction: column; gap: 56px; }
.product-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.product-gallery { position: relative; }
.product-gallery-track { display: flex; overflow: hidden; border: 1px solid var(--border-strong); border-radius: var(--radius-md); transition: transform .35s ease; }
.product-gallery-slide { min-width: 100%; aspect-ratio: 1; background: #fff; }
.product-gallery-slide img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
.product-placeholder { aspect-ratio: 1; background: var(--bg-surface-1); border: 1px solid var(--border-strong); border-radius: var(--radius-md); }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; background: rgba(11,11,12,0.7); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.gallery-prev { left: 12px; } .gallery-next { right: 12px; }
.product-gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.product-thumb { width: 66px; height: 66px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.product-thumb.is-active { border-color: var(--accent); }
.product-thumb img { width: 100%; height: 100%; object-fit: contain; }
.product-details { display: flex; flex-direction: column; gap: 24px; }
.product-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.product-specs h2, .product-desc-preview h2, .product-files h2 { font-family: var(--font-display); font-weight: 800; font-size: 22px; margin-bottom: 14px; letter-spacing: -0.01em; }
.product-specs table { background: var(--line); border: 1px solid var(--line); border-collapse: separate; border-spacing: 1px; }
.product-specs th, .product-specs td { background: var(--bg); padding: 13px 16px; font-size: 15px; text-align: left; }
.product-specs th { color: var(--muted); font-weight: 500; width: 52%; }
.product-specs td { color: var(--fg); }
.product-desc-content { color: var(--text-secondary); line-height: 1.7; overflow: hidden; }
.product-desc-preview:not(.is-expanded) .product-desc-content { max-height: 140px; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.product-desc-preview.is-expanded .product-desc-content { max-height: none; -webkit-mask-image: none; mask-image: none; }
.product-desc-more { margin-top: 12px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.product-desc-preview.is-expanded .more-text, .product-desc-preview:not(.is-expanded) .less-text { display: none; }
.product-files a.product-file { display: flex; align-items: center; gap: 14px; border: 1px solid var(--border-strong); border-radius: var(--radius-md); padding: 14px 18px; transition: border-color .2s; }
.product-file:hover { border-color: var(--text-muted); }
.product-file-badge { font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: #fff; background: var(--state-danger); padding: 4px 8px; border-radius: var(--radius-sm); }
.product-file-name { flex: 1; color: var(--text-primary); font-size: 14.5px; }
.product-file-size { color: var(--text-muted); font-size: 13px; }
.product-buy-toggle { display: flex; align-items: center; gap: 10px; width: 100%; justify-content: space-between; border: 1px solid var(--border-strong); border-radius: var(--radius-md); padding: 16px 20px; font-family: var(--font-display); font-weight: 600; color: var(--text-primary); }
.product-buy-icon { color: var(--text-muted); font-size: 20px; }
.product-buy-panel { padding: 16px 0 0; }
.partner-logos { display: flex; flex-wrap: wrap; gap: 12px; }
.partner-logo { display: flex; align-items: center; justify-content: center; width: 64px; height: 44px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: #fff; }
.partner-logo img { max-width: 80%; max-height: 70%; object-fit: contain; }

/* Отзывы */
.product-reviews { display: flex; flex-direction: column; gap: 20px; }
.product-reviews h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(24px, 3vw, 34px); letter-spacing: -0.02em; }
.reviews-summary { display: flex; align-items: center; gap: 12px; color: var(--text-secondary); }
.review-stars { color: var(--fg); letter-spacing: 2px; }
.review-flash { padding: 14px 18px; border-radius: var(--radius-md); font-size: 14.5px; }
.review-flash--ok { background: rgba(0,163,122,0.12); color: var(--state-success); border: 1px solid rgba(0,163,122,0.3); }
.review-flash--err { background: rgba(255,90,77,0.12); color: var(--state-danger); border: 1px solid rgba(255,90,77,0.3); }
.review-card { border: 1px solid var(--border-strong); border-radius: var(--radius-md); padding: 22px 24px; display: flex; flex-direction: column; gap: 12px; }
.review-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.review-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--bg-surface-2); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; color: var(--text-primary); }
.review-meta { display: flex; flex-direction: column; gap: 3px; }
.review-meta strong { font-family: var(--font-display); }
.review-date, .review-purchase { font-size: 12.5px; color: var(--text-muted); }
.review-source { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.review-source img { width: 22px; height: 22px; object-fit: contain; }
.review-source a { font-size: 12.5px; color: var(--accent); }
.review-title { font-family: var(--font-display); font-weight: 700; color: var(--text-primary); }
.review-card p { color: var(--text-secondary); font-size: 14.5px; line-height: 1.65; }
.review-form-card { border: 1px solid var(--border-strong); border-radius: var(--radius-md); padding: 26px; background: var(--bg-surface-1); }
.review-form-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 20px; margin-bottom: 18px; }
.review-form { display: flex; flex-direction: column; gap: 14px; }
.review-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.review-rating-pick { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; align-items: center; }
.review-rating-pick input { position: absolute; opacity: 0; width: 0; }
.review-rating-pick label { font-size: 26px; color: var(--border-strong); cursor: pointer; line-height: 1; }
.review-rating-pick input:checked ~ label, .review-rating-pick label:hover, .review-rating-pick label:hover ~ label { color: var(--accent); }

/* ---------- PARTNERS / DOCUMENTS / BRAND / CONTACTS / ORDER ---------- */
.partner-grid, .partners-grid, .brand-grid, .documents-grid, .list-grid, .contact-details { display: grid; gap: 20px; }
.partner-grid, .partners-grid, .brand-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.documents-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.partner-card, .document-card, .brand-card, .order-card, .contact-card, .content { border: 1px solid var(--border-strong); border-radius: var(--radius-md); padding: 26px; background: var(--bg-surface-1); }
.partner-card--large { grid-column: span 2; }
.brand-card-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.partner-logo-lg img { max-height: 48px; width: auto; }
.cta-link { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); display: inline-flex; gap: 6px; }
.contact-item { display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; }
.contact-tab { padding: 10px 18px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-secondary); }
.contact-tab.active { background: var(--text-primary); color: var(--bg-base); border-color: var(--text-primary); }
.contact-panel { display: none; margin-top: 20px; }
.contact-panel.active { display: block; }

/* Форма контактов/заявки */
.form-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.form-field label { font-size: 14px; color: var(--text-secondary); }
.form-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--text-secondary); margin: 8px 0 16px; }
.form-consent input { width: 17px; height: 17px; accent-color: var(--accent); margin-top: 2px; }

/* ---------- LEAD MODAL ---------- */
body.lead-modal-open, body.lightbox-open, body.nav-open { overflow: hidden; }
.lead-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.lead-modal[hidden] { display: none; }
.lead-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(4px); }
.lead-modal-dialog { position: relative; z-index: 1; width: 100%; max-width: 480px; background: var(--bg-surface-1); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); padding: 32px; max-height: 90vh; overflow-y: auto; }
.lead-modal-close { position: absolute; top: 16px; right: 18px; font-size: 26px; color: var(--text-muted); line-height: 1; }
.lead-modal-close:hover { color: var(--text-primary); }
.lead-modal-dialog h3 { font-family: var(--font-display); font-weight: 800; font-size: 24px; margin-bottom: 22px; letter-spacing: -0.01em; }
.lead-modal-error { color: var(--state-danger); font-size: 14px; margin-bottom: 12px; }
.lead-modal-success p { color: var(--state-success); font-size: 16px; }
.lead-modal .btn-primary { width: 100%; margin-top: 8px; background: var(--accent); color: #fff; border-color: var(--accent); }
.lead-modal .btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.review-form .btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); align-self: flex-start; }
.review-form .btn-primary:hover { background: var(--accent-hover); }

/* ALTCHA */
altcha-widget {
    --altcha-color-base: var(--bg-surface-2); --altcha-color-border: var(--border-strong);
    --altcha-color-text: var(--text-primary); --altcha-border-radius: var(--radius-sm);
    --altcha-max-width: 100%; display: block;
}

/* iti phone */
.iti { width: 100%; }
.iti__dropdown-content { background: var(--bg-surface-1); color: var(--text-primary); border: 1px solid var(--border-strong); }
.iti__country:hover { background: var(--bg-surface-2); }

/* ---------- LIGHTBOX ---------- */
.lightbox { position: fixed; inset: 0; z-index: 1100; background: rgba(0,0,0,0.92); display: flex; align-items: center; justify-content: center; padding: 40px; }
.lightbox[hidden] { display: none; }
.lightbox-img { max-width: 90vw; max-height: 88vh; object-fit: contain; }
.lightbox-close { position: absolute; top: 20px; right: 26px; font-size: 34px; color: #fff; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,0.12); color: #fff; font-size: 22px; display: flex; align-items: center; justify-content: center; }
.lightbox-prev { left: 24px; } .lightbox-next { right: 24px; }

/* ---------- РЕЙТИНГ В КАРТОЧКАХ ТОВАРА ---------- */
.card-rating { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.02em; color: var(--text-secondary); }
.card-rating-star { color: var(--fg); font-size: 13px; }
.card-rating-cnt { color: var(--text-muted); }

/* ---------- КАРТОЧКИ БЛОГА (индекс) ---------- */
.blog-cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
.blog-card-full { grid-column: 1 / -1; }
.blog-card-link { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--border-strong); border-radius: var(--radius-md); overflow: hidden; background: var(--bg-surface-1); transition: border-color .2s ease, transform .2s ease; }
.blog-card-link:hover { border-color: var(--text-muted); transform: translateY(-3px); }
.blog-card-full .blog-card-link { flex-direction: row; }
.blog-card-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--bg-surface-2); }
.blog-card-full .blog-card-img { max-width: 46%; aspect-ratio: auto; }
.blog-card-body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.blog-card-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.blog-card-body h2, .blog-card-body h3, .blog-card-body .blog-card-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(18px, 2vw, 22px); line-height: 1.18; letter-spacing: -0.01em; color: var(--text-primary); }
.blog-card-body p { color: var(--text-secondary); font-size: 14.5px; line-height: 1.6; }
.blog-card-full .blog-card-body { justify-content: center; padding: clamp(24px, 3vw, 44px); }

/* ---------- ABOUT / SECTION-ABOUT ---------- */
.section-about .about-grid, .about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.about-image { border-radius: var(--radius-md); overflow: hidden; }
.about-image img { width: 100%; height: 100%; object-fit: cover; }
.about-placeholder { aspect-ratio: 4 / 3; background: var(--bg-surface-1); border: 1px solid var(--border-strong); border-radius: var(--radius-md); }

/* ---------- КОНТАКТЫ (варианты) ---------- */
.contact-method-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.contact-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); color: var(--text-primary); font-weight: 600; font-size: 14px; }
.contact-btn:hover, .contact-btn--phone:hover { border-color: var(--text-primary); }
.contacts-grid, .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.contacts-card, .contact-block, .contact-widget, .contact-card { border: 1px solid var(--border-strong); border-radius: var(--radius-md); padding: 26px; background: var(--bg-surface-1); }
.contact-widget-text { color: var(--text-secondary); font-size: 14.5px; line-height: 1.6; }
.contacts-map { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border-strong); }
.contacts-map iframe, .contacts-map img { width: 100%; display: block; border: 0; }

/* ---------- ПРОЧИЕ КОМПОНЕНТЫ ---------- */
.category-facts { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.category-facts li { font-size: 12.5px; color: var(--text-muted); padding-left: 12px; position: relative; }
.category-facts li::before { content: "·"; position: absolute; left: 2px; }
.category-card-title { font-family: var(--font-display); font-weight: 800; }
.article-products { margin-top: 48px; }
.certificates { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.advantages { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.checkbox-field { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-secondary); }
.checkbox-field input { width: 17px; height: 17px; accent-color: var(--accent); margin-top: 2px; }
.brand-download { display: inline-flex; align-items: center; gap: 8px; }
.seo-text { color: var(--text-secondary); }
.metrics { display: grid; gap: 20px; }

/* ---------- АДАПТИВ ---------- */
@media (max-width: 1024px) {
    .product-hero { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .nav-toggle { display: flex; }
    .header-actions .btn-ghost, .header-actions .theme-toggle, .header-actions .language-switch { display: none; }
    .site-header .nav {
        position: fixed; inset: 0; top: 0; height: 100dvh; width: 100%;
        flex-direction: column; align-items: stretch; justify-content: flex-start;
        gap: 4px; padding: 84px 28px 32px; background: var(--bg-base);
        overflow-y: auto; z-index: 300; display: none;
    }
    body.nav-open .site-header .nav { display: flex; animation: navIn .25s ease; }
    .nav > a, .nav-item > span { font-size: 20px; font-weight: 600; color: var(--text-primary); padding: 14px 0; border-bottom: 1px solid var(--border-strong); }
    .nav-item.has-dropdown .dropdown { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: none; background: transparent; padding: 4px 0 12px 16px; }
    .nav-footer { display: block; margin-top: 20px; }
    .nav-language { display: flex; gap: 12px; }
    .nav-language a { font-family: var(--font-mono); text-transform: uppercase; color: var(--text-secondary); }
    .nav-language a.active { color: var(--text-primary); }
    .section-engineering .eng-grid { grid-template-columns: 1fr; gap: 32px; }
    .category-grid { grid-template-columns: 1fr; }
    .custom-cta { flex-direction: column; }
    .catalog-layout { grid-template-columns: 1fr; }
    .catalog-filters { position: fixed; top: 0; left: 0; bottom: 0; width: min(320px, 86vw); z-index: 320; border-radius: 0; overflow-y: auto; transform: translateX(-100%); transition: transform .25s; background: var(--bg-base); }
    body.filters-open .catalog-filters { transform: translateX(0); }
    body.filters-open .filters-overlay { display: block; position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 310; }
    .filters-close, .filters-toggle { display: inline-flex; }
    .layout-two-columns { grid-template-columns: 1fr; }
    .trust-bar { grid-template-columns: repeat(2, 1fr); }
    .trust-item:nth-child(3) { border-left: none; }
    .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--border-strong); }
}
@keyframes navIn { from { transform: translateX(30px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@media (max-width: 640px) {
    .container { padding: 0 20px; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .product-grid { grid-template-columns: 1fr; }
    .review-form-row { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: clamp(26px, 8vw, 40px); }
    .trust-bar { grid-template-columns: 1fr 1fr; }
}


/* ============================================================
   MOCKUP FIXES 2026-07-29
   ============================================================ */
/* Производство — в макете без сайдбара */
body[class*="page--custom-production"] .layout-two-columns { grid-template-columns: 1fr !important; }
body[class*="page--custom-production"] .aside { display: none !important; }

/* Статья: бейдж тега, мета, лид, вставка «ИЗ КАТАЛОГА» */
.article-tag-badge { display: inline-block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; background: var(--accent); color: var(--accent-fg); padding: 5px 10px; }
.article-meta { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.06em; color: var(--text-muted); margin-left: 12px; }
.article-lead { font-size: clamp(19px, 1.6vw, 23px); line-height: 1.55; color: var(--text-secondary); max-width: 60ch; margin: 22px 0 34px; }
.article-hero-img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; display: block; margin: 0 0 42px; }

.catalog-embed { display: grid; grid-template-columns: minmax(220px, 340px) 1fr; gap: 0; border: 1px solid var(--border-strong); background: var(--surface2); margin: 40px 0; }
.catalog-embed-img { aspect-ratio: 1; overflow: hidden; }
.catalog-embed-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.catalog-embed-body { padding: 26px 30px 30px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.catalog-embed-kicker { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
.catalog-embed-kicker .k-label { background: var(--accent); color: var(--accent-fg); padding: 4px 9px; margin-right: 10px; }
.catalog-embed-kicker .k-sku { color: var(--text-muted); }
.catalog-embed-body h3 { font-size: clamp(20px, 1.8vw, 26px); line-height: 1.15; }
.catalog-embed-body p { font-size: 15px; line-height: 1.6; color: var(--text-secondary); }
.catalog-embed-specs { display: grid; grid-template-columns: repeat(3, minmax(90px, 1fr)); width: 100%; border: 1px solid var(--border-strong); background: var(--bg); }
.catalog-embed-specs > div { padding: 12px 14px; border-right: 1px solid var(--border-strong); }
.catalog-embed-specs > div:last-child { border-right: none; }
.catalog-embed-specs .s-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); display: block; margin-bottom: 4px; }
.catalog-embed-specs .s-value { font-family: var(--font-display); font-weight: 700; color: var(--text-primary); font-size: 17px; }
.catalog-embed-cta { display: inline-block; background: var(--accent); color: var(--accent-fg); font-family: var(--font-display); font-weight: 600; font-size: 15px; padding: 13px 22px; margin-top: 6px; }
.catalog-embed-cta:hover { opacity: 0.9; }
.catalog-embed-cta::after { content: " \2192"; }
@media (max-width: 700px) {
    .catalog-embed { grid-template-columns: 1fr; }
}

/* Статейные цитатные списки с левой синей линией (макет) */
.prose .key-list, .text-block .key-list { border-left: 2px solid var(--accent); padding: 4px 0 4px 22px; margin: 26px 0; list-style: none; }
.prose .key-list li, .text-block .key-list li { padding: 6px 0; color: var(--text-secondary); }

/* catalog-embed: специфичность против .text-block a / li::before */
.text-block .catalog-embed-cta, .prose .catalog-embed-cta, .content-block .catalog-embed-cta {
    color: var(--accent-fg);
    text-decoration: none;
    border-bottom: none;
}
.text-block .key-list li::before, .prose .key-list li::before { content: none; }
.text-block .catalog-embed h3 { margin: 0; }


/* Блог-листинг по стилю макета: карточки без боксов */
.blog-cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 28px; }
.blog-card { display: flex; flex-direction: column; align-items: flex-start; }
.blog-card-photo { width: 100%; aspect-ratio: 16 / 10; overflow: hidden; margin-bottom: 20px; background: var(--surface2); }
.blog-card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.blog-card:hover .blog-card-photo img { transform: scale(1.04); }
.blog-card-kicker { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); display: flex; gap: 14px; margin-bottom: 12px; }
.blog-card-kicker .blog-card-tagline { color: var(--accent); }
.blog-card h3 { font-size: clamp(20px, 1.6vw, 24px); line-height: 1.15; margin-bottom: 10px; }
.blog-card-excerpt { font-size: 14.5px; line-height: 1.6; color: var(--text-secondary); margin-bottom: 14px; }
.blog-card-more { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--text-primary); border-bottom: 1px solid var(--text-primary); padding-bottom: 2px; transition: color .15s, border-color .15s; }
.blog-card-more::after { content: " \2192"; }
.blog-card:hover .blog-card-more { color: var(--accent); border-color: var(--accent); }
@media (max-width: 1000px) { .blog-cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .blog-cards-grid { grid-template-columns: 1fr; } }

/* === monolit-design-sync applied 2026-07-29b === */
/* ============================================================================
   System Power — синхронизация стилей с макетом «Монолит»
   Коммитить в: public/themes/default/monolit.css

   Способ 1 (быстрый): подключить этот файл после monolit.css в layouts/default.php
   Способ 2 (правильный): перенести блоки ниже в monolit.css, заменив
   соответствующие правила по указанным номерам строк.
   ========================================================================= */

/* --- 1. ТОКЕНЫ ТЁМНОЙ ТЕМЫ — заменяет monolit.css:21–39 --------------------
   Совпадает с текущим, кроме --hero-fade (его в репозитории нет). */
:root, [data-theme="mono"] {
  --bg:#0b0b0c; --fg:#f4f3f0; --muted:#b3b1ab; --muted2:#c9c7c1; --dim:#7d7b76;
  --line:#242425; --line2:#2f2f30; --surface:#141415; --surface2:#08080a;
  --bg-blur:rgba(11,11,12,.86);
  --hero-fade:#0b0b0c;
  --accent:#f4f3f0; --accent-fg:#0b0b0c;
  --band:#f4f3f0; --band-fg:#0b0b0c; --band-muted:#57544d;
}

/* --- 2. ТОКЕНЫ СВЕТЛОЙ ТЕМЫ — заменяет monolit.css:41–48 ------------------
   В репозитории светлая тема холоднее и контрастнее макета: серые #e8e8e8 /
   #555555 вместо тёплых бумажных оттенков. Приводим к макету. */
[data-theme="color"] {
  --bg:#ffffff; --fg:#0b0b0c; --muted:#555555; --muted2:#3d3d3d; --dim:#858585;
  --line:#e8e8e8; --line2:#dbdbdb; --surface:#ffffff; --surface2:#f6f6f5;
  --bg-blur:rgba(255,255,255,.88);
  --hero-fade:#ffffff;
  --accent:#0b5fff; --accent-fg:#ffffff;
  --band:#0b0b0c; --band-fg:#f4f3f0; --band-muted:#b3b1ab;
  --bg-surface-2:#f6f6f5; --accent-cream:var(--fg);
}

/* --- 3. НУЛЕВЫЕ РАДИУСЫ — правит monolit.css:273, 280, 355, 395, 467 ------
   Токены --radius-* уже 0, но остались захардкоженные скругления. */
.content-block h2::before,
.prose h2::before,
.category-description h2::before { border-radius: 0; }

.content-block ul li::before,
.text-block ul li::before,
.prose ul li::before { border-radius: 0; width: 5px; height: 5px; }

.gallery-nav,
.lightbox-nav,
.review-avatar { border-radius: 0; }

/* --- 4. ЗАГОЛОВКИ В ТЕКСТЕ — правит monolit.css:272–273 -------------------
   В макете у H2 нет вертикальной акцентной полосы и отступа слева. */
.content-block h2,
.text-block h2,
.prose h2,
.category-description h2 { padding-left: 0; }
.content-block h2::before,
.prose h2::before,
.category-description h2::before { content: none; }

/* --- 5. ОСТАТКИ ЖЁЛТОГО АКЦЕНТА — правит monolit.css:345 -----------------
   Третий цвет в макете — синий #0b5fff, не жёлтый. */
.rating-badge .rating-star { color: var(--accent); }

/* --- 6. ЛОГОТИПЫ ПАРТНЁРОВ И БРЕНДОВ -------------------------------------
   По умолчанию монохром, при наведении — оригинальные цвета. */
.logos-item img,
.partner-logo img {
  filter: brightness(0) invert(1);
  opacity: .72;
  transition: filter .25s ease, opacity .25s ease;
}
[data-theme="color"] .logos-item img,
[data-theme="color"] .partner-logo img { filter: brightness(0); opacity: .72; }
.logos-item img:hover,
.partner-logo:hover img,
[data-theme="color"] .logos-item img:hover,
[data-theme="color"] .partner-logo:hover img { filter: none; opacity: 1; }

/* Плашка логотипа не должна быть белой в тёмной теме — правит monolit.css:382 */
.partner-logo { background: transparent; border-color: var(--line2); }

/* --- 7. CTA-ПОЛОСА — правит monolit.css:229–245 ---------------------------
   Инверсия делается токенами --band, а не хардкодом #0b0b0c / #f4f3f0. */
.custom-cta { background: var(--band); }
.custom-cta h2 { color: var(--band-fg); }
.custom-cta p { color: var(--band-muted); }
.custom-cta .btn-secondary {
  background: var(--bg); color: var(--fg); border-color: var(--bg);
}
.custom-cta-caption-sub { color: var(--band-muted); }

/* --- 8. ГДЕ КУПИТЬ: до 8 продавцов, все равнозначны ----------------------
   Ни одного выделенного продавца, компактная сетка, внешняя ссылка ↗. */
.buy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}
.buy-item {
  display: flex; align-items: center; gap: 9px;
  border: 1px solid var(--line2); padding: 9px 12px;
  font-size: 13px; font-weight: 600; color: var(--fg);
  transition: border-color .2s ease;
}
.buy-item:hover { border-color: var(--accent); }
.buy-item-mark {
  width: 22px; height: 22px; flex: 0 0 22px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line2);
  font-family: var(--font-mono); font-size: 10px; color: var(--muted2);
}
.buy-item-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.buy-item-ext { color: var(--accent); font-size: 12px; }
.buy-note {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 14px; color: var(--muted);
}
.buy-note a, .buy-note button {
  font-size: 14px; font-weight: 600; color: var(--fg);
  border-bottom: 1px solid var(--accent); padding-bottom: 2px;
}
@media (max-width: 640px) { .buy-grid { grid-template-columns: 1fr; } }

/* --- 9. ВСТРОЙКА ТОВАРА В СТАТЬЮ — дополняет monolit.css:578–605 ---------
   Формат 1: крупный блок «Из каталога». */
.catalog-embed { background: var(--surface); border-color: var(--line); }
.catalog-embed-specs {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  margin: 18px 0 24px;
}
.catalog-embed-specs > div { background: var(--bg); padding: 14px; }

/* Формат 2: парный блок из двух компактных карточек. */
.catalog-pair { margin: 44px 0; }
.catalog-pair-label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--dim); margin-bottom: 14px;
}
.catalog-pair-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.catalog-pair-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); transition: border-color .2s ease;
}
.catalog-pair-card:hover { border-color: var(--accent); }
.catalog-pair-photo { aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface); }
.catalog-pair-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.catalog-pair-body { padding: 22px; }
.catalog-pair-code {
  font-family: var(--font-mono); font-size: 11px; color: var(--dim); margin-bottom: 8px;
}
.catalog-pair-name { font-size: 17px; font-weight: 700; line-height: 1.3; margin-bottom: 12px; }
.catalog-pair-more {
  font-size: 14px; font-weight: 600;
  border-bottom: 1px solid var(--accent); padding-bottom: 2px;
}
@media (max-width: 860px) { .catalog-pair-grid { grid-template-columns: 1fr; } }

/* --- 10. КАРТОЧКА ТОВАРА: артикул поверх фото, без стикера «в наличии» ---- */
.product-card-photo { position: relative; }
.product-card-code-overlay {
  position: absolute; left: 14px; bottom: 14px;
  font-family: var(--font-mono); font-size: 11px;
  color: #f4f3f0; background: rgba(11,11,12,.7); padding: 4px 8px;
}
.product-stock-badge { display: none; }

/* --- 11. ОТЗЫВЫ СО ССЫЛКОЙ НА ИСТОЧНИК ----------------------------------- */
.review-source {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 1px solid var(--line2); padding: 11px 14px; margin-top: 4px;
  transition: border-color .2s ease;
}
.review-source:hover { border-color: var(--accent); }
.review-source-label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em;
  background: var(--accent); color: var(--accent-fg); padding: 3px 7px;
}
.review-source a { color: var(--fg); font-size: 13px; font-weight: 600; }

/* --- 12. HERO ОСТАЁТСЯ ТЁМНЫМ В ОБЕИХ ТЕМАХ ----------------------------- */
.hero-video, .hero { background: #0b0b0c; color: #f4f3f0; }
.hero-video h1, .hero h1 { color: #f4f3f0; }
.hero-video p, .hero p { color: #b3b1ab; }
.hero-video-overlay {
  background: linear-gradient(180deg,
    rgba(11,11,12,.72) 0%, rgba(11,11,12,.55) 45%, var(--hero-fade) 100%);
}

/* --- 13. ССЫЛКИ ПО УМОЛЧАНИЮ -------------------------------------------- */
a { color: inherit; }
.prose a, .content-block a, .text-block a, .section-text a { color: var(--accent); }
.prose a:hover, .content-block a:hover { color: var(--accent); opacity: .8; }

/* --- 14. КАТАЛОГ БЕЗ САЙДБАРА (к новому category-show.php) ------------ */
.catalog-layout { display: block; }            /* гасим старую двухколонку */
.catalog-filters.filters--sticky { position: static; }

.page-lede { font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 760px; margin-top: 16px; }

.catalog-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  border: 1px solid var(--line); padding: 14px 16px; margin-bottom: 28px;
}
.catalog-bar-search { flex: 1; min-width: 220px; }
.catalog-bar-search input {
  width: 100%; background: var(--surface); border: 1px solid var(--line2);
  border-radius: 0; padding: 11px 14px; color: var(--fg); font-size: 14px;
}
.catalog-bar-filter { position: relative; }
.catalog-bar-filter > summary {
  list-style: none; cursor: pointer; user-select: none;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line2); padding: 11px 14px;
}
.catalog-bar-filter > summary::-webkit-details-marker { display: none; }
.catalog-bar-filter > summary::after { content: " ▾"; color: var(--dim); }
.catalog-bar-filter[open] > summary { border-color: var(--accent); color: var(--fg); }
.catalog-bar-options {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 60;
  min-width: 220px; max-height: 320px; overflow: auto;
  background: var(--bg); border: 1px solid var(--line2);
  padding: 10px; display: flex; flex-direction: column; gap: 8px;
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
}
.catalog-bar-options label { display: flex; gap: 9px; align-items: center; font-size: 14px; color: var(--muted2); cursor: pointer; }
.catalog-bar-options input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--accent); }
.catalog-bar-sort {
  background: var(--surface); border: 1px solid var(--line2); border-radius: 0;
  padding: 11px 14px; color: var(--fg); font-size: 14px;
}
.catalog-bar-apply { padding: 11px 20px; font-size: 14px; }

.product-grid--monolit { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.product-grid--monolit .product-card { background: transparent; transition: border-color .2s ease; }
.product-grid--monolit .product-card:hover { border-color: var(--accent); transform: none; }
.product-grid--monolit .product-card-media { aspect-ratio: 4 / 3; background: var(--surface); border-bottom: 1px solid var(--line); }
.product-grid--monolit .product-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-grid--monolit .product-card-content { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.product-grid--monolit .product-card-content h3 { font-size: 17px; line-height: 1.3; }
.product-grid--monolit .product-card-content p { font-size: 14px; line-height: 1.55; color: var(--muted); }
.product-card-facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.product-card-facts li {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em;
  color: var(--dim); border: 1px solid var(--line2); padding: 4px 8px;
}
.product-card-more { margin-top: auto; padding-top: 8px; font-size: 14px; font-weight: 600; color: var(--fg); }
.product-grid--monolit .product-card:hover .product-card-more { color: var(--accent); }

.category-description { max-width: 900px; margin: 56px 0 0; }

/* Список категорий: две крупные карточки */
.category-grid--monolit { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); }
.category-grid--monolit .category-card { padding: 56px; border-right: 1px solid var(--line); }
.category-grid--monolit .category-card:last-child { border-right: none; }
.category-grid--monolit .category-card:hover { background: var(--surface); }
.category-grid--monolit .category-card-image { aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface); margin: 24px 0; }
.category-grid--monolit .category-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 900px) {
  .product-grid--monolit { grid-template-columns: 1fr; }
  .category-grid--monolit { grid-template-columns: 1fr; }
  .category-grid--monolit .category-card { border-right: none; border-bottom: 1px solid var(--line); }
}

/* --- 15. КОНТЕНТНЫЕ СТРАНИЦЫ БЕЗ САЙДБАРА (к новому page.php) --------- */
.layout-two-columns { display: block; }        /* гасим старую сетку, если где-то осталась */
.aside--sticky { position: static; margin-top: 48px; }
.section-text .text-block, .prose { max-width: 760px; }
.custom-cta--band { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; background: var(--band); color: var(--band-fg); padding: 64px 48px; }
.custom-cta--band h2 { color: var(--band-fg); font-weight: 900; text-transform: uppercase; letter-spacing: -0.02em; }
.custom-cta--band p { color: var(--band-muted); }
.custom-cta--band .custom-cta-form { background: var(--bg); color: var(--fg); padding: 32px; border: 1px solid var(--line); }
@media (max-width: 900px) { .custom-cta--band { grid-template-columns: 1fr; } }

/* === end monolit-design-sync === */
