
:root {
  --og-red: #dc2626;
  --og-red-hover: #b91c1c;
  --og-red-soft: #fef2f2;
  --og-ink: #0f172a;
  --og-slate-900: #0f172a;
  --og-slate-800: #1e293b;
  --og-slate-700: #334155;
  --og-slate-600: #475569;
  --og-slate-500: #64748b;
  --og-slate-400: #94a3b8;
  --og-slate-300: #cbd5e1;
  --og-slate-200: #e2e8f0;
  --og-slate-100: #f1f5f9;
  --og-slate-50: #f8fafc;
  --og-white: #ffffff;
  --og-radius: 10px;
  --og-radius-sm: 8px;
  --og-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  
  --og-font: 'Open Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --og-mono: 'Open Sans', system-ui, ui-monospace, monospace;
  --og-header-h: 64px;
  --bg: var(--og-slate-50);
  --surface: var(--og-white);
  --surface-2: var(--og-slate-50);
  --text: var(--og-ink);
  --text-muted: var(--og-slate-500);
  --border: var(--og-slate-200);
}

html.dark-theme {
  --bg: #0b1220;
  --surface: #111827;
  --surface-2: #0f172a;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --border: #334155;
  --og-red-soft: rgba(127, 29, 29, 0.35);
  --og-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  font-family: var(--og-font);
  background: var(--bg);
  color: var(--text);
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  font-size: 15px; 
}
body { line-height: 1.5; }
a { color: var(--og-red); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font-family: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
.mono { font-family: var(--og-mono); }


.og-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04), 0 4px 16px rgba(15, 23, 42, 0.04);
  position: sticky; top: 0; z-index: 50;
}
html.dark-theme .og-header { box-shadow: none; }
.og-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; width: 100%; min-height: var(--og-header-h);
  padding: 8px 16px 8px 18px; max-width: 1400px; margin: 0 auto;
}
@media (min-width: 768px) {
  .og-header-inner { padding: 10px 24px; min-height: 72px; }
  :root { --og-header-h: 72px; }
}
.og-header-left { display: flex; align-items: center; gap: 14px; min-width: 0; flex: 1 1 auto; }
.og-logo-link { display: flex; align-items: center; flex-shrink: 0; }
.og-logo-img { height: 34px; width: auto; }
@media (min-width: 768px) { .og-logo-img { height: 40px; } }
html.dark-theme .og-logo-img { filter: brightness(0) invert(1); }
.og-header-divider { width: 1px; height: 36px; background: var(--border); flex-shrink: 0; }
.og-header-title {
  font-weight: 700; font-size: 13px; text-transform: none;
  letter-spacing: normal; color: var(--text-muted); line-height: 1.35;
}
@media (min-width: 768px) { .og-header-title { font-size: 14px; } }
.og-header-nav { display: none; align-items: center; gap: 8px; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }
@media (min-width: 900px) { .og-header-nav { display: flex; } }
.og-header-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.og-hdr-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 12px; border-radius: 10px; font-size: 12px; font-weight: 600;
  letter-spacing: normal; line-height: 1.25; text-transform: none;
  white-space: nowrap; text-decoration: none; border: 1.5px solid transparent;
  transition: .15s ease;
}
.og-hdr-btn:hover { text-decoration: none; }
.og-hdr-btn--ghost { color: var(--og-slate-700); background: var(--og-slate-50); border-color: var(--og-slate-200); }
html.dark-theme .og-hdr-btn--ghost { color: #e2e8f0; background: #1e293b; border-color: #334155; }
.og-hdr-btn--ghost:hover { background: var(--surface); border-color: var(--og-slate-300); box-shadow: 0 2px 8px rgba(15,23,42,.06); }
.og-hdr-btn--primary {
  color: #fff; background: var(--og-red); border-color: var(--og-red);
  box-shadow: 0 2px 8px rgba(220, 38, 38, .25);
}
.og-hdr-btn--primary:hover { background: var(--og-red-hover); border-color: var(--og-red-hover); }
.og-hdr-btn--ptm {
  color: var(--og-red); background: var(--og-red-soft); border-color: #fecaca;
}
html.dark-theme .og-hdr-btn--ptm { color: #fca5a5; background: rgba(127,29,29,.35); border-color: rgba(248,113,113,.4); }
.og-hdr-btn--ptm:hover { background: #fee2e2; }
.og-icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 44px; height: 44px; border-radius: 10px; border: 1.5px solid var(--border);
  background: var(--surface-2); color: var(--text-muted); padding: 0 10px;
}
.og-icon-btn:hover { color: var(--og-red); border-color: #fecaca; background: var(--og-red-soft); }
.og-icon-btn svg { width: 20px; height: 20px; }
.og-icon-btn--guide { padding: 0 12px; }
.og-guide-label {
  font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase;
}
@media (max-width: 480px) { .og-guide-label { display: none; } }


.og-app { max-width: none; margin: 0; padding: 0; width: 100%; }
.og-main {
  display: grid; gap: 14px;
  grid-template-columns: 1fr;
  max-width: 1280px; margin: 0 auto; padding: 12px 14px 20px;
  box-sizing: border-box;
}
@media (min-width: 768px) {
  .og-main { padding: 16px 20px 24px; }
}
@media (min-width: 1024px) {
  .og-main {
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    align-items: start; gap: 16px;
  }
}

.og-panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: var(--og-shadow); overflow: hidden;
}


.og-right { min-width: 0; }
.og-right-sticky {
  display: flex; flex-direction: column; gap: 12px;
}
@media (min-width: 1024px) {
  .og-right-sticky {
    position: sticky; top: calc(var(--og-header-h, 64px) + 12px);
    max-height: calc(100vh - var(--og-header-h, 64px) - 24px);
    overflow-y: auto;
  }
}


.og-tabs {
  display: flex; gap: 4px; overflow-x: auto; padding: 8px 10px;
  border-bottom: 1px solid var(--border); background: var(--surface-2);
  scrollbar-width: none;
}
.og-tabs::-webkit-scrollbar { display: none; }
.og-tab {
  flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; min-width: 72px; padding: 8px 10px; border: none; border-radius: 8px;
  background: transparent; color: var(--text-muted); font-size: 12px; font-weight: 600;
  text-transform: none; letter-spacing: normal; transition: .15s;
  border-bottom: 2px solid transparent; white-space: nowrap;
}
@media (min-width: 768px) {
  .og-tab { font-size: 13px; min-width: 88px; padding: 10px 12px; }
}
.og-tab img { width: 28px; height: 28px; object-fit: contain; opacity: .75; }
@media (min-width: 768px) { .og-tab img { width: 32px; height: 32px; } }
.og-tab:hover { background: var(--surface); color: var(--text); }
.og-tab.active {
  background: var(--surface); color: var(--og-red); border-bottom-color: var(--og-red);
  box-shadow: 0 1px 4px rgba(15,23,42,.06);
}
.og-tab.active img { opacity: 1; }

.og-left-body { padding: 12px 12px 16px; }
@media (min-width: 768px) { .og-left-body { padding: 14px 16px 18px; } }

.og-tab-pane { display: none; animation: ogFade .25s ease; }
.og-tab-pane.active { display: block; }
@keyframes ogFade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}


.og-desc {
  margin-bottom: 12px; font-size: 13px; color: var(--text-muted); line-height: 1.45;
  background: var(--og-red-soft); padding: 10px 12px; border-left: 3px solid var(--og-red);
  border-radius: 0 6px 6px 0; cursor: pointer; transition: .35s ease; max-height: 120px; overflow: hidden;
}
.og-desc.collapsed {
  max-height: 36px; opacity: .92; padding-top: 8px; padding-bottom: 8px;
}
.og-desc.collapsed .og-desc-inner { display: none; }
.og-desc.collapsed::before {
  content: attr(data-collapsed); display: block; font-weight: 700; color: var(--og-red); font-size: 13px;
}
.og-desc b { color: var(--og-red); }

.og-field { margin-bottom: 10px; }
.og-label {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 5px; font-weight: 600; font-size: 12px; color: var(--text-muted);
  text-transform: none; letter-spacing: normal;
}
.og-input, .og-select {
  width: 100%; height: 40px; padding: 8px 12px;
  border: 1.5px solid var(--border); border-radius: 6px;
  background: var(--surface); color: var(--text); font-size: 14px; font-weight: 500;
  outline: none; transition: .15s;
}
.og-input:focus, .og-select:focus {
  border-color: var(--og-red); box-shadow: 0 0 0 3px rgba(220, 38, 38, .12);
}
.og-input.error { border-color: #ef4444; background: #fff8f8; }
html.dark-theme .og-input.error { background: rgba(127,29,29,.2); }
.og-hint {
  margin-top: 4px; font-size: 11px; color: var(--text-muted); line-height: 1.35;
  background: #eef6fc; padding: 6px 8px; border-radius: 5px; border-left: 3px solid #3b82f6;
}
html.dark-theme .og-hint { background: rgba(30, 58, 138, .25); border-left-color: #60a5fa; color: #cbd5e1; }
.og-hint a { font-weight: 600; }
.og-error { display: none; margin-top: 6px; font-size: 12.5px; color: #dc2626; font-weight: 600; }
.og-error.show { display: block; }

.og-row { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 520px) { .og-row { grid-template-columns: 1fr 1fr; } }
.og-row-3 { display: grid; gap: 10px; grid-template-columns: 1fr auto 1fr; align-items: center; }
.og-x { font-weight: 800; color: var(--text-muted); }

.og-vis { display: flex; gap: 10px; flex-wrap: wrap; }
.og-vis { gap: 8px; }
.og-vis-btn {
  flex: 1 1 90px; min-width: 80px; border: 1.5px solid var(--border); background: var(--surface-2);
  border-radius: 8px; padding: 8px 6px; text-align: center; transition: .15s;
  display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--text-muted);
  position: relative;
}
.og-vis-btn:hover { border-color: var(--og-slate-300); transform: translateY(-1px); }
.og-vis-btn.active {
  border-color: var(--og-red); background: var(--og-red-soft); color: var(--og-red);
  box-shadow: 0 2px 6px rgba(220, 38, 38, .1);
}
.og-vis-btn img { height: 44px; width: auto; object-fit: contain; max-width: 100%; }
@media (min-width: 768px) { .og-vis-btn img { height: 52px; } }
.og-vis-btn span { font-size: 12px; font-weight: 700; line-height: 1.2; }
.og-vis-btn .sub { font-size: 10px; font-weight: 400; color: var(--text-muted); line-height: 1.3; display: none; }
@media (min-width: 900px) { .og-vis-btn .sub { display: block; } }
.og-vis-btn--soon {
  opacity: .85; cursor: not-allowed; background: #fff;
}
html.dark-theme .og-vis-btn--soon { background: var(--surface); }
.og-vis-btn--soon:hover { transform: none; border-color: var(--border); }
.og-soon-sq {
  width: 44px; height: 44px; border-radius: 8px;
  background: #fff; border: 1.5px solid var(--border);
}
html.dark-theme .og-soon-sq { background: #1e293b; }
.og-soon-badge {
  position: absolute; top: 4px; right: 4px;
  background: var(--og-red); color: #fff; font-size: 9px; font-weight: 800;
  letter-spacing: .03em; padding: 2px 5px; border-radius: 4px;
}

.og-rating {
  color: var(--og-red); font-size: 14px; font-weight: 700; margin: 0 0 10px;
}

.og-badge {
  display: inline-block; padding: 3px 8px; border-radius: 6px; font-size: 11px; font-weight: 800;
  margin-left: 8px; vertical-align: middle;
}
.og-badge-ok { background: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; }
.og-badge-warn { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }
html.dark-theme .og-badge-ok { background: rgba(3,105,161,.25); color: #7dd3fc; border-color: #0369a1; }
html.dark-theme .og-badge-warn { background: rgba(127,29,29,.35); color: #fca5a5; border-color: #7f1d1d; }

.og-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: var(--og-radius-sm); font-weight: 700; font-size: 14px;
  padding: 12px 18px; transition: .15s; text-decoration: none;
}
.og-btn:hover { text-decoration: none; }
.og-btn-main {
  width: 100%; margin-top: 6px; padding: 11px; background: var(--og-red); color: #fff; font-size: 14px;
  box-shadow: 0 2px 8px rgba(220, 38, 38, .2);
}
.og-btn-main:hover { background: var(--og-red-hover); }
.og-btn-main:disabled { opacity: .55; cursor: not-allowed; }
.og-btn-add {
  width: 100%; margin-top: 10px; background: var(--og-slate-700); color: #fff; font-size: 14px !important; padding: 12px !important;
}
.og-btn-add:hover { background: var(--og-slate-800); }
.og-btn-add.added { background: #16a34a; }
.og-btn-ghost {
  background: var(--surface-2); color: var(--text); border: 1.5px solid var(--border);
}
.og-btn-ghost:hover { border-color: var(--og-red); color: var(--og-red); }
.og-btn-prim { background: var(--og-red); color: #fff; }
.og-btn-prim:hover { background: var(--og-red-hover); color: #fff; }
.og-btn-sm { padding: 9px 12px; font-size: 12px; }


.og-btn-ico {
  width: 18px; height: 18px; flex-shrink: 0;
}
.og-btn-pdf {
  background: #dc2626; color: #fff;
  border: 1.5px solid #b91c1c;
  box-shadow: 0 2px 8px rgba(220, 38, 38, .22);
}
.og-btn-pdf:hover {
  background: #b91c1c; color: #fff; border-color: #991b1b;
}
.og-btn-xls {
  background: #217346; color: #fff;
  border: 1.5px solid #185c37;
  box-shadow: 0 2px 8px rgba(33, 115, 70, .22);
}
.og-btn-xls:hover {
  background: #185c37; color: #fff; border-color: #0f3d25;
}
html.dark-theme .og-btn-pdf {
  background: #dc2626; color: #fff; border-color: #f87171;
}
html.dark-theme .og-btn-xls {
  background: #217346; color: #fff; border-color: #4ade80;
}


.og-result {
  display: none; margin-top: 14px; padding: 14px 14px 16px; border-radius: 10px;
  background: #fffbfb; border: 1px solid #ffe5e5; border-left: 4px solid var(--og-red);
}
.og-result.show { display: block; animation: ogFade .25s ease; }
html.dark-theme .og-result { background: rgba(127,29,29,.15); border-color: rgba(248,113,113,.35); }
.og-result-title {
  font-weight: 700; font-size: 15px; margin-bottom: 10px; color: var(--text);
}
.og-res-row {
  display: flex; justify-content: space-between; gap: 10px; align-items: flex-start;
  padding: 6px 0; border-bottom: 1px dashed var(--border); font-size: 13.5px;
}
.og-res-lbl { color: var(--text-muted); max-width: 42%; font-weight: 500; }
.og-res-val { font-weight: 700; text-align: right; max-width: 58%; line-height: 1.35; color: var(--text); }
.og-res-val a { color: var(--og-red); font-weight: 700; }
.og-res-row--ei .og-res-lbl { font-weight: 700; color: var(--text); }
.og-res-row--ei .og-res-val {
  color: var(--og-red); font-weight: 800; font-size: 16px;
}
.og-res-note {
  margin-top: 8px; font-size: 11px; color: var(--text-muted); font-style: italic;
  text-align: right; border-top: 1px solid var(--border); padding-top: 6px;
}
.og-pack-hint {
  margin-top: 12px; margin-bottom: 6px; font-size: 12px; font-weight: 600;
  color: var(--text-muted); text-align: left;
}


.og-pack-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px;
}
@media (min-width: 520px) { .og-pack-grid { grid-template-columns: repeat(5, 1fr); } }
.og-pack {
  display: none; flex-direction: column; align-items: center; gap: 3px;
  padding: 8px 4px; border-radius: 8px; border: 2px solid var(--border);
  background: var(--surface); text-align: center; cursor: pointer; transition: .15s;
  color: inherit; font: inherit; min-height: 96px;
}
.og-pack.active { display: flex; }
.og-pack.selected {
  border-color: var(--og-red); background: var(--og-red-soft);
  box-shadow: 0 0 0 2px rgba(220, 38, 38, .12);
}
.og-pack:hover { transform: translateY(-1px); box-shadow: var(--og-shadow); }
.og-pack img { height: 40px; object-fit: contain; }
.og-pack-qty { font-size: 16px; font-weight: 800; color: var(--og-red); }
.og-pack-name { font-size: 10px; font-weight: 700; color: var(--text-muted); line-height: 1.2; }
.og-pack-art { font-size: 9px; color: var(--og-slate-400); }


.og-right { display: flex; flex-direction: column; gap: 16px; }
.og-prod {
  padding: 18px; text-align: center; border-bottom: 1px solid var(--border);
}
.og-prod h2 { margin: 0 0 4px; font-size: 20px; color: var(--og-red); font-weight: 900; }
.og-prod p { margin: 0 0 12px; color: var(--text-muted); font-size: 13px; }
.og-img-box {
  position: relative; width: 100%; max-width: 280px; margin: 0 auto 14px;
  aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--surface-2);
  border: 1px solid var(--border);
}
.og-img-box img {
  width: 100%; height: 100%; object-fit: contain; transition: transform .2s;
}
.og-img-box:hover img { transform: scale(1.08); }
.og-doc-list { display: flex; flex-direction: column; gap: 8px; text-align: left; padding: 0 16px 16px; }
.og-doc {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border: 1.5px solid var(--border); border-radius: 8px; font-size: 13px; font-weight: 600;
  color: var(--text); background: var(--surface-2); transition: .15s;
}
.og-doc:hover { border-color: var(--og-red); color: var(--og-red); text-decoration: none; background: var(--og-red-soft); }
.og-doc-ico {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 6px; background: var(--og-red);
  color: #fff; font-size: 10px; font-weight: 900; display: flex; align-items: center; justify-content: center;
}
.og-link-row { display: flex; flex-direction: column; gap: 8px; padding: 0 16px 16px; }
.og-link-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 14px; border-radius: 8px; font-size: 12px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .03em; border: 1.5px solid var(--border);
  background: var(--surface-2); color: var(--text); text-align: center;
}
.og-link-btn:hover { border-color: var(--og-red); color: var(--og-red); text-decoration: none; }
.og-link-btn--outline { border-color: #fecaca; color: var(--og-red); background: var(--og-red-soft); }


.og-cart { padding: 12px; }
.og-cart-head {
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 700; font-size: 13px; text-transform: none; letter-spacing: normal;
  margin-bottom: 8px; color: var(--text);
}
.og-cart-cnt {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px;
  background: var(--og-red); color: #fff; font-size: 12px; font-weight: 800;
}
.og-cart-empty { text-align: center; color: var(--og-slate-400); padding: 24px 12px; font-size: 13px; }
.og-cart-list { display: flex; flex-direction: column; gap: 8px; max-height: 200px; overflow-y: auto; }
@media (min-width: 1024px) {
  .og-cart-list { max-height: 160px; }
}
.og-cart-item {
  position: relative; padding: 12px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface-2);
}
.og-ci-type { font-size: 12px; font-weight: 800; color: var(--og-red); margin-bottom: 4px; line-height: 1.3; }
.og-ci-title { font-size: 13px; font-weight: 700; }
.og-ci-desc { font-size: 12px; color: var(--text-muted); margin: 4px 0; line-height: 1.4; }
.og-ci-vals {
  display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 12.5px; font-weight: 700;
  font-family: var(--og-mono); margin-top: 6px;
}
.og-ci-del {
  position: absolute; top: 8px; right: 10px; width: 28px; height: 28px;
  border: none; background: transparent; color: var(--og-slate-400); font-size: 20px; line-height: 1;
  border-radius: 6px;
}
.og-ci-del:hover { color: var(--og-red); background: var(--og-red-soft); }
.og-cart-total {
  margin-top: 14px; padding-top: 12px; border-top: 2px solid var(--border);
  display: flex; flex-direction: column; gap: 8px;
}
.og-ct-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  font-size: 13.5px; font-weight: 700;
}
.og-ct-row .muted { color: var(--text-muted); font-weight: 600; font-size: 12px; }
.og-ct-wool { color: var(--og-red); }
.og-actions {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px;
}
.og-actions .og-btn { width: 100%; }
.og-actions-full { grid-column: 1 / -1; }


.og-lead {
  padding: 16px; border-top: 1px solid var(--border); background: var(--surface-2);
}
.og-lead h3 {
  margin: 0 0 4px; font-size: 14px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em;
}
.og-lead .lead-sub { margin: 0 0 14px; font-size: 12px; color: var(--text-muted); }
.og-check {
  display: flex; align-items: flex-start; gap: 10px; font-size: 12px; color: var(--text-muted);
  margin: 10px 0 14px; line-height: 1.4;
}
.og-check input { margin-top: 2px; width: 16px; height: 16px; accent-color: var(--og-red); }
.og-lead-msg { font-size: 13px; margin-top: 10px; font-weight: 600; }
.og-lead-msg.ok { color: #16a34a; }
.og-lead-msg.err { color: #dc2626; }
.og-req-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.og-req-tab {
  flex: 1; padding: 8px; border-radius: 8px; border: 1.5px solid var(--border);
  background: var(--surface); font-size: 11px; font-weight: 800; text-transform: uppercase;
  color: var(--text-muted);
}
.og-req-tab.active { border-color: var(--og-red); color: var(--og-red); background: var(--og-red-soft); }


.og-adv {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px 16px 16px;
}
.og-adv-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-align: center; font-size: 10px; font-weight: 700; color: var(--text-muted); text-transform: uppercase;
}
.og-adv-item img { height: 36px; object-fit: contain; opacity: .85; }


.og-mob-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
  background: var(--surface); border-top: 1px solid var(--border);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 16px rgba(15,23,42,.08);
}
@media (max-width: 1023px) {
  .og-mob-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
  .og-app { padding-bottom: 84px; }
  .og-right.mob-hidden, .og-left.mob-hidden { display: none; }
}
.og-mob-nav button {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 4px; border: none; background: transparent; color: var(--text-muted);
  font-size: 10px; font-weight: 800; text-transform: uppercase; border-radius: 8px;
}
.og-mob-nav button.active { color: var(--og-red); background: var(--og-red-soft); }
.og-mob-nav svg { width: 20px; height: 20px; }


.og-tour-overlay {
  position: fixed; inset: 0; z-index: 100; pointer-events: none;
}
.og-tour-spotlight {
  position: fixed; border-radius: 12px; box-shadow: 0 0 0 9999px rgba(15, 23, 42, .55);
  transition: all .25s ease; pointer-events: none; z-index: 100;
}
html.dark-theme .og-tour-spotlight {
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, .7);
}
.og-tour-card {
  position: absolute; z-index: 101; width: min(320px, calc(100vw - 24px));
  background: var(--surface); color: var(--text); border-radius: 14px;
  border: 1px solid var(--border); box-shadow: 0 16px 40px rgba(15,23,42,.2);
  padding: 16px; pointer-events: auto;
}
.og-tour-card h4 { margin: 0 0 6px; font-size: 15px; font-weight: 900; color: var(--og-red); }
.og-tour-card p { margin: 0 0 14px; font-size: 13px; color: var(--text-muted); line-height: 1.45; }
.og-tour-actions { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.og-tour-steps { font-size: 11px; font-weight: 700; color: var(--og-slate-400); }


.hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}


.og-cart-list::-webkit-scrollbar, .og-tabs::-webkit-scrollbar { width: 5px; height: 5px; }
.og-cart-list::-webkit-scrollbar-thumb { background: var(--og-slate-300); border-radius: 10px; }
html.dark-theme .og-cart-list::-webkit-scrollbar-thumb { background: #475569; }

@media print {
  .og-header, .og-mob-nav, .og-actions, .og-lead, .og-btn-add, .og-ci-del, .og-tour-overlay, .og-modal-overlay, .og-footer-adv { display: none !important; }
}




.og-prod { padding: 12px 12px 8px !important; }
.og-prod h2 { font-size: 17px !important; line-height: 1.3; font-weight: 700 !important; margin-bottom: 2px !important; }
.og-prod p { font-size: 12px !important; line-height: 1.4; font-weight: 400; margin-bottom: 8px !important; }
.og-img-box,
.og-img-box--gif {
  max-width: 100% !important;
  aspect-ratio: 16 / 10;
  max-height: 180px;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: #f1f5f9;
  border: 1px solid var(--border);
  cursor: default;
  margin-bottom: 8px !important;
}
.og-img-box--gif .og-img-gif-only,
.og-img-box--gif .og-img-freeze {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.og-img-box--gif .og-img-freeze { object-fit: cover; }
.og-link-row { padding: 0 12px 12px !important; gap: 6px !important; }
.og-link-btn {
  font-size: 12px !important; padding: 9px 10px !important; font-weight: 600 !important;
  text-transform: none !important; letter-spacing: normal !important;
}


.og-lead-band {
  width: 100%;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 16px 36px;
}
.og-lead-band-inner {
  max-width: 640px;
  margin: 0 auto;
}
.og-lead-band .og-lead-center { text-align: center; margin-bottom: 16px; }
.og-lead-band h2 {
  margin: 0 0 8px; font-size: 17px; font-weight: 700;
  text-transform: none; letter-spacing: normal; color: var(--text);
}
.og-lead-band .lead-sub {
  margin: 0 auto; max-width: 36em; font-size: 13px; color: var(--text-muted); line-height: 1.5;
}
.og-lead-band .og-lead-grid {
  display: grid; grid-template-columns: 1fr; gap: 10px;
}
@media (min-width: 560px) {
  .og-lead-band .og-lead-grid { grid-template-columns: 1fr 1fr; }
  .og-lead-band .og-field--full { grid-column: 1 / -1; }
}
.og-lead-band .og-lead-smeta-hint {
  max-width: none; margin: 0 0 14px;
}



.og-footer-adv {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  margin-top: 0;
}
@media (min-width: 700px) {
  .og-footer-adv { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1100px) {
  .og-footer-adv { grid-template-columns: repeat(6, 1fr); }
}
.og-footer-adv .og-adv-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; padding: 12px 8px; text-align: center;
  font-size: 10px; font-weight: 600; color: var(--text-muted);
  text-transform: none; letter-spacing: normal; line-height: 1.3;
  border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.og-footer-adv .og-adv-item img {
  height: 28px; width: auto; object-fit: contain; opacity: .85;
}
@media (min-width: 768px) {
  .og-footer-adv .og-adv-item {
    gap: 8px; padding: 18px 12px; font-size: 11px; font-weight: 700;
  }
  .og-footer-adv .og-adv-item img { height: 36px; }
}

@media (max-width: 699px) {
  .og-footer-adv { grid-template-columns: repeat(3, 1fr); }
  .og-footer-adv .og-adv-item {
    padding: 10px 6px; gap: 4px; font-size: 9px;
  }
  .og-footer-adv .og-adv-item img { height: 22px; }
}
html.dark-theme .og-footer-adv { background: var(--surface); }
html.dark-theme .og-footer-adv .og-adv-item { border-color: var(--border); }


.og-modal-overlay {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(15, 23, 42, .55);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 24px 12px; overflow-y: auto;
}
.og-modal-overlay[hidden] { display: none !important; }
.og-modal {
  position: relative; width: min(560px, 100%);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: 0 24px 60px rgba(15,23,42,.25);
  padding: 28px 24px 32px; margin: auto;
}
@media (min-width: 768px) { .og-modal { padding: 32px 36px 36px; } }
.og-modal-close {
  position: absolute; top: 10px; right: 14px;
  width: 36px; height: 36px; border: none; background: transparent;
  font-size: 28px; line-height: 1; color: var(--text-muted); border-radius: 8px;
}
.og-modal-close:hover { color: var(--og-red); background: var(--og-red-soft); }
.og-lead-ptm .og-lead-center { text-align: center; margin-bottom: 18px; }
.og-lead-ptm h2 {
  margin: 0 0 8px; font-size: 16px; font-weight: 900;
  text-transform: uppercase; letter-spacing: .06em; color: var(--text);
}
.og-lead-ptm .lead-sub {
  margin: 0 auto; max-width: 28em; font-size: 13px; color: var(--text-muted); line-height: 1.45;
}
.og-req-tabs--ptm {
  display: inline-flex; gap: 4px; padding: 4px; border-radius: 10px;
  background: var(--surface-2); margin-bottom: 16px;
}
.og-req-tabs--ptm .og-req-tab {
  flex: 0 0 auto; border: none; padding: 8px 14px; font-size: 11px;
  border-radius: 8px; background: transparent;
}
.og-req-tabs--ptm .og-req-tab.active {
  background: var(--surface); color: var(--og-red); box-shadow: 0 1px 4px rgba(15,23,42,.08);
}
.og-lead-grid {
  display: grid; grid-template-columns: 1fr; gap: 10px; max-width: 480px; margin: 0 auto;
}
@media (min-width: 560px) {
  .og-lead-grid { grid-template-columns: 1fr 1fr; }
  .og-field--full { grid-column: 1 / -1; }
}
.og-textarea { height: auto !important; min-height: 84px; resize: vertical; padding-top: 12px; }
.og-lead-smeta-hint {
  max-width: 480px; margin: 0 auto 14px; padding: 12px 14px;
  background: var(--og-red-soft); border: 1px solid #fecaca; border-radius: 8px;
  font-size: 13px; font-weight: 700; color: var(--text); text-align: center;
}
.og-lead-smeta-hint:empty { display: none; }
.og-check {
  font-size: 11.5px !important; line-height: 1.45 !important; margin: 4px 0 8px !important;
}
.og-btn-main { font-size: 14px !important; }
.og-cart-head { font-size: 13px !important; }
.og-rating { font-size: 14px !important; }




.og-right-sticky {
  position: sticky;
  top: calc(var(--og-header-h, 64px) + 8px);
  max-height: none !important;
  overflow: visible !important;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 8px;
}
.og-right .og-panel { overflow: visible; }
.og-actions {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
  visibility: visible !important;
  opacity: 1 !important;
}
.og-actions .og-btn,
.og-actions .og-btn-prim,
.og-actions .og-btn-pdf,
.og-actions .og-btn-xls {
  display: inline-flex !important;
  visibility: visible !important;
  min-height: 40px;
}
.og-link-row {
  display: flex !important;
  flex-direction: column;
  gap: 6px !important;
  padding: 0 12px 12px !important;
  visibility: visible !important;
}
.og-link-btn {
  display: flex !important;
  visibility: visible !important;
}


.og-img-box,
.og-img-box--gif {
  max-height: 260px !important;
  aspect-ratio: 4 / 3 !important;
  min-height: 200px;
}


.og-hdr-btn {
  font-size: 13px !important;
  font-weight: 700 !important;
  padding: 11px 16px !important;
}
@media (min-width: 1280px) {
  .og-hdr-btn { font-size: 14px !important; padding: 12px 18px !important; }
}


html.dark-theme {
  --og-red: #94a3b8;
  --og-red-hover: #cbd5e1;
  --og-red-soft: rgba(148, 163, 184, 0.12);
}
html.dark-theme .og-tab.active {
  color: #e2e8f0 !important;
  border-bottom-color: #94a3b8 !important;
}
html.dark-theme .og-btn-main,
html.dark-theme .og-btn-prim,
html.dark-theme .og-hdr-btn--primary,
html.dark-theme .og-cart-cnt,
html.dark-theme .og-doc-ico,
html.dark-theme .og-soon-badge {
  background: #475569 !important;
  border-color: #64748b !important;
  color: #f1f5f9 !important;
  box-shadow: none !important;
}
html.dark-theme .og-btn-main:hover,
html.dark-theme .og-btn-prim:hover,
html.dark-theme .og-hdr-btn--primary:hover {
  background: #64748b !important;
}
html.dark-theme .og-hdr-btn--ptm,
html.dark-theme .og-link-btn--outline,
html.dark-theme .og-vis-btn.active,
html.dark-theme .og-pack.selected,
html.dark-theme .og-result {
  background: rgba(71, 85, 105, 0.35) !important;
  border-color: #475569 !important;
  color: #e2e8f0 !important;
}
html.dark-theme .og-res-row--ei .og-res-val,
html.dark-theme .og-pack-qty,
html.dark-theme .og-prod h2,
html.dark-theme .og-ci-type,
html.dark-theme a {
  color: #cbd5e1 !important;
}
html.dark-theme .og-desc {
  background: rgba(51, 65, 85, 0.5) !important;
  border-left-color: #64748b !important;
}
html.dark-theme .og-desc.collapsed::before { color: #cbd5e1 !important; }
html.dark-theme .og-ct-wool { color: #cbd5e1 !important; }


html.dark-theme .og-footer-adv .og-adv-item img {
  opacity: 1 !important;
  filter: brightness(0) invert(0.85) !important;
}
html.dark-theme .og-footer-adv {
  background: #0f172a !important;
}
html.dark-theme .og-footer-adv .og-adv-item {
  background: #111827 !important;
  color: #cbd5e1 !important;
  border-color: #1e293b !important;
}


.og-desc.collapsed {
  max-height: 34px !important;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}
.og-desc.collapsed::before {
  font-size: 12px !important;
  font-weight: 600 !important;
}


@media (max-width: 1023px) {
  .og-app { padding-bottom: 72px; }
  .og-right-sticky { position: static; max-height: none; }
}



.og-link-btn {
  text-transform: uppercase !important;
  letter-spacing: .04em !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}
.og-actions .og-btn-prim,
.og-actions .og-btn-ghost.og-actions-full,
#btn-lead-send {
  text-transform: uppercase !important;
  letter-spacing: .04em !important;
  font-weight: 700 !important;
}
.og-tab { font-size: 13px !important; }
@media (min-width: 768px) { .og-tab { font-size: 14px !important; } }
.og-label { font-size: 13px !important; }
.og-input, .og-select { font-size: 15px !important; height: 42px !important; }
.og-btn-main { font-size: 15px !important; }
.og-result-title { font-size: 16px !important; }
.og-res-row { font-size: 14.5px !important; }
.og-res-row--ei .og-res-val { font-size: 17px !important; }
.og-hint { font-size: 12px !important; }
.og-hdr-btn { font-size: 14px !important; }
.og-prod h2 { font-size: 18px !important; }
.og-prod p { font-size: 13px !important; }
.og-cart-head { font-size: 14px !important; }
.og-pack-name { font-size: 11px !important; }
.og-pack-qty { font-size: 17px !important; }
.og-vis-btn span { font-size: 13px !important; }
.og-lead-band h2 { font-size: 18px !important; }
.og-lead-band .lead-sub { font-size: 14px !important; }
.og-actions-full { grid-column: 1 / -1; }
#btn-lead-works {
  border-color: var(--border);
  color: var(--text);
  background: var(--surface-2);
}
#btn-lead-works:hover {
  border-color: var(--og-red);
  color: var(--og-red);
}
html.dark-theme #btn-lead-works {
  background: #1e293b;
  color: #e2e8f0;
  border-color: #334155;
}