/**
 * Mokik · 2026 design system · CORE
 *
 * Подключается на всех страницах через header.php шаблона.
 * Содержит: токены, reset, container, utility-bar, sticky header, breadcrumbs,
 * mobile sticky CTA, footer (extended), кнопки, бейджи, базовые карточки товара.
 *
 * Страничные CSS подключаются дополнительно через $APPLICATION->SetAdditionalCSS()
 * — см. mokik-2026-home.css, mokik-2026-listing.css, mokik-2026-blog.css и т.д.
 */

/* ================= TOKENS ================= */
:root {
  --bg:           #0A0A0A;
  --surface:      #111111;
  --surface-2:    #161616;
  --surface-3:    #1F1F1F;
  --surface-elev: #1C1C1C;
  --border:       rgba(255,255,255,.07);
  --border-strong:rgba(255,255,255,.14);
  --text:         #FAFAFA;
  --text-dim:     #A1A1AA;
  --text-mute:    #6B6B70;
  --accent:       #FF6B00;
  --accent-hover: #FF8124;
  --accent-dim:   rgba(255,107,0,.12);
  --accent-soft:  rgba(255,107,0,.06);
  --success:      #10B981;
  --warning:      #F59E0B;
  --danger:       #EF4444;
  --info:         #6366F1;
  --pulse:        #c4ff00;
  --gradient-accent: linear-gradient(135deg, #FF6B00 0%, #FF4500 100%);
  --gradient-accent-soft: linear-gradient(135deg, rgba(255,107,0,.16) 0%, rgba(255,107,0,.04) 100%);
  --gradient-surface: linear-gradient(180deg, #1A1A1A 0%, #111111 100%);
  --shadow-1:    0 1px 2px rgba(0,0,0,.5), 0 1px 1px rgba(0,0,0,.4);
  --shadow-2:    0 12px 32px rgba(0,0,0,.5), 0 4px 12px rgba(0,0,0,.4);
  --shadow-accent: 0 12px 32px rgba(255,107,0,.25);
  --radius-sm:   8px;
  --radius:      12px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --container:   1440px;
  --easing:      cubic-bezier(.2,.8,.2,1);
  --editorial:   'Fraunces', Georgia, serif;
}

/* ================= RESET ================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss03", "ss04";
}
img, svg, picture { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .2s var(--easing); }
a:hover { color: var(--accent-hover); }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }
@media (min-width: 1280px) { .container { padding: 0 48px; } }

.visually-hidden { position: absolute; left: -9999px; }

/* ================= UTILITY BAR ================= */
.utility-bar { background: var(--surface); border-bottom: 1px solid var(--border); font-size: 12.5px; color: var(--text-dim); }
.utility-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; }
.utility-left, .utility-right { display: flex; align-items: center; gap: 20px; }
.utility-item { display: inline-flex; align-items: center; gap: 6px; }
.utility-item .ico { width: 14px; height: 14px; color: var(--accent); }
.utility-item.success { color: var(--success); }
.utility-item.success::before { content:''; width: 6px; height: 6px; border-radius: 50%; background: var(--success); box-shadow: 0 0 6px var(--success); }
.utility-item a { color: var(--text-dim); }
.utility-item a:hover { color: var(--accent); }
@media (max-width: 767px) { .utility-left { gap: 12px; font-size: 11.5px; } .utility-right { display: none; } }

/* ================= HEADER (sticky + glass) ================= */
.header {
  background: rgba(10,10,10,.82);
  -webkit-backdrop-filter: saturate(1.5) blur(20px);
  backdrop-filter: saturate(1.5) blur(20px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
  transition: transform .3s var(--easing);
}
.utility-bar { position: relative; z-index: 200; }
.header-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 14px 0; }
@media (min-width: 1024px) { .header-inner { grid-template-columns: auto auto 1fr auto; gap: 24px; padding: 16px 0; } }

.brand { font-family: 'Russo One', sans-serif; font-size: 22px; letter-spacing: .3px; text-transform: uppercase; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--gradient-accent); display: flex; align-items: center; justify-content: center; font-size: 20px; color: #000; box-shadow: 0 4px 12px rgba(255,107,0,.35); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { color: var(--text); font-size: 19px; }
.brand-sub { color: var(--text-mute); font-size: 10px; font-family: 'Inter', sans-serif; font-weight: 500; letter-spacing: 1.5px; margin-top: 2px; }

.catalog-trigger { display: none; align-items: center; gap: 10px; padding: 12px 20px; border-radius: var(--radius); background: var(--gradient-accent); color: #000; font-weight: 700; font-size: 15px; box-shadow: var(--shadow-accent); transition: all .2s var(--easing); white-space: nowrap; }
.catalog-trigger:hover { color: #000; filter: brightness(1.1); transform: translateY(-1px); }
.catalog-trigger .lines { display: flex; flex-direction: column; gap: 3px; }
.catalog-trigger .lines span { width: 16px; height: 2px; background: #000; border-radius: 999px; }
@media (min-width: 1024px) { .catalog-trigger { display: inline-flex; } }

.search { position: relative; width: 100%; max-width: 720px; }
.search input { width: 100%; height: 48px; padding: 0 48px 0 44px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font-size: 14px; font-family: inherit; transition: all .2s var(--easing); }
.search input::placeholder { color: var(--text-mute); }
.search input:focus { outline: none; border-color: var(--accent); background: var(--surface-2); box-shadow: 0 0 0 4px rgba(255,107,0,.08); }
.search-ico { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-mute); pointer-events: none; }
.search-kbd { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-mute); border: 1px solid var(--border); border-radius: 4px; padding: 2px 6px; background: var(--surface-2); }
@media (max-width: 767px) { .search-kbd { display: none; } }

.header-actions { display: flex; align-items: center; gap: 4px; }
.action { position: relative; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: var(--text-dim); border-radius: var(--radius); transition: all .15s var(--easing); cursor: pointer; }
.action:hover { background: var(--surface-2); color: var(--text); }
.action .ico { width: 22px; height: 22px; }
.action-counter { position: absolute; top: 4px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; background: var(--accent); color: #000; border-radius: 999px; font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center; font-family: 'JetBrains Mono', monospace; border: 2px solid var(--bg); }
.action-label { display: none; font-size: 11px; color: var(--text-mute); }
@media (min-width: 1024px) { .action { width: 56px; height: 56px; flex-direction: column; gap: 2px; padding-top: 6px; } .action-label { display: block; } .action:hover .action-label { color: var(--text); } }

.header-phone { display: none; flex-direction: column; align-items: flex-end; text-align: right; padding: 0 8px; margin-left: 4px; border-left: 1px solid var(--border); }
.header-phone-num { font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 15px; color: var(--text); white-space: nowrap; }
.header-phone-num:hover { color: var(--accent); }
.header-phone-cta { font-size: 11px; color: var(--accent); margin-top: 2px; }
.header-phone-cta:hover { color: var(--accent-hover); }
@media (min-width: 1024px) { .header-phone { display: flex; } }

/* ================= MEGA MENU ================= */
/* Backdrop — лёгкое затемнение под mega; шапка остаётся сверху благодаря z-index */
.mega-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.42);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s var(--easing);
}
.mega-backdrop.open { opacity: 1; pointer-events: auto; }

/* Mega-dropdown — компактный блок под шапкой, ширина с container */
.mega {
  position: fixed;
  top: var(--mega-top, 130px); /* JS пересчитывает на bottom фактической шапки */
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  width: min(1320px, calc(100% - 32px));
  max-height: calc(100vh - var(--mega-top, 130px) - 24px);
  overflow-y: auto;
  background: rgba(20,20,20,.98);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 80px rgba(0,0,0,.6), 0 4px 16px rgba(0,0,0,.4);
  z-index: 95;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s var(--easing), transform .2s var(--easing), visibility .2s var(--easing);
}
.mega.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.mega-backdrop { top: var(--mega-top, 130px); }
@media (max-width: 767px) { .mega { padding: 16px; } }
.mega-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1023px) { .mega-grid { grid-template-columns: repeat(2, 1fr); } }
.mega-cat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; transition: all .2s var(--easing); }
.mega-cat:hover { border-color: var(--accent); transform: translateY(-2px); }
.mega-cat h3 { font-family: 'Russo One', sans-serif; font-size: 17px; margin: 8px 0 12px; display: flex; align-items: center; gap: 8px; }
.mega-cat .emoji { font-size: 22px; }
.mega-cat ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.mega-cat a { color: var(--text-dim); font-size: 13.5px; padding: 4px 0; display: block; }
.mega-cat a:hover { color: var(--accent); }
.mega-cat-count { font-size: 11px; color: var(--text-mute); font-family: 'JetBrains Mono', monospace; }

