/* ТРУДОВИК.РФ PRO 3D — site-v025 (GBUILD-0023)
   Утверждённые Катушка.png / Коробка.png из Эскизы в2 */

:root,
html[data-theme="dark"] {
  --bg: #0b0d10;
  --bg-elev: #12151a;
  --bg-card: #171b22;
  --bg-card-hover: #1d232c;
  --line: #2a3140;
  --text: #f4f6f9;
  --muted: #9aa3b5;
  --orange: #ff6a00;
  --orange-2: #ff8a33;
  --orange-dim: rgba(255, 106, 0, 0.14);
  --proto-bg: linear-gradient(90deg, #2a1600, #151008 45%, #10141a);
  --proto-text: #ffd3ad;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  --font: Inter, "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --max: 1360px;
  --header-h: 80px;
  --header-bg: rgba(11, 13, 16, 0.94);
  --modal-backdrop: rgba(0, 0, 0, 0.68);
}

html[data-theme="light"] {
  --bg: #f4f5f7;
  --bg-elev: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f8f9fb;
  --line: #d8dde6;
  --text: #12151a;
  --muted: #5c6678;
  --orange: #ff6a00;
  --orange-2: #e85f00;
  --orange-dim: rgba(255, 106, 0, 0.12);
  --proto-bg: linear-gradient(90deg, #fff3e8, #fff8f2 50%, #f4f5f7);
  --proto-text: #7a3d00;
  --shadow: 0 12px 32px rgba(18, 25, 40, 0.08);
  --header-bg: rgba(255, 255, 255, 0.94);
  --modal-backdrop: rgba(18, 25, 40, 0.45);
}

/* Product / hero / QR images NEVER invert with theme */
.hero__spool,
.hero__box,
.hero__batch .qr-big,
.product__img,
.dir-card__img,
.service-card__img,
.logo__full,
.logo img,
.qc-item__ico,
.trust__item img,
.hero__badges .ico,
.rail-card__ico img {
  filter: none !important;
  -webkit-filter: none !important;
}

/* Dual logos: show correct set per theme */
.logo__full--light { display: none !important; }
.logo__full--dark { display: block !important; }
html[data-theme="light"] .logo__full--light { display: block !important; }
html[data-theme="light"] .logo__full--dark { display: none !important; }
.logo { gap: 0; }
.logo__full {
  height: 52px;
  width: auto;
  max-width: min(280px, 42vw);
  object-fit: contain;
  object-position: left center;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100vw;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

.container { width: min(100% - 32px, var(--max)); margin-inline: auto; }
.muted { color: var(--muted); }
.demo-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--orange-dim);
  color: var(--orange-2);
  font-size: 13px;
}

/* Banner */
.proto-banner {
  background: var(--proto-bg);
  border-bottom: 1px solid rgba(255, 106, 0, 0.35);
  color: var(--proto-text);
  font-size: 12px;
  padding: 8px 16px;
  text-align: center;
}

/* Header — logo left, nav center, actions right */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

/* Theme toggle */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px 6px 6px;
  cursor: pointer;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
}
.theme-toggle:hover { border-color: var(--orange); }
.theme-toggle__track {
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  position: relative;
  display: block;
}
.theme-toggle__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--orange);
  transition: transform .18s ease;
}
html[data-theme="light"] .theme-toggle__thumb {
  transform: translateX(18px);
}
.theme-toggle__label { min-width: 52px; text-align: left; color: var(--muted); }

.hero__rf { color: var(--orange); }
.header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px 24px;
  min-height: var(--header-h);
  padding-block: 8px;
}
.logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.logo__full--footer {
  height: 52px;
  max-width: 280px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 18px;
  font-size: 13px;
  color: var(--muted);
}
.nav a:hover { color: var(--text); }

.header__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.hact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 13px;
}
.hact:hover { color: var(--text); background: var(--orange-dim); }
html[data-theme="light"] .hact:hover { background: rgba(0,0,0,.04); }
.hact--cart {
  border: 1px solid var(--line);
  background: var(--bg-card);
}
.hact--cart:hover { border-color: var(--orange); }
.cart-count {
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
  padding: 0 5px;
}
.nav-toggle {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  padding: 12px 18px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 650;
  transition: .15s ease;
}
.btn--primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 10px 24px rgba(255,106,0,.28);
}
.btn--primary:hover { background: var(--orange-2); }
.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--orange); color: var(--orange-2); }
.btn--sm { padding: 8px 12px; font-size: 13px; border-radius: 10px; }
.linkish {
  background: none;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  font-size: 13px;
}
.linkish:hover { color: var(--orange-2); }

/* Hero — единая сцена как эскиз 6 */
.hero {
  padding: 28px 0 18px;
  min-height: min(88vh, 820px);
  background:
    radial-gradient(ellipse 65% 60% at 58% 42%, rgba(255,106,0,.12), transparent 58%),
    radial-gradient(ellipse 40% 40% at 8% 70%, rgba(255,106,0,.05), transparent 50%),
    var(--bg);
}
.hero__stage {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(420px, 1.55fr);
  gap: 12px 28px;
  align-items: center;
  min-height: 560px;
}
.hero__copy {
  position: relative;
  z-index: 2;
  padding-block: 12px;
}
.hero__title {
  margin: 0 0 14px;
  line-height: 0.92;
  letter-spacing: 0.01em;
}
.hero__line {
  display: block;
  font-size: clamp(48px, 6.2vw, 78px);
  font-weight: 900;
}
.hero__line--pro { color: var(--orange); }
.hero__tagline {
  margin: 0 0 14px;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 600;
}
.hero__lead {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}
.hero__lead-list {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 8px;
}
.hero__lead-list li {
  position: relative;
  padding-left: 26px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.4;
}
.hero__lead-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--orange) 35%, transparent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.2l2.8 2.8 6-6'/%3E%3C/svg%3E");
  background-size: 12px 12px;
  background-position: center;
  background-repeat: no-repeat;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.hero__badges {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hero__badges li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  background: var(--bg-elev);
}
html[data-theme="light"] .hero__badges li {
  background: #fff;
  box-shadow: 0 2px 8px rgba(18,25,40,.05);
}
.hero__badges .ico {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: block;
}

/* Scene: spool dominant, box right, batch overlay bottom-right */
.hero__scene {
  position: relative;
  min-height: 520px;
  height: clamp(480px, 62vh, 640px);
  display: grid;
  place-items: center;
  overflow: hidden;
  max-width: 100%;
  border-radius: 20px;
  background: transparent;
}
html[data-theme="light"] .hero__scene {
  background: radial-gradient(ellipse 70% 70% at 50% 50%, #ffffff 0%, #eef1f5 70%, transparent 100%);
}
html[data-theme="dark"] .hero {
  background:
    radial-gradient(ellipse 65% 60% at 58% 42%, rgba(255,106,0,.12), transparent 58%),
    radial-gradient(ellipse 40% 40% at 8% 70%, rgba(255,106,0,.05), transparent 50%),
    var(--bg);
}
html[data-theme="light"] .hero {
  background:
    radial-gradient(ellipse 70% 55% at 60% 40%, rgba(255,106,0,.08), transparent 55%),
    linear-gradient(180deg, #f7f8fa 0%, #eef1f5 100%);
}
.hero__spool {
  position: absolute;
  left: 2%;
  top: 48%;
  transform: translateY(-50%);
  width: min(88%, 540px);
  max-width: 100%;
  height: auto;
  z-index: 1;
  filter: drop-shadow(0 18px 36px rgba(0,0,0,.32)) !important;
  pointer-events: none;
  user-select: none;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.hero__pack-wrap {
  position: absolute;
  right: 1%;
  top: 4%;
  width: min(46%, 300px);
  max-width: 50%;
  z-index: 2;
  filter: drop-shadow(0 16px 32px rgba(0,0,0,.28)) !important;
  background: transparent !important;
}
.hero__box {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 0;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
html[data-theme="light"] .hero__pack-wrap {
  width: min(52%, 340px);
}
.hero__batch {
  position: absolute;
  right: 2%;
  bottom: 6%;
  z-index: 3;
  width: min(86%, 340px);
  display: grid;
  grid-template-columns: 1fr 76px;
  gap: 14px;
  align-items: center;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 14px 14px 16px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  /* не перекрывать центр катушки / QR на face */
  max-width: 360px;
}
html[data-theme="light"] .hero__batch {
  border-color: rgba(255,106,0,.28);
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(18, 25, 40, 0.1);
}
.hero__batch-text strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
  font-weight: 700;
}
.hero__batch-text p {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}
.qr-big {
  width: 76px;
  height: 76px;
  border-radius: 8px;
  flex-shrink: 0;
  object-fit: contain;
  background: #fff !important;
  border: 1px solid #d0d5dd;
  padding: 5px;
  box-sizing: border-box;
  image-rendering: pixelated;
  /* never invert with theme */
  filter: none !important;
}

/* QC strip — 5 блоков как в эталоне V2 */
.qc-strip {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.qc-item {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 12px 14px;
  text-align: center;
  min-height: 118px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 2px;
}
html[data-theme="light"] .qc-item {
  background: #fff;
  box-shadow: 0 4px 14px rgba(18, 25, 40, 0.04);
  border-color: #e4e8ef;
}
.qc-item__ico {
  display: block;
  width: 40px;
  height: 40px;
  margin: 0 auto 10px;
  object-fit: contain;
}
.qc-item__title {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 2px;
  line-height: 1.25;
}
.qc-item small { color: var(--muted); font-size: 11px; line-height: 1.3; }

/* Sections */
.section { padding: 48px 0; }
.section--alt {
  background: color-mix(in srgb, var(--bg) 88%, #000 12%);
  border-block: 1px solid var(--line);
}
html[data-theme="light"] .section--alt {
  background: #eef0f4;
}
.section__head { margin-bottom: 20px; }
.section__head h2 { margin: 0 0 6px; font-size: clamp(24px, 3vw, 32px); letter-spacing: .02em; text-transform: uppercase; }
.section__head--row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  align-items: end;
}

/* Catalog — filters | grid | right rail (эскиз В2) */
.catalog-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 220px;
  gap: 16px;
  align-items: start;
}

.catalog-rail {
  position: sticky;
  top: calc(var(--header-h) + 12px);
  display: grid;
  gap: 12px;
  align-content: start;
}
.rail-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  display: grid;
  gap: 8px;
}
html[data-theme="light"] .rail-card {
  background: #fff;
  box-shadow: 0 6px 16px rgba(18, 25, 40, 0.05);
  border-color: #e4e8ef;
}
.rail-card h3 {
  margin: 0;
  font-size: 14px;
}
.rail-card p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}
.rail-card__ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--orange-dim);
  display: grid;
  place-items: center;
}
.rail-card__flag {
  width: 36px;
  height: 24px;
  border-radius: 4px;
  background: linear-gradient(
    to bottom,
    #fff 0 33.33%,
    #0039a6 33.33% 66.66%,
    #d52b1e 66.66% 100%
  );
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(0,0,0,.12);
}
.rail-card__actions {
  display: grid;
  gap: 8px;
  margin-top: 2px;
}
.rail-card .btn { justify-self: stretch; width: 100%; }
.filters {
  position: sticky;
  top: calc(var(--header-h) + 12px);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  max-height: calc(100vh - 100px);
  overflow: auto;
}
.filters__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.filters__head h3 { margin: 0; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; }
.filters fieldset {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 10px 0 0;
  padding: 10px 0 0;
}
.filters legend {
  padding: 0;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.filters label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin: 0 0 6px;
  cursor: pointer;
}
.filters .disabled-option { opacity: .5; cursor: not-allowed; }
.filters em { font-style: normal; color: var(--orange); font-size: 11px; }

.swatch {
  width: 11px; height: 11px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25); display: inline-block;
}
.swatch--black { background: #111; }
.swatch--white { background: #f2f2f2; }
.swatch--gray { background: #7a7f8a; }
.swatch--red { background: #d32f2f; }
.swatch--orange { background: #ff6a00; }
.swatch--green { background: #2e7d32; }
.swatch--blue { background: #1565c0; }
.swatch--purple { background: #6a1b9a; }

/* GBUILD-0048 catalog search */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.catalog-search-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.catalog-search {
  position: relative;
  flex: 1 1 280px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 4px 4px 12px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.catalog-search:focus-within {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--orange) 28%, transparent);
}
.catalog-search__ico {
  display: grid;
  place-items: center;
  color: var(--muted);
  flex: 0 0 auto;
}
.catalog-search__input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  line-height: 1.3;
  padding: 12px 8px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.catalog-search__input::placeholder { color: var(--muted); opacity: .9; }
.catalog-search__input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.catalog-search__clear {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: var(--bg-card);
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.catalog-search__clear:hover { color: var(--text); background: color-mix(in srgb, var(--orange) 18%, var(--bg-card)); }
.catalog-search-bar .result-count {
  flex: 0 0 auto;
  padding-bottom: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.catalog-empty {
  display: grid;
  gap: 10px;
  justify-items: start;
  padding: 22px 18px;
  background: var(--bg-elev);
  border: 1px dashed var(--line);
  border-radius: 14px;
}
.catalog-empty__title { margin: 0; font-size: 18px; }
.catalog-empty__text { margin: 0; color: var(--muted); max-width: 52ch; }
@media (max-width: 720px) {
  .catalog-search-bar { flex-direction: column; align-items: stretch; }
  .catalog-search { flex-basis: auto; width: 100%; }
  .catalog-search-bar .result-count { align-self: flex-start; }
}

.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 14px;
  padding: 12px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.toolbar-selects, .toolbar-right {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
}
.catalog-toolbar label {
  display: grid;
  gap: 4px;
  font-size: 11px;
  color: var(--muted);
}
.catalog-toolbar select {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  min-width: 100px;
}
.glow-toggle {
  display: flex !important;
  align-items: center;
  gap: 8px;
  color: var(--text) !important;
  font-size: 13px !important;
  padding-bottom: 6px;
}
.view-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.view-btn {
  background: var(--bg-card);
  border: 0;
  color: var(--muted);
  padding: 8px 10px;
  cursor: pointer;
}
.view-btn.is-active { background: var(--orange); color: #fff; }
.result-count { font-size: 13px; color: var(--muted); padding-bottom: 8px; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 12px;
}
@media (min-width: 1180px) {
  .product-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
.product-grid.is-list {
  grid-template-columns: 1fr;
}
.product-grid.is-list .product {
  grid-template-columns: 180px 1fr;
  display: grid;
}
.product-grid.is-list .product__visual { aspect-ratio: 1; min-height: 160px; }
.product-grid.is-list .product__actions { max-width: 280px; }
.product-grid.is-list .product__title { min-height: 0; }

.product {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: .15s ease;
  box-shadow: 0 1px 0 rgba(255,255,255,.03);
}
html[data-theme="light"] .product {
  box-shadow: 0 8px 20px rgba(18, 25, 40, 0.06);
}
.product:hover {
  border-color: rgba(255,106,0,.5);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}
.product__visual {
  position: relative;
  aspect-ratio: 1.02;
  background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--bg-card) 40%, #2a3140), var(--bg-elev));
  display: grid;
  place-items: center;
  padding: 8px;
  border-bottom: 1px solid var(--line);
}
html[data-theme="light"] .product__visual {
  background: radial-gradient(circle at 50% 40%, #ffffff 0%, #eef1f5 100%);
}
.product__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.04);
  background: transparent !important;
}
.product__weight {
  position: absolute;
  top: 8px; right: 8px; z-index: 2;
  background: rgba(0,0,0,.78);
  color: #fff;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
}
html[data-theme="light"] .product__weight {
  background: rgba(18, 21, 26, 0.82);
  border-color: transparent;
}
.product__glow {
  position: absolute;
  top: 36px; left: 8px; z-index: 2;
  background: var(--orange-dim);
  color: var(--orange-2);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
}
.product__source {
  position: absolute;
  top: 8px; left: 8px; z-index: 3;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  padding: 4px 8px;
}
.product__source--demo {
  background: rgba(255, 106, 0, 0.92);
  color: #fff;
}
.product__source--brand {
  background: rgba(40, 150, 80, 0.92);
  color: #fff;
}
.product__demo-note {
  margin: 0;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.3;
}
.product__body {
  padding: 8px 10px 10px;
  display: grid;
  gap: 5px;
  flex: 1;
}
.product__title {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.25;
  min-height: 2.5em;
  font-weight: 650;
}
.product-preview__seo {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.product__meta {
  margin: 0;
  font-size: 10.5px;
  color: var(--muted);
  line-height: 1.35;
}
.product__status {
  display: inline-flex;
  width: fit-content;
  font-size: 10.5px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(255, 180, 60, .12);
  color: #ffc46a;
}
.product__spool-note {
  font-size: 10.5px;
  color: var(--orange-2);
  background: var(--orange-dim);
  border-radius: 7px;
  padding: 5px 7px;
  line-height: 1.3;
}
.product__batch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
}
.product__batch button {
  background: none;
  border: 0;
  color: var(--orange-2);
  cursor: pointer;
  padding: 0;
  font-size: 11px;
  font-weight: 600;
}
.product__batch button:hover { text-decoration: underline; }
.qr-stub {
  width: 22px; height: 22px; border-radius: 3px;
  background:
    linear-gradient(#fff 0 0) 0 0/40% 40%,
    linear-gradient(#fff 0 0) 100% 0/40% 40%,
    linear-gradient(#fff 0 0) 0 100%/40% 40%,
    linear-gradient(#222 0 0);
  background-repeat: no-repeat;
  opacity: .7;
}
.product__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: auto;
}
.product__actions .btn { width: 100%; padding: 8px 6px; font-size: 12px; }

.catalog-note {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--muted);
  border-left: 3px solid var(--orange);
  padding-left: 12px;
}

.dev-block { margin-top: 28px; }
.dev-block h3 { margin: 0 0 6px; }
.dev-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.dev-card {
  border: 1px dashed var(--line);
  border-radius: 14px;
  padding: 16px;
  background: rgba(255,255,255,.02);
  position: relative;
}
.dev-card h4 { margin: 0 0 6px; }
.dev-card p { margin: 0; color: var(--muted); font-size: 13px; }
.dev-card__badge {
  position: absolute;
  top: 12px; right: 12px;
  font-size: 11px;
  font-weight: 700;
  color: var(--orange);
  background: var(--orange-dim);
  padding: 4px 8px;
  border-radius: 999px;
}

/* Directions — крупное изображение + короткий текст */
.dir-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.dir-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0;
  transition: .15s ease;
}
.dir-card:hover { border-color: rgba(255,106,0,.45); transform: translateY(-2px); }
.dir-card--muted { opacity: .92; }
.dir-card__img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: contain;
  background: transparent;
  display: block;
  padding: 6px 6px 0;
  border: 0;
  box-shadow: none;
}
html[data-theme="dark"] .dir-card__img {
  background: radial-gradient(circle at 50% 40%, #1c2129 0%, #14181f 100%);
}
html[data-theme="light"] .dir-card__img {
  background: linear-gradient(180deg, #fafbfc, #f0f2f6);
}
html[data-theme="light"] .dir-card {
  box-shadow: 0 8px 20px rgba(18, 25, 40, 0.05);
  border-color: #e4e8ef;
}
.dir-card,
.service-card {
  position: relative;
}
/* GBUILD-0026: тёмный 3d.png — contain (без искажений), как у 1–4 карточек */
.dir-card--models .dir-card__img--models {
  width: 100%;
  height: 420px; /* как width/height у остальных dir-card */
  max-width: 100%;
  object-fit: contain !important;
  object-position: center;
  display: block;
  padding: 10px !important;
  box-shadow: none;
}
html[data-theme="dark"] .dir-card--models .dir-card__img--models {
  background: radial-gradient(circle at 50% 45%, #1a1e26 0%, #12151a 100%) !important;
}
html[data-theme="light"] .dir-card--models .dir-card__img--models {
  /* тёмный рендер на нейтральном светлом поле, без инверсии и чёрного прямоугольника */
  background: linear-gradient(180deg, #fafbfc, #f0f2f6) !important;
}
.dir-card__body {
  padding: 12px 12px 14px;
  display: grid;
  gap: 6px;
  flex: 1;
  align-content: start;
}
.dir-card h3 { margin: 0; font-size: 14px; }
.dir-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.4; }

/* Services — визуал сверху, текст снизу */
.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.service-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
  transition: .15s ease;
}
.service-card:hover { border-color: rgba(255,106,0,.4); }
.service-card__img {
  width: 100%;
  height: auto !important;
  aspect-ratio: 16 / 9;
  min-height: 0;
  object-fit: cover;
  display: block;
  background: transparent;
  padding: 0;
  border: 0;
  box-shadow: none;
}
html[data-theme="dark"] .service-card__img {
  background: radial-gradient(circle at 50% 40%, #1c2129 0%, #14181f 100%);
}
html[data-theme="light"] .service-card__img {
  background: linear-gradient(180deg, #fafbfc, #f0f2f6);
}
html[data-theme="light"] .service-card {
  background: #fff;
  box-shadow: 0 8px 20px rgba(18, 25, 40, 0.05);
  border-color: #e4e8ef;
}
.service-card__body {
  padding: 12px 14px 14px;
  display: grid;
  gap: 6px;
  flex: 1;
  align-content: start;
}
.service-card h3 {
  margin: 0;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.service-card .btn { justify-self: start; margin-top: 4px; }

/* Trust bar */
.trust {
  background: #080a0c;
  border-block: 1px solid var(--line);
  padding: 20px 0;
}
.trust__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  align-items: center;
  justify-content: space-between;
}
.trust__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
}
.trust__item img {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.trust__item .hero__adv-ico--ru {
  flex: 0 0 auto;
  width: 22px;
  height: 15px;
  display: block;
  border-radius: 2px;
  background: linear-gradient(to bottom, #fff 0 33.33%, #0039a6 33.33% 66.66%, #d52b1e 66.66% 100%);
  border: 1px solid rgba(0, 0, 0, .15);
}
.trust__brand img {
  height: 52px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
}

/* Secondary sections — ниже основного marketing funnel */
.section--secondary {
  opacity: 0.98;
}
.section--secondary h2 {
  font-size: clamp(20px, 2.4vw, 26px);
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
}

/* About / contacts */
.about {
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  gap: 24px;
  align-items: start;
}
.about__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.about__list li {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}
.contacts__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}
.contact-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}
.contact-card h3 { margin: 0 0 8px; font-size: 15px; }
.contact-card p { margin: 0 0 8px; color: var(--muted); font-size: 13px; }

/* Align / production questions */
.align-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.align-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
}
.align-card h3 {
  margin: 0 0 10px;
  font-size: 15px;
  color: var(--orange-2);
}
.align-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
}
.align-card li { margin-bottom: 6px; }

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  background: var(--bg-elev);
}
html[data-theme="dark"] .footer {
  background: #07090b;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}
.footer__note {
  margin: 0;
  max-width: 560px;
  font-size: 12px;
  color: var(--muted);
}

/* Modal */
.modal[hidden] { display: none; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: var(--modal-backdrop);
}
.modal__dialog {
  position: relative;
  width: min(100%, 480px);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow);
  max-height: min(90vh, 720px);
  overflow: auto;
}
.modal__close {
  position: absolute;
  top: 10px; right: 12px;
  border: 0; background: none;
  color: var(--muted);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.modal__dialog h2 { margin: 0 20px 12px 0; font-size: 20px; }
.modal__expand {
  position: absolute;
  top: 9px;
  right: 51px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--bg-card);
  color: var(--muted);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.modal__expand[hidden] { display: none; }
.modal__expand:hover,
.modal__expand:focus-visible {
  border-color: var(--orange);
  color: var(--text);
  background: var(--orange-dim);
}
.modal__expand-icon { font-size: 17px; line-height: 1; }
.modal form { display: grid; gap: 10px; }
.modal label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.modal input, .modal textarea, .modal select {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--text);
}
.modal .form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.modal .hint {
  font-size: 12px;
  color: var(--muted);
  background: rgba(255,255,255,.03);
  border-radius: 10px;
  padding: 10px;
}
.cart-list { display: grid; gap: 8px; margin-bottom: 12px; }
.cart-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13px;
}
.cart-empty { color: var(--muted); font-size: 14px; }

.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 120;
  background: #1e2430;
  border: 1px solid var(--orange);
  color: #ffffff;
  padding: 12px 16px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  max-width: min(360px, calc(100vw - 32px));
  font-size: 14px;
}
.toast[hidden] { display: none; }

/* Responsive */
@media (max-width: 1180px) {
  .catalog-layout { grid-template-columns: 200px minmax(0, 1fr); }
  .catalog-rail {
    grid-column: 1 / -1;
    position: static;
    grid-template-columns: repeat(3, 1fr);
  }
  .dir-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero__stage { grid-template-columns: 1fr; min-height: 0; }
  .hero__scene { height: 480px; min-height: 440px; }
  .hero__spool { width: min(70%, 420px); left: 4%; }
  .hero__pack-wrap { width: min(40%, 240px); }
}

@media (max-width: 980px) {
  .header__inner { grid-template-columns: auto auto 1fr; }
  .nav-toggle { display: inline-flex; grid-column: 2; }
  .nav {
    display: none;
    grid-column: 1 / -1;
    justify-content: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: 12px;
  }
  .nav.is-open { display: flex; }
  .header__actions { justify-self: end; }
  .hact span:not(.hact__ico):not(.cart-count) { display: none; }
  .theme-toggle__label { display: none; }
  .catalog-layout { grid-template-columns: 1fr; }
  .catalog-rail { grid-template-columns: 1fr; }
  .filters { position: static; max-height: none; }
  .qc-strip { grid-template-columns: repeat(2, 1fr); }
  .services { grid-template-columns: repeat(2, 1fr); }
  .about, .contacts__grid, .align-grid { grid-template-columns: 1fr; }
  .logo__full { height: 48px; }
  .hero { min-height: 0; }
}

/* Mobile: products full width list-like, services 2×2 */
@media (max-width: 640px) {
  .product-grid { grid-template-columns: 1fr; }
  .dir-grid { grid-template-columns: 1fr 1fr; }
  .services { grid-template-columns: 1fr 1fr; }
  .qc-strip { grid-template-columns: 1fr; }
  .product-grid.is-list .product { grid-template-columns: 1fr; }
  .logo__full { height: 40px; max-width: 180px; }
  .logo__full--footer { height: 48px; }
  .trust__brand img { height: 44px; }
  .hero__scene { height: 400px; min-height: 380px; overflow: hidden; }
  .hero__spool { width: 78%; left: 0; max-width: 300px; }
  .hero__pack-wrap { width: 42%; top: 4%; right: 2%; max-width: 160px; }
  .hero__batch {
    width: calc(100% - 4px);
    right: 2px;
    bottom: 2px;
    padding: 10px 12px;
  }
  .container { width: min(100% - 24px, var(--max)); }
  .section--alt { background: var(--bg-elev); }
}


/* GBUILD-0008/0009: logo-v001 — no glow/shadow/filter */
.logo__full,
.logo img,
.trust__brand img,
.footer .logo__full {
  filter: none !important;
  box-shadow: none !important;
  background: transparent !important;
  border: 0 !important;
  object-fit: contain;
  height: 52px;
  width: auto;
  max-width: min(280px, 48vw);
}
.logo__full--footer { height: 52px; }
.trust__brand .logo__full { height: 48px; }

/* GBUILD-0009: light-theme hard cleanup — no black image plates */
html[data-theme="light"] .hero__spool,
html[data-theme="light"] .hero__box,
html[data-theme="light"] .product__img {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}
html[data-theme="light"] .hero__scene {
  /* мягкий ореол без прямоугольника */
  background: radial-gradient(ellipse 65% 60% at 48% 48%, #ffffff 0%, #eef1f5 62%, transparent 100%);
  border: 0;
  box-shadow: none;
}
html[data-theme="light"] .product__visual {
  border-bottom-color: #e8ecf2;
}
/* product QR stubs stay readable in both themes */
.qr-stub {
  background-color: #fff !important;
}


/* GBUILD-0011: approved product visuals — no filters/crop */
.hero__spool,
.hero__box,
.product__img {
  filter: none !important;
  -webkit-filter: none !important;
  mix-blend-mode: normal !important;
  object-fit: contain !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  /* keep drop-shadow only via parent if needed — disable blur/glow */
}
.hero__spool {
  /* full spool visible; batch sits bottom-right without covering face center */
  left: 0%;
  top: 46%;
  transform: translateY(-50%);
  width: min(86%, 520px);
  max-height: 96%;
  z-index: 1;
  filter: drop-shadow(0 16px 28px rgba(0,0,0,.28)) !important;
}
.hero__pack-wrap {
  right: 0%;
  top: 2%;
  width: min(44%, 300px);
  max-height: 70%;
  z-index: 2;
  overflow: visible;
  filter: drop-shadow(0 14px 26px rgba(0,0,0,.26)) !important;
}
.hero__box {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain !important;
  overflow: visible;
}
.hero__batch {
  /* keep clear of spool face / QR on product */
  right: 1%;
  bottom: 2%;
  width: min(78%, 300px);
  max-width: 310px;
  z-index: 4;
}
.hero__scene {
  overflow: visible;
  min-height: 540px;
  height: clamp(500px, 64vh, 660px);
}
html[data-theme="light"] .hero__spool,
html[data-theme="light"] .hero__box,
html[data-theme="light"] .product__img {
  background: transparent !important;
}
@media (max-width: 1180px) {
  .hero__spool { width: min(72%, 420px); left: 2%; }
  .hero__pack-wrap { width: min(42%, 240px); }
}
@media (max-width: 640px) {
  .hero__scene { overflow: hidden; height: 420px; min-height: 400px; }
  .hero__spool { width: 80%; max-width: 320px; left: 0; }
  .hero__pack-wrap { width: 44%; max-width: 150px; top: 2%; right: 1%; }
  .hero__batch { width: calc(100% - 8px); max-width: none; right: 4px; bottom: 4px; }
}


/* GBUILD-0013: approved direction/product cards */
.dir-card__img {
  object-fit: contain !important;
  object-position: center;
  background: transparent !important;
  filter: none !important;
  padding: 10px;
}
html[data-theme="dark"] .dir-card__img {
  background: radial-gradient(circle at 50% 45%, #1a1e26 0%, #12151a 100%) !important;
}
html[data-theme="light"] .dir-card__img {
  background: linear-gradient(180deg, #fafbfc, #f0f2f6) !important;
}
.product__img {
  object-fit: contain !important;
  filter: none !important;
}


/* GBUILD-0014: PLA Black test card — no filter/crop */
.product__img {
  object-fit: contain !important;
  object-position: center center;
  filter: none !important;
  -webkit-filter: none !important;
  background: transparent !important;
  transform: none;
  max-height: 100%;
}
.product__visual {
  overflow: hidden;
  padding: 12px;
}


/* ========== GBUILD-0016: Hero geometry like site-v013 (separate spool + box) ========== */
.hero__composition { display: none !important; }

.hero__stage {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(420px, 1.55fr);
  gap: 12px 28px;
  align-items: center;
  min-height: 560px;
}

.hero__scene {
  position: relative;
  min-height: 540px;
  height: clamp(520px, 64vh, 680px);
  display: block;
  overflow: visible; /* full spool + box visible */
  max-width: 100%;
  border-radius: 0;
  background: transparent !important;
  /* leave room below so QC strip never overlays */
  margin-bottom: 8px;
}

html[data-theme="light"] .hero__scene {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}

.hero__spool {
  display: block !important;
  position: absolute;
  left: 0%;
  top: 50%;
  transform: translateY(-52%);
  width: min(76%, 500px);
  max-width: 520px;
  height: auto;
  z-index: 1;
  filter: drop-shadow(0 16px 32px rgba(0,0,0,.30)) !important;
  -webkit-filter: drop-shadow(0 16px 32px rgba(0,0,0,.30)) !important;
  pointer-events: none;
  user-select: none;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  object-fit: contain;
}

.hero__pack-wrap {
  display: block !important;
  position: absolute;
  right: 0%;
  top: 0%;
  width: min(40%, 270px);
  max-width: 280px;
  z-index: 2;
  filter: drop-shadow(0 14px 28px rgba(0,0,0,.26)) !important;
  background: transparent !important;
  /* visual gap from spool: kept by left/right positions */
}

html[data-theme="light"] .hero__pack-wrap {
  width: min(42%, 280px);
}

.hero__box {
  display: block !important;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  filter: none !important;
}

.hero__batch {
  position: absolute;
  right: 0%;
  bottom: 0%;
  z-index: 4;
  width: min(72%, 300px);
  max-width: 300px;
  display: grid;
  grid-template-columns: 1fr 72px;
  gap: 12px;
  align-items: center;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  /* sits under the box, does not cover spool face/QR */
}

html[data-theme="light"] .hero__batch {
  background: #ffffff;
  border-color: rgba(255,106,0,.28);
  box-shadow: 0 12px 28px rgba(18, 25, 40, 0.1);
}

.qc-strip {
  position: relative;
  z-index: 1;
  margin-top: 20px;
  clear: both;
}

/* no invert / plates */
.hero__spool,
.hero__box,
.hero__batch .qr-big {
  filter: none !important;
  -webkit-filter: none !important;
}
.hero__spool {
  filter: drop-shadow(0 16px 32px rgba(0,0,0,.30)) !important;
}
.hero__pack-wrap {
  filter: drop-shadow(0 14px 28px rgba(0,0,0,.26)) !important;
}

@media (max-width: 1180px) {
  .hero__stage { grid-template-columns: 1fr; min-height: 0; }
  .hero__scene { height: 480px; min-height: 460px; }
  .hero__spool { width: min(68%, 400px); left: 2%; }
  .hero__pack-wrap { width: min(38%, 220px); top: 2%; right: 2%; }
  .hero__batch { max-width: 280px; width: min(70%, 280px); }
}

@media (max-width: 640px) {
  .hero__scene {
    height: auto;
    min-height: 0;
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: visible;
  }
  .hero__spool {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: min(88%, 320px);
    max-width: 320px;
    margin: 8px auto 0;
    order: 1;
  }
  .hero__pack-wrap {
    position: relative;
    right: auto;
    top: auto;
    width: min(55%, 180px);
    max-width: 180px;
    margin: -24px 0 12px auto; /* slightly overlapping look without covering face */
    margin-right: 8%;
    order: 2;
  }
  .hero__batch {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: none;
    margin: 8px 0 4px;
    order: 3;
  }
}


/* ========== GBUILD-0017: Hero2 single composition ========== */
.hero__spool,
.hero__pack-wrap,
.hero__box,
.hero__composition { display: none !important; }

.hero__scene {
  position: relative;
  min-height: 480px;
  height: clamp(460px, 58vh, 620px);
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  border-radius: 16px;
  margin-bottom: 8px;
}

/* Keep studio look of hero2; do NOT invert for light theme */
.hero__hero2 {
  display: block !important;
  width: 100%;
  height: 100%;
  max-height: 620px;
  object-fit: contain;
  object-position: center right;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  filter: none !important;
  -webkit-filter: none !important;
  mix-blend-mode: normal !important;
  pointer-events: none;
  user-select: none;
}

html[data-theme="light"] .hero__hero2 {
  filter: none !important;
  -webkit-filter: none !important;
}

html[data-theme="light"] .hero__scene {
  /* soft frame so dark studio plate doesn't look like a black bug */
  background: radial-gradient(ellipse 80% 70% at 60% 50%, #1a1a1c 0%, #0e0e10 100%) !important;
  box-shadow: 0 16px 40px rgba(18, 25, 40, 0.12);
}

.hero__batch {
  position: absolute;
  right: 2%;
  bottom: 3%;
  z-index: 5;
  width: min(70%, 300px);
  max-width: 300px;
  /* keep off spool face / product QR */
}

@media (max-width: 1180px) {
  .hero__stage { grid-template-columns: 1fr; }
  .hero__scene { height: 420px; min-height: 400px; }
  .hero__hero2 { max-height: 420px; object-position: center center; }
}

@media (max-width: 640px) {
  .hero__scene {
    height: auto;
    min-height: 0;
    flex-direction: column;
    padding-bottom: 0;
  }
  .hero__hero2 {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
  }
  .hero__batch {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: none;
    margin-top: 10px;
  }
}


/* ========== GBUILD-0018: production Hero hero5/hero6 ========== */
.hero.hero--production {
  position: relative;
  padding: 0 0 24px;
  min-height: 0;
  overflow: hidden;
  background: #0b0d10;
}
html[data-theme="light"] .hero.hero--production {
  background: #e8eaee;
}

.hero--production .hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero--production .hero__prod {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right; /* keep spool + box */
  filter: none !important;
  -webkit-filter: none !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.hero--production .hero__prod--light { display: none !important; }
.hero--production .hero__prod--dark { display: block !important; }
html[data-theme="light"] .hero--production .hero__prod--light { display: block !important; }
html[data-theme="light"] .hero--production .hero__prod--dark { display: none !important; }

/* subtle gradient so left glass text is readable without big opaque slab */
.hero--production .hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(8, 10, 14, 0.72) 0%,
    rgba(8, 10, 14, 0.35) 32%,
    rgba(8, 10, 14, 0.08) 52%,
    transparent 68%
  );
  pointer-events: none;
}
html[data-theme="light"] .hero--production .hero__bg::after {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.78) 0%,
    rgba(255, 255, 255, 0.45) 30%,
    rgba(255, 255, 255, 0.12) 50%,
    transparent 66%
  );
}

.hero--production .hero__stage {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: 16px;
  align-items: center;
  min-height: clamp(520px, 72vh, 720px);
  padding-top: 36px;
  padding-bottom: 24px;
}

.hero--production .hero__copy--glass {
  background: rgba(12, 14, 18, 0.48);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 22px 22px 20px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  max-width: 420px;
}
html[data-theme="light"] .hero--production .hero__copy--glass {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(18, 25, 40, 0.08);
  box-shadow: 0 14px 36px rgba(18, 25, 40, 0.1);
}

.hero--production .hero__right {
  min-height: 1px; /* reserved for product visibility in photo */
}

/* batch under products, not covering spool/box */
.hero--production .hero__batch-row {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: flex-end;
  margin-top: -48px;
  margin-bottom: 12px;
  pointer-events: none;
}
.hero--production .hero__batch-row .hero__batch {
  pointer-events: auto;
  position: relative;
  right: auto;
  bottom: auto;
  width: min(100%, 320px);
  max-width: 320px;
  margin: 0;
}

.hero--production .qc-strip {
  position: relative;
  z-index: 2;
  margin-top: 8px;
}

/* hide legacy hero pieces from older GBUILD CSS */
.hero--production .hero__scene,
.hero--production .hero__spool,
.hero--production .hero__pack-wrap,
.hero--production .hero__box,
.hero--production .hero__hero2,
.hero--production .hero__composition {
  display: none !important;
}

@media (max-width: 1180px) {
  .hero--production .hero__stage {
    grid-template-columns: 1fr;
    min-height: clamp(480px, 70vh, 640px);
  }
  .hero--production .hero__prod {
    object-position: 70% center;
  }
  .hero--production .hero__batch-row {
    margin-top: 8px;
    justify-content: stretch;
  }
  .hero--production .hero__batch-row .hero__batch {
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 640px) {
  .hero--production .hero__stage {
    min-height: 360px;
    padding-top: 20px;
  }
  .hero--production .hero__prod {
    object-fit: cover;
    object-position: 78% 40%; /* keep products + some lines */
  }
  .hero--production .hero__copy--glass {
    max-width: none;
    padding: 16px;
  }
  .hero--production .hero__title .hero__line {
    font-size: clamp(36px, 10vw, 48px);
  }
  .hero--production .hero__batch-row {
    margin-top: 0;
  }
}


/* ========== GBUILD-0019: no overlays on spool/box + adaptive stack ========== */
.hero.hero--production {
  position: relative;
  padding: 0 0 28px;
  overflow: hidden;
  background: var(--bg);
}

/* MEDIA: only photo + optional left glass (never over product safe-zone) */
.hero--production .hero__media {
  position: relative;
  width: 100%;
  /* ~15–18% shorter than previous full-bleed 72vh */
  height: clamp(420px, 58vh, 580px);
  overflow: hidden;
  background: #0b0d10;
}
html[data-theme="light"] .hero--production .hero__media {
  background: #dfe3e8;
}

.hero--production .hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero--production .hero__prod {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* bias right so spool+box stay fully in frame */
  object-position: 72% 50%;
  filter: none !important;
  -webkit-filter: none !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}
.hero--production .hero__prod--light { display: none !important; }
.hero--production .hero__prod--dark { display: block !important; }
html[data-theme="light"] .hero--production .hero__prod--light { display: block !important; }
html[data-theme="light"] .hero--production .hero__prod--dark { display: none !important; }

/* soft left vignette for text contrast only — does not cover right product zone */
.hero--production .hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(8, 10, 14, 0.78) 0%,
    rgba(8, 10, 14, 0.42) 22%,
    rgba(8, 10, 14, 0.1) 38%,
    transparent 48%
  );
}
html[data-theme="light"] .hero--production .hero__bg::after {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.88) 0%,
    rgba(255, 255, 255, 0.5) 22%,
    rgba(255, 255, 255, 0.12) 38%,
    transparent 48%
  );
}

.hero--production .hero__stage--overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(260px, 380px) minmax(0, 1fr);
  gap: 0;
  align-items: center;
  pointer-events: none;
  padding-block: 28px;
}
.hero--production .hero__stage--overlay .hero__copy {
  pointer-events: auto;
}

/* right column = protected product zone — no HTML */
.hero--production .hero__safe-zone {
  min-width: 0;
  min-height: 100%;
  pointer-events: none;
}

.hero--production .hero__copy--glass {
  background: rgba(12, 14, 18, 0.52);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 20px 20px 18px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25);
  max-width: 380px;
}
html[data-theme="light"] .hero--production .hero__copy--glass {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(18, 25, 40, 0.08);
  box-shadow: 0 12px 28px rgba(18, 25, 40, 0.08);
}

/* BELOW media: batch + QC — never overlapping image products */
.hero--production .hero__below {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 4px;
}
.hero--production .hero__copy--stack { order: 1; }
.hero--production .hero__batch { order: 2; }
.hero--production .qc-strip { order: 3; }


/* stack copy hidden on desktop (glass used instead) */
.hero--production .hero__copy--stack {
  display: none;
}

.hero--production .hero__batch {
  position: relative !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  top: auto !important;
  width: 100%;
  max-width: 420px;
  margin: 0;
  z-index: 1;
  justify-self: end;
}

.hero--production .qc-strip {
  position: relative;
  z-index: 1;
  margin-top: 4px;
  margin-bottom: 0;
}

/* kill old negative-margin batch overlay from 0018 */
.hero--production .hero__batch-row {
  display: none !important;
}

/* ===== Mobile: image first → text → batch → QC ===== */
@media (max-width: 900px) {
  .hero--production .hero__media {
    height: clamp(300px, 48vh, 420px);
  }
  .hero--production .hero__prod {
    object-position: 80% 45%;
  }
  /* no overlay text on image on mobile */
  .hero--production .hero__stage--overlay {
    display: none !important;
  }
  .hero--production .hero__bg::after {
    display: none;
  }
  .hero--production .hero__copy--stack {
    display: grid;
    gap: 10px;
    padding: 4px 0 8px;
  }
  .hero--production .hero__batch {
    justify-self: stretch;
    max-width: none;
  }
  .hero--production .qc-strip {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .hero--production .qc-item {
    text-align: left;
    display: grid;
    grid-template-columns: 40px 1fr;
    grid-template-rows: auto auto;
    column-gap: 12px;
    align-items: center;
    padding: 12px 14px;
  }
  .hero--production .qc-item__ico {
    grid-row: 1 / span 2;
    margin: 0;
  }
  .hero--production .qc-item__title {
    margin: 0;
  }
}

@media (max-width: 640px) {
  .hero--production .hero__media {
    height: clamp(260px, 42vh, 360px);
  }
  .hero--production .hero__title .hero__line {
    font-size: clamp(34px, 9vw, 44px);
  }
}


/* GBUILD-0020: compact glass panel + brand title one line */
.hero--production .hero__stage--overlay {
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr) !important;
}
.hero--production .hero__copy--glass {
  max-width: 320px !important;
  padding: 14px 16px 12px !important;
  border-radius: 14px !important;
}
.hero--production .hero__copy--glass .hero__title {
  margin: 0 0 8px !important;
}
.hero--production .hero__line--brand {
  display: block;
  white-space: nowrap !important;
  font-size: clamp(28px, 2.8vw, 40px) !important;
  line-height: 1.05 !important;
  overflow: hidden;
  text-overflow: clip;
  max-width: 100%;
}
.hero--production .hero__line--brand .hero__rf {
  color: var(--orange) !important;
  white-space: nowrap;
}
.hero--production .hero__line--pro {
  font-size: clamp(26px, 2.5vw, 36px) !important;
  line-height: 1.05 !important;
  margin-top: 2px;
}
.hero--production .hero__tagline {
  margin: 0 0 8px !important;
  font-size: 15px !important;
}
.hero--production .hero__lead-list {
  gap: 5px !important;
  margin: 0 0 12px !important;
}
.hero--production .hero__lead-list li {
  font-size: 13px !important;
  padding-left: 22px !important;
}
.hero--production .hero__cta {
  gap: 8px !important;
  margin-bottom: 10px !important;
}
.hero--production .hero__cta .btn {
  padding: 8px 14px !important;
  font-size: 13px !important;
}
.hero--production .hero__badges {
  gap: 6px !important;
}
.hero--production .hero__badges li {
  padding: 4px 8px !important;
  font-size: 11px !important;
}
.hero--production .hero__copy--stack .hero__line--brand {
  white-space: nowrap !important;
  font-size: clamp(28px, 8vw, 36px) !important;
}


/* ========== GBUILD-0021: clean banner + info below ========== */
.hero.hero--clean {
  padding: 0 0 28px;
  background: var(--bg);
  min-height: 0;
  overflow: hidden;
}
.hero--clean .hero__banner {
  width: 100%;
  line-height: 0;
  background: var(--bg);
  /* no glass, no overlays */
}
.hero--clean .hero__banner-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(62vh, 560px);
  object-fit: contain;
  object-position: center center;
  filter: none !important;
  -webkit-filter: none !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.hero--clean .hero__banner-img--light { display: none !important; }
.hero--clean .hero__banner-img--dark { display: block !important; }
html[data-theme="light"] .hero--clean .hero__banner-img--light { display: block !important; }
html[data-theme="light"] .hero--clean .hero__banner-img--dark { display: none !important; }

/* hide old production/glass structures if residual CSS */
.hero--clean .hero__media,
.hero--clean .hero__stage,
.hero--clean .hero__copy--glass,
.hero--clean .hero__copy--stack,
.hero--clean .hero__bg,
.hero--clean .hero__prod {
  display: none !important;
}

.hero--clean .hero__info {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.85fr);
  gap: 20px 28px;
  align-items: start;
  padding-top: 22px;
  padding-bottom: 8px;
  background: transparent;
}
.hero--clean .hero__kicker {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--orange);
}
.hero--clean .hero__tagline--info {
  margin: 0 0 14px;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  color: var(--text);
}
.hero--clean .hero__benefits {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 8px;
}
.hero--clean .hero__benefits li {
  position: relative;
  padding-left: 24px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.4;
}
.hero--clean .hero__benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--orange);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.2l2.8 2.8 6-6'/%3E%3C/svg%3E");
  background-size: 10px 10px;
  background-position: center;
  background-repeat: no-repeat;
}
.hero--clean .hero__info-check {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 16px 14px;
  box-shadow: var(--shadow);
}
html[data-theme="light"] .hero--clean .hero__info-check {
  background: #fff;
  box-shadow: 0 10px 24px rgba(18, 25, 40, 0.06);
}
.hero--clean .hero__check-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
}
.hero--clean .hero__check-text {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}
.hero--clean .qc-strip {
  margin-top: 16px;
}