/* ================= BREADCRUMBS ================= */
.breadcrumbs { padding: 12px 0; font-size: 13px; color: var(--text-mute); }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs a { color: var(--text-dim); }
.breadcrumbs li + li::before { content: '/'; margin-right: 6px; color: var(--text-mute); }
.breadcrumbs li:last-child { color: var(--text-dim); }

/* ================= COMMON BUTTONS ================= */
.btn-primary { height: 56px; padding: 0 28px; border-radius: var(--radius); background: var(--gradient-accent); color: #000; font-weight: 700; font-size: 16px; display: inline-flex; align-items: center; gap: 8px; transition: all .15s var(--easing); box-shadow: var(--shadow-accent); }
.btn-primary:hover { color: #000; filter: brightness(1.1); transform: translateY(-1px); }
.btn-secondary { height: 56px; padding: 0 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border-strong); color: var(--text); font-weight: 700; font-size: 16px; display: inline-flex; align-items: center; gap: 8px; }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* ================= BADGES ================= */
.badge { padding: 4px 9px; border-radius: 999px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; box-shadow: 0 2px 8px rgba(0,0,0,.4); display: inline-flex; align-items: center; gap: 4px; }
.badge.hit       { background: var(--gradient-accent); color: #000; }
.badge.new       { background: var(--success); color: #000; }
.badge.sale      { background: var(--danger); color: #fff; }
.badge.pts       { background: rgba(255,255,255,.14); color: var(--text); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.18); }
.badge.electric  { background: var(--info); color: #fff; }
.badge.tradein   { background: rgba(255,255,255,.10); color: var(--text); border: 1px solid rgba(255,255,255,.14); }
.badge.match     { background: rgba(196,255,0,.9); color: #000; }

/* ================= PRODUCT CARDS (общая база для каталога) ================= */
.product-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 600px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .product-grid.col-3 { grid-template-columns: repeat(3, 1fr); } .product-grid.col-4 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .product-grid.col-4 { grid-template-columns: repeat(4, 1fr); gap: 18px; } }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s var(--easing), border-color .25s var(--easing), box-shadow .25s var(--easing); position: relative; }
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-2); }
.card:hover .card-image img { transform: scale(1.04); }
.card-image { aspect-ratio: 4 / 3; background: var(--gradient-surface); position: relative; overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--easing); }
.card-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: 'Russo One', sans-serif; font-size: 24px; color: rgba(255,255,255,.07); letter-spacing: -.02em; text-align: center; padding: 12px; }
.card-placeholder.gr-1 { background: linear-gradient(135deg, #2A1810 0%, #0A0A0A 100%); }
.card-placeholder.gr-2 { background: linear-gradient(135deg, #1A1A2E 0%, #0A0A0A 100%); }
.card-placeholder.gr-3 { background: linear-gradient(135deg, #112218 0%, #0A0A0A 100%); }
.card-placeholder.gr-4 { background: linear-gradient(135deg, #2A1010 0%, #0A0A0A 100%); }
.card-placeholder.gr-5 { background: linear-gradient(135deg, #1F1A0A 0%, #0A0A0A 100%); }

.card-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 5px; z-index: 2; }
.card-fav { position: absolute; top: 10px; right: 10px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; background: rgba(0,0,0,.5); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; color: #fff; transition: all .15s var(--easing); }
.card-fav:hover { background: var(--accent); color: #000; transform: scale(1.1); }
.card-fav.active { background: var(--accent); color: #000; }
.card-fav .ico { width: 18px; height: 18px; }

.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-brand-row { display: flex; justify-content: space-between; align-items: center; }
.card-brand { font-family: 'JetBrains Mono', monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--text-mute); font-weight: 700; }
.card-rating { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-dim); }
.card-rating-star { color: var(--accent); }
.card-title { font-family: 'Russo One', sans-serif; font-size: 17px; line-height: 1.15; margin: 0; letter-spacing: -.01em; }
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--accent); }
.card-specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; font-family: 'JetBrains Mono', monospace; padding: 8px 0; border-top: 1px dashed var(--border); border-bottom: 1px dashed var(--border); }
.card-spec { display: flex; flex-direction: column; gap: 1px; align-items: center; text-align: center; }
.card-spec + .card-spec { border-left: 1px solid var(--border); }
.card-spec-val { font-size: 13px; font-weight: 700; color: var(--text); line-height: 1; }
.card-spec-label { font-size: 9.5px; text-transform: uppercase; letter-spacing: .5px; color: var(--text-mute); margin-top: 4px; }
.card-specs-inline { display: flex; gap: 10px; flex-wrap: wrap; font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-dim); }
.card-specs-inline span strong { color: var(--text); font-weight: 700; }

.card-stock { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 500; }
.card-stock-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.card-stock.lvl-on   { color: var(--success); } .card-stock.lvl-on .card-stock-dot { background: var(--success); box-shadow: 0 0 6px var(--success); }
.card-stock.lvl-wh   { color: var(--success); } .card-stock.lvl-wh .card-stock-dot { background: var(--success); }
.card-stock.lvl-ord  { color: var(--warning); } .card-stock.lvl-ord .card-stock-dot { background: var(--warning); }
.card-stock.lvl-pre  { color: var(--info); } .card-stock.lvl-pre .card-stock-dot { background: var(--info); }

.card-price-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.card-price { font-family: 'JetBrains Mono', monospace; font-size: 22px; font-weight: 700; color: var(--text); letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.card-price-old { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--text-mute); text-decoration: line-through; }
.card-installment { font-size: 11.5px; color: var(--text-dim); font-family: 'JetBrains Mono', monospace; }
.card-installment strong { color: var(--accent); }

.card-actions { display: flex; gap: 6px; margin-top: 4px; }
.card-cta { flex: 1; min-height: 44px; padding: 0 14px; border-radius: var(--radius); background: var(--gradient-accent); color: #000; font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: all .15s var(--easing); box-shadow: 0 4px 12px rgba(255,107,0,.15); }
.card-cta:hover { color: #000; filter: brightness(1.1); transform: translateY(-1px); box-shadow: var(--shadow-accent); }
.card-cta svg { width: 16px; height: 16px; }
.card-icon-btn { width: 44px; height: 44px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border); color: var(--text-dim); display: flex; align-items: center; justify-content: center; transition: all .15s var(--easing); }
.card-icon-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--surface-3); }
.card-icon-btn svg { width: 18px; height: 18px; }

/* ================= SECTIONS COMMON ================= */
.section { padding: 56px 0; }
.section-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.section-h2 { font-family: 'Russo One', sans-serif; font-size: 28px; margin: 0; letter-spacing: -.015em; }
@media (min-width: 768px) { .section-h2 { font-size: 38px; } }
.section-sub { font-size: 14.5px; color: var(--text-dim); margin: 8px 0 0; max-width: 720px; line-height: 1.55; }
.section-link { font-size: 14px; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid var(--border); border-radius: var(--radius); }
.section-link:hover { border-color: var(--accent); }

/* ================= USP BLOCKS ================= */
.usp-strip { display: grid; grid-template-columns: 1fr; gap: 12px; padding: 24px 0; }
@media (min-width: 600px) { .usp-strip { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .usp-strip { grid-template-columns: repeat(4, 1fr); } }
.usp { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.usp-ico { flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px; background: var(--accent-dim); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.usp-text { display: flex; flex-direction: column; line-height: 1.25; }
.usp-text strong { font-size: 14px; color: var(--text); font-weight: 700; }
.usp-text span { font-size: 12px; color: var(--text-mute); }

/* ================= FAQ ================= */
.faq-list { display: flex; flex-direction: column; gap: 10px; max-width: 980px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-item summary { padding: 16px 20px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 15px; font-weight: 600; color: var(--text); min-height: 56px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-family: 'JetBrains Mono', monospace; font-size: 22px; color: var(--accent); flex-shrink: 0; line-height: 1; }
.faq-item[open] summary::after { content: '−'; }
.faq-item[open] summary { border-bottom: 1px solid var(--border); }
.faq-item-body { padding: 16px 20px; color: var(--text-dim); font-size: 14.5px; line-height: 1.65; }
.faq-item-body a { color: var(--accent); }

/* ================= FOOTER (extended) ================= */
.footer { background: var(--surface); border-top: 1px solid var(--border); padding: 48px 0 calc(28px + env(safe-area-inset-bottom)); margin-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 32px; margin-bottom: 32px; }
@media (min-width: 600px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; } }
.footer-col h4 { font-family: 'Russo One', sans-serif; font-size: 13px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--text); margin: 0 0 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { color: var(--text-dim); font-size: 13.5px; }
.footer-col a:hover { color: var(--accent); }
.footer-brand-block { display: flex; flex-direction: column; gap: 14px; }
.footer-brand-block .brand { font-size: 18px; }
.footer-brand-block p { color: var(--text-dim); font-size: 13.5px; line-height: 1.55; margin: 0; }
.footer-social { display: flex; gap: 8px; margin-top: 4px; }
.footer-social a { width: 36px; height: 36px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--text-dim); font-size: 14px; font-weight: 700; }
.footer-social a:hover { background: var(--accent); color: #000; border-color: transparent; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--text-mute); font-size: 12px; }
@media (max-width: 767px) { .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); } }

/* ================= MOBILE STICKY CTA BAR ================= */
.mobile-cta-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: rgba(10,10,10,.92);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-strong);
  display: none; z-index: 40;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 24px rgba(0,0,0,.6);
}
@media (max-width: 767px) { .mobile-cta-bar { display: flex; gap: 8px; } }
.mobile-cta-bar a, .mobile-cta-bar button {
  flex: 1; min-height: 48px;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius);
  color: var(--text); font-size: 14px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.mobile-cta-bar .mcb-primary { background: var(--gradient-accent); color: #000; border: none; }

/* ================= PROTO NOTE (для прототипов) ================= */
.proto-note { background: linear-gradient(90deg, rgba(255,107,0,.08), transparent); border-left: 3px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; padding: 12px 16px; margin: 16px 0; font-size: 12px; color: var(--text-dim); font-family: 'JetBrains Mono', monospace; }
.proto-note strong { color: var(--accent); }
.proto-note a { color: var(--accent); }