@media (max-width: 900px) {
  .hero--clean .hero__banner-img {
    max-height: min(48vh, 360px);
    object-fit: cover;
    object-position: 78% 50%;
  }
  .hero--clean .hero__info {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .hero--clean .qc-strip {
    grid-template-columns: 1fr;
  }
  .hero--clean .qc-item {
    text-align: left;
    display: grid;
    grid-template-columns: 40px 1fr;
    column-gap: 12px;
    align-items: center;
  }
  .hero--clean .qc-item__ico {
    margin: 0;
    grid-row: 1 / span 2;
  }
}


/* ========== GBUILD-0022: sticky header ========== */
html {
  scroll-padding-top: calc(var(--header-h) + 16px);
}
.proto-banner {
  position: relative;
  z-index: 51;
}
.header {
  position: sticky !important;
  top: 0 !important;
  z-index: 50 !important;
  background: var(--header-bg) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease, background .2s ease;
}
.header.is-scrolled {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}
html[data-theme="light"] .header.is-scrolled {
  box-shadow: 0 8px 22px rgba(18, 25, 40, 0.1);
}
/* modal above header */
.modal {
  z-index: 200 !important;
}
.nav.is-open {
  z-index: 60;
}
@media (max-width: 980px) {
  :root { --header-h: 64px; }
  .header__inner {
    min-height: 56px;
    padding-block: 4px;
  }
}


/* ========== GBUILD-0023: compact zones under banner, catalog next ========== */
.hero.hero--compact {
  padding: 0 0 12px;
  background: var(--bg);
  min-height: 0;
}
.hero--compact .hero__banner {
  width: 100%;
  line-height: 0;
  background: var(--bg);
}
.hero--compact .hero__banner-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(56vh, 520px);
  object-fit: contain;
  object-position: center center;
  filter: none !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.hero--compact .hero__banner-img--light { display: none !important; }
.hero--compact .hero__banner-img--dark { display: block !important; }
html[data-theme="light"] .hero--compact .hero__banner-img--light { display: block !important; }
html[data-theme="light"] .hero--compact .hero__banner-img--dark { display: none !important; }

/* hide previous clean/info layouts if residual */
.hero--compact .hero__info,
.hero--compact .hero__media,
.hero--compact .hero__copy--glass {
  display: none !important;
}

.hero--compact .hero__zones {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.9fr);
  gap: 14px 20px;
  align-items: stretch;
  padding-top: 14px;
  padding-bottom: 10px;
}
.hero--compact .hero__zone--left {
  min-width: 0;
}
.hero--compact .hero__kicker {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--orange);
}
.hero--compact .hero__tagline--info {
  margin: 0 0 10px;
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 700;
}
.hero--compact .hero__benefits {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: grid;
  gap: 6px;
}
.hero--compact .hero__benefits li {
  position: relative;
  padding-left: 22px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--text);
}
.hero--compact .hero__benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--orange);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.2l2.8 2.8 6-6'/%3E%3C/svg%3E");
  background-size: 9px 9px;
  background-position: center;
  background-repeat: no-repeat;
}
.hero--compact .hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}
.hero--compact .hero__cta .btn {
  padding: 9px 16px;
  font-size: 13px;
}

.hero--compact .hero__zone--check {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
  align-self: start;
}
html[data-theme="light"] .hero--compact .hero__zone--check {
  background: #fff;
  box-shadow: 0 8px 20px rgba(18, 25, 40, 0.06);
}
.hero--compact .hero__check-title {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
}
.hero--compact .hero__check-text {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
}

/* static QC badges strip */
.hero--compact .hero__qc {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding-top: 4px;
  padding-bottom: 8px;
}
.hero--compact .hero__qc-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  padding: 10px 6px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
  pointer-events: none; /* not interactive */
  user-select: none;
}
html[data-theme="light"] .hero--compact .hero__qc-item {
  background: #fff;
  box-shadow: 0 4px 12px rgba(18, 25, 40, 0.04);
}
.hero--compact .hero__qc-item img {
  width: 28px;
  height: 28px;
  filter: none !important;
}

/* catalog immediately under hero — tighter top padding */
.hero--compact + .section#catalog,
#catalog.section {
  padding-top: 28px;
}

@media (max-width: 900px) {
  .hero--compact .hero__banner-img {
    max-height: min(46vh, 340px);
    object-fit: cover;
    object-position: 80% 50%;
  }
  .hero--compact .hero__zones {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .hero--compact .hero__qc {
    grid-template-columns: 1fr 1fr;
  }
  .hero--compact .hero__qc-item:last-child {
    grid-column: 1 / -1;
  }
}
@media (max-width: 480px) {
  .hero--compact .hero__qc {
    grid-template-columns: 1fr;
  }
  .hero--compact .hero__qc-item:last-child {
    grid-column: auto;
  }
}


/* GBUILD-0022 fix: overflow-x:hidden breaks sticky — use clip */
html {
  overflow-x: clip !important;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  overflow-x: clip !important;
  max-width: 100vw;
}
.header {
  position: sticky !important;
  top: 0 !important;
  z-index: 50 !important;
}


/* ========== GBUILD-0027: selling Hero + no catalog rail ========== */
.hero.hero--sell {
  position: relative;
  padding: 0 0 10px;
  background: var(--bg);
  min-height: 0;
}

.hero--sell .hero__stage-sell {
  position: relative;
  width: 100%;
  line-height: 0;
  background: var(--bg);
  overflow: hidden;
}

.hero--sell .hero__banner {
  width: 100%;
  line-height: 0;
  background: var(--bg);
}

.hero--sell .hero__banner-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(54vh, 500px);
  object-fit: contain;
  object-position: center center;
  filter: none !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.hero--sell .hero__banner-img--light { display: none !important; }
.hero--sell .hero__banner-img--dark { display: block !important; }
html[data-theme="light"] .hero--sell .hero__banner-img--light { display: block !important; }
html[data-theme="light"] .hero--sell .hero__banner-img--dark { display: none !important; }

/* trust chips: desktop top-right of banner; mobile after sell/check (DOM order) */
.hero--sell .hero__trust {
  position: absolute;
  top: 12px;
  right: 16px;
  left: auto;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  width: auto;
  max-width: min(48%, 420px);
  margin: 0;
  padding: 0;
  list-style: none;
  pointer-events: none;
  line-height: 1.2;
}

.hero--sell .hero__trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .01em;
  color: #fff;
  background: rgba(12, 16, 22, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  white-space: nowrap;
}

html[data-theme="light"] .hero--sell .hero__trust-item {
  color: #1a2230;
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(18, 25, 40, 0.1);
  box-shadow: 0 4px 12px rgba(18, 25, 40, 0.1);
}

.hero--sell .hero__trust-ico {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  font-size: 11px;
  line-height: 1;
  color: var(--orange);
  flex-shrink: 0;
}

.hero--sell .hero__trust-ico--ru {
  width: 18px;
  height: 12px;
  border-radius: 2px;
  background: linear-gradient(
    to bottom,
    #fff 0 33.33%,
    #0039a6 33.33% 66.66%,
    #d52b1e 66.66% 100%
  );
  border: 1px solid rgba(0, 0, 0, 0.12);
  font-size: 0;
}

/* sell zones under banner */
.hero--sell .hero__zones {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.85fr);
  gap: 12px 18px;
  align-items: stretch;
  padding-top: 12px;
  padding-bottom: 8px;
}

.hero--sell .hero__zone--left { min-width: 0; }

.hero--sell .hero__kicker {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--orange);
}

.hero--sell .hero__tagline--info {
  margin: 0 0 10px;
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 700;
  color: var(--text);
}

.hero--sell .hero__benefits {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: grid;
  gap: 6px;
}

.hero--sell .hero__benefits li {
  position: relative;
  padding-left: 22px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--text);
}

.hero--sell .hero__benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--orange);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.2l2.8 2.8 6-6'/%3E%3C/svg%3E");
  background-size: 9px 9px;
  background-position: center;
  background-repeat: no-repeat;
}

.hero--sell .hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.hero--sell .hero__cta .btn {
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  min-width: 148px;
  justify-content: center;
}

.hero--sell .hero__zone--check {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

html[data-theme="light"] .hero--sell .hero__zone--check {
  background: #fff;
  box-shadow: 0 8px 20px rgba(18, 25, 40, 0.06);
}

.hero--sell .hero__check-title {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
}

.hero--sell .hero__check-text {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
}

/* QC strip */
.hero--sell .hero__qc {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding-top: 4px;
  padding-bottom: 6px;
}

.hero--sell .hero__qc-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  padding: 10px 6px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
  pointer-events: none;
  user-select: none;
}

html[data-theme="light"] .hero--sell .hero__qc-item {
  background: #fff;
  box-shadow: 0 4px 12px rgba(18, 25, 40, 0.04);
}

.hero--sell .hero__qc-item img {
  width: 26px;
  height: 26px;
  filter: none !important;
}

/* catalog immediately after Hero; no right rail */
.hero--sell + .section#catalog,
#catalog.section {
  padding-top: 24px;
}

.catalog-layout {
  grid-template-columns: 220px minmax(0, 1fr) !important;
}

.catalog-rail {
  display: none !important;
}

@media (max-width: 1180px) {
  .catalog-layout {
    grid-template-columns: 200px minmax(0, 1fr) !important;
  }
}

@media (max-width: 900px) {
  .hero--sell .hero__banner-img {
    max-height: min(44vh, 320px);
    object-fit: cover;
    object-position: 78% 50%;
  }

  /* mobile order: banner → sell → check → trust → QC (DOM) */
  .hero--sell .hero__trust {
    position: static;
    max-width: none;
    width: min(100% - 32px, var(--max));
    margin: 4px auto 0;
    justify-content: flex-start;
    padding: 0 0 4px;
    gap: 6px;
    pointer-events: none;
  }

  .hero--sell .hero__trust-item {
    font-size: 10px;
    padding: 5px 8px;
  }

  .hero--sell .hero__zones {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero--sell .hero__cta .btn {
    flex: 1 1 auto;
    min-width: 0;
  }

  .hero--sell .hero__qc {
    grid-template-columns: 1fr 1fr;
  }

  .hero--sell .hero__qc-item:last-child {
    grid-column: 1 / -1;
  }

  .catalog-layout {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 480px) {
  .hero--sell .hero__qc {
    grid-template-columns: 1fr;
  }
  .hero--sell .hero__qc-item:last-child {
    grid-column: auto;
  }
  .hero--sell .hero__trust {
    flex-direction: column;
    align-items: stretch;
  }
  .hero--sell .hero__trust-item {
    white-space: normal;
  }
}

/* ========== GBUILD-0028: vertical trust + production power ========== */
.hero--sell .hero__trust {
  flex-direction: column;
  align-items: flex-end;
  max-width: min(36%, 280px);
  gap: 8px;
}
.hero--sell .hero__trust-item {
  white-space: normal;
  max-width: 260px;
}
.hero--sell .hero__trust-item--power .hero__trust-text {
  display: grid;
  gap: 2px;
}
.hero--sell .hero__trust-item--power strong {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .01em;
}
.hero--sell .hero__trust-item--power em {
  font-style: normal;
  font-size: 10px;
  font-weight: 600;
  opacity: .9;
}
@media (max-width: 900px) {
  .hero--sell .hero__trust {
    flex-direction: column;
    align-items: stretch;
    max-width: none;
  }
  .hero--sell .hero__trust-item {
    max-width: none;
  }
}


/* ========== GBUILD-0029: CTA hierarchy ========== */
.hero--sell .hero__cta {
  margin: 0 0 12px;
}
.hero--sell .hero__cta .btn--primary {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
  box-shadow: 0 6px 16px rgba(255, 106, 0, 0.28);
}
.hero--sell .hero__cta .btn--cta-secondary,
.hero--sell .hero__cta .btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: none;
  font-weight: 600;
}
html[data-theme="light"] .hero--sell .hero__cta .btn--cta-secondary {
  background: #fff;
  border-color: #d5dbe6;
  color: #1a2230;
}

/* ========== GBUILD-0030: final Hero + single-line nav ========== */
.nav.nav--row {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 2px 12px;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  min-width: 0;
}
.nav.nav--row a {
  padding: 6px 4px;
  border-radius: 8px;
  color: var(--muted);
  transition: color .15s ease, background .15s ease;
}
.nav.nav--row a:hover {
  color: var(--text);
  background: transparent;
}
.nav.nav--row a:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}
.mobile-nav-action { display: none; }
.header__inner {
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px 14px;
}
.header__actions .hact span:not(.hact__ico):not(.cart-count) {
  /* keep labels where space allows */
}

.hero.hero--final {
  position: relative;
  padding: 0 0 8px;
  background: var(--bg);
}
.hero--final .hero__stage-final {
  position: relative;
  width: 100%;
  line-height: 0;
  overflow: hidden;
  background: var(--bg);
}
.hero--final .hero__banner-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(56vh, 520px);
  object-fit: contain;
  object-position: center center;
  filter: none !important;
  background: transparent !important;
}
.hero--final .hero__banner-img--light { display: none !important; }
.hero--final .hero__banner-img--dark { display: block !important; }
html[data-theme="light"] .hero--final .hero__banner-img--light { display: block !important; }
html[data-theme="light"] .hero--final .hero__banner-img--dark { display: none !important; }

/* CTA float: left safe zone of banner */
.hero--final .hero__cta-float {
  position: absolute;
  left: max(16px, 3%);
  top: 18%;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 34%;
  line-height: 1.2;
}
.hero--final .hero__cta-float .btn--primary {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
  box-shadow: 0 6px 16px rgba(255, 106, 0, 0.3);
  font-weight: 800;
}
.hero--final .hero__cta-float .btn--cta-secondary {
  background: rgba(12, 16, 22, 0.55);
  color: #fff;
  border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
html[data-theme="light"] .hero--final .hero__cta-float .btn--cta-secondary {
  background: rgba(255,255,255,.88);
  color: #1a2230;
  border-color: rgba(18,25,40,.12);
}

/* compact QR between lines and spool — left-center, not over product */
.hero--final .hero__qr-check {
  position: absolute;
  left: 38%;
  top: 42%;
  transform: translate(-50%, -50%);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(12, 16, 22, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  cursor: pointer;
  max-width: 220px;
  text-align: left;
  line-height: 1.25;
  box-shadow: 0 8px 20px rgba(0,0,0,.28);
}
html[data-theme="light"] .hero--final .hero__qr-check {
  background: rgba(255,255,255,.9);
  color: #1a2230;
  border-color: rgba(18,25,40,.1);
  box-shadow: 0 8px 18px rgba(18,25,40,.12);
}
.hero--final .hero__qr-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
  flex-shrink: 0;
  filter: none !important;
}
.hero--final .hero__qr-copy {
  display: grid;
  gap: 2px;
}
.hero--final .hero__qr-copy strong {
  font-size: 12px;
  font-weight: 800;
}
.hero--final .hero__qr-copy em {
  font-style: normal;
  font-size: 10px;
  opacity: .85;
}

/* trust top-right vertical */
.hero--final .hero__trust--final {
  position: absolute;
  top: 10px;
  right: 14px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  max-width: min(34%, 280px);
  margin: 0;
  padding: 0;
  list-style: none;
  line-height: 1.2;
  pointer-events: none;
}
.hero--final .hero__trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: rgba(12, 16, 22, 0.72);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
html[data-theme="light"] .hero--final .hero__trust-item {
  color: #1a2230;
  background: rgba(255,255,255,.88);
  border-color: rgba(18,25,40,.1);
}
.hero--final .hero__trust-item--kicker {
  border-radius: 10px;
  font-size: 10px;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255, 106, 0, 0.92);
  border-color: transparent;
}
html[data-theme="light"] .hero--final .hero__trust-item--kicker {
  color: #fff;
  background: rgba(255, 106, 0, 0.95);
}
.hero--final .hero__trust-item--power .hero__trust-text {
  display: grid;
  gap: 1px;
}
.hero--final .hero__trust-item--power strong { font-size: 11px; }
.hero--final .hero__trust-item--power em {
  font-style: normal;
  font-size: 10px;
  font-weight: 600;
  opacity: .9;
}
.hero--final .hero__trust-ico {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  color: var(--orange);
  flex-shrink: 0;
}
.hero--final .hero__trust-ico--ru {
  width: 18px;
  height: 12px;
  border-radius: 2px;
  background: linear-gradient(to bottom, #fff 0 33.33%, #0039a6 33.33% 66.66%, #d52b1e 66.66% 100%);
  border: 1px solid rgba(0,0,0,.12);
  font-size: 0;
}

/* QC icons only */
.hero--final .hero__qc--icons {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(12, 16, 22, 0.55);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
  width: auto;
  max-width: none;
  margin: 0;
}
html[data-theme="light"] .hero--final .hero__qc--icons {
  background: rgba(255,255,255,.82);
  border-color: rgba(18,25,40,.1);
}
.hero--final .hero__qc--icons .hero__qc-item {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  display: grid;
  place-items: center;
}
.hero--final .hero__qc--icons .hero__qc-item img {
  width: 26px;
  height: 26px;
  filter: none !important;
}

/* mobile stack: hide overlays, show stack */
.hero--final .hero__mobile-stack { display: none; }

.hero--final + .section#catalog { padding-top: 24px; }

@media (max-width: 1100px) {
  .nav.nav--row { gap: 0 8px; font-size: 12px; }
  .hero--final .hero__cta-float { max-width: 40%; }
  .hero--final .hero__qr-check { left: 34%; max-width: 200px; }
}

@media (max-width: 980px) {
  .nav.nav--row { display: none; }
  .nav.nav--row.is-open {
    display: flex;
    flex-wrap: wrap;
    white-space: normal;
    position: absolute;
    left: 16px; right: 16px;
    top: calc(var(--header-h) + 8px);
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px;
    z-index: 60;
  }
  .nav-toggle { display: inline-flex; }
}

@media (max-width: 900px) {
  .hero--final .hero__cta-float,
  .hero--final .hero__qr-check:not(.hero__qr-check--mobile),
  .hero--final .hero__trust--final,
  .hero--final .hero__qc--icons:not(.hero__qc--mobile) {
    display: none !important;
  }
  .hero--final .hero__mobile-stack {
    display: grid;
    gap: 10px;
    padding-top: 12px;
    padding-bottom: 6px;
  }
  .hero--final .hero__cta--mobile {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .hero--final .hero__cta--mobile .btn { flex: 1 1 auto; min-width: 0; justify-content: center; }
  .hero--final .hero__qr-check--mobile {
    position: static;
    transform: none;
    width: 100%;
    max-width: none;
  }
  .hero--final .hero__trust--mobile {
    position: static;
    max-width: none;
    width: 100%;
    align-items: stretch;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .hero--final .hero__qc--mobile {
    position: static;
    transform: none;
    justify-content: center;
    width: max-content;
    margin-inline: auto;
  }
  .hero--final .hero__banner-img {
    max-height: min(42vh, 300px);
    object-fit: cover;
    object-position: 78% 50%;
  }
}


/* GBUILD-0031 */
.color-filter-list {
  display: grid;
  gap: 6px;
  /* Показываем примерно десять цветов без прокрутки; остальные остаются доступны ниже. */
  max-height: 300px;
  overflow: auto;
  padding-right: 4px;
}
.product__series-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  background: rgba(42, 111, 154, 0.92);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  padding: 4px 8px;
  border-radius: 999px;
}


/* ========== GBUILD-0032 polish ========== */
.product__source--prep {
  background: rgba(80, 96, 120, 0.92);
  color: #fff;
}
.product__brand {
  margin: 0 0 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--orange);
}
.product__status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 6px 0;
}
.product__price {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
}
.product__demo-note {
  color: var(--muted);
  font-size: 11px;
}

/* Safer Hero overlays: keep left CTAs/QR away from spool (right), trust compact */
.hero--final .hero__cta-float {
  left: max(12px, 2%);
  top: 14%;
  max-width: min(32%, 340px);
}
.hero--final .hero__qr-check {
  left: 28%;
  top: 48%;
  max-width: 200px;
}
.hero--final .hero__trust--final {
  max-width: min(30%, 250px);
  top: 8px;
  right: 10px;
  gap: 5px;
}
.hero--final .hero__trust-item {
  font-size: 10px;
  padding: 5px 9px;
}
.hero--final .hero__qc--icons {
  bottom: 8px;
  gap: 6px;
  padding: 5px 8px;
}
@media (max-width: 1100px) {
  .hero--final .hero__qr-check { left: 30%; }
}


/* GBUILD-0033 color chips */
.catalog-color-note {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.section--catalog .catalog-color-note[data-glow-photo-note] {
  display: block;
}
.color-chip-label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.color-chip {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(127,127,127,.45);
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.15);
}


/* ========== GBUILD-0035: hero--flow — content-sized, no absolute overlays ========== */
:root {
  --header-h: 72px;
  --hero-gap: 12px;
  --catalog-gap-top: 20px;
}
html {
  scroll-padding-top: calc(var(--header-h) + 12px);
  overflow-x: clip;
}
body { overflow-x: clip; }
#catalog,
#batch-check,
#b2b,
#support,
#about,
#contacts,
#directions {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.hero.hero--flow {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 0 8px;
  margin: 0;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  background: var(--bg);
  overflow: visible;
}
.hero--flow .hero__banner {
  width: 100%;
  line-height: 0;
  background: var(--bg);
}
.hero--flow .hero__banner-img {
  display: block;
  width: 100%;
  height: auto !important;
  max-height: min(42vh, 480px);
  object-fit: contain;
  object-position: center center;
  filter: none !important;
  background: transparent !important;
}
.hero--flow .hero__banner-img--light { display: none !important; }
.hero--flow .hero__banner-img--dark { display: block !important; }
html[data-theme="light"] .hero--flow .hero__banner-img--light { display: block !important; }
html[data-theme="light"] .hero--flow .hero__banner-img--dark { display: none !important; }

.hero--flow .hero__flow-body {
  display: grid;
  gap: var(--hero-gap);
  padding-top: 14px;
  padding-bottom: 4px;
}
.hero--flow .hero__flow-top {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(220px, 0.9fr);
  gap: 14px 20px;
  align-items: start;
}
.hero--flow .hero__kicker {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--orange);
}
.hero--flow .hero__tagline {
  margin: 0 0 12px;
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 700;
  color: var(--text);
}
.hero--flow .hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hero--flow .hero__cta .btn--primary {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(255,106,0,.28);
}
.hero--flow .hero__cta .btn--cta-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  font-weight: 600;
}
html[data-theme="light"] .hero--flow .hero__cta .btn--cta-secondary {
  background: #fff;
}

.hero--flow .hero__trust {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.hero--flow .hero__trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  font-size: 12px;
  font-weight: 700;
}
html[data-theme="light"] .hero--flow .hero__trust-item { background: #fff; }
.hero--flow .hero__trust-ico {
  width: 16px; height: 16px; display: grid; place-items: center; color: var(--orange); flex-shrink: 0;
}
.hero--flow .hero__trust-ico--ru {
  width: 18px; height: 12px; border-radius: 2px; font-size: 0;
  background: linear-gradient(to bottom, #fff 0 33.33%, #0039a6 33.33% 66.66%, #d52b1e 66.66% 100%);
  border: 1px solid rgba(0,0,0,.12);
}

.hero--flow .hero__flow-mid { display: flex; }
.hero--flow .hero__qr-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  max-width: 360px;
  box-shadow: var(--shadow);
}
html[data-theme="light"] .hero--flow .hero__qr-check { background: #fff; }
.hero--flow .hero__qr-img {
  width: 48px; height: 48px; object-fit: contain; border-radius: 6px; background: #fff; flex-shrink: 0;
  filter: none !important;
}
.hero--flow .hero__qr-copy { display: grid; gap: 2px; }
.hero--flow .hero__qr-copy strong { font-size: 13px; }
.hero--flow .hero__qr-copy em { font-style: normal; font-size: 11px; color: var(--muted); }

.hero--flow .hero__qc {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.hero--flow .hero__qc-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  padding: 10px 6px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  font-size: 11px;
  font-weight: 600;
  pointer-events: none;
  user-select: none;
}
html[data-theme="light"] .hero--flow .hero__qc-item { background: #fff; }
.hero--flow .hero__qc-item img { width: 24px; height: 24px; filter: none !important; }

.hero--flow + .section--catalog,
.section--catalog {
  padding-top: var(--catalog-gap-top) !important;
}

/* kill legacy absolute heroes if residual classes appear */
.hero--flow .hero__cta-float,
.hero--flow .hero__trust--final,
.hero--flow .hero__mobile-stack,
.hero--flow .hero__stage-final { display: none !important; }

@media (max-width: 1024px) {
  .hero--flow .hero__banner-img { max-height: min(38vh, 380px); }
  .hero--flow .hero__flow-top { grid-template-columns: 1fr; }
  .hero--flow .hero__qc { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  :root { --header-h: 64px; --catalog-gap-top: 16px; }
  .hero--flow .hero__banner-img {
    max-height: min(34vh, 280px);
    object-fit: cover;
    object-position: 78% 50%;
  }
  .hero--flow .hero__qc { grid-template-columns: 1fr 1fr; }
  .hero--flow .hero__qc-item:last-child { grid-column: 1 / -1; }
  .hero--flow .hero__cta .btn { flex: 1 1 auto; justify-content: center; }
}
@media (max-width: 480px) {
  .hero--flow .hero__qc { grid-template-columns: 1fr; }
  .hero--flow .hero__qc-item:last-child { grid-column: auto; }
}
@media (max-height: 700px) {
  .hero--flow .hero__banner-img { max-height: min(32vh, 260px); }
}


/* ========== GBUILD-0036: compose Hero — grid, no overlays on products ========== */
.hero.hero--compose {
  padding: 12px 0 8px;
  margin: 0;
  min-height: 0 !important;
  height: auto !important;
  background: var(--bg);
  overflow: visible;
}
.hero--compose .hero__compose {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(0, 1.35fr);
  grid-template-areas:
    "copy trust"
    "copy scene"
    "qc qc";
  gap: 12px 24px;
  align-items: start;
}
.hero--compose .hero__compose-copy { grid-area: copy; display: grid; gap: 12px; align-content: start; }
.hero--compose .hero__trust { grid-area: trust; justify-self: end; max-width: 280px; width: 100%; }
.hero--compose .hero__scene-compose { grid-area: scene; }
.hero--compose .hero__qc { grid-area: qc; }

.hero--compose .hero__kicker {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--orange);
}
.hero--compose .hero__tagline {
  margin: 0;
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 700;
}
.hero--compose .hero__cta { display: flex; flex-wrap: wrap; gap: 8px; }
.hero--compose .hero__cta .btn--primary {
  background: var(--orange); color: #fff; border-color: var(--orange); font-weight: 800;
  box-shadow: 0 6px 16px rgba(255,106,0,.28);
}
.hero--compose .hero__cta .btn--cta-secondary {
  background: transparent; color: var(--text); border: 1px solid var(--line); font-weight: 600;
}
html[data-theme="light"] .hero--compose .hero__cta .btn--cta-secondary { background: #fff; }

.hero--compose .hero__qr-check {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--bg-elev); color: var(--text); cursor: pointer; text-align: left; max-width: 100%;
}
html[data-theme="light"] .hero--compose .hero__qr-check { background: #fff; }
.hero--compose .hero__qr-img { width: 48px; height: 48px; object-fit: contain; border-radius: 6px; background: #fff; filter: none !important; }
.hero--compose .hero__qr-copy { display: grid; gap: 2px; }
.hero--compose .hero__qr-copy strong { font-size: 13px; }
.hero--compose .hero__qr-copy em { font-style: normal; font-size: 11px; color: var(--muted); }

.hero--compose .hero__trust {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 6px;
}
.hero--compose .hero__trust-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg-elev); font-size: 12px; font-weight: 700;
}
html[data-theme="light"] .hero--compose .hero__trust-item { background: #fff; }
.hero--compose .hero__trust-ico { width: 16px; height: 16px; display: grid; place-items: center; color: var(--orange); }
.hero--compose .hero__trust-ico--ru {
  width: 18px; height: 12px; border-radius: 2px; font-size: 0;
  background: linear-gradient(to bottom, #fff 0 33.33%, #0039a6 33.33% 66.66%, #d52b1e 66.66% 100%);
  border: 1px solid rgba(0,0,0,.12);
}

.hero--compose .hero__scene-compose {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 8px;
  align-items: end;
  min-height: 0;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 40% 40%, rgba(255,106,0,.08), transparent 55%),
    var(--bg-elev);
}
html[data-theme="light"] .hero--compose .hero__scene-compose {
  background:
    radial-gradient(circle at 40% 40%, rgba(255,106,0,.06), transparent 55%),
    #fff;
}
.hero--compose .hero__scene-spool,
.hero--compose .hero__scene-box {
  width: 100%;
  height: auto;
  max-height: min(46vh, 420px);
  object-fit: contain;
  filter: none !important;
  background: transparent !important;
  display: block;
}
.hero--compose .hero__scene-box { max-height: min(38vh, 340px); }

.hero--compose .hero__qc {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.hero--compose .hero__qc-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  text-align: center; padding: 10px 6px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg-elev); font-size: 11px; font-weight: 600; pointer-events: none;
}
html[data-theme="light"] .hero--compose .hero__qc-item { background: #fff; }
.hero--compose .hero__qc-item img { width: 22px; height: 22px; filter: none !important; }

.hero--compose + .section--catalog { padding-top: 20px !important; }

@media (max-width: 1100px) {
  .hero--compose .hero__compose {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "copy trust"
      "scene scene"
      "qc qc";
  }
  .hero--compose .hero__trust { justify-self: stretch; max-width: none; }
}
@media (max-width: 768px) {
  .hero--compose .hero__compose {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "trust"
      "scene"
      "qc";
  }
  /* mobile order already matches: copy(includes cta+check) → trust → scene → qc */
  .hero--compose .hero__scene-compose { grid-template-columns: 1fr 1fr; }
  .hero--compose .hero__scene-spool,
  .hero--compose .hero__scene-box { max-height: 220px; }
  .hero--compose .hero__qc { grid-template-columns: 1fr 1fr; }
  .hero--compose .hero__qc-item:last-child { grid-column: 1 / -1; }
  .hero--compose .hero__cta .btn { flex: 1 1 auto; justify-content: center; }
}
@media (max-width: 480px) {
  .hero--compose .hero__scene-compose { grid-template-columns: 1fr; }
  .hero--compose .hero__qc { grid-template-columns: 1fr; }
  .hero--compose .hero__qc-item:last-child { grid-column: auto; }
}


/* GBUILD-0037 product preview */
.btn--eye { gap: 6px; }
.product-preview {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 16px;
  align-items: start;
}
.product-preview__media { display: grid; gap: 8px; }
.product-preview__img {
  width: 100%;
  max-height: min(52vh, 420px);
  object-fit: contain;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  filter: none !important;
}
.product-preview__thumbs { display: flex; flex-wrap: wrap; gap: 6px; }
.preview-thumb {
  width: 56px; height: 56px; padding: 2px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--bg-elev); cursor: pointer;
}
.preview-thumb.is-active { border-color: var(--orange); }
.preview-thumb img { width: 100%; height: 100%; object-fit: contain; filter: none !important; }
.product-preview__title { margin: 0 0 8px; font-size: 18px; }
.product-preview__row { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; }
.product-preview__list { margin: 0 0 10px; padding-left: 18px; display: grid; gap: 4px; font-size: 13px; }
.modal__dialog { max-height: min(92vh, 900px); overflow: auto; }
@media (max-width: 720px) {
  .product-preview { grid-template-columns: 1fr; }
  .product-preview__img { max-height: 46vh; }
  .modal__close { width: 44px; height: 44px; font-size: 24px; }
}


/* ========== GBUILD-0038: production plant Hero (hero7/hero8) ========== */
.hero.hero--plant {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 0 8px;
  margin: 0;
  min-height: 0 !important;
  height: auto !important;
  background: var(--bg);
  overflow: visible;
}

.hero--plant .hero__plant-stage {
  position: relative;
  width: 100%;
  isolation: isolate;
  overflow: hidden;
  background: #0c1016;
}
html[data-theme="light"] .hero--plant .hero__plant-stage {
  background: #e8ecf2;
}

.hero--plant .hero__plant-bg {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(52vh, 560px);
  object-fit: contain;
  object-position: center center;
  filter: none !important;
  -webkit-filter: none !important;
  background: transparent !important;
}

.hero--plant .hero__plant-bg--light { display: none !important; }
.hero--plant .hero__plant-bg--dark { display: block !important; }
html[data-theme="light"] .hero--plant .hero__plant-bg--light { display: block !important; }
html[data-theme="light"] .hero--plant .hero__plant-bg--dark { display: none !important; }

/* light theme: veil over production — do NOT remove plant */
.hero--plant .hero__plant-veil {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 1;
  background: transparent;
}
html[data-theme="light"] .hero--plant .hero__plant-veil {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(255, 255, 255, 0.28) 42%,
    rgba(255, 255, 255, 0.08) 70%,
    rgba(255, 255, 255, 0.02) 100%
  );
}

/* UI only in left safe factory zone + top-right trust — avoid right product area */
.hero--plant .hero__plant-ui {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "copy trust"
    "copy .";
  align-content: start;
  gap: 10px 16px;
  padding: 14px 0 18px;
  pointer-events: none; /* let clicks pass except on interactive children */
}
.hero--plant .hero__plant-copy,
.hero--plant .hero__trust,
.hero--plant .hero__cta,
.hero--plant .hero__qr-check,
.hero--plant .hero__cta .btn {
  pointer-events: auto;
}

.hero--plant .hero__plant-copy {
  grid-area: copy;
  align-self: start;
  max-width: min(420px, 92%);
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(12, 16, 22, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}
html[data-theme="light"] .hero--plant .hero__plant-copy {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(18, 25, 40, 0.1);
  box-shadow: 0 10px 24px rgba(18, 25, 40, 0.1);
  color: #1a2230;
}

.hero--plant .hero__kicker {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--orange);
}
.hero--plant .hero__tagline {
  margin: 0;
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}
html[data-theme="light"] .hero--plant .hero__tagline { color: #1a2230; }

.hero--plant .hero__cta { display: flex; flex-wrap: wrap; gap: 8px; }
.hero--plant .hero__cta .btn--primary {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(255, 106, 0, 0.3);
}
.hero--plant .hero__cta .btn--cta-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-weight: 600;
}
html[data-theme="light"] .hero--plant .hero__cta .btn--cta-secondary {
  background: #fff;
  color: #1a2230;
  border-color: #d5dbe6;
}

.hero--plant .hero__qr-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(12, 16, 22, 0.65);
  color: #fff;
  cursor: pointer;
  text-align: left;
  max-width: 100%;
}
html[data-theme="light"] .hero--plant .hero__qr-check {
  background: rgba(255, 255, 255, 0.92);
  color: #1a2230;
  border-color: rgba(18, 25, 40, 0.1);
}
.hero--plant .hero__qr-img {
  width: 44px; height: 44px; object-fit: contain; border-radius: 6px; background: #fff; flex-shrink: 0;
  filter: none !important;
}
.hero--plant .hero__qr-copy { display: grid; gap: 1px; }
.hero--plant .hero__qr-copy strong { font-size: 12px; }
.hero--plant .hero__qr-copy em { font-style: normal; font-size: 10px; opacity: .85; }

.hero--plant .hero__trust {
  grid-area: trust;
  justify-self: end;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  max-width: min(260px, 34vw);
}
.hero--plant .hero__trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: rgba(12, 16, 22, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
html[data-theme="light"] .hero--plant .hero__trust-item {
  color: #1a2230;
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(18, 25, 40, 0.1);
}
.hero--plant .hero__trust-ico {
  width: 14px; height: 14px; display: grid; place-items: center; color: var(--orange); flex-shrink: 0;
}
.hero--plant .hero__trust-ico--ru {
  width: 16px; height: 11px; border-radius: 2px; font-size: 0;
  background: linear-gradient(to bottom, #fff 0 33.33%, #0039a6 33.33% 66.66%, #d52b1e 66.66% 100%);
  border: 1px solid rgba(0,0,0,.12);
}

/* QC under plant scene */
.hero--plant .hero__qc {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.hero--plant .hero__qc-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-align: center;
  padding: 9px 6px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  font-size: 11px;
  font-weight: 600;
  pointer-events: none;
}
html[data-theme="light"] .hero--plant .hero__qc-item { background: #fff; }
.hero--plant .hero__qc-item img { width: 22px; height: 22px; filter: none !important; }

.hero--plant + .section--catalog { padding-top: 18px !important; }

@media (max-width: 1100px) {
  .hero--plant .hero__plant-bg { max-height: min(46vh, 460px); }
  .hero--plant .hero__plant-copy { max-width: min(380px, 95%); }
  .hero--plant .hero__trust { max-width: min(240px, 36vw); }
}
@media (max-width: 900px) {
  /* stack UI under banner — no overlays on products */
  .hero--plant .hero__plant-stage { overflow: hidden; }
  .hero--plant .hero__plant-ui {
    position: static;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas: none;
    padding: 12px 0 0;
    gap: 10px;
  }
  .hero--plant .hero__plant-copy,
  .hero--plant .hero__trust {
    max-width: none;
    justify-self: stretch;
  }
  .hero--plant .hero__plant-copy {
    background: var(--bg-elev);
    color: var(--text);
    border-color: var(--line);
    box-shadow: none;
    backdrop-filter: none;
  }
  html[data-theme="light"] .hero--plant .hero__plant-copy { background: #fff; }
  .hero--plant .hero__tagline { color: var(--text); }
  .hero--plant .hero__cta .btn--cta-secondary {
    background: transparent; color: var(--text); border-color: var(--line);
  }
  .hero--plant .hero__qr-check {
    background: var(--bg-elev); color: var(--text); border-color: var(--line);
  }
  .hero--plant .hero__trust-item {
    background: var(--bg-elev); color: var(--text); border-color: var(--line);
    border-radius: 10px;
  }
  html[data-theme="light"] .hero--plant .hero__trust-item,
  html[data-theme="light"] .hero--plant .hero__qr-check { background: #fff; }
  .hero--plant .hero__plant-bg {
    max-height: min(36vh, 300px);
    object-fit: cover;
    object-position: 78% 45%;
  }
  .hero--plant .hero__qc { grid-template-columns: 1fr 1fr; }
  .hero--plant .hero__qc-item:last-child { grid-column: 1 / -1; }
  .hero--plant .hero__cta .btn { flex: 1 1 auto; justify-content: center; }
  html[data-theme="light"] .hero--plant .hero__plant-veil {
    background: linear-gradient(180deg, rgba(255,255,255,.2), rgba(255,255,255,.05));
  }
}
@media (max-width: 480px) {
  .hero--plant .hero__qc { grid-template-columns: 1fr; }
  .hero--plant .hero__qc-item:last-child { grid-column: auto; }
}
@media (max-height: 700px) {
  .hero--plant .hero__plant-bg { max-height: min(40vh, 320px); }
}


/* ========== GBUILD-0039: adaptive trust — never cover box/logo ========== */
.hero--plant .hero__trust-wrap {
  grid-area: trust;
  justify-self: end;
  max-width: min(240px, 30vw);
  display: grid;
  gap: 6px;
  pointer-events: auto;
}
.hero--plant .hero__trust {
  max-width: none;
  justify-self: stretch;
}
.hero--plant .hero__trust-more {
  display: none;
  color: #fff;
  font-size: 12px;
}
html[data-theme="light"] .hero--plant .hero__trust-more { color: #1a2230; }
.hero--plant .hero__trust-more summary {
  cursor: pointer;
  list-style: none;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(12,16,22,.65);
  font-weight: 700;
}
html[data-theme="light"] .hero--plant .hero__trust-more summary {
  background: rgba(255,255,255,.9);
  border-color: rgba(18,25,40,.12);
}
.hero--plant .hero__trust-more summary::-webkit-details-marker { display: none; }
.hero--plant .hero__trust--extra { margin-top: 6px; }

/* Safe zone: keep trust away from right product/logo area */
@media (max-width: 1280px) {
  .hero--plant .hero__trust-wrap { max-width: min(210px, 26vw); }
  .hero--plant .hero__trust-item { font-size: 10px; padding: 5px 8px; }
}
@media (max-width: 1100px) {
  .hero--plant .hero__plant-ui {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr);
  }
  .hero--plant .hero__trust-wrap { max-width: min(190px, 24vw); }
  /* hide secondary on mid overlays; show via details if needed */
  .hero--plant .hero__trust-item--secondary { display: none; }
  .hero--plant .hero__trust-more { display: block; }
}
@media (max-width: 900px) {
  /* already flow under banner from 0038 — show all items, hide details duplicate */
  .hero--plant .hero__trust-wrap {
    max-width: none;
    justify-self: stretch;
  }
  .hero--plant .hero__trust-item--secondary { display: flex; }
  .hero--plant .hero__trust-more { display: none; }
  .hero--plant .hero__trust-item {
    border-radius: 10px;
  }
}


/* GBUILD-0040: multi-color plant backgrounds */
.hero--plant .hero__plant-bg {
  max-height: min(56vh, 620px);
  object-fit: contain;
  object-position: center center;
}
@media (max-width: 900px) {
  .hero--plant .hero__plant-bg {
    max-height: min(40vh, 340px);
    object-fit: cover;
    object-position: 72% 40%;
  }
}


/* ========== GBUILD-0041: lean UI over approved multi-color composition ========== */
.hero--plant-v2 .hero__plant-ui--lean {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  grid-template-areas:
    "copy ."
    "copy .";
}
.hero--plant-v2 .hero__plant-copy {
  max-width: min(360px, 88%);
  /* no kicker/tagline — already in image */
}
.hero--plant-v2 .hero__trust-flow {
  display: none; /* desktop: advantages are in the image */
}
/* light veil softer — image already light-themed */
.hero--plant-v2.hero--plant .hero__plant-veil { background: transparent; }
html[data-theme="light"] .hero--plant-v2.hero--plant .hero__plant-veil {
  background: linear-gradient(90deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,.05) 45%, transparent 70%);
}

.hero--plant-v2 .hero__plant-bg {
  max-height: min(58vh, 640px);
  object-fit: contain;
  object-position: center center;
}

@media (max-width: 1100px) {
  .hero--plant-v2 .hero__plant-bg {
    object-position: 65% 45%;
  }
}
@media (max-width: 900px) {
  .hero--plant-v2 .hero__plant-ui--lean {
    position: static;
    display: grid;
    padding-top: 12px;
  }
  .hero--plant-v2 .hero__plant-copy { max-width: none; }
  .hero--plant-v2 .hero__trust-flow {
    display: block;
    padding-top: 4px;
  }
  .hero--plant-v2 .hero__trust-flow .hero__trust {
    display: grid;
    gap: 6px;
    grid-template-columns: 1fr 1fr;
  }
  .hero--plant-v2 .hero__plant-bg {
    max-height: min(42vh, 360px);
    object-fit: cover;
    object-position: 70% 42%;
  }
}
@media (max-width: 480px) {
  .hero--plant-v2 .hero__trust-flow .hero__trust { grid-template-columns: 1fr; }
  .hero--plant-v2 .hero__plant-bg { object-position: 75% 40%; }
}


/* GBUILD-0041 fix: never cover baked spools/logo — UI under scene */
.hero--plant-v2 .hero__plant-ui--lean {
  position: static !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  padding: 12px 0 0 !important;
  pointer-events: auto;
}
.hero--plant-v2 .hero__plant-copy {
  max-width: none !important;
  background: var(--bg-elev) !important;
  border: 1px solid var(--line) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  color: var(--text) !important;
}
html[data-theme="light"] .hero--plant-v2 .hero__plant-copy {
  background: #fff !important;
}
.hero--plant-v2 .hero__cta .btn--cta-secondary {
  background: transparent !important;
  color: var(--text) !important;
  border-color: var(--line) !important;
}
.hero--plant-v2 .hero__qr-check {
  background: var(--bg-elev) !important;
  color: var(--text) !important;
  border-color: var(--line) !important;
}
html[data-theme="light"] .hero--plant-v2 .hero__qr-check { background: #fff !important; }
.hero--plant-v2 .hero__trust-flow {
  display: block !important; /* advantages also as text under for a11y; image still has them */
}
.hero--plant-v2 .hero__trust-flow .hero__trust {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.hero--plant-v2 .hero__plant-bg {
  max-height: min(60vh, 680px);
  object-fit: contain;
  object-position: center center;
}
.hero--plant-v2 .hero__plant-veil { background: transparent !important; }
@media (max-width: 900px) {
  .hero--plant-v2 .hero__trust-flow .hero__trust { grid-template-columns: 1fr 1fr; }
  .hero--plant-v2 .hero__plant-bg {
    max-height: min(44vh, 380px);
    object-fit: cover;
    object-position: 70% 42%;
  }
}
@media (max-width: 480px) {
  .hero--plant-v2 .hero__trust-flow .hero__trust { grid-template-columns: 1fr; }
}


/* ========== GBUILD-0042: rich controllable Hero (v040 density + separate products) ========== */
.hero.hero--rich {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 0 8px;
  margin: 0;
  min-height: 0 !important;
  height: auto !important;
  background: var(--bg);
  overflow: visible;
}

.hero--rich .hero__rich-stage {
  position: relative;
  width: 100%;
  min-height: min(52vh, 560px);
  overflow: hidden;
  isolation: isolate;
  background: #0b0f14;
}
html[data-theme="light"] .hero--rich .hero__rich-stage { background: #dfe5ee; }

/* Fill scene — no empty side bars */
.hero--rich .hero__rich-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 18% 45%; /* bias to plant / away from baked products */
  filter: none !important;
  -webkit-filter: none !important;
  z-index: 0;
}
.hero--rich .hero__rich-bg--light { display: none !important; }
.hero--rich .hero__rich-bg--dark { display: block !important; }
html[data-theme="light"] .hero--rich .hero__rich-bg--light { display: block !important; }
html[data-theme="light"] .hero--rich .hero__rich-bg--dark { display: none !important; }

.hero--rich .hero__rich-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(8,10,14,.55) 0%, rgba(8,10,14,.22) 42%, rgba(8,10,14,.08) 62%, rgba(8,10,14,.35) 100%);
}
html[data-theme="light"] .hero--rich .hero__rich-veil {
  background: linear-gradient(90deg, rgba(255,255,255,.72) 0%, rgba(255,255,255,.35) 40%, rgba(255,255,255,.12) 62%, rgba(255,255,255,.45) 100%);
}

.hero--rich .hero__rich-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(0, 1.25fr);
  grid-template-areas:
    "copy trust"
    "copy products";
  gap: 12px 20px;
  align-items: start;
  padding-block: 16px;
  min-height: min(52vh, 560px);
}

.hero--rich .hero__rich-copy {
  grid-area: copy;
  display: grid;
  gap: 10px;
  align-content: start;
  max-width: 420px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(12,16,22,.74);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 28px rgba(0,0,0,.28);
}
html[data-theme="light"] .hero--rich .hero__rich-copy {
  background: rgba(255,255,255,.9);
  border-color: rgba(18,25,40,.1);
  color: #1a2230;
  box-shadow: 0 10px 24px rgba(18,25,40,.1);
}

.hero--rich .hero__kicker {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--orange);
}
.hero--rich .hero__tagline {
  margin: 0;
  font-size: clamp(18px, 2.1vw, 24px);
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}
html[data-theme="light"] .hero--rich .hero__tagline { color: #1a2230; }

.hero--rich .hero__cta { display: flex; flex-wrap: wrap; gap: 8px; }
.hero--rich .hero__cta .btn--primary {
  background: var(--orange); color: #fff; border-color: var(--orange); font-weight: 800;
  box-shadow: 0 6px 16px rgba(255,106,0,.3);
}
.hero--rich .hero__cta .btn--cta-secondary {
  background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.28); font-weight: 600;
}
html[data-theme="light"] .hero--rich .hero__cta .btn--cta-secondary {
  background: #fff; color: #1a2230; border-color: #d5dbe6;
}

.hero--rich .hero__qr-check {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(12,16,22,.62); color: #fff; cursor: pointer; text-align: left;
}
html[data-theme="light"] .hero--rich .hero__qr-check {
  background: rgba(255,255,255,.92); color: #1a2230; border-color: rgba(18,25,40,.1);
}
.hero--rich .hero__qr-img {
  width: 44px; height: 44px; object-fit: contain; border-radius: 6px; background: #fff;
  filter: none !important;
}
.hero--rich .hero__qr-copy { display: grid; gap: 1px; }
.hero--rich .hero__qr-copy strong { font-size: 12px; }
.hero--rich .hero__qr-copy em { font-style: normal; font-size: 10px; opacity: .85; }

.hero--rich .hero__trust-wrap {
  grid-area: trust;
  justify-self: end;
  max-width: min(240px, 28vw);
  display: grid;
  gap: 6px;
}
.hero--rich .hero__trust {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 6px;
}
.hero--rich .hero__trust-item {
  display: flex; align-items: center; gap: 7px;
  padding: 6px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 700; color: #fff;
  background: rgba(12,16,22,.72);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
html[data-theme="light"] .hero--rich .hero__trust-item {
  color: #1a2230; background: rgba(255,255,255,.92); border-color: rgba(18,25,40,.1);
}
.hero--rich .hero__trust-ico { width: 14px; height: 14px; display: grid; place-items: center; color: var(--orange); }
.hero--rich .hero__trust-ico--ru {
  width: 16px; height: 11px; border-radius: 2px; font-size: 0;
  background: linear-gradient(to bottom, #fff 0 33.33%, #0039a6 33.33% 66.66%, #d52b1e 66.66% 100%);
  border: 1px solid rgba(0,0,0,.12);
}
.hero--rich .hero__trust-more { display: none; }
.hero--rich .hero__trust-more summary {
  cursor: pointer; list-style: none; padding: 6px 10px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.2); background: rgba(12,16,22,.65);
  font-size: 12px; font-weight: 700; color: #fff;
}
.hero--rich .hero__trust-more summary::-webkit-details-marker { display: none; }

/* Separate controllable products — spool dominant */
.hero--rich .hero__rich-products {
  grid-area: products;
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 6px;
  align-items: end;
  justify-items: center;
  min-height: 0;
  padding: 4px 0 8px;
}
.hero--rich .hero__rich-spool,
.hero--rich .hero__rich-box {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: none !important;
  background: transparent !important;
  display: block;
  drop-shadow: none;
}
.hero--rich .hero__rich-spool {
  max-height: min(44vh, 420px);
  filter: drop-shadow(0 18px 28px rgba(0,0,0,.35)) !important;
}
.hero--rich .hero__rich-box {
  max-height: min(34vh, 300px);
  filter: drop-shadow(0 14px 22px rgba(0,0,0,.28)) !important;
}

.hero--rich .hero__qc {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.hero--rich .hero__qc-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  text-align: center; padding: 9px 6px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg-elev);
  font-size: 11px; font-weight: 600; pointer-events: none;
}
html[data-theme="light"] .hero--rich .hero__qc-item { background: #fff; }
.hero--rich .hero__qc-item img { width: 22px; height: 22px; filter: none !important; }

.hero--rich + .section--catalog { padding-top: 18px !important; }

@media (max-width: 1200px) {
  .hero--rich .hero__trust-wrap { max-width: min(210px, 26vw); }
  .hero--rich .hero__trust-item--secondary { display: none; }
  .hero--rich .hero__trust-more { display: block; }
  html[data-theme="light"] .hero--rich .hero__trust-more summary {
    background: rgba(255,255,255,.92); color: #1a2230; border-color: rgba(18,25,40,.12);
  }
}
@media (max-width: 980px) {
  .hero--rich .hero__rich-stage { min-height: 0; }
  .hero--rich .hero__rich-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "products"
      "trust";
    min-height: 0;
    padding-block: 12px;
  }
  .hero--rich .hero__rich-bg { object-position: 70% 40%; opacity: .9; }
  .hero--rich .hero__rich-copy { max-width: none; }
  .hero--rich .hero__trust-wrap { max-width: none; justify-self: stretch; }
  .hero--rich .hero__trust-item--secondary { display: flex; }
  .hero--rich .hero__trust-more { display: none; }
  .hero--rich .hero__rich-products { grid-template-columns: 1.1fr 0.9fr; }
  .hero--rich .hero__rich-spool { max-height: 260px; }
  .hero--rich .hero__rich-box { max-height: 200px; }
  .hero--rich .hero__qc { grid-template-columns: 1fr 1fr; }
  .hero--rich .hero__qc-item:last-child { grid-column: 1 / -1; }
  .hero--rich .hero__cta .btn { flex: 1 1 auto; justify-content: center; }
}
@media (max-width: 480px) {
  .hero--rich .hero__rich-products { grid-template-columns: 1fr; }
  .hero--rich .hero__qc { grid-template-columns: 1fr; }
  .hero--rich .hero__qc-item:last-child { grid-column: auto; }
}
@media (max-height: 700px) {
  .hero--rich .hero__rich-stage,
  .hero--rich .hero__rich-grid { min-height: min(48vh, 420px); }
  .hero--rich .hero__rich-spool { max-height: min(36vh, 300px); }
}


/* ========== GBUILD-0043: hero11/hero12 whole scene, no product duplication ========== */
.hero.hero--scene {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 0 8px;
  margin: 0;
  min-height: 0 !important;
  height: auto !important;
  background: var(--bg);
  overflow: visible;
}

.hero--scene .hero__scene-stage {
  width: 100%;
  line-height: 0;
  background: var(--bg);
  overflow: hidden;
}

/* contain — do not crop baked spool/box/logo */
.hero--scene .hero__scene-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(58vh, 640px);
  object-fit: contain;
  object-position: center center;
  filter: none !important;
  -webkit-filter: none !important;
  background: transparent !important;
}
.hero--scene .hero__scene-img--light { display: none !important; }
.hero--scene .hero__scene-img--dark { display: block !important; }
html[data-theme="light"] .hero--scene .hero__scene-img--light { display: block !important; }
html[data-theme="light"] .hero--scene .hero__scene-img--dark { display: none !important; }

.hero--scene .hero__scene-ui {
  display: grid;
  gap: 10px;
  padding-top: 4px;
}

.hero--scene .hero__scene-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
}

.hero--scene .hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hero--scene .hero__cta .btn--primary {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(255,106,0,.28);
}
.hero--scene .hero__cta .btn--cta-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  font-weight: 600;
}
html[data-theme="light"] .hero--scene .hero__cta .btn--cta-secondary {
  background: #fff;
}

.hero--scene .hero__qr-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--text);
  cursor: pointer;
  text-align: left;
}
html[data-theme="light"] .hero--scene .hero__qr-check { background: #fff; }
.hero--scene .hero__qr-img {
  width: 44px; height: 44px; object-fit: contain; border-radius: 6px; background: #fff;
  filter: none !important;
}
.hero--scene .hero__qr-copy { display: grid; gap: 1px; }
.hero--scene .hero__qr-copy strong { font-size: 12px; }
.hero--scene .hero__qr-copy em { font-style: normal; font-size: 10px; color: var(--muted); }

.hero--scene .hero__trust-wrap { display: grid; gap: 6px; }
.hero--scene .hero__trust {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.hero--scene .hero__trust-item {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 10px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg-elev);
  font-size: 12px; font-weight: 700;
}
html[data-theme="light"] .hero--scene .hero__trust-item { background: #fff; }
.hero--scene .hero__trust-ico { width: 14px; height: 14px; display: grid; place-items: center; color: var(--orange); }
.hero--scene .hero__trust-ico--ru {
  width: 16px; height: 11px; border-radius: 2px; font-size: 0;
  background: linear-gradient(to bottom, #fff 0 33.33%, #0039a6 33.33% 66.66%, #d52b1e 66.66% 100%);
  border: 1px solid rgba(0,0,0,.12);
}
.hero--scene .hero__trust-more { display: none; }
.hero--scene .hero__trust-more summary {
  cursor: pointer; list-style: none; padding: 6px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg-elev); font-size: 12px; font-weight: 700;
}
.hero--scene .hero__trust-more summary::-webkit-details-marker { display: none; }

.hero--scene .hero__qc {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.hero--scene .hero__qc-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  text-align: center; padding: 9px 6px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg-elev);
  font-size: 11px; font-weight: 600; pointer-events: none;
}
html[data-theme="light"] .hero--scene .hero__qc-item { background: #fff; }
.hero--scene .hero__qc-item img { width: 22px; height: 22px; filter: none !important; }

.hero--scene + .section--catalog { padding-top: 18px !important; }

@media (max-width: 1100px) {
  .hero--scene .hero__trust {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero--scene .hero__trust-item--more-only { display: none; }
  .hero--scene .hero__trust-item--secondary { display: none; }
  .hero--scene .hero__trust-more { display: block; }
}
@media (max-width: 900px) {
  .hero--scene .hero__scene-img {
    max-height: min(42vh, 360px);
    object-fit: contain; /* still contain — avoid cropping spool/box/logo */
    object-position: center center;
  }
  .hero--scene .hero__scene-cta-row { flex-direction: column; align-items: stretch; }
  .hero--scene .hero__cta .btn { flex: 1 1 auto; justify-content: center; }
  .hero--scene .hero__qr-check { width: 100%; }
  .hero--scene .hero__trust {
    grid-template-columns: 1fr 1fr;
  }
  .hero--scene .hero__trust-item--secondary,
  .hero--scene .hero__trust-item--more-only { display: flex; }
  .hero--scene .hero__trust-more { display: none; }
  .hero--scene .hero__qc { grid-template-columns: 1fr 1fr; }
  .hero--scene .hero__qc-item:last-child { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .hero--scene .hero__trust { grid-template-columns: 1fr; }
  .hero--scene .hero__qc { grid-template-columns: 1fr; }
  .hero--scene .hero__qc-item:last-child { grid-column: auto; }
}
@media (max-height: 700px) {
  .hero--scene .hero__scene-img { max-height: min(40vh, 300px); }
}


/* ========== GBUILD-0044: full-bleed hero11/12 + v040-style functional UI ========== */
.hero.hero--full {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 0 6px;
  margin: 0;
  min-height: 0 !important;
  height: auto !important;
  background: var(--bg);
  overflow: visible;
}

.hero--full .hero__full-stage {
  position: relative;
  width: 100%;
  /* Fixed stage height so image can cover full width without side letterboxing */
  height: clamp(320px, 52vh, 620px);
  overflow: hidden;
  background: #0b0f14;
}
html[data-theme="light"] .hero--full .hero__full-stage {
  background: #e8edf4;
}

.hero--full .hero__full-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Keep spool/box/logo in frame (right-center of composition) */
  object-position: 62% 42%;
  filter: none !important;
  -webkit-filter: none !important;
  display: block;
  background: transparent !important;
}
.hero--full .hero__full-img--light { display: none !important; }
.hero--full .hero__full-img--dark { display: block !important; }
html[data-theme="light"] .hero--full .hero__full-img--light { display: block !important; }
html[data-theme="light"] .hero--full .hero__full-img--dark { display: none !important; }

.hero--full .hero__full-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  /* Soft left readability without hiding plant colors */
  background: linear-gradient(90deg, rgba(8,10,14,.55) 0%, rgba(8,10,14,.18) 38%, rgba(8,10,14,0) 58%);
}
html[data-theme="light"] .hero--full .hero__full-veil {
  background: linear-gradient(90deg, rgba(255,255,255,.62) 0%, rgba(255,255,255,.22) 38%, rgba(255,255,255,0) 58%);
}

.hero--full .hero__full-ui {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  padding-top: 18px;
  padding-bottom: 18px;
  pointer-events: none;
}
.hero--full .hero__full-copy {
  pointer-events: auto;
  max-width: min(400px, 42%);
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(12,16,22,.76);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 28px rgba(0,0,0,.28);
}
html[data-theme="light"] .hero--full .hero__full-copy {
  background: rgba(255,255,255,.9);
  border-color: rgba(18,25,40,.1);
  color: #1a2230;
  box-shadow: 0 10px 24px rgba(18,25,40,.1);
}

.hero--full .hero__cta { display: flex; flex-wrap: wrap; gap: 8px; }
.hero--full .hero__cta .btn--primary {
  background: var(--orange); color: #fff; border-color: var(--orange); font-weight: 800;
  box-shadow: 0 6px 16px rgba(255,106,0,.3);
}
.hero--full .hero__cta .btn--cta-secondary {
  background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.28); font-weight: 600;
}
html[data-theme="light"] .hero--full .hero__cta .btn--cta-secondary {
  background: #fff; color: #1a2230; border-color: #d5dbe6;
}

.hero--full .hero__qr-check {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(12,16,22,.62); color: #fff; cursor: pointer; text-align: left;
}
html[data-theme="light"] .hero--full .hero__qr-check {
  background: rgba(255,255,255,.92); color: #1a2230; border-color: rgba(18,25,40,.1);
}
.hero--full .hero__qr-img {
  width: 44px; height: 44px; object-fit: contain; border-radius: 6px; background: #fff; filter: none !important;
}
.hero--full .hero__qr-copy { display: grid; gap: 1px; }
.hero--full .hero__qr-copy strong { font-size: 12px; }
.hero--full .hero__qr-copy em { font-style: normal; font-size: 10px; opacity: .85; }

.hero--full .hero__full-below {
  display: grid;
  gap: 8px;
  padding-top: 2px;
}
.hero--full .hero__trust-wrap { display: grid; gap: 6px; }
.hero--full .hero__trust {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px;
}
.hero--full .hero__trust-item {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 10px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg-elev);
  font-size: 12px; font-weight: 700;
}
html[data-theme="light"] .hero--full .hero__trust-item { background: #fff; }
.hero--full .hero__trust-ico { width: 14px; height: 14px; display: grid; place-items: center; color: var(--orange); }
.hero--full .hero__trust-ico--ru {
  width: 16px; height: 11px; border-radius: 2px; font-size: 0;
  background: linear-gradient(to bottom, #fff 0 33.33%, #0039a6 33.33% 66.66%, #d52b1e 66.66% 100%);
  border: 1px solid rgba(0,0,0,.12);
}
.hero--full .hero__trust-more { display: none; }
.hero--full .hero__trust-more summary {
  cursor: pointer; list-style: none; padding: 6px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg-elev); font-size: 12px; font-weight: 700;
}
.hero--full .hero__trust-more summary::-webkit-details-marker { display: none; }

.hero--full .hero__qc {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px;
}
.hero--full .hero__qc-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  text-align: center; padding: 9px 6px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg-elev);
  font-size: 11px; font-weight: 600; pointer-events: none;
}
html[data-theme="light"] .hero--full .hero__qc-item { background: #fff; }
.hero--full .hero__qc-item img { width: 22px; height: 22px; filter: none !important; }

.hero--full + .section--catalog { padding-top: 16px !important; }

@media (max-width: 1200px) {
  .hero--full .hero__full-copy { max-width: min(360px, 46%); }
  .hero--full .hero__full-img { object-position: 58% 42%; }
}
@media (max-width: 1024px) {
  .hero--full .hero__trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero--full .hero__trust-item--secondary { display: none; }
  .hero--full .hero__trust-more { display: block; }
  .hero--full .hero__full-img { object-position: 55% 40%; }
}
@media (max-width: 900px) {
  /* Stack UI under scene — never overlay products on narrow */
  .hero--full .hero__full-stage { height: clamp(260px, 40vh, 420px); }
  .hero--full .hero__full-img { object-position: 70% 40%; }
  .hero--full .hero__full-ui {
    position: static;
    padding: 10px 0 0;
  }
  .hero--full .hero__full-copy {
    max-width: none;
    background: var(--bg-elev);
    border-color: var(--line);
    color: var(--text);
    box-shadow: none;
    backdrop-filter: none;
  }
  html[data-theme="light"] .hero--full .hero__full-copy { background: #fff; }
  .hero--full .hero__cta .btn--cta-secondary {
    background: transparent; color: var(--text); border-color: var(--line);
  }
  .hero--full .hero__qr-check {
    background: var(--bg-elev); color: var(--text); border-color: var(--line);
  }
  html[data-theme="light"] .hero--full .hero__qr-check { background: #fff; }
  .hero--full .hero__full-veil { background: transparent; }
  .hero--full .hero__trust-item--secondary { display: flex; }
  .hero--full .hero__trust-more { display: none; }
  .hero--full .hero__qc { grid-template-columns: 1fr 1fr; }
  .hero--full .hero__qc-item:last-child { grid-column: 1 / -1; }
  .hero--full .hero__cta .btn { flex: 1 1 auto; justify-content: center; }
}
@media (max-width: 480px) {
  .hero--full .hero__trust { grid-template-columns: 1fr; }
  .hero--full .hero__qc { grid-template-columns: 1fr; }
  .hero--full .hero__qc-item:last-child { grid-column: auto; }
  .hero--full .hero__full-stage { height: clamp(220px, 36vh, 340px); }
  .hero--full .hero__full-img { object-position: 72% 38%; }
}


/* ========== GBUILD-0045: container-aligned Hero, no cover-crop of products ========== */
.hero.hero--fit {
  display: block;
  padding: 8px 0 6px;
  margin: 0;
  min-height: 0 !important;
  height: auto !important;
  background: var(--bg);
  overflow: visible;
}

.hero--fit .hero__fit {
  display: grid;
  gap: 10px;
}

.hero--fit .hero__fit-stage {
  position: relative;
  width: 100%; /* equals .container content width */
  line-height: 0;
  overflow: visible;
  background: transparent;
  border-radius: 14px;
}

/* Natural aspect: width 100%, height auto — full spool/box/logo visible, no upward crop */
.hero--fit .hero__fit-img {
  display: block;
  width: 100%;
  height: auto !important;
  max-height: none !important;
  object-fit: contain;
  object-position: center center;
  filter: none !important;
  -webkit-filter: none !important;
  background: transparent !important;
  vertical-align: top;
}
.hero--fit .hero__fit-img--light { display: none !important; }
.hero--fit .hero__fit-img--dark { display: block !important; }
html[data-theme="light"] .hero--fit .hero__fit-img--light { display: block !important; }
html[data-theme="light"] .hero--fit .hero__fit-img--dark { display: none !important; }

/* Desktop overlay only on LEFT safe zone */
.hero--fit .hero__fit-ui {
  position: absolute;
  left: 12px;
  top: 14px;
  right: auto;
  bottom: auto;
  z-index: 2;
  max-width: min(380px, 36%);
  pointer-events: none;
}
.hero--fit .hero__fit-copy {
  pointer-events: auto;
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(12,16,22,.78);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 28px rgba(0,0,0,.28);
}
html[data-theme="light"] .hero--fit .hero__fit-copy {
  background: rgba(255,255,255,.92);
  border-color: rgba(18,25,40,.1);
  color: #1a2230;
  box-shadow: 0 10px 24px rgba(18,25,40,.1);
}

.hero--fit .hero__cta { display: flex; flex-wrap: wrap; gap: 8px; }
.hero--fit .hero__cta .btn--primary {
  background: var(--orange); color: #fff; border-color: var(--orange); font-weight: 800;
  box-shadow: 0 6px 16px rgba(255,106,0,.3);
}
.hero--fit .hero__cta .btn--cta-secondary {
  background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.28); font-weight: 600;
}
html[data-theme="light"] .hero--fit .hero__cta .btn--cta-secondary {
  background: #fff; color: #1a2230; border-color: #d5dbe6;
}

.hero--fit .hero__qr-check {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(12,16,22,.62); color: #fff; cursor: pointer; text-align: left;
}
html[data-theme="light"] .hero--fit .hero__qr-check {
  background: rgba(255,255,255,.94); color: #1a2230; border-color: rgba(18,25,40,.1);
}
.hero--fit .hero__qr-img {
  width: 44px; height: 44px; object-fit: contain; border-radius: 6px; background: #fff; filter: none !important;
}
.hero--fit .hero__qr-copy { display: grid; gap: 1px; }
.hero--fit .hero__qr-copy strong { font-size: 12px; }
.hero--fit .hero__qr-copy em { font-style: normal; font-size: 10px; opacity: .85; }

.hero--fit .hero__fit-below { display: grid; gap: 8px; }
.hero--fit .hero__trust-wrap { display: grid; gap: 6px; }
.hero--fit .hero__trust {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px;
}
.hero--fit .hero__trust-item {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 10px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg-elev);
  font-size: 12px; font-weight: 700;
}
html[data-theme="light"] .hero--fit .hero__trust-item { background: #fff; }
.hero--fit .hero__trust-ico { width: 14px; height: 14px; display: grid; place-items: center; color: var(--orange); }
.hero--fit .hero__trust-ico--ru {
  width: 16px; height: 11px; border-radius: 2px; font-size: 0;
  background: linear-gradient(to bottom, #fff 0 33.33%, #0039a6 33.33% 66.66%, #d52b1e 66.66% 100%);
  border: 1px solid rgba(0,0,0,.12);
}
.hero--fit .hero__trust-more { display: none; }
.hero--fit .hero__trust-more summary {
  cursor: pointer; list-style: none; padding: 6px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg-elev); font-size: 12px; font-weight: 700;
}
.hero--fit .hero__trust-more summary::-webkit-details-marker { display: none; }

.hero--fit .hero__qc {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px;
}
.hero--fit .hero__qc-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  text-align: center; padding: 9px 6px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg-elev);
  font-size: 11px; font-weight: 600; pointer-events: none;
}
html[data-theme="light"] .hero--fit .hero__qc-item { background: #fff; }
.hero--fit .hero__qc-item img { width: 22px; height: 22px; filter: none !important; }

.hero--fit + .section--catalog { padding-top: 16px !important; }

@media (max-width: 1100px) {
  .hero--fit .hero__fit-ui { max-width: min(340px, 40%); }
  .hero--fit .hero__trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero--fit .hero__trust-item--secondary { display: none; }
  .hero--fit .hero__trust-more { display: block; }
}

@media (max-width: 900px) {
  /* Mobile: no overlay on scene — full products visible, UI below */
  .hero--fit .hero__fit-ui {
    position: static;
    max-width: none;
    margin-top: 10px;
  }
  .hero--fit .hero__fit-copy {
    background: var(--bg-elev);
    border-color: var(--line);
    color: var(--text);
    box-shadow: none;
    backdrop-filter: none;
  }
  html[data-theme="light"] .hero--fit .hero__fit-copy { background: #fff; }
  .hero--fit .hero__cta .btn--cta-secondary {
    background: transparent; color: var(--text); border-color: var(--line);
  }
  .hero--fit .hero__qr-check {
    background: var(--bg-elev); color: var(--text); border-color: var(--line);
  }
  html[data-theme="light"] .hero--fit .hero__qr-check { background: #fff; }
  .hero--fit .hero__trust-item--secondary { display: flex; }
  .hero--fit .hero__trust-more { display: none; }
  .hero--fit .hero__qc { grid-template-columns: 1fr 1fr; }
  .hero--fit .hero__qc-item:last-child { grid-column: 1 / -1; }
  .hero--fit .hero__cta .btn { flex: 1 1 auto; justify-content: center; }
}

@media (max-width: 480px) {
  .hero--fit .hero__trust { grid-template-columns: 1fr; }
  .hero--fit .hero__qc { grid-template-columns: 1fr; }
  .hero--fit .hero__qc-item:last-child { grid-column: auto; }
}


/* GBUILD-0046 manufacturer gallery */
.product-preview__mainwrap {
  position: relative;
  display: grid;
  place-items: center;
}
.preview-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.preview-nav--prev { left: 8px; }
.preview-nav--next { right: 8px; }
.product-preview__source {
  margin: 4px 0 0;
  font-size: 11px;
  color: var(--muted);
}
.product-preview__media--empty {
  min-height: 180px;
  display: grid;
  place-content: center;
  gap: 6px;
  padding: 20px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  text-align: center;
}
.product-preview__absent {
  margin: 0;
  font-weight: 800;
  color: var(--text);
}
.product__img {
  object-fit: contain;
  background: #fff;
}


/* ========== GBUILD-0047: simplify Hero — no top CTA card ========== */
.hero--simple .hero__fit-ui,
.hero--simple .hero__fit-copy,
.hero--simple .hero__trust-wrap,
.hero--simple .hero__trust-more { display: none !important; }

.hero--simple .hero__fit-stage {
  /* no overlay layer */
}
.hero--simple .hero__fit-below {
  gap: 8px;
  padding-top: 2px;
}

/* Compact advantages — same visual language as QC */
.hero--simple .hero__adv {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.hero--simple .hero__adv-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-align: center;
  padding: 9px 6px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  pointer-events: none;
  user-select: none;
}
html[data-theme="light"] .hero--simple .hero__adv-item { background: #fff; }
.hero--simple .hero__adv-ico-img {
  width: 22px; height: 22px; filter: none !important;
}
.hero--simple .hero__adv-ico--ru {
  width: 22px; height: 14px; border-radius: 2px; display: block;
  background: linear-gradient(to bottom, #fff 0 33.33%, #0039a6 33.33% 66.66%, #d52b1e 66.66% 100%);
  border: 1px solid rgba(0,0,0,.12);
}

.hero--simple + .section--catalog { padding-top: 14px !important; }

@media (max-width: 900px) {
  .hero--simple .hero__adv { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .hero--simple .hero__adv { grid-template-columns: 1fr; }
}

/* ========== GBUILD-0049: sticky catalog controls + mobile filters + more ========== */
.mobile-only { display: none !important; }
.desktop-only { display: inline !important; }

.catalog-layout {
  align-items: start;
}

.filters {
  position: sticky !important;
  top: calc(var(--header-h) + 10px) !important;
  z-index: 30;
  max-height: calc(100vh - var(--header-h) - 24px) !important;
  overflow: auto;
  align-self: start;
  -webkit-overflow-scrolling: touch;
}

.filters__close {
  display: none;
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}

.catalog-sticky-head {
  position: sticky;
  top: calc(var(--header-h) + 0px);
  z-index: 28;
  display: grid;
  gap: 10px;
  padding-bottom: 10px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

html[data-theme="light"] .catalog-sticky-head {
  background: color-mix(in srgb, var(--bg) 94%, #fff);
}

.catalog-mobile-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.catalog-filters-toggle {
  flex: 0 0 auto;
}

.shown-count {
  font-size: 13px;
  color: var(--muted);
  padding-bottom: 8px;
  white-space: nowrap;
}

.catalog-more {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin: 18px 0 8px;
  min-height: 44px;
}

.catalog-more .btn {
  min-width: min(280px, 100%);
}
.catalog-more [hidden] { display: none !important; }

.catalog-more__done {
  margin: 0;
  font-size: 13px;
}

/* Override earlier mobile static filters */
@media (max-width: 980px) {
  .filters {
    position: sticky !important;
    top: calc(var(--header-h) + 10px) !important;
    max-height: calc(100vh - var(--header-h) - 24px) !important;
  }
}

@media (max-width: 900px) {
  .mobile-only { display: flex !important; }
  .desktop-only { display: none !important; }

  .catalog-layout {
    display: flex !important;
    flex-direction: column;
    gap: 12px;
  }

  .catalog-main {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .catalog-sticky-head {
    top: var(--header-h);
    z-index: 40;
  }

  .catalog-mobile-bar {
    display: flex !important;
  }

  /* Скрыты, пока не открыты; при открытии JS ставит aside после sticky-head */
  .catalog-layout > .filters {
    display: none !important;
  }

  .catalog-main > .filters {
    display: none;
    width: 100%;
    position: relative !important;
    top: auto !important;
    max-height: min(52vh, 420px) !important;
    margin: 0;
    z-index: 1;
  }

  .catalog-main > .filters.is-open {
    display: block !important;
  }

  .filters__close {
    display: inline-block !important;
  }

  .filters__head {
    gap: 8px;
  }

  .shown-count {
    width: 100%;
    padding-bottom: 0;
  }
}

@media (max-width: 640px) {
  .catalog-sticky-head {
    gap: 8px;
  }
  .catalog-toolbar {
    padding: 10px;
  }
  .catalog-search__input {
    font-size: 16px; /* avoid iOS zoom */
    padding: 11px 8px;
  }
}

/* ========== GBUILD-0051: mobile catalog right after Hero ========== */
@media (max-width: 768px) {
  .hero--simple .hero__fit {
    gap: 0;
    padding-bottom: 0;
  }
  .hero--simple .hero__fit-stage {
    margin-bottom: 0;
  }
  /* trust block переносится JS ниже каталога */
  .hero--simple .hero__fit-below {
    margin-top: 0;
  }
  .hero--simple + .section--catalog {
    padding-top: 8px !important;
  }
  #catalog.section {
    padding-top: 8px !important;
  }
  .section--catalog .section__head {
    margin-bottom: 8px;
  }
  .section--catalog .section__head .muted,
  .section--catalog .catalog-color-note {
    display: none;
  }
  .section--catalog .section__head h2 {
    font-size: 20px;
    margin: 0;
  }

  /* 2 колонки карточек */
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px;
  }
  .product {
    display: flex;
    flex-direction: column;
    min-height: 100%;
  }
  .product__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 8px;
    gap: 4px;
  }
  .product__title {
    font-size: 12px;
    line-height: 1.25;
    min-height: 2.5em;
  }
  .product__meta,
  .product__demo-note,
  .product__batch {
    display: none;
  }
  .product__status-row {
    font-size: 11px;
  }
  .product__actions {
    margin-top: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .product__actions .btn--sm {
    padding: 6px 8px;
    font-size: 12px;
  }
  .product__actions [data-order],
  .product__actions [data-sample] {
    display: none;
  }
  .product__visual {
    aspect-ratio: 1;
  }

  .catalog-sticky-head {
    top: var(--header-h);
  }
  .catalog-toolbar .toolbar-selects label:not(:last-child) {
    /* оставить ряды/сортировку компактно */
  }
  .catalog-toolbar .glow-toggle,
  .catalog-toolbar .view-toggle {
    display: none !important;
  }

  .trust-after-catalog {
    margin-top: 18px;
    padding-top: 8px;
  }
  .trust-after-catalog .hero__fit-below {
    display: grid;
    gap: 10px;
  }
  .trust-after-catalog .hero__adv {
    grid-template-columns: 1fr 1fr !important;
  }
  .trust-after-catalog .hero__qc {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  .trust-after-catalog .hero__qc-item {
    font-size: 11px;
    padding: 6px 8px;
  }

  /* мобильное превью */
  .modal .product-preview {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }
  .product-preview__img {
    max-height: 48vh;
    width: 100%;
    object-fit: contain;
  }
  .product-preview__mainwrap {
    touch-action: pan-y;
  }
}

@media (max-width: 360px) {
  .product-grid {
    grid-template-columns: 1fr !important;
  }
}

/* override older 640px single-column rule for 361–640 */
@media (min-width: 361px) and (max-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* ========== GBUILD-0052: sticky bounds only inside #catalog ========== */
#catalog.section--catalog {
  position: relative;
  isolation: isolate;
  z-index: 1;
  overflow: visible;
}
.catalog-stick-scope {
  position: relative;
  display: flow-root;
}
.catalog-sticky-head {
  position: sticky;
  top: var(--header-h);
  z-index: 4;
  display: grid;
  gap: 10px;
  padding: 8px 0 12px;
  margin-bottom: 12px;
  background: var(--bg) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 22px color-mix(in srgb, var(--bg) 70%, transparent);
}
html[data-theme="light"] .catalog-sticky-head {
  background: var(--bg) !important;
  box-shadow: 0 8px 18px rgba(18, 25, 40, 0.08);
}
.catalog-sticky-head.is-stuck {
  background: var(--bg) !important;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  padding-left: 0;
  padding-right: 0;
}
html[data-theme="light"] .catalog-sticky-head.is-stuck {
  box-shadow: 0 10px 24px rgba(18, 25, 40, 0.12);
}
#catalogStickySpacer {
  display: none;
  width: 100%;
  pointer-events: none;
}

/* Desktop: chrome full width, then filters|main */
@media (min-width: 901px) {
  .catalog-stick-scope {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    grid-template-areas:
      "chrome chrome"
      "layout layout";
    gap: 0 16px;
  }
  .catalog-sticky-head {
    grid-area: chrome;
  }
  #catalogStickySpacer {
    grid-area: chrome;
  }
  .catalog-layout {
    grid-area: layout;
    display: grid !important;
    grid-template-columns: 220px minmax(0, 1fr) !important;
  }
  /* filters stick below chrome */
  .catalog-layout > .filters {
    position: sticky !important;
    top: calc(var(--header-h) + 12px) !important;
    z-index: 3;
    background: var(--bg-elev);
    max-height: calc(100vh - var(--header-h) - 24px) !important;
  }
}

@media (max-width: 900px) {
  /* JS bounded fixed; в потоке — relative (без !important, иначе ломает is-stuck) */
  .catalog-sticky-head {
    position: relative;
    top: auto;
    z-index: 20;
    background: var(--bg) !important;
    backdrop-filter: none !important;
  }
  .catalog-sticky-head.is-stuck {
    position: fixed !important;
  }
  .catalog-layout > .filters {
    display: none !important;
  }
  .catalog-sticky-head > .filters {
    display: none;
    width: 100%;
    position: relative !important;
    top: auto !important;
    max-height: min(48vh, 380px) !important;
    overflow: auto;
    margin-top: 4px;
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: 14px;
    z-index: 1;
  }
  .catalog-sticky-head > .filters.is-open {
    display: block !important;
  }
  /* override older rules that put filters into catalog-main */
  .catalog-main > .filters {
    display: none !important;
  }
}

@media (max-width: 1180px) and (min-width: 901px) {
  .catalog-stick-scope {
    grid-template-columns: 200px minmax(0, 1fr);
  }
  .catalog-layout {
    grid-template-columns: 200px minmax(0, 1fr) !important;
  }
}

/* ========== GBUILD-0053: preview quality variants A/B/C ========== */
.modal__dialog.modal__dialog--preview {
  width: min(96vw, 1100px);
  max-width: 1100px;
  max-height: min(94vh, 960px);
  padding: 16px 18px 18px;
}
.modal__dialog.modal__dialog--preview-a { width: min(96vw, 920px); max-width: 920px; }
.modal__dialog.modal__dialog--preview-b { width: min(96vw, 1100px); max-width: 1100px; }
.modal__dialog.modal__dialog--preview-c { width: min(98vw, 1240px); max-width: 1240px; }

.preview-variant {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 28px 12px 0;
}
.preview-variant__label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.preview-variant__btn {
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--text);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.preview-variant__btn.is-active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}
.preview-variant__badge {
  font-size: 11px;
  color: var(--orange);
  font-weight: 800;
}

.product-preview {
  display: grid;
  gap: 16px;
  align-items: start;
}
.product-preview__img {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 12px;
  background: #10141a;
  border: 1px solid var(--line);
  filter: none !important;
  image-rendering: auto;
  cursor: default;
}
html[data-theme="light"] .product-preview__img { background: #f3f5f8; }

/* A — 50/50, min larger side 420px */
.product-preview--a {
  grid-template-columns: minmax(420px, 1fr) minmax(260px, 1fr);
}
.product-preview--a .product-preview__img {
  min-width: min(100%, 420px);
  min-height: 420px;
  max-height: min(62vh, 560px);
}

/* B — 60/40 recommended */
.product-preview--b {
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
}
.product-preview--b .product-preview__img {
  max-height: min(70vh, 720px);
  min-height: min(52vh, 480px);
}

/* C — large view */
.product-preview--c {
  grid-template-columns: 1fr;
}
.product-preview--c .product-preview__media { order: 1; }
.product-preview--c .product-preview__info { order: 2; }
.product-preview--c .product-preview__img {
  max-height: min(78vh, 860px);
  min-height: min(56vh, 520px);
  cursor: zoom-in;
}
.product-preview--c .product-preview__info-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.product-preview--c .preview-specs-toggle { display: inline-flex; }
.preview-specs-toggle { display: none; }
.product-preview__info.is-collapsed .product-preview__list,
.product-preview__info.is-collapsed .product-preview__row,
.product-preview__info.is-collapsed .catalog-color-note,
.product-preview__info.is-collapsed .form-actions {
  display: none;
}

.preview-zoom-btn {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-elev) 92%, transparent);
  color: var(--text);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.product-preview--a .preview-zoom-btn,
.product-preview--b .preview-zoom-btn { display: none; }
.product-preview--c .preview-zoom-btn { display: inline-flex; }

.preview-lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,.82);
  padding: 16px;
}
.preview-lightbox[hidden] { display: none !important; }
.preview-lightbox__img {
  max-width: min(96vw, 1200px);
  max-height: 92vh;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: none !important;
}
.preview-lightbox__close {
  position: absolute;
  top: 12px;
  right: 16px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  line-height: 1;
}

@media (max-width: 900px) {
  .modal__dialog.modal__dialog--preview,
  .modal__dialog.modal__dialog--preview-a,
  .modal__dialog.modal__dialog--preview-b,
  .modal__dialog.modal__dialog--preview-c {
    width: min(100%, 520px);
    max-width: 100%;
    padding: 14px;
  }
  .product-preview--a,
  .product-preview--b,
  .product-preview--c {
    grid-template-columns: 1fr !important;
  }
  .product-preview__img,
  .product-preview--a .product-preview__img,
  .product-preview--b .product-preview__img,
  .product-preview--c .product-preview__img {
    min-width: 0 !important;
    min-height: 0 !important;
    width: 100%;
    max-height: 65vh !important;
  }
  .preview-variant { margin-right: 36px; }
  .preview-variant__btn { padding: 6px 10px; font-size: 11px; }
  .product-preview--c .preview-zoom-btn { display: inline-flex; }
  .product-preview--a .preview-zoom-btn,
  .product-preview--b .preview-zoom-btn { display: inline-flex; }
}

/* ========== GBUILD-0054: compact catalog controls ========== */
.catalog-title-row {
  margin: 0 0 8px;
}
.catalog-title {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  scroll-margin-top: calc(var(--header-h) + 12px);
}
.catalog-controls {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.catalog-controls__search {
  flex: 1 1 220px;
  min-width: 180px;
  max-width: 360px;
  margin: 0;
  padding: 0 4px 0 10px;
  background: var(--bg-card);
}
.catalog-controls__search .catalog-search__input {
  padding: 8px 6px;
  font-size: 14px;
}
.catalog-controls__filters {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  flex: 0 1 auto;
  min-width: 0;
}
.catalog-controls__field {
  display: grid;
  gap: 2px;
  font-size: 10px;
  color: var(--muted);
  margin: 0;
}
.catalog-controls__field select {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 8px;
  min-width: 0;
  max-width: 118px;
  font-size: 12px;
  color: var(--text);
}
.catalog-controls .glow-toggle {
  display: flex !important;
  align-items: center;
  gap: 4px;
  padding: 0;
  font-size: 11px !important;
  color: var(--text) !important;
  white-space: nowrap;
}
.catalog-controls .view-toggle { flex: 0 0 auto; }
.catalog-controls .view-btn { padding: 6px 8px; }
.catalog-controls .shown-count,
.catalog-controls .result-count {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  padding: 0;
  margin-left: 4px;
}
.catalog-controls__mobile-row {
  display: none;
  align-items: center;
  gap: 8px;
  width: 100%;
}
.catalog-sticky-head {
  gap: 8px !important;
  padding-top: 6px !important;
  padding-bottom: 8px !important;
  margin-bottom: 8px !important;
}
/* hide legacy separate search bar if any leftover */
.catalog-search-bar:not(.catalog-controls) { display: none !important; }
.catalog-toolbar { display: none !important; }

@media (max-width: 1180px) {
  .catalog-controls {
    flex-wrap: wrap;
  }
  .catalog-controls__search {
    max-width: none;
    flex: 1 1 100%;
  }
}

@media (max-width: 900px) {
  .catalog-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .catalog-controls__search {
    max-width: none;
    width: 100%;
    flex: 1 1 auto;
  }
  .catalog-controls__mobile-row {
    display: flex !important;
  }
  .catalog-controls__filters.desktop-only {
    display: none !important;
  }
  .catalog-controls__field--rows select {
    max-width: 72px;
  }
  .catalog-title { font-size: 20px; }
}

@media (min-width: 901px) {
  .catalog-controls__filters.desktop-only { display: flex !important; }
  .catalog-controls__mobile-row.mobile-only { display: none !important; }
}

/* ========== GBUILD-0055: compact hero advantages row ========== */
.hero--simple .hero__adv.hero__adv--compact,
.hero__adv.hero__adv--compact {
  display: grid !important;
  gap: 8px !important;
  align-items: stretch;
  margin: 8px 0 6px !important;
}
@media (min-width: 1025px) {
  .hero--simple .hero__adv.hero__adv--compact,
  .hero__adv.hero__adv--compact {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 1024px) {
  .hero--simple .hero__adv.hero__adv--compact,
  .hero__adv.hero__adv--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
.hero__adv--compact .hero__adv-item {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 8px 10px !important;
  min-height: 0 !important;
  border-radius: 12px !important;
  background: var(--bg-elev) !important;
  border: 1px solid var(--line) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  color: var(--text) !important;
}
html[data-theme="light"] .hero__adv--compact .hero__adv-item {
  background: #fff !important;
}
.hero__adv--compact .hero__adv-ico,
.hero__adv--compact .hero__adv-ico-img {
  flex: 0 0 auto;
  width: 22px !important;
  height: 22px !important;
  color: var(--orange) !important;
}
.hero__adv--compact .hero__adv-ico--ru {
  width: 22px !important;
  height: 15px !important;
  border-radius: 2px !important;
  display: block !important;
  background: linear-gradient(to bottom, #fff 0 33.33%, #0039a6 33.33% 66.66%, #d52b1e 66.66% 100%) !important;
  border: 1px solid rgba(0,0,0,.15) !important;
  color: inherit !important;
}
.hero__adv--compact .hero__adv-ico--palette {
  border-radius: 50%;
  background: conic-gradient(#f05a1a 0 16%, #f2c94c 16% 32%, #27ae60 32% 48%, #2f80ed 48% 64%, #9b51e0 64% 80%, #eb5757 80% 100%);
  border: 2px solid currentColor;
}
.hero__adv--compact .hero__adv-text {
  min-width: 0;
}
.hero--simple .hero__qc {
  margin-top: 4px !important;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

@media (max-width: 480px) {
  .hero--simple .hero__adv.hero__adv--compact .hero__adv-item,
  .hero__adv--compact .hero__adv-item {
    padding: 7px 8px !important;
    font-size: 11px !important;
  }
}

/* ========== GBUILD-0056: filters left + controls right over cards ========== */
.catalog-title-row {
  margin: 0 0 10px;
}
.catalog-title {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

@media (min-width: 901px) {
  /* Undo full-width chrome grid from 0052 */
  .catalog-stick-scope {
    display: block !important;
  }
  .catalog-layout {
    display: grid !important;
    grid-template-columns: 220px minmax(0, 1fr) !important;
    grid-template-areas: none !important;
    gap: 0 16px !important;
    align-items: start;
  }
  .catalog-sticky-head {
    grid-area: auto !important;
    position: sticky !important;
    top: var(--header-h) !important;
    z-index: 20;
    isolation: isolate;
    background: var(--bg) !important;
    box-shadow: 0 10px 18px rgba(0, 0, 0, .28);
    margin-bottom: 10px !important;
    padding: 6px 0 8px !important;
    gap: 0 !important;
  }
  #catalogStickySpacer {
    display: none !important;
  }
  /* Filters align with control row / top of cards */
  .catalog-layout > .filters {
    position: sticky !important;
    top: var(--header-h) !important;
    z-index: 19;
    align-self: start;
    max-height: calc(100vh - var(--header-h) - 16px) !important;
    overflow: auto;
    margin-top: 0 !important;
  }
  .catalog-main {
    min-width: 0;
    position: relative;
    z-index: 0;
  }
  .catalog-controls {
    flex-wrap: wrap;
  }
  .catalog-controls__search {
    flex: 1 1 200px;
    min-width: 160px;
    max-width: 280px;
  }
}

@media (max-width: 1180px) and (min-width: 901px) {
  .catalog-layout {
    grid-template-columns: 200px minmax(0, 1fr) !important;
  }
  .catalog-controls__search {
    max-width: none;
    flex: 1 1 100%;
  }
}

@media (max-width: 900px) {
  .catalog-title { font-size: 20px; }
  .catalog-layout {
    display: flex !important;
    flex-direction: column;
  }
  .catalog-sticky-head {
    position: relative;
    top: auto;
  }
  .catalog-sticky-head.is-stuck {
    position: fixed !important;
  }
}

/* ========== GBUILD-0057: image quality — no soft scale, contain, sharp ========== */
.product__img,
.product-preview__img,
.preview-lightbox__img {
  object-fit: contain !important;
  object-position: center !important;
  filter: none !important;
  -webkit-filter: none !important;
  image-rendering: auto !important;
  transform: none !important;
  max-width: 100%;
}
.product__visual {
  overflow: hidden;
  background: #10141a;
}
html[data-theme="light"] .product__visual {
  background: #f3f5f8;
}
.product__visual .product__img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}
.product-preview__img {
  width: 100%;
  height: auto;
  max-height: min(78vh, 860px);
}
.preview-thumb img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

/* ========== GBUILD-0058: card A + photo switching UX ========== */
.product__photo-count {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 3;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-elev) 88%, transparent);
  border: 1px solid var(--line);
  color: var(--text);
  backdrop-filter: blur(6px);
}
.product__share {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 6;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-elev) 90%, transparent);
  color: var(--text);
  box-shadow: 0 3px 10px rgba(0, 0, 0, .18);
  cursor: pointer;
  transition: .15s ease;
  backdrop-filter: blur(6px);
}
.product__share:hover,
.product__share:focus-visible {
  border-color: var(--orange);
  color: var(--orange);
  transform: translateY(-1px);
}
.product__share.is-copied {
  border-color: var(--orange);
  background: var(--orange);
  color: #fff;
}
.product__share-icon {
  width: 16px;
  height: 16px;
  pointer-events: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.product__photo-nav {
  position: absolute;
  top: 50%;
  z-index: 4;
  /* Стрелки остаются внутри визуальной области карточки и не перекрывают фильтры. */
  max-width: 28px;
  width: 28px;
  height: 36px;
  transform: translateY(-50%);
  border: 1px solid var(--line);
  border-radius: 9px;
  background: color-mix(in srgb, var(--bg-card) 82%, transparent);
  color: var(--text);
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
  opacity: .82;
  backdrop-filter: blur(6px);
}
.product__photo-nav:hover { opacity: 1; border-color: var(--orange); color: var(--orange); }
.product__photo-nav--prev { left: 7px; }
.product__photo-nav--next { right: 7px; }

/* GBUILD-0066: тестовая карточка — вся катушка строго по центру и без обрезания. */
.product--photo-test .product__visual .product__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain !important;
  object-position: center center !important;
  transform: none !important;
}

/* GBUILD-0071: квадратное превью внешней карточки заполняет фотоблок
   и держит катушку в центре; при перелистывании оригиналы остаются contain. */
.product__visual .product__img--catalog-cover {
  object-fit: cover !important;
  object-position: center center !important;
}

/* GBUILD-0074: навигация к индексируемым разделам. */
.seo-home-hub__grid a:hover { color: var(--orange); }
.seo-home-hub__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.footer__links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 16px; color: var(--muted); font-size: 12px; }
.footer__links a:hover { color: var(--orange); }
@media (max-width: 720px) {
  .catalog-title-row { align-items: flex-start; gap: 8px; }
  .footer__links { width: 100%; justify-content: flex-start; }
}

/* GBUILD-0074: фото и название остаются обычными индексируемыми ссылками. */
.product__visual-link {
  position: absolute;
  inset: 8px;
  z-index: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
}
.product__visual-link:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.product__title-link:hover,
.product__title-link:focus-visible { color: var(--orange); }
.product__weight,
.product__photo-count,
.product__series-badge { z-index: 5; }

/* Zoom available on all variants including A */
.product-preview--a .preview-zoom-btn,
.product-preview--b .preview-zoom-btn,
.product-preview--c .preview-zoom-btn {
  display: inline-flex !important;
}
.product-preview__img {
  cursor: zoom-in;
}
.preview-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-elev) 90%, transparent);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.preview-nav--prev { left: 8px; }
.preview-nav--next { right: 8px; }
@media (max-width: 900px) {
  .preview-nav {
    width: 32px;
    height: 32px;
    opacity: 0.92;
  }
}
.preview-thumb.is-active {
  outline: 2px solid var(--orange);
  outline-offset: 1px;
}

/* ========== GBUILD-0059: contrast + QC icon size ========== */
.hero__adv--compact .hero__adv-ico-img {
  width: 22px !important;
  height: 22px !important;
  filter: none !important;
  /* SVGs now have hardcoded orange — ensure no darken */
  opacity: 1 !important;
}
html[data-theme="dark"] .hero__adv--compact .hero__adv-ico-img {
  filter: drop-shadow(0 0 1px rgba(255, 180, 90, 0.55)) !important;
}
html[data-theme="light"] .hero__adv--compact .hero__adv-ico-img {
  filter: none !important;
}

/* QC: enlarge icons only, keep plaque padding/height */
.hero--fit .hero__qc-item img,
.hero--simple .hero__qc-item img,
.hero__qc-item img {
  width: 32px !important;
  height: 32px !important;
  max-width: 32px !important;
  max-height: 32px !important;
  filter: none !important;
}
.hero--fit .hero__qc-item,
.hero--simple .hero__qc-item {
  /* keep prior plaque sizing */
  padding: 9px 6px !important;
  gap: 4px !important;
}
html[data-theme="dark"] .hero--fit .hero__qc-item img,
html[data-theme="dark"] .hero--simple .hero__qc-item img {
  filter: drop-shadow(0 0 1px rgba(255, 180, 90, 0.45)) !important;
}

/* Keep the lower trust bar readable in the light theme. */
html[data-theme="light"] .trust {
  background: var(--bg-elev);
  border-color: var(--line);
}
html[data-theme="light"] .trust__item {
  color: var(--text);
}
html[data-theme="light"] .trust__item img,
html[data-theme="light"] .trust__brand img {
  opacity: 1;
  filter: none !important;
}

/* ========== GBUILD-0060: aligned catalog control grid ========== */
:root {
  --catalog-control-h: 36px;
  --catalog-control-radius: 10px;
  --catalog-control-gap: 8px;
}

.catalog-controls {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 8px !important;
  padding: 10px !important;
  background: var(--bg-elev) !important;
  border: 1px solid var(--line) !important;
  border-radius: 14px !important;
  flex-wrap: nowrap !important;
  position: relative;
  z-index: 1;
}

/* Row 1: search full width */
.catalog-controls__search {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  max-width: none !important;
  flex: 0 0 auto !important;
  min-width: 0 !important;
  height: var(--catalog-control-h) !important;
  margin: 0 !important;
  padding: 0 8px 0 10px !important;
  background: var(--bg-card) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--catalog-control-radius) !important;
  box-sizing: border-box !important;
}
.catalog-controls__search .catalog-search__ico {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: var(--muted);
}
.catalog-controls__search .catalog-search__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  border: 0 !important;
  background: transparent !important;
  padding: 0 8px !important;
  font-size: 14px !important;
  line-height: 1 !important;
  color: var(--text);
}
.catalog-controls__search .catalog-search__clear {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

/* Row 2: desktop filters — single baseline */
.catalog-controls__filters.desktop-only {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: flex-end !important;
  gap: var(--catalog-control-gap) !important;
  width: 100% !important;
  min-width: 0 !important;
  flex: 0 0 auto !important;
}
.catalog-controls__field {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  gap: 3px !important;
  margin: 0 !important;
  min-width: 0;
  font-size: 10px !important;
  line-height: 1 !important;
  color: var(--muted) !important;
  font-weight: 600;
}
.catalog-controls__field select {
  height: var(--catalog-control-h) !important;
  min-height: var(--catalog-control-h) !important;
  max-height: var(--catalog-control-h) !important;
  box-sizing: border-box !important;
  padding: 0 8px !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--catalog-control-radius) !important;
  background: var(--bg-card) !important;
  color: var(--text) !important;
  font-size: 12px !important;
  line-height: 1 !important;
  max-width: none !important;
  width: 100%;
  min-width: 72px;
}
.catalog-controls__field.glow-toggle {
  flex-direction: row !important;
  align-items: center !important;
  align-self: flex-end !important;
  height: var(--catalog-control-h) !important;
  padding: 0 10px !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--catalog-control-radius) !important;
  background: var(--bg-card) !important;
  gap: 6px !important;
  color: var(--text) !important;
  font-size: 12px !important;
  white-space: nowrap;
}
.catalog-controls__field.glow-toggle input {
  margin: 0;
}
.catalog-controls .view-toggle {
  display: inline-flex !important;
  align-self: flex-end !important;
  height: var(--catalog-control-h) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--catalog-control-radius) !important;
  overflow: hidden;
  background: var(--bg-card);
}
.catalog-controls .view-btn {
  width: var(--catalog-control-h) !important;
  height: var(--catalog-control-h) !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  display: inline-grid;
  place-items: center;
  background: transparent;
  color: var(--text);
  font-size: 14px;
}
.catalog-controls .view-btn.is-active {
  background: var(--orange);
  color: #fff;
}
.catalog-controls .shown-count,
.catalog-controls .result-count {
  align-self: flex-end !important;
  display: inline-flex !important;
  align-items: center !important;
  height: var(--catalog-control-h) !important;
  margin: 0 0 0 4px !important;
  padding: 0 4px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  white-space: nowrap;
  border: 0 !important;
  background: transparent !important;
}

/* Left filters align with right chrome top */
@media (min-width: 901px) {
  .catalog-layout > .filters {
    margin-top: 0 !important;
  }
  .catalog-layout > .filters .filters__head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px;
    min-height: var(--catalog-control-h);
    margin-bottom: 8px;
  }
  .catalog-layout > .filters .filters__head h3 {
    margin: 0;
    line-height: 1.2;
  }
  /* proportional select widths */
  .catalog-controls__field:nth-child(1),
  .catalog-controls__field:nth-child(2) { flex: 1.1 1 90px; }
  .catalog-controls__field:nth-child(3),
  .catalog-controls__field:nth-child(4),
  .catalog-controls__field:nth-child(5) { flex: 0.85 1 70px; }
  .catalog-controls__field:nth-child(7) { flex: 1.15 1 100px; }
}

@media (max-width: 1180px) and (min-width: 901px) {
  .catalog-controls__filters.desktop-only {
    flex-wrap: wrap !important;
  }
  .catalog-controls__field {
    flex: 1 1 110px !important;
  }
}

/* Mobile row: equal height */
@media (max-width: 900px) {
  .catalog-controls__filters.desktop-only { display: none !important; }
  .catalog-controls__mobile-row.mobile-only {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    min-height: var(--catalog-control-h);
  }
  .catalog-controls__mobile-row .catalog-filters-toggle,
  .catalog-controls__mobile-row .catalog-controls__field select,
  .catalog-controls__mobile-row .shown-count {
    height: var(--catalog-control-h) !important;
    min-height: var(--catalog-control-h) !important;
    box-sizing: border-box !important;
    border-radius: var(--catalog-control-radius) !important;
  }
  .catalog-controls__mobile-row .catalog-filters-toggle {
    display: inline-flex !important;
    align-items: center !important;
    padding: 0 12px !important;
    border: 1px solid var(--line) !important;
  }
  .catalog-controls__mobile-row .catalog-controls__field {
    flex-direction: row !important;
    align-items: center !important;
    gap: 6px !important;
  }
  .catalog-controls__mobile-row .catalog-controls__field--rows {
    flex: 0 0 auto !important;
    min-width: 112px !important;
    white-space: nowrap;
  }
  .catalog-controls__mobile-row .catalog-controls__field--rows select {
    flex: 0 0 64px;
    width: 64px !important;
    min-width: 64px !important;
  }
  .catalog-controls__mobile-row .shown-count {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-end;
    min-width: 66px;
    margin-left: auto !important;
    font-weight: 700;
  }
}

@media (max-width: 350px) {
  .catalog-controls__mobile-row {
    gap: 6px !important;
  }
  .catalog-controls__mobile-row .catalog-filters-toggle {
    padding-inline: 10px !important;
  }
  .catalog-controls__mobile-row .catalog-controls__field--rows {
    min-width: 64px !important;
  }
  .catalog-controls__mobile-row .catalog-controls__field-label {
    display: none;
  }
}

/* ========== GBUILD-0061: production content below the catalog ========== */
.eyebrow {
  margin: 0 0 8px;
  color: var(--orange);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .09em;
  line-height: 1.2;
  text-transform: uppercase;
}

.section-lead {
  margin: 0;
  max-width: 52ch;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.section__head--split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, .8fr);
  align-items: end;
  gap: 18px 42px;
}
.section__head--split .section-lead {
  justify-self: end;
}
.value-section h2,
.material-guide h2,
#directions h2,
.service-section h2,
#about h2,
#contacts h2,
.faq-section h2 {
  color: var(--text);
  text-transform: none;
  letter-spacing: -.015em;
  text-wrap: balance;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.value-card {
  position: relative;
  min-height: 190px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--orange) 8%, transparent), transparent 45%),
    var(--bg-card);
  transition: border-color .15s ease, transform .15s ease;
}
.value-card::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -44px;
  width: 130px;
  height: 130px;
  border: 1px solid color-mix(in srgb, var(--orange) 28%, transparent);
  border-radius: 50%;
  pointer-events: none;
}
.value-card:hover { border-color: color-mix(in srgb, var(--orange) 55%, var(--line)); transform: translateY(-2px); }
.value-card__index {
  display: block;
  margin-bottom: 30px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}
.value-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.2;
}
.value-card p {
  margin: 0;
  max-width: 38ch;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.material-guide {
  background: var(--bg);
}
.material-guide__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.material-guide__card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 260px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-elev);
}
html[data-theme="light"] .material-guide__card { background: #fff; box-shadow: 0 8px 24px rgba(18,25,40,.05); }
.material-guide__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.material-guide__mark {
  display: inline-grid;
  min-width: 48px;
  min-height: 28px;
  place-items: center;
  padding: 4px 9px;
  border: 1px solid color-mix(in srgb, var(--orange) 50%, var(--line));
  border-radius: 8px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .05em;
}
.material-guide__hint {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-align: right;
  text-transform: uppercase;
}
.material-guide__card h3 {
  margin: 4px 0 0;
  font-size: 16px;
  line-height: 1.25;
}
.material-guide__card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: end;
  margin-top: auto;
  color: var(--orange-2);
  font-size: 13px;
  font-weight: 800;
}
.text-link:hover { color: var(--orange); }
.text-link span { transition: transform .15s ease; }
.text-link:hover span { transform: translateX(3px); }

.service-section .section__head {
  margin-bottom: 20px;
}
.service-section .service-card::after { display: none !important; }
.service-section .service-card__body { min-height: 164px; }

.about__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.about__stat {
  display: grid;
  gap: 3px;
  min-height: 102px;
  align-content: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-card);
}
.about__stat strong {
  color: var(--orange);
  font-size: 25px;
  line-height: 1;
}
.about__stat span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.contact-cta {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, .7fr);
  align-items: center;
  gap: 22px 42px;
  padding: 28px 32px;
  border: 1px solid color-mix(in srgb, var(--orange) 38%, var(--line));
  border-radius: 20px;
  background:
    radial-gradient(circle at 88% 50%, color-mix(in srgb, var(--orange) 16%, transparent), transparent 42%),
    var(--bg-elev);
}
.contact-cta h2 { margin: 0 0 8px; }
.contact-cta p:not(.eyebrow) { margin: 0; max-width: 58ch; color: var(--muted); font-size: 14px; line-height: 1.55; }
.contact-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.contact-cta__actions .btn { flex: 0 1 auto; }

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}
.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-card);
}
html[data-theme="light"] .faq-item { background: #fff; }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 750;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--orange);
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p {
  margin: -2px 18px 17px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

@media (max-width: 980px) {
  .section__head--split,
  .contact-cta { grid-template-columns: 1fr; }
  .section__head--split .section-lead { justify-self: start; }
  .material-guide__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-cta__actions { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .value-grid,
  .material-guide__grid,
  .faq-grid { grid-template-columns: 1fr; }
  .value-card { min-height: 0; }
  .material-guide__card { min-height: 0; }
  .contact-cta { padding: 22px 18px; }
  .contact-cta__actions { display: grid; grid-template-columns: 1fr; }
  .contact-cta__actions .btn { width: 100%; }
}

/* ========== GBUILD-0062: adaptive header and readable mobile menu ========== */
.header__catalog-link { display: none; }

@media (max-width: 1380px) {
  .header__inner {
    position: relative;
    grid-template-columns: minmax(0, 1fr) auto auto minmax(0, auto);
    gap: 8px 12px;
    min-height: 64px;
    padding-block: 6px;
  }

  /* На узком экране у каждого элемента своя колонка: логотип всегда слева,
     а «Каталог», меню и действия не могут наехать на него. */
  .logo {
    width: 100%;
    min-width: 0;
    justify-self: start;
  }
  .logo__full {
    max-width: 100%;
  }
  .header__catalog-link,
  .nav-toggle,
  .header__actions {
    justify-self: end;
  }

  .header__catalog-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--bg-card);
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
  }
  .header__catalog-link:hover,
  .header__catalog-link:focus-visible {
    border-color: var(--orange);
    color: var(--text);
    outline: none;
  }

  .nav.nav--row .nav__catalog-link { display: none; }

  .nav-toggle {
    grid-column: 3;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--bg-card);
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
  }
  .nav-toggle:hover,
  .nav-toggle:focus-visible {
    border-color: var(--orange);
    outline: none;
  }

  .nav.nav--row,
  .nav.nav--row.is-open {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    z-index: 60;
    display: none !important;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 2px;
    max-height: min(70vh, 520px);
    overflow: auto;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--bg-elev);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .28);
    white-space: normal;
  }
  .nav.nav--row.is-open {
    display: flex !important;
  }
  .nav.nav--row a {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--text);
    font-size: 14px;
    line-height: 1.25;
    white-space: normal;
  }
  .nav.nav--row a:hover,
  .nav.nav--row a:focus-visible {
    background: var(--orange-dim);
    color: var(--text);
    outline: none;
  }
  .nav.nav--row .mobile-nav-action {
    display: flex;
    align-items: center;
    min-height: 42px;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 14px;
    line-height: 1.25;
    text-align: left;
    cursor: pointer;
  }
  .nav.nav--row .mobile-nav-action:hover,
  .nav.nav--row .mobile-nav-action:focus-visible {
    background: var(--orange-dim);
    color: var(--text);
    outline: none;
  }

  .header__actions {
    justify-self: end;
    min-width: 0;
    gap: 4px;
  }
  .header__actions .hact {
    padding-inline: 7px;
  }
  .header__actions .hact > span:not(.hact__ico):not(.cart-count),
  .header__actions .theme-toggle__label {
    display: none;
  }
}

@media (max-width: 480px) {
  .header__inner {
    grid-template-columns: minmax(0, 1fr) auto auto minmax(0, auto);
    gap: 6px;
    min-height: 58px;
  }
  .logo {
    overflow: hidden;
  }
  .logo__full {
    width: 100%;
    height: 40px;
    max-width: min(145px, 38vw);
  }
  .header__catalog-link {
    min-height: 34px;
    padding: 8px 7px;
    font-size: 11px;
  }
  .nav-toggle {
    min-height: 34px;
    padding-inline: 9px;
  }
  .theme-toggle {
    display: none;
  }
  .theme-toggle__track {
    width: 34px;
    height: 20px;
  }
  .theme-toggle__thumb {
    width: 14px;
    height: 14px;
  }
  html[data-theme="light"] .theme-toggle__thumb {
    transform: translateX(14px);
  }
  .header__actions .hact {
    padding: 7px 5px;
  }
  .header__actions .hact:not(.hact--cart) {
    display: none;
  }
  .header__actions .hact--cart {
    padding-inline: 7px;
  }
}

@media (max-width: 380px) {
  .header__inner { gap: 4px; }
  .logo__full { max-width: 108px; }
  .header__catalog-link {
    padding-inline: 5px;
    font-size: 10px;
  }
  .nav-toggle {
    padding-inline: 7px;
    font-size: 11px;
  }
  .header__actions .theme-toggle { display: none; }
}

.nav-toggle[aria-expanded="true"] {
  font-size: 20px;
  line-height: 1;
}

/* ========== GBUILD-0063: account + production readiness ========== */
.skip-link {
  position: fixed;
  left: 12px;
  top: 10px;
  z-index: 400;
  transform: translateY(-150%);
  padding: 9px 13px;
  border-radius: 9px;
  background: var(--orange);
  color: #fff;
  font-weight: 800;
  transition: transform .18s ease;
}
.skip-link:focus { transform: translateY(0); }

.hact__svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.product__status.is-in {
  background: rgba(48, 190, 112, .14);
  color: #75dfa5;
}
html[data-theme="light"] .product__status.is-in {
  background: rgba(21, 145, 82, .1);
  color: #08743b;
}

:where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.modal__dialog--cart {
  width: min(94vw, 760px);
  max-width: 760px;
}
.modal__dialog--checkout {
  width: min(94vw, 820px);
  max-width: 820px;
}
.modal__dialog--account {
  width: min(96vw, 1120px);
  max-width: 1120px;
  max-height: min(94vh, 920px);
  overflow: auto;
}

/* ========== GBUILD-0083: каталожные карточки направлений под заказ ========== */
.product--offering .product__visual,
html[data-theme="light"] .product--offering .product__visual {
  background: #0d141d;
}
.product--offering .product__visual-link {
  inset: 8px;
}
.product--offering .product__img--offering {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  object-position: center !important;
}
.product__offer-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 5;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(255, 106, 0, .94);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
}
.product__offer-eyebrow {
  min-height: 2.6em;
  margin: 0;
  color: var(--orange-2);
  font-size: 10.5px;
  font-weight: 750;
  line-height: 1.3;
}
.product__meta--offering {
  min-height: 5.4em;
}
.product__status.is-order {
  background: rgba(255, 151, 42, .14);
  color: #ffc46a;
}
html[data-theme="light"] .product__status.is-order {
  background: rgba(211, 100, 0, .11);
  color: #a84f00;
}
.product__actions--offering .btn,
.product__actions--offering a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  text-align: center;
}
.dir-card__body h3 a {
  color: inherit;
}
.dir-card__body h3 a:hover,
.dir-card__body h3 a:focus-visible {
  color: var(--orange);
}

@media (max-width: 900px) {
  .product--offering .product__offer-eyebrow {
    min-height: 0;
  }
  .product--offering .product__actions--offering {
    grid-template-columns: 1fr;
  }
}
.modal.is-dialog-expanded { padding: 0; }
.modal__dialog--account.is-expanded {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  border: 0;
  border-radius: 0;
  padding: 24px clamp(18px, 3vw, 46px);
}
.modal__dialog--account.is-expanded > h2 { margin-bottom: 18px; }
.modal__dialog--account.is-expanded .account-shell { min-height: calc(100% - 8px); }
.modal__dialog--account > h2 {
  margin-bottom: 14px;
}

.account-shell {
  display: grid;
  gap: 16px;
}
.account-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-card);
}
.account-head > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.account-head strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
}
.account-head span:not(.account-avatar) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 12px;
}
.account-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}
.account-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 16px;
  min-height: 430px;
}
.account-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-self: start;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-card);
}
.account-nav button {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.account-nav button:hover,
.account-nav button.is-active {
  background: var(--orange-dim);
  color: var(--text);
}
.account-content {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-card);
}
.account-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.account-stats article {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-elev);
}
.account-stats span,
.account-stats small {
  color: var(--muted);
  font-size: 11px;
}
.account-stats strong {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1;
}
.account-quick {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.account-quick button {
  min-height: 78px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.account-quick button:hover {
  border-color: var(--orange);
  background: var(--orange-dim);
}
.account-quick strong { font-size: 13px; }
.account-quick span { color: var(--muted); font-size: 11px; }
.account-section { margin-top: 18px; }
.account-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}
.account-section__head h3 { margin: 0; font-size: 15px; }
.account-recent-list { display: grid; gap: 7px; }
.account-recent {
  width: 100%;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.account-recent:hover { border-color: var(--orange); }
.account-recent img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: contain;
  background: var(--bg-elev);
}
.account-recent span { min-width: 0; display: grid; gap: 2px; }
.account-recent strong,
.account-recent small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-recent strong { font-size: 12px; }
.account-recent small { color: var(--muted); font-size: 10px; }

.account-empty {
  min-height: 250px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  padding: 24px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 12px;
}
.account-empty p { max-width: 520px; margin: 0; color: var(--muted); font-size: 13px; }
.account-empty--compact { min-height: 110px; }
.account-request-list { display: grid; gap: 8px; min-width: 0; }
.account-request {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
}
.account-request > div { min-width: 0; display: grid; gap: 3px; }
.account-request > div:last-child { justify-items: end; }
.account-request strong,
.account-request span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-request strong { font-size: 13px; }
.account-request span,
.account-request time { color: var(--muted); font-size: 11px; }
.account-request__status { color: #75dfa5 !important; }
html[data-theme="light"] .account-request__status { color: #08743b !important; }
.account-request .purchase-timeline { grid-column: 1 / -1; min-width: 0; }
.account-request .purchase-timeline li { min-width: 0; }
.account-request .purchase-timeline span { white-space: normal; overflow-wrap: anywhere; }

.account-order-list { display: grid; gap: 9px; }
.account-order {
  display: grid;
  gap: 9px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-elev);
}
.account-order__top,
.account-order__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.account-order__top > div { display: grid; gap: 2px; }
.account-order__top strong { font-size: 13px; }
.account-order time,
.account-order p,
.account-order__meta { color: var(--muted); font-size: 11px; }
.account-order p { margin: 0; line-height: 1.45; }
.account-order__meta { justify-content: flex-start; }
.account-order__meta span { padding-right: 10px; border-right: 1px solid var(--line); }
.account-order__meta span:last-child { border-right: 0; }
.account-order__status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 106, 0, .13);
  color: #ff8a3a;
  font-size: 10px;
  font-weight: 800;
}
html[data-theme="light"] .account-order__status { color: #a94300; }
.account-order__status--completed,
.account-order__status--shipped { background: rgba(48, 190, 112, .14); color: #75dfa5; }
html[data-theme="light"] .account-order__status--completed,
html[data-theme="light"] .account-order__status--shipped { color: #08743b; }
.account-order__status--canceled { background: rgba(214, 62, 62, .13); color: #ff8b8b; }
html[data-theme="light"] .account-order__status--canceled { color: #a22727; }

.account-profile { display: grid; gap: 14px; }
.account-profile__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.account-profile label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}
.account-profile input,
.account-profile select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-elev);
  color: var(--text);
  padding: 9px 11px;
}
.account-profile__wide { grid-column: 1 / -1; }
.form-note { margin: 0; color: var(--muted); font-size: 11px; }

.checkout-summary {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-card);
}
.checkout-summary > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.checkout-summary > div strong { color: var(--text); font-size: 13px; }
.checkout-summary > div span { color: var(--muted); font-size: 11px; }
.checkout-summary ul {
  max-height: 150px;
  overflow: auto;
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.checkout-summary li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
}
.checkout-summary li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.checkout-summary li strong { color: var(--text); }
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.checkout-grid__wide { grid-column: 1 / -1; }
.checkout-payment-note,
.checkout-invoice-note p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.checkout-invoice-note {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-card);
}
.checkout-invoice-note[hidden] { display: none !important; }
.checkout-invoice-note strong { display: block; margin-bottom: 5px; color: var(--text); font-size: 13px; }

.cart-product {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
}
.cart-product > img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--bg-elev);
}
.cart-product__copy { min-width: 0; display: grid; gap: 4px; }
.cart-product__copy strong,
.cart-product__copy span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-product__copy strong { font-size: 12px; }
.cart-product__copy span { color: var(--muted); font-size: 10px; }
.cart-product__qty {
  display: grid;
  grid-template-columns: 32px 30px 32px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
}
.cart-product__qty button {
  width: 32px;
  height: 34px;
  border: 0;
  background: var(--bg-elev);
  cursor: pointer;
}
.cart-product__qty span { text-align: center; font-size: 12px; font-weight: 800; }
.cart-product__remove { white-space: nowrap; }
.account-checkout {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 12px;
}
.account-checkout p {
  margin: 0 auto 0 0;
  max-width: 480px;
  color: var(--muted);
  font-size: 11px;
}

.success-state {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 12px 0 2px;
  text-align: center;
}
.success-state > span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(48, 190, 112, .14);
  color: #75dfa5;
  font-size: 24px;
  font-weight: 900;
}
.success-state h3 { margin: 0; font-size: 18px; }
.success-state p { max-width: 520px; margin: 0; color: var(--muted); font-size: 13px; }

@media (max-width: 760px) {
  .modal { padding: 0; }
  .modal__expand {
    width: 40px;
    min-height: 40px;
    padding: 0;
  }
  .modal__expand [data-modal-expand-label] { display: none; }
  .modal__dialog--account {
    width: 100%;
    max-width: none;
    min-height: 100dvh;
    max-height: 100dvh;
    border: 0;
    border-radius: 0;
    padding: 15px;
  }
  .modal__dialog--checkout {
    width: 100%;
    max-width: none;
    min-height: 100dvh;
    max-height: 100dvh;
    border: 0;
    border-radius: 0;
    padding: 15px;
  }
  .account-layout { grid-template-columns: 1fr; min-height: 0; }
  .account-nav {
    position: sticky;
    top: 0;
    z-index: 2;
    flex-direction: row;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .account-nav::-webkit-scrollbar { display: none; }
  .account-nav button { width: auto; min-width: max-content; text-align: center; }
  .account-content { padding: 12px; }
  .account-stats,
  .account-quick { grid-template-columns: 1fr 1fr; }
  .account-stats article:last-child,
  .account-quick button:last-child { grid-column: 1 / -1; }
  .account-request { grid-template-columns: 1fr; }
  .account-request > div:last-child { justify-items: start; }
  .cart-product { grid-template-columns: 52px minmax(0, 1fr) auto; }
  .cart-product > img { width: 52px; height: 52px; }
  .cart-product__remove { grid-column: 2 / -1; justify-self: start; }
}

@media (max-width: 480px) {
  .account-head { grid-template-columns: auto minmax(0, 1fr); }
  .account-head .btn { grid-column: 1 / -1; width: 100%; }
  .account-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }
  .account-nav button {
    width: 100%;
    min-width: 0;
  }
  .account-stats,
  .account-quick,
  .account-profile__grid,
  .checkout-grid { grid-template-columns: 1fr; }
  .account-stats article:last-child,
  .account-quick button:last-child,
  .account-profile__wide { grid-column: auto; }
  .checkout-grid__wide { grid-column: auto; }
  .cart-product { grid-template-columns: 44px minmax(0, 1fr); gap: 8px; }
  .cart-product > img { width: 44px; height: 44px; }
  .cart-product__qty { grid-column: 1 / -1; justify-self: start; }
  .cart-product__remove { grid-column: 1 / -1; }
  .account-checkout { align-items: stretch; }
  .account-checkout .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* GBUILD-0064: кабинет заказа по структуре прайс-листа производителя. */
.order-cabinet {
  display: grid;
  gap: 12px;
}
.order-layout {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
}
.order-groups {
  display: grid;
  align-content: start;
  gap: 3px;
  max-height: 560px;
  overflow: auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--bg-card);
}
.order-groups button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  text-align: left;
  cursor: pointer;
}
.order-groups button span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.order-groups button span:last-child {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 10px;
}
.order-groups button:hover,
.order-groups button.is-active {
  background: var(--orange-dim);
  color: var(--text);
}
.order-groups button.is-active span:last-child { color: var(--orange); }
.order-main {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 10px;
}
.order-main-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.order-main-head > div:first-child { min-width: 0; }
.order-main-tools {
  min-width: 0;
  display: grid;
  align-self: end;
  gap: 7px;
}
.order-main-tools__lead {
  max-width: none;
  margin: 0;
  line-height: 1.35;
}
.order-main-head h3 {
  margin: 0;
  font-size: 20px;
}
.order-lead {
  max-width: 520px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
}
.order-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.order-search {
  display: flex;
  align-items: center;
  width: clamp(260px, 28vw, 420px);
  min-width: 260px;
  flex: 0 0 clamp(260px, 28vw, 420px);
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--bg-card);
}
.order-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 13px;
}
.order-view {
  display: inline-flex;
  flex: 0 0 auto;
  height: 38px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--bg-card);
}
.order-view button {
  width: 38px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.order-view button:last-child { border-right: 0; }
.order-view button.is-active {
  background: var(--orange);
  color: #fff;
}
.order-catalog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 25px;
  color: var(--muted);
  font-size: 11px;
}
.order-catalog-meta span:first-child {
  color: var(--text);
  font-weight: 800;
}
.order-products { min-width: 0; }
.order-products--cards__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}
.order-product {
  min-width: 0;
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--bg-card);
}
.order-product__photo {
  position: relative;
  display: block;
  aspect-ratio: .82;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: var(--bg-elev);
  cursor: pointer;
}
.order-product__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.order-product__photo > span {
  position: absolute;
  right: 7px;
  bottom: 7px;
  padding: 4px 6px;
  border-radius: 6px;
  background: rgba(0, 0, 0, .62);
  color: #fff;
  font-size: 10px;
}
.order-product__body {
  display: grid;
  gap: 4px;
  padding: 9px;
}
.order-product__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 800;
}
.order-product__meta {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.order-product__price {
  font-size: 15px;
  font-weight: 900;
}
.order-qty {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 34px 40px;
  min-height: 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.order-qty button,
.order-qty input {
  min-width: 0;
  height: 34px;
  border: 0;
  border-right: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--text);
  font-size: 12px;
}
.order-qty button { cursor: pointer; }
.order-qty button:last-child { border-right: 0; }
.order-qty input {
  width: 100%;
  padding: 0 4px;
  outline: 0;
  text-align: center;
}
.order-qty input::-webkit-inner-spin-button { opacity: .6; }
.order-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 11px;
}
.order-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 12px;
}
.order-table th {
  padding: 9px 10px;
  color: var(--muted);
  font-size: 10px;
  text-align: left;
}
.order-table td {
  padding: 8px 10px;
  border-top: 1px solid var(--line);
  vertical-align: middle;
}
.order-table th:nth-child(2),
.order-table td:nth-child(2) {
  width: 120px;
  text-align: right;
}
.order-table th:nth-child(3),
.order-table td:nth-child(3) {
  width: 190px;
  text-align: right;
}
.order-table__product {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.order-table__product > span {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.order-table__product strong,
.order-table__product small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.order-table__product strong { font-size: 12px; }
.order-table__product small { color: var(--muted); font-size: 10px; }
.order-table__photo {
  width: 42px;
  height: 54px;
  display: block;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-elev);
  cursor: pointer;
}
.order-table__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.order-empty {
  min-height: 160px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 6px;
  padding: 20px;
  border: 1px dashed var(--line);
  border-radius: 11px;
  color: var(--muted);
  text-align: center;
}
.order-empty strong { color: var(--text); }
.order-empty span { font-size: 12px; }

@media (max-width: 900px) {
  .order-layout { grid-template-columns: 1fr; }
  .order-groups {
    display: flex;
    gap: 4px;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 5px;
    scrollbar-width: thin;
  }
  .order-groups button {
    width: auto;
    min-width: max-content;
    flex: 0 0 auto;
    padding-inline: 9px;
  }
  .order-main-head {
    align-items: stretch;
    flex-direction: column;
  }
  .order-main-tools { width: 100%; }
  .order-toolbar { width: 100%; }
  .order-search { width: auto; min-width: 0; flex: 1 1 auto; }
  .order-products--cards__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
  .order-toolbar { flex-wrap: wrap; }
  .order-search { width: 100%; }
  .order-view { margin-left: auto; }
  .order-catalog-meta { align-items: flex-start; flex-direction: column; gap: 3px; }
  .order-products--cards__grid { gap: 7px; }
  .order-product__body { padding: 7px; }
  .order-product__name { font-size: 12px; }
  .order-product__price { font-size: 13px; }
  .order-qty { grid-template-columns: 28px minmax(0, 1fr) 30px 38px; }
}

/* ========== GBUILD-0075: progressive header navigation ========== */
.header__progressive-nav {
  display: none;
  min-width: 0;
  align-items: center;
  gap: 2px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.header__progressive-nav a {
  display: none;
  flex: 0 0 auto;
  min-height: 36px;
  align-items: center;
  padding: 8px 9px;
  border-radius: 9px;
  font-weight: 650;
  line-height: 1;
}

.header__progressive-nav a:hover,
.header__progressive-nav a:focus-visible {
  background: var(--orange-dim);
  color: var(--text);
  outline: none;
}

/* Tablet and intermediate desktop sizes reveal links one by one. */
@media (min-width: 721px) and (max-width: 1380px) {
  .header__inner {
    grid-template-columns: minmax(150px, 210px) minmax(0, 1fr) auto auto;
    gap: 8px 10px;
  }
  .header .logo {
    width: auto;
    max-width: 210px;
    overflow: hidden;
  }
  .header .logo__full {
    width: auto;
    height: 46px;
    max-width: 100%;
  }
  .header__catalog-link { display: none; }
  .header__progressive-nav {
    grid-column: 2;
    display: flex;
  }
  .nav-toggle { grid-column: 3; }
  .header__actions { grid-column: 4; }
  .nav.nav--row .nav__catalog-link { display: flex; }
}

@media (min-width: 721px) and (max-width: 820px) {
  .header__progressive-nav [data-header-priority="1"] { display: inline-flex; }
}

@media (min-width: 821px) and (max-width: 960px) {
  .header__progressive-nav [data-header-priority="1"],
  .header__progressive-nav [data-header-priority="2"] { display: inline-flex; }
}

@media (min-width: 961px) and (max-width: 1060px) {
  .header__progressive-nav [data-header-priority="1"],
  .header__progressive-nav [data-header-priority="2"],
  .header__progressive-nav [data-header-priority="3"] { display: inline-flex; }
}

@media (min-width: 1061px) and (max-width: 1160px) {
  .header__progressive-nav [data-header-priority="1"],
  .header__progressive-nav [data-header-priority="2"],
  .header__progressive-nav [data-header-priority="3"],
  .header__progressive-nav [data-header-priority="4"],
  .header__progressive-nav [data-header-priority="5"] { display: inline-flex; }
}

@media (min-width: 1161px) and (max-width: 1260px) {
  .header__progressive-nav [data-header-priority="1"],
  .header__progressive-nav [data-header-priority="2"],
  .header__progressive-nav [data-header-priority="3"],
  .header__progressive-nav [data-header-priority="4"],
  .header__progressive-nav [data-header-priority="5"] { display: inline-flex; }
}

@media (min-width: 1261px) and (max-width: 1380px) {
  .header__progressive-nav a { display: inline-flex; }
  .nav-toggle { display: none !important; }
}

/* Phone header keeps the essential catalogue link visible; secondary actions
   remain available in the readable drop-down menu. */
@media (max-width: 720px) {
  .header__progressive-nav { display: none !important; }
  .header__catalog-link { display: inline-flex; }
  .nav.nav--row .nav__catalog-link { display: none; }
  .header .logo__full { max-width: min(190px, 34vw); }
  .header__actions .theme-toggle,
  .header__actions .hact:not(.hact--cart) { display: none; }
}

/* ========== GBUILD-0082: hybrid control preview + SEO backlinks ========== */
.product-preview__fullpage {
  margin: 10px 0 0;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.product-preview__fullpage-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);
  text-decoration: none;
}
.product-preview__fullpage-link:hover,
.product-preview__fullpage-link:focus-visible {
  text-decoration: underline;
}
.product--hybrid-control {
  /* без декоративного выделения — только data-атрибут для QA */
}

/* ========== GBUILD-0141: inline catalog detail + always-available filters ========== */
#productGrid[hidden],
#catalogProductDetail[hidden] {
  display: none !important;
}

.filters__detail-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-card);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.catalog-layout.is-product-open #catalogMore,
.catalog-layout.is-product-open .catalog-note {
  display: none !important;
}

.catalog-product-detail {
  min-width: 0;
  padding: 4px 0 28px;
}

.catalog-product-detail__card {
  display: grid;
  gap: 14px;
}

.catalog-product-detail__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.catalog-product-detail__columns {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr);
  align-items: start;
  gap: clamp(18px, 3vw, 32px);
}

.catalog-product-detail__gallery {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.catalog-product-detail__main-photo {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.catalog-product-detail__nav {
  width: 38px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-elev);
  color: var(--text);
  font-size: 28px;
  cursor: pointer;
}

.catalog-product-detail__zoom {
  display: grid;
  place-items: center;
  width: 100%;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-card);
  cursor: zoom-in;
}

.catalog-product-detail__zoom img {
  display: block;
  width: 100%;
  max-height: min(68vh, 680px);
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 9px;
}

.catalog-product-detail__photo-caption {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.catalog-product-detail__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.catalog-product-detail__thumb {
  width: 64px;
  height: 64px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--bg-card);
  cursor: pointer;
}

.catalog-product-detail__thumb.is-active {
  border-color: var(--orange);
  box-shadow: 0 0 0 1px var(--orange);
}

.catalog-product-detail__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.catalog-product-detail__no-photo {
  display: grid;
  min-height: 260px;
  place-items: center;
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: var(--bg-card);
  color: var(--muted);
  text-align: center;
}

.catalog-product-detail__info {
  min-width: 0;
  display: grid;
  gap: 12px;
}

.catalog-product-detail__info > .product__brand {
  margin: 0;
}

.catalog-product-detail__title {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.2;
}

.catalog-product-detail__intro {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.manufacturer-application {
  display: grid;
  gap: 7px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--orange);
  border-radius: 12px;
  background: var(--bg-elev);
}

.manufacturer-application__eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.manufacturer-application h3 {
  margin: 0;
  font-size: 16px;
}

.manufacturer-application > p:not(.manufacturer-application__eyebrow) {
  margin: 0;
  line-height: 1.55;
}

.manufacturer-application a {
  width: fit-content;
  color: var(--orange);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.manufacturer-application a:hover,
.manufacturer-application a:focus-visible {
  text-decoration: underline;
}

.catalog-product-detail__specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
  margin: 0;
  border-top: 1px solid var(--line);
}

.catalog-product-detail__specs > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.catalog-product-detail__specs dt {
  color: var(--muted);
}

.catalog-product-detail__specs dd {
  margin: 0;
  text-align: right;
}

.catalog-product-detail__specs .color-chip {
  display: inline-block;
  vertical-align: middle;
}

.catalog-product-detail__info > .catalog-color-note {
  margin: 0;
}

.catalog-product-detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (min-width: 901px) {
  .catalog-layout.is-product-open {
    grid-template-columns: 54px minmax(0, 1fr) !important;
    gap: 0 12px !important;
  }

  .catalog-layout.is-product-open.is-product-filters-expanded {
    grid-template-columns: 220px minmax(0, 1fr) !important;
  }

  .catalog-layout.is-product-open > #catalogFilters {
    min-width: 0;
    padding: 8px 5px;
    overflow-x: hidden;
  }

  .catalog-layout.is-product-open:not(.is-product-filters-expanded) > #catalogFilters .filters__head {
    display: flex;
    justify-content: center;
    padding: 0;
  }

  .catalog-layout.is-product-open:not(.is-product-filters-expanded) > #catalogFilters .filters__head h3,
  .catalog-layout.is-product-open:not(.is-product-filters-expanded) > #catalogFilters #resetFilters,
  .catalog-layout.is-product-open:not(.is-product-filters-expanded) > #catalogFilters .filters__body {
    display: none !important;
  }

  .catalog-layout.is-product-open #detailFiltersToggle {
    display: flex;
    width: 100%;
  }

  .catalog-layout.is-product-open:not(.is-product-filters-expanded) #detailFiltersToggle {
    min-height: 112px;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
  }

  .catalog-layout.is-product-open.is-product-filters-expanded > #catalogFilters .filters__head {
    align-items: center;
  }
}

@media (max-width: 900px) {
  .catalog-layout.is-product-open {
    display: flex !important;
    flex-direction: column;
  }

  .catalog-layout.is-product-open > #catalogFilters {
    display: none !important;
  }

  .catalog-layout.is-product-open #detailFiltersToggle {
    display: none !important;
  }

  .catalog-product-detail__columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .catalog-product-detail__zoom img {
    max-height: min(56vh, 560px);
  }
}

@media (max-width: 520px) {
  .catalog-product-detail__header {
    align-items: flex-start;
  }

  .catalog-product-detail__specs {
    grid-template-columns: minmax(0, 1fr);
  }

  .catalog-product-detail__actions > .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}

/* GBUILD-0142: mobile filters as an independent, scrollable bottom sheet. */
.catalog-filters-toggle {
  gap: 8px;
}

.catalog-filters-toggle__count {
  display: inline-flex;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.catalog-filters-toggle__count[hidden] {
  display: none !important;
}

.catalog-filter-scrim {
  display: none;
}

@media (max-width: 900px) {
  body.catalog-filters-open {
    overflow: hidden;
    overscroll-behavior: none;
  }

  .catalog-filter-scrim:not([hidden]) {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 120;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(7, 10, 16, .54);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    touch-action: none;
  }

  #catalogFilters.filters.is-open {
    position: fixed !important;
    top: auto !important;
    right: auto !important;
    bottom: 0 !important;
    left: 50% !important;
    z-index: 121 !important;
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) auto;
    width: min(100vw, 560px);
    height: min(82dvh, 760px);
    max-height: min(88dvh, 780px) !important;
    min-height: min(430px, 78dvh);
    margin: 0;
    padding: 0;
    overflow: hidden !important;
    border-radius: 22px 22px 0 0;
    border: 1px solid var(--line);
    background: var(--bg-elev);
    box-shadow: 0 -14px 44px rgba(0, 0, 0, .28);
    transform: translateX(-50%);
    overscroll-behavior: contain;
    touch-action: pan-y;
  }

  #catalogFilters.filters.is-open .filters__head {
    display: flex;
    min-height: 64px;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 10px 14px 10px 18px;
    border-bottom: 1px solid var(--line);
  }

  #catalogFilters.filters.is-open .filters__head h3 {
    font-size: 16px;
    letter-spacing: 0;
  }

  #catalogFilters.filters.is-open #resetFilters {
    min-height: 44px;
    margin-left: auto;
    padding: 0 8px;
    white-space: nowrap;
  }

  #catalogFilters.filters.is-open .filters__close {
    display: inline-flex !important;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--bg);
    color: var(--text);
    font-size: 24px;
  }

  #catalogFilters.filters.is-open .filters__body {
    min-height: 0;
    max-height: none;
    padding: 2px 18px 22px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
  }

  #catalogFilters.filters.is-open .filters__body fieldset {
    margin-top: 14px;
    padding-top: 13px;
  }

  #catalogFilters.filters.is-open .filters__body label {
    min-height: 38px;
    gap: 10px;
    margin-bottom: 2px;
    font-size: 14px;
  }

  #catalogFilters.filters.is-open .filters__body input {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
  }

  #catalogFilters.filters.is-open .filters__footer {
    display: flex !important;
    min-height: 76px;
    align-items: center;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: var(--bg-elev);
    box-shadow: 0 -8px 18px rgba(0, 0, 0, .08);
  }

  #filtersApply {
    width: 100%;
    min-height: 50px;
    justify-content: center;
    border-radius: 14px;
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: no-preference) and (max-width: 900px) {
  #catalogFilters.filters.is-open {
    animation: catalog-filter-sheet-in .18s ease-out both;
  }

  @keyframes catalog-filter-sheet-in {
    from { opacity: .7; transform: translate(-50%, 14px); }
    to { opacity: 1; transform: translate(-50%, 0); }
  }
}

/* GBUILD-0146: prevent long form content from widening the checkout dialog. */
.modal__dialog--checkout form {
  width: 100%;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
}

.modal__dialog--checkout form > *,
.modal__dialog--checkout .checkout-summary,
.modal__dialog--checkout .checkout-summary ul,
.modal__dialog--checkout .checkout-summary li,
.modal__dialog--checkout .checkout-grid,
.modal__dialog--checkout .checkout-grid > * {
  min-width: 0;
}

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

.modal__dialog--checkout .checkout-grid label {
  grid-template-columns: minmax(0, 1fr);
}

.modal__dialog--checkout .checkout-grid :is(input, select, textarea) {
  min-width: 0;
  max-width: 100%;
}

.modal__dialog--checkout .checkout-summary > div span {
  overflow-wrap: anywhere;
}

@media (max-width: 480px) {
  .modal__dialog--checkout .checkout-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
