/* ============================================================
   GABIONOPT — дизайн-система сайта
   Индустриальный, деловой, строгий стиль: сталь/цинк + оксидный
   акцент, IBM Plex (Sans Condensed — заголовки/нав, Sans — текст,
   Mono — артикулы/размеры/цены).
   ============================================================ */

/* Сайт всегда светлый — намеренно, независимо от системной темы устройства. */
:root {
  --paper: #EEF0F0;
  --surface: #FFFFFF;
  --surface-2: #E4E7E8;
  --line: #D3D8DA;
  --line-strong: #B7BEC1;
  --ink: #1A1F22;
  --muted: #5C6469;
  --faint: #8A9297;
  --oxide: #B8431E;
  --oxide-ink: #FFFFFF;
  --oxide-soft: #F3E3DB;
  --ok: #3D6B3F;
  --header-bg: rgba(238, 240, 240, 0.94);
  --focus: #1E6FB8;
  --radius: 5px;
  --radius-sm: 3px;
  --radius-lg: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  max-width: 100vw;
  background: var(--paper);
  color: var(--ink);
  font-family: "Golos Text", ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: "Golos Text", sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0;
  color: var(--ink);
}
a { color: inherit; }
code, .mono, .num { font-family: "JetBrains Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
@media (max-width: 640px) { .wrap { padding: 0 18px; } }

.eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 12.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--faint);
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: var(--oxide); }

button, .btn {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
  font-family: "Golos Text", sans-serif;
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1.2;
  letter-spacing: 0.01em;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  padding: 12px 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  box-sizing: border-box;
  vertical-align: middle;
  white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
button:hover, .btn:hover { border-color: var(--ink); }
button:focus-visible, .btn:focus-visible, a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
button, .btn { border-radius: var(--radius-sm); }
.btn-primary {
  background: linear-gradient(160deg, #CB5024 0%, var(--oxide) 55%, #9C3714 100%);
  border-color: var(--oxide); color: var(--oxide-ink); box-shadow: 0 1px 2px rgba(80,25,8,.3);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.btn-primary:hover {
  transform: translateY(-2px); box-shadow: 0 6px 16px rgba(140,45,10,.35);
  background: linear-gradient(160deg, #D65C2C 0%, #C24D24 55%, #A63F18 100%); border-color: #C24D24;
}
.btn-full { width: 100%; justify-content: center; }
.btn-sm { padding: 9px 14px; font-size: 13px; }

/* ── Логотип ── */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 30px; width: auto; }
.brand-word { font-family: "Golos Text", sans-serif; font-weight: 700; font-size: 19px; letter-spacing: -0.01em; white-space: nowrap; }
.brand-word b { color: var(--oxide); font-weight: 700; }

/* ── Шапка ── */
header.site { position: sticky; top: 0; z-index: 40; background: var(--header-bg); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
header.site .wrap { max-width: 1400px; }
@media (min-width: 1400px) { header.site .wrap { padding: 0 36px; } }
@media (min-width: 1700px) { header.site .wrap { padding: 0 56px; } }
.topline { border-bottom: 1px solid var(--line); }
.topline-info { display: flex; align-items: center; gap: 18px; padding: 7px 0; font-size: 12.5px; color: var(--faint); }
.topline-info a { text-decoration: none; color: var(--muted); }
.topline-info a:hover { color: var(--oxide); }
@media (max-width: 640px) { .topline-info { gap: 12px; font-size: 11.5px; } }
.topbar { display: flex; align-items: center; padding: 18px 0; gap: 8px; }
nav.primary { display: flex; gap: 2px; margin-left: 30px; flex-wrap: nowrap; flex-shrink: 0; }
nav.primary a, nav.primary button {
  font-family: "Golos Text", sans-serif; font-weight: 600; font-size: 14.5px;
  text-decoration: none; color: var(--muted); padding: 9px 13px; border: 1px solid transparent;
  background: none; box-shadow: none; display: inline-flex; cursor: pointer; white-space: nowrap;
  border-radius: var(--radius-sm); position: relative;
}
nav.primary a:hover,
nav.primary button:hover { color: var(--oxide); border-color: transparent; background: var(--oxide-soft); }
nav.primary a.active { color: var(--oxide); border-color: transparent; background: var(--oxide-soft); font-weight: 700; }
nav.primary a.active::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 3px;
  height: 2px; border-radius: 2px; background: var(--oxide);
}
.topbar-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; flex-shrink: 0; }

/* ── Кластер контактов: выровненная сетка 3×2 ── */
.contact-cluster {
  display: grid;
  grid-template-columns: auto auto auto;
  grid-template-rows: auto auto;
  column-gap: 18px;
  row-gap: 1px;
  align-items: center;
  padding-left: 14px;
  padding-right: 14px;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.c-email { grid-column: 1; grid-row: 1; font-size: 12.5px; font-weight: 600; color: var(--ink); text-decoration: none; }
.c-email:hover { color: var(--oxide); }
.c-loc { grid-column: 1; grid-row: 2; font-size: 11px; color: var(--faint); line-height: 1.3; }
.c-phone {
  grid-column: 2; grid-row: 1 / 3; align-self: center;
  font-family: "JetBrains Mono", monospace; font-size: 14.5px; font-weight: 500;
  white-space: nowrap; text-decoration: none; color: var(--ink);
}
.chat-btns.c-chat { grid-column: 3; grid-row: 1 / 3; align-self: center; display: flex; gap: 4px; }
.chat-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  font-family: "Golos Text", sans-serif; font-size: 11px; font-weight: 600; white-space: nowrap;
  padding: 6px 9px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  color: var(--muted); text-decoration: none; background: var(--surface);
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.chat-btn svg { flex-shrink: 0; }
.chat-btn-tg:hover { border-color: #29A9EB; color: #1a86bd; background: #EAF7FE; }
.chat-btn-max:hover { border-color: #7C4DFF; color: #6a3fe0; background: #F2EEFF; }
@media (max-width: 1240px) { .c-email, .c-loc { display: none; } .contact-cluster { padding-left: 0; border-left: none; column-gap: 20px; } }
@media (max-width: 900px) { .chat-btns.c-chat { display: none; } .contact-cluster { border-right: none; padding-right: 0; } }
.menu-toggle { display: none; border: 1px solid var(--line-strong); background: var(--surface); font-size: 18px; line-height: 1; padding: 8px 12px; cursor: pointer; border-radius: var(--radius-sm); }
@media (max-width: 1240px) {
  nav.primary {
    display: none; margin-left: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; justify-content: flex-start;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 8px 0;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: 0 12px 24px rgba(10,12,13,.1);
  }
  nav.primary.open { display: flex; }
  nav.primary a, nav.primary button, nav.primary summary { padding: 13px 28px; width: 100%; justify-content: flex-start; box-sizing: border-box; }
  .nav-dropdown { display: block; width: 100%; }
  .nav-dropdown-menu a { width: 100%; box-sizing: border-box; }
  .menu-toggle { display: inline-flex; order: 3; }
  .topbar-actions { margin-left: 0; padding-left: 0; border-left: none; }
  header.site:has(.menu-toggle) .topbar-actions { order: 1; }
  header.site:has(.menu-toggle) .brand { order: 2; margin: 0 auto; }
  header.site:has(.menu-toggle) .contact-cluster { display: none; }
  .nav-mobile-contacts {
    display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
    margin-top: 6px; padding: 14px 28px 4px; border-top: 1px solid var(--line);
  }
  .nmc-phone { font-family: "JetBrains Mono", monospace; font-size: 16px; font-weight: 600; color: var(--ink); text-decoration: none; margin: 0; align-self: flex-start; }
  .nmc-email { font-size: 13.5px; font-weight: 600; color: var(--ink); text-decoration: none; margin: 0; align-self: flex-start; }
  .nmc-loc { font-size: 12px; color: var(--faint); margin: 0; align-self: flex-start; }
  .nmc-chat { display: flex; gap: 8px; margin-top: 4px; align-self: flex-start; }
}
@media (min-width: 1241px) { .nav-mobile-contacts { display: none; } }

nav.primary summary { font-family: "Golos Text", sans-serif; font-weight: 600; font-size: 14.5px; color: var(--muted); padding: 9px 13px; border: 1px solid transparent; border-radius: var(--radius-sm); cursor: pointer; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; list-style: none; user-select: none; }
nav.primary summary::-webkit-details-marker { display: none; }
nav.primary summary:hover { color: var(--oxide); background: var(--oxide-soft); }
.nav-dropdown { position: relative; display: flex; align-items: center; }
.nav-dropdown .nav-caret { display: inline-flex; transition: transform .15s ease; }
.nav-dropdown[open] .nav-caret { transform: rotate(180deg); }
.nav-dropdown-menu { display: flex; flex-direction: column; gap: 4px; }
.nav-dropdown-menu a { font-size: 14px; }
@media (min-width: 1241px) {
  .nav-dropdown-menu {
    position: absolute; top: calc(100% + 4px); left: 0; min-width: 240px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: 0 12px 24px rgba(10,12,13,.12); padding: 6px; z-index: 30;
  }
  /* Keep the dropdown open while the pointer crosses the gap below the summary. */
  .nav-dropdown::after { content: ""; position: absolute; left: -8px; right: -8px; top: 100%; height: 12px; }
}
@media (max-width: 1240px) {
  .nav-dropdown-menu { padding-left: 14px; }
  .nav-dropdown-menu a { padding: 11px 28px 11px 14px !important; }
  nav.primary summary { padding: 13px 28px; width: 100%; box-sizing: border-box; }
  .nav-dropdown { display: block; width: 100%; }
  nav.primary .nav-mobile-contacts a { padding: 0; width: auto; }
}

@media (max-width: 560px) {
  /* Three reserved zones keep the CTA, logo and menu from overlapping. */
  .topbar { display: grid; grid-template-columns: 72px minmax(0, 1fr) 44px; align-items: center; gap: 6px; padding-top: 10px; padding-bottom: 10px; }
  .topbar-actions { grid-column: 1; grid-row: 1; order: initial !important; margin: 0; gap: 0; min-width: 0; }
  .topbar-actions .btn { width: 72px; min-width: 0; padding: 9px 6px; font-size: 0; white-space: nowrap; }
  .topbar-actions .btn::after { content: "Цена"; font-size: 12.5px; line-height: 1; }
  header.site:has(.menu-toggle) .brand { grid-column: 2; grid-row: 1; order: initial; margin: 0; justify-self: center; min-width: 0; gap: 6px; }
  .menu-toggle { grid-column: 3; grid-row: 1; order: initial; width: 44px; height: 40px; padding: 0; align-items: center; justify-content: center; }
  .tel { display: none; }
  .brand-word { font-size: 16px; }
  .brand img { height: 24px; }
  .btn-sm { padding: 8px 12px; font-size: 12.5px; }
}

/* ── Hero ── */
.hero { padding: 76px 0 64px; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; background: linear-gradient(165deg, #F4F5F5 0%, var(--paper) 45%, #E8EAEA 100%); }
.hero-mesh { position: absolute; inset: 0; opacity: .5; pointer-events: none; mask-image: linear-gradient(to bottom, black, transparent 85%); }
.hero-grid { position: relative; display: grid; grid-template-columns: .95fr 1.15fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { font-size: clamp(32px, 4.4vw, 50px); line-height: 1.06; margin: 18px 0 20px; }
.hero p.lede { max-width: 46ch; font-size: 17.5px; color: var(--muted); margin: 0 0 30px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-side { display: flex; flex-direction: column; gap: 16px; }
.hero-carousel { position: relative; aspect-ratio: 4/3; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 12px 32px rgba(10,12,13,.12); }
.hero-carousel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s ease; }
.hero-carousel img.active { opacity: 1; }
.hero-carousel-dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 7px; z-index: 2; }
.hero-carousel-dots span { width: 7px; height: 7px; border-radius: 999px; background: rgba(255,255,255,.5); cursor: pointer; transition: background .2s ease, transform .2s ease; }
.hero-carousel-dots span.active { background: #fff; transform: scale(1.25); }
.hero-carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 38px; height: 38px; border-radius: 999px; border: none;
  background: rgba(15,17,18,.4); color: #fff; font-size: 22px; line-height: 1;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  opacity: 0; transition: opacity .2s ease, background .2s ease;
}
.hero-carousel:hover .hero-carousel-arrow { opacity: 1; }
.hero-carousel-arrow:hover { background: rgba(15,17,18,.65); }
.hero-carousel-prev { left: 12px; }
.hero-carousel-next { right: 12px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(165deg, rgba(255,255,255,.9), rgba(255,255,255,.5)); backdrop-filter: blur(6px); overflow: hidden; }
.hero-stats div { padding: 18px 16px; border-left: 1px solid var(--line); }
.hero-stats div:first-child { border-left: none; }
.hero-stats .n { font-family: "JetBrains Mono", monospace; font-size: 25px; font-weight: 500; color: var(--oxide); line-height: 1; }
.hero-stats .l { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
@media (max-width: 860px) { .hero-stats { grid-template-columns: 1fr; } .hero-stats div { border-left: none; border-top: 1px solid var(--line); } .hero-stats div:first-child { border-top: none; } }
@media (max-width: 560px) { .hero-stats { grid-template-columns: 1fr; } .hero-stats div { border-left: none; border-top: 1px solid var(--line); } .hero-stats div:first-child { border-top: none; } }

/* ── Секции ── */
.section { padding: 64px 0; border-bottom: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 34px; flex-wrap: wrap; }
.section-head h2 { font-size: 28px; margin-top: 10px; }
.section-head p { color: var(--muted); max-width: 42ch; margin: 8px 0 0; font-size: 15px; }

/* ── Плитка разделов/категорий ── */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cat-grid { grid-template-columns: 1fr; } }
.cat-card { position: relative; isolation: isolate; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 14px; min-height: 168px; transition: background .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.cat-card:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(10,12,13,.1); }
.cat-card::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 0; z-index: -1;
  transition: height .5s cubic-bezier(.4,0,.2,1);
  background-repeat: repeat;
}
.cat-card:hover::before { height: 100%; }
.cat-grid .cat-card:nth-child(1)::before {
  background-image:
    radial-gradient(circle at 18% 28%, rgba(184,67,30,.24) 0 4px, transparent 4px),
    radial-gradient(circle at 55% 12%, rgba(184,67,30,.18) 0 5px, transparent 5px),
    radial-gradient(circle at 82% 48%, rgba(184,67,30,.22) 0 4.5px, transparent 4.5px),
    radial-gradient(circle at 32% 65%, rgba(184,67,30,.17) 0 3.5px, transparent 3.5px),
    radial-gradient(circle at 8% 82%, rgba(184,67,30,.22) 0 3px, transparent 3px),
    radial-gradient(circle at 92% 18%, rgba(184,67,30,.16) 0 2.5px, transparent 2.5px),
    radial-gradient(circle at 48% 42%, rgba(184,67,30,.2) 0 3.5px, transparent 3.5px),
    radial-gradient(circle at 68% 88%, rgba(184,67,30,.18) 0 3px, transparent 3px),
    radial-gradient(circle at 5% 45%, rgba(184,67,30,.15) 0 2.5px, transparent 2.5px);
  background-size: 110px 110px;
}
.cat-grid .cat-card:nth-child(2)::before {
  background-image:
    repeating-linear-gradient(45deg, rgba(184,67,30,.14) 0 1.5px, transparent 1.5px 26px),
    repeating-linear-gradient(-45deg, rgba(184,67,30,.14) 0 1.5px, transparent 1.5px 26px);
}
.cat-grid .cat-card:nth-child(3)::before {
  background-image: repeating-linear-gradient(72deg, rgba(184,67,30,.16) 0 1px, transparent 1px 18px);
}
.cat-card .top { display: flex; justify-content: space-between; align-items: flex-start; }
.cat-card .idx { font-family: "JetBrains Mono", monospace; font-size: 12px; color: var(--faint); }
.cat-card .count { font-family: "JetBrains Mono", monospace; font-size: 12px; color: var(--muted); border: 1px solid var(--line); padding: 3px 7px; border-radius: 999px; }
.cat-card h3 { font-size: 19px; margin-top: auto; }
.cat-card .sub { color: var(--muted); font-size: 13.5px; }
.cat-card .go { font-size: 13px; color: var(--oxide); font-weight: 600; }

/* ── Хиты продаж ── */
.best-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .best-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; } }
.best-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.best-card:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(10,12,13,.08); }
.best-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--surface-2); }
.best-card-body { padding: 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.best-card h3 { font-size: 16px; line-height: 1.3; }
.best-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.best-card li { font-size: 13px; color: var(--muted); padding-left: 14px; position: relative; }
.best-card li::before { content: "—"; position: absolute; left: 0; color: var(--faint); }
.best-card-actions { display: flex; gap: 8px; }
.best-card-actions .btn { flex: 1; }

/* ── Хлебные крошки ── */
.crumbs { font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: center; margin-bottom: 22px; flex-wrap: wrap; }
.crumbs .sep { color: var(--faint); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs .cur { color: var(--ink); }
.catalog-crumb-dropdown { position: relative; display: inline-flex; align-items: center; }
.catalog-crumb-dropdown > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 0 3px 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .15s ease; }
.catalog-crumb-dropdown-menu { position: absolute; z-index: 45; top: calc(100% + 2px); left: -10px; display: none; min-width: 208px; padding: 8px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); box-shadow: 0 12px 28px rgba(14,20,24,.16); }
.catalog-crumb-dropdown::after { content: ""; position: absolute; left: -10px; right: -10px; top: 100%; height: 14px; }
.catalog-crumb-dropdown-menu a { display: block; padding: 9px 10px; border-radius: 7px; color: var(--ink); font-size: 13px; font-weight: 600; }
.catalog-crumb-dropdown-menu a:hover { background: var(--surface-2); color: var(--oxide); }
.catalog-crumb-dropdown:hover .catalog-crumb-dropdown-menu, .catalog-crumb-dropdown:focus-within .catalog-crumb-dropdown-menu { display: block; }
.catalog-crumb-dropdown:hover > a::after, .catalog-crumb-dropdown:focus-within > a::after { transform: translateY(3px) rotate(225deg); }
.mobile-catalog-nav { display: none; }
.catalog-h1 { font-size: 26px; margin: 0 0 20px; }
.catalog-intro { color: var(--muted); font-size: 14.5px; line-height: 1.6; max-width: 90ch; margin: -8px 0 20px; }

/* ── Каталог: тулбар + сайдбар-фильтр ── */
.catalog-toolbar { display: none; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.catalog-toolbar #filtersToggle { display: none; }
.catalog-toolbar .count-total { font-size: 13px; color: var(--muted); }
.filters-badge {
  display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px;
  padding: 0 5px; margin-left: 7px; border-radius: 999px; background: var(--oxide); color: #fff;
  font-size: 11px; font-family: "JetBrains Mono", monospace;
}
.filters-badge[hidden] { display: none; }

.catalog-layout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; }
.catalog-layout.no-sidebar { grid-template-columns: 1fr; }
.filters-sidebar {
  border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius);
  padding: 18px; position: sticky; top: 88px;
  max-height: calc(100vh - 108px); overflow-y: auto;
}
.filters-sidebar-head { display: none; }
.filters-group + .filters-group { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.filters-group-title { font-family: "JetBrains Mono", monospace; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); margin-bottom: 10px; }
.filters-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.filters-opt {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 9px; border-radius: var(--radius-sm); text-decoration: none; color: var(--muted); font-size: 13.5px;
}
.filters-opt:hover { background: var(--paper); color: var(--ink); }
.filters-opt.active { background: var(--oxide-soft); color: var(--oxide); font-weight: 600; }
.filters-opt .n { font-family: "JetBrains Mono", monospace; font-size: 11.5px; color: var(--faint); font-weight: 400; }
.filters-opt.active .n { color: var(--oxide); }
.filters-check {
  display: flex; align-items: center; gap: 8px; padding: 8px 9px; border-radius: var(--radius-sm);
  font-size: 13.5px; color: var(--muted); cursor: pointer;
}
.filters-check:hover { background: var(--paper); }
.filters-check input { accent-color: var(--oxide); margin: 0; }
.filters-check .n { margin-left: auto; font-family: "JetBrains Mono", monospace; font-size: 11.5px; color: var(--faint); }
.filters-apply-btn { display: none; margin-top: 18px; }
.filters-backdrop { display: none; }

@media (max-width: 900px) {
  .catalog-layout { grid-template-columns: 1fr; }
  .catalog-toolbar {
    display: flex; position: static;
    background: transparent; padding: 0 0 10px; margin: 0 0 12px;
    border-bottom: 1px solid var(--line);
  }
  .catalog-toolbar #filtersToggle { padding: 7px 12px; font-size: 13px; }
  .catalog-toolbar #filtersToggle { display: inline-flex; }

  .filters-sidebar {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(340px, 86vw);
    border-radius: 0; border: none; border-left: 1px solid var(--line);
    padding: 18px; z-index: 96; overflow-y: auto;
    transform: translateX(100%); transition: transform .25s ease; box-shadow: -16px 0 40px rgba(10,12,13,.18);
  }
  .filters-sidebar.open { transform: translateX(0); }
  .filters-sidebar-head { display: flex; align-items: center; justify-content: space-between; font-weight: 700; font-size: 15px; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
  .filters-close-btn { border: none; background: none; font-size: 18px; cursor: pointer; color: var(--faint); padding: 4px; }
  .filters-apply-btn { display: flex; }
  .filters-backdrop {
    display: none; position: fixed; inset: 0; background: rgba(10,12,13,.4); z-index: 95;
  }
  .filters-backdrop.open { display: block; }
}

/* ── Список товаров ── */
.plist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .plist { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .plist { grid-template-columns: 1fr; } }
.pcard { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 12px; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; cursor: pointer; color: inherit; text-decoration: none; }
.solutions-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 860px) { .solutions-grid { grid-template-columns: 1fr; } }
.solution-card { min-width: 0; overflow: hidden; position: relative; min-height: 250px; display: flex; flex-direction: column; }
.solution-card .thumb {
  position: absolute; top: 50%; right: 0; width: 42%; height: 78%; transform: translateY(-50%); margin: 0; background: none; pointer-events: none;
  clip-path: polygon(32px 0, 100% 0, 100% 100%, 0 100%, 0 32px);
}
.solution-card .thumb img {
  width: 100%; height: 100%; object-fit: cover; transform: scale(1.1);
  filter: grayscale(1);
  transition: filter .3s ease;
}
.solution-card:hover .thumb img { filter: grayscale(0); }
.solution-card .thumb .photo-badge { display: none; }
.solution-card .sku, .solution-card h4, .solution-card p, .solution-card > a.btn { position: relative; z-index: 1; max-width: 68%; }
.solution-card > a.btn { margin-top: auto; align-self: flex-start; }
.solution-card.diagram { min-height: 0; }
.solution-card.diagram .thumb { position: static; width: auto; height: 190px; overflow: hidden; background: #fff; padding: 14px; }
.solution-card.diagram .thumb img { object-fit: contain; filter: none; -webkit-mask-image: none; mask-image: none; }
.solution-card.diagram .sku, .solution-card.diagram h4, .solution-card.diagram p, .solution-card.diagram > a.btn { max-width: none; }
.solution-card.diagram > a.btn { align-self: flex-start; }
.solution-card.photo-contain .thumb { background: #fff; }
.solution-card.photo-contain .thumb img { object-fit: contain; transform: none; filter: none; padding: 10px; }
.solution-card .photo-placeholder { display:flex; align-items:center; justify-content:center; background:linear-gradient(135deg, #F4F5F5, #E3E7E8); color:var(--faint); font-family:"JetBrains Mono", monospace; font-size:13px; line-height:1.45; letter-spacing:.04em; text-align:center; }
.solution-card.photo-contain:hover .thumb img { filter: none; }

.pcard:hover { border-color: var(--line-strong); box-shadow: 0 4px 12px rgba(10,12,13,.08); }
.pcard:hover { border-color: var(--line-strong); box-shadow: 0 4px 12px rgba(10,12,13,.09); transform: translateY(-2px); }
.pcard .thumb { aspect-ratio: 4/3; background: var(--surface-2); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: var(--faint); font-size: 12px; text-align: center; padding: 8px; }
.pcard .thumb.thumb-rope { background: #fff; padding: 10px; }
.pcard .thumb.thumb-rope img { max-width: 100%; max-height: 100%; min-width: 0; width: auto; object-fit: contain; }
.pcard .thumb.thumb-rope { min-width: 0; }
.pcard .sku { font-family: "JetBrains Mono", monospace; font-size: 11.5px; color: var(--faint); }
.pcard-top-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.pcard-top-row h4 { margin: 0; }
.pcard-title-wrap { min-width: 0; }
.pcard-gost { font-family: "Golos Text", sans-serif; font-size: 10px; font-weight: 700; letter-spacing: .02em; padding: 2px 7px; border-radius: 999px; background: var(--oxide-soft); color: var(--oxide); white-space: nowrap; flex-shrink: 0; }
.pcard h4 { font-size: 16px; font-weight: 650; font-family: "Golos Text", sans-serif; line-height: 1.28; letter-spacing: -.005em; }
.pcard-marking { margin-top: 7px; color: var(--muted); font-family: "JetBrains Mono", monospace; font-size: 13px; font-weight: 500; line-height: 1.35; overflow-wrap: normal; word-break: normal; }
@media (max-width: 560px) { .pcard { padding: 16px; } .pcard h4 { font-size: 16px; } .pcard-marking { font-size: 13px; } }
.pcard .specs { list-style: none; margin: 0; padding: 0; font-size: 12.5px; color: var(--muted); display: flex; flex-direction: column; gap: 8px; }
.pcard .specs li { display: flex; flex-direction: column; gap: 2px; border-bottom: 1px dotted var(--line); padding-bottom: 6px; }
.pcard .specs li span:first-child { color: var(--muted); }
.pcard .specs li span:last-child { font-family: "JetBrains Mono", monospace; color: var(--ink); text-align: left; font-variant-numeric: tabular-nums; }
.pcard .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pcard .price { font-family: "JetBrains Mono", monospace; font-size: 16px; font-weight: 500; white-space: nowrap; }
.pcard .price small { font-size: 11px; color: var(--muted); font-weight: 400; display: block; }
.pcard .price.na { color: var(--faint); font-size: 13px; font-family: "Golos Text", sans-serif; }

.empty-state { padding: 60px 20px; text-align: center; color: var(--muted); border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); }

/* ── Liquid-glass модалки ── */
.pdp-overlay, .order-modal-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: radial-gradient(circle at 30% -10%, rgba(184,67,30,.08), transparent 55%), rgba(255,255,255,.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 40px 20px;
}
.order-modal-overlay { z-index: 95; background: rgba(12,13,11,.6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.pdp-overlay[hidden], .order-modal-overlay[hidden] { display: none; }

.pdp-panel {
  position: relative;
  background:
    linear-gradient(155deg, rgba(255,255,255,.72) 0%, rgba(255,255,255,.42) 40%, rgba(255,255,255,.28) 100%);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid rgba(255,255,255,.6);
  border-radius: var(--radius-lg);
  box-shadow:
    0 24px 60px rgba(10,12,13,.22),
    0 2px 0 rgba(255,255,255,.7) inset,
    0 -1px 0 rgba(255,255,255,.3) inset;
  max-width: 900px; width: 100%; padding: 34px;
}
.pdp-panel::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(120deg, rgba(255,255,255,.55) 0%, transparent 30%, transparent 70%, rgba(184,67,30,.06) 100%);
}
.pdp-close {
  position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; padding: 0; z-index: 5;
  background: none; border: none; color: var(--ink); cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.pdp-close:hover { opacity: .65; }
.pdp-sticky-bar { display: none; }
@media (max-width: 640px) {
  .pdp-sticky-bar {
    display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--surface); border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(10,12,13,.08); z-index: 20;
  }
  .pdp-sticky-bar .btn { flex: 1; text-align: center; }
  .pdp { padding-bottom: 70px; }
}

/* ── Order modal: dark glass, oxide accent (по образцу stock-modal с parts-catalog) ── */
.order-modal-panel {
  position: relative;
  background: rgba(52,48,44,.78);
  backdrop-filter: blur(26px) saturate(160%);
  -webkit-backdrop-filter: blur(26px) saturate(160%);
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(0,0,0,.5);
  max-width: 440px; width: 100%; padding: 22px 24px;
}
.order-modal-panel > * { position: relative; z-index: 1; }
.order-modal-close {
  position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; padding: 0; z-index: 5;
  background: none; border: none; color: #F2F1EC; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.order-modal-close:hover { opacity: .65; }
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; min-width: 0; }
@media (max-width: 760px) { .pdp { grid-template-columns: 1fr; } .pdp-panel { padding: 24px; } }
.pdp-gallery {
  min-width: 0; aspect-ratio: 1; background: var(--surface); border: none; border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(10,12,13,.12), 0 2px 8px rgba(10,12,13,.06);
  display: flex; align-items: center; justify-content: center; color: var(--faint); font-size: 13px; text-align: center;
  padding: 20px; position: relative; overflow: hidden;
}
.photo-badge { position: absolute; left: 8px; bottom: 8px; width: 18px; height: 18px; border-radius: 50%; background: rgba(10,12,13,.6); color: #fff; font-size: 11px; font-weight: 700; font-family: "Golos Text", sans-serif; display: flex; align-items: center; justify-content: center; cursor: help; }
.photo-badge::after {
  content: attr(data-tip);
  position: absolute; left: 0; bottom: 130%;
  background: rgba(10,12,13,.92); color: #fff;
  font-size: 11px; font-weight: 400; line-height: 1.35;
  padding: 6px 9px; border-radius: 6px;
  white-space: normal; width: max-content; max-width: 210px;
  opacity: 0; pointer-events: none; transition: opacity .06s ease;
  z-index: 5;
}
.photo-badge:hover::after, .photo-badge:focus::after { opacity: 1; }
.pcard .thumb-photo { position: relative; padding: 8px; overflow: hidden; background: #fff; }
.pcard .thumb-photo img { width: 100%; height: 100%; object-fit: contain; }
.pcard .thumb-photo .photo-badge { left: 5px; bottom: 5px; width: 15px; height: 15px; font-size: 9.5px; }

.pdp-info { min-width: 0; }
.pdp-info .sku { font-family: "JetBrains Mono", monospace; font-size: 13px; color: var(--faint); margin-bottom: 10px; }
.pdp-media { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.pdp-thumbs { display: flex; gap: 8px; }
.pdp-thumb { min-width: 0; width: 64px; height: 64px; padding: 4px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.pdp-thumb img { width: 100%; height: 100%; object-fit: contain; }
.pdp-thumb.active { border-color: var(--oxide); }

.pdp-info h2 { font-size: 23px; margin-bottom: 14px; overflow-wrap: break-word; word-break: break-word; }
.pdp-info .gost {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: 13px; line-height: 1.5; color: var(--ink);
  background: rgba(60,140,90,.08); border: 1px solid rgba(60,140,90,.25);
  border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 16px;
}
.pdp-info .gost::before {
  content: "✓"; flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%;
  background: var(--ok); color: #fff; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; margin-top: 1px;
}
.gost-spoiler { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 14px; margin: 4px 0 16px; background: var(--surface-2); }
.gost-spoiler summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ink); list-style: none; }
.gost-spoiler summary::-webkit-details-marker { display: none; }
.gost-spoiler summary::before { content: "▸ "; color: var(--oxide); }
.gost-spoiler[open] summary::before { content: "▾ "; }
.pdp-info .desc { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
table.spectable { width: 100%; border-collapse: collapse; font-size: 13.5px; margin-bottom: 22px; }
table.spectable tr { border-bottom: 1px solid var(--line); }
table.spectable td { padding: 9px 0; vertical-align: top; }
table.spectable td:first-child { color: var(--muted); width: 55%; padding-right: 12px; }
table.spectable td:last-child { font-family: "JetBrains Mono", monospace; text-align: right; font-variant-numeric: tabular-nums; }
.buybox { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 12px; background: var(--paper); }
.buybox .price-row { display: flex; align-items: baseline; justify-content: space-between; }
.buybox .price { font-family: "JetBrains Mono", monospace; font-size: 24px; font-weight: 500; }
.buybox .price-note { font-size: 12px; color: var(--muted); }

/* ── Заказ: шаги слева + форма справа ── */
.order-section { padding: 64px 0; }
.order-layout { display: grid; grid-template-columns: 1.3fr .85fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .order-layout { grid-template-columns: 1fr; gap: 40px; } }
.order-steps h2 { font-size: 26px; margin: 10px 0 28px; }
.steps-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.steps-list li { display: flex; gap: 16px; align-items: flex-start; }
.steps-list .n { font-family: "JetBrains Mono", monospace; color: var(--oxide); font-size: 13px; flex-shrink: 0; width: 26px; padding-top: 2px; }
.steps-list h4 { font-size: 15px; margin-bottom: 4px; font-family: "Golos Text", sans-serif; font-weight: 600; }
.steps-list p { font-size: 13.5px; color: var(--muted); margin: 0; }

/* ── Светлая «парящая» карточка формы ── */
.order-form-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px 28px; box-shadow: 0 24px 60px rgba(20,24,26,.10), 0 2px 8px rgba(20,24,26,.05);
  color: var(--ink); max-width: 480px; margin-left: auto;
}
.order-form-card h2 { margin-top: 4px; }
.order-form-card .modal-subtitle { margin: 4px 0 0; }
@media (max-width: 860px) { .order-form-card { max-width: none; margin-left: 0; } }
.order-form-card h2 { font-size: 22px; margin: 8px 0 0; }
.order-form-card .modal-subtitle { color: var(--muted); }
.order-form-card .form-group label { color: var(--faint); }
.order-form-card .form-group input,
.order-form-card .form-group select,
.order-form-card .form-group textarea,
.order-form-card .select-trigger {
  background: var(--paper); border-color: var(--line-strong); color: var(--ink); backdrop-filter: none;
}
.order-form-card .form-group input::placeholder,
.order-form-card .form-group textarea::placeholder { color: var(--faint); }
.order-form-card .form-group input:focus,
.order-form-card .form-group select:focus,
.order-form-card .form-group textarea:focus { border-color: var(--oxide); background: var(--surface); }
.order-form-card .select-options {
  background: var(--surface); border-color: var(--line-strong); box-shadow: 0 16px 40px rgba(20,24,26,.14);
}
.order-form-card .select-options li { color: var(--muted); }
.order-form-card .select-options li:hover { background: var(--oxide-soft); color: var(--ink); }
.order-form-card .select-options li[aria-selected="true"] { color: var(--oxide); }
.order-form-card .contact-way label { color: var(--muted); border-color: var(--line); }
.order-form-card .contact-way label.active, .order-form-card .contact-way label:hover { background: var(--oxide-soft); }
.order-form-card .consent-check { color: var(--muted); }
.order-form-card .consent-check a { color: var(--ink); }

@media (max-width: 560px) {
  .order-modal-panel { padding: 18px; }
  .order-form-card { padding: 18px; }
  .order-form-card h2, .order-modal-panel h2 { font-size: 19px; }
  .order-form-card .modal-subtitle, .order-modal-panel .modal-subtitle { font-size: 12.5px; }
  .form-wrap, .form-fields { gap: 6px; }
  .form-group label { font-size: 9.5px; }
}

.order-modal-panel .eyebrow { color: rgba(242,241,236,.5); }
.order-modal-panel .eyebrow::before { background: #CB5024; }
.order-modal-panel h2 { color: #F2F1EC; }
.order-modal-panel .modal-subtitle { font-size: 13px; color: rgba(242,241,236,.55); margin: 8px 0 0; }

.form-wrap { max-width: 480px; margin: 0 auto; display: flex; flex-direction: column; gap: 5px; }
.form-fields { display: flex; flex-direction: column; gap: 5px; }
.form-group { display: flex; flex-direction: column; gap: 2px; }
.form-group label { font-size: 10.5px; font-weight: 700; color: rgba(242,241,236,.5); text-transform: uppercase; letter-spacing: .07em; }
.form-group input, .form-group select, .form-group textarea {
  font-family: "Golos Text", sans-serif; font-size: 16px; padding: 7px 11px;
  border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05); color: #F2F1EC;
  border-radius: var(--radius-sm); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.form-group textarea { resize: vertical; min-height: 38px; font-family: inherit; }
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(242,241,236,.35); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: #CB5024; background: rgba(255,255,255,.08); }
.form-group select option { background: #201E1B; color: #F2F1EC; }
.form-group input[type=file] { padding: 6px 8px; font-size: 12.5px; cursor: pointer; }
.form-group input[type=file]::file-selector-button { font-family: "Golos Text", sans-serif; font-size: 11.5px; font-weight: 600; padding: 5px 10px; margin-right: 8px; border: none; border-radius: 5px; background: rgba(255,255,255,.12); color: #F2F1EC; cursor: pointer; }
.file-hint { font-size: 10.5px; color: rgba(242,241,236,.4); margin-top: 2px; }

.custom-select { position: relative; }
.select-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  font-family: "Golos Text", sans-serif; font-size: 13.5px; font-weight: 400; letter-spacing: normal;
  padding: 8px 11px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05); color: #F2F1EC;
  border-radius: var(--radius-sm); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  cursor: pointer; text-align: left;
}
.select-trigger:hover { border-color: rgba(255,255,255,.26); }
.select-trigger[aria-expanded="true"] { border-color: #CB5024; background: rgba(255,255,255,.08); }
.select-trigger .chevron { color: rgba(242,241,236,.45); font-size: 11px; transition: transform .15s; margin-left: 8px; }
.select-trigger[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.select-options {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 20;
  list-style: none; margin: 0; padding: 6px;
  background: linear-gradient(155deg, rgba(40,36,32,.96) 0%, rgba(24,22,19,.98) 100%);
  backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-sm);
  box-shadow: 0 16px 40px rgba(0,0,0,.5);
  max-height: 260px; overflow-y: auto;
}
.select-options[hidden] { display: none; }
.select-options li {
  padding: 10px 12px; font-size: 14px; color: rgba(242,241,236,.8); border-radius: 6px; cursor: pointer;
}
.select-options li:hover, .select-options li.focused { background: rgba(203,80,36,.16); color: #F2F1EC; }
.select-options li[aria-selected="true"] { color: #F2A98C; font-weight: 600; }
.select-options li[aria-selected="true"]::after { content: "✓"; float: right; }

.contact-way { display: flex; gap: 4px; flex-wrap: nowrap; }
.contact-way label {
  display: flex; align-items: center; justify-content: center; gap: 4px; flex: 1 1 0; min-width: 0;
  padding: 7px 4px; border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-sm);
  font-size: 10px; font-weight: 600; margin: 0; cursor: pointer; color: rgba(242,241,236,.55);
  transition: all .15s; white-space: nowrap; text-transform: none;
}
.contact-way label.active, .contact-way label:hover { border-color: #CB5024; color: #F2A98C; background: rgba(203,80,36,.1); }
.contact-way label.way-email.active, .contact-way label.way-email:hover { border-color: #E8833A; color: #F5B87E; background: rgba(232,131,58,.1); }
.contact-way label.way-tg.active, .contact-way label.way-tg:hover { border-color: #29A9EB; color: #8FD3F7; background: rgba(41,169,235,.12); }
.contact-way label.way-max.active, .contact-way label.way-max:hover { border-color: #7C4DFF; color: #C2B0FF; background: rgba(124,77,255,.12); }
.contact-way input { position: absolute; opacity: 0; pointer-events: none; }
.contact-way .way-icon { flex-shrink: 0; width: 11px; height: 11px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.contact-way .way-icon svg { width: 7px; height: 7px; }

.consent-check { display: flex; gap: 8px; font-size: 10.5px; font-weight: 400; text-transform: none; letter-spacing: normal; color: rgba(242,241,236,.55); line-height: 1.4; align-items: flex-start; }
.consent-check input { margin-top: 2px; accent-color: #CB5024; }
.consent-check a { color: rgba(242,241,236,.8); }

.form-actions { display: flex; gap: 10px; margin-top: 4px; }
.form-actions .btn { flex: 1; }
.form-actions .btn-ghost {
  background: transparent; color: rgba(242,241,236,.65); border: 1px solid rgba(255,255,255,.14);
}
.form-actions .btn-ghost:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: #F2F1EC; }

.form-message { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-sm); font-size: 13px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); color: rgba(242,241,236,.8); }
.form-message.success { border-color: #6f9f2e; background: rgba(143,194,58,.12); color: #c7e28f; }
.form-message.error { border-color: #CB5024; background: rgba(203,80,36,.12); color: #F2A98C; }
.form-message-icon { font-weight: 700; }
.form-message-content { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.form-message-close { border: none; background: none; padding: 0; font-size: 18px; cursor: pointer; color: inherit; opacity: .6; }

/* ── О компании ── */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.about-grid p { color: var(--muted); font-size: 15px; max-width: 56ch; }
.adv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 560px) { .adv-grid { grid-template-columns: 1fr; } }
.adv-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.adv-item h4 { font-size: 14.5px; font-family: "Golos Text", sans-serif; font-weight: 600; margin-bottom: 6px; }

.production-section > h2 { margin: 10px 0 24px; text-align: center; font-size: 26px; }
.production-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 860px) { .production-gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .production-gallery { grid-template-columns: 1fr; } }
.production-ph { aspect-ratio: 4/3; background: var(--surface-2); border: 1px dashed var(--line-strong); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--faint); font-size: 13px; text-align: center; line-height: 1.4; }
.production-gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }
.adv-item p { font-size: 13px; color: var(--muted); margin: 0; }

.steps-track { position: relative; }
.steps-track::before { content: ""; position: absolute; left: 17px; top: 17px; bottom: 17px; width: 2px; background: var(--line-strong); z-index: 0; }
.step-item { position: relative; z-index: 1; display: flex; gap: 16px; padding-bottom: 26px; }
.step-item:last-child { padding-bottom: 0; }
.step-num {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
  background: var(--oxide); color: #fff; font-family: "JetBrains Mono", monospace;
  font-weight: 700; font-size: 14.5px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 4px var(--paper);
}
.step-body { padding-top: 5px; }
.step-body h4 { font-size: 14.5px; font-family: "Golos Text", sans-serif; font-weight: 600; margin-bottom: 6px; }
.step-body p { font-size: 13px; color: var(--muted); margin: 0; }

/* ── Подвал (визуально отделён — тёмный фон) ── */
footer.site { padding: 44px 0 22px; margin-top: 40px; background: var(--ink); color: rgba(238,240,240,.5); }
.sitemap-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; margin-bottom: 30px; }
@media (max-width: 1100px) { .sitemap-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) { .sitemap-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .sitemap-grid { grid-template-columns: 1fr; } }
.sitemap-col h5 { font-family: "JetBrains Mono", monospace; font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: rgba(238,240,240,.35); margin-bottom: 10px; font-weight: 500; }
.sitemap-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.sitemap-col a { text-decoration: none; font-size: 12px; color: rgba(238,240,240,.6); }
.sitemap-col a:hover { color: #fff; }
.link-btn {
  border: none; background: none; box-shadow: none; padding: 0; margin: 0;
  font-family: "Golos Text", sans-serif; font-weight: 400;
  text-align: left; text-decoration: none; font-size: 12px; color: rgba(238,240,240,.6); cursor: pointer;
}
.link-btn:hover { color: #fff; }
.price-disclaimer { font-size: 12px; line-height: 1.6; color: rgba(238,240,240,.55); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 20px; max-width: 78ch; }
.price-disclaimer strong { color: #fff; font-weight: 600; }
.footer-contacts { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; font-size: 12.5px; }
.footer-contacts a { text-decoration: none; color: #fff; font-weight: 600; }
.footer-contacts a:hover { color: var(--oxide); }
.footer-contacts .loc { color: rgba(238,240,240,.45); }
.footer-contacts .link-btn { color: #fff; font-weight: 600; font-size: 12.5px; text-decoration: underline; text-underline-offset: 2px; }
.footer-contacts .chat-btn { background: rgba(238,240,240,.05); border-color: rgba(238,240,240,.18); color: rgba(238,240,240,.65); }
.footer-contacts .chat-btn-tg:hover { border-color: #29A9EB; color: #6cc4f0; background: rgba(41,169,235,.1); }
.footer-contacts .chat-btn-max:hover { border-color: #7C4DFF; color: #a68cff; background: rgba(124,77,255,.1); }
.footer-bottom { display: flex; justify-content: space-between; align-items: flex-start; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: 11px; color: rgba(238,240,240,.35); flex-wrap: wrap; gap: 12px; }
.footer-bottom .legal { max-width: 60ch; }
.trust-strip { background: var(--surface); border-bottom: 1px solid var(--line); }
.trust-strip .wrap { min-height: 38px; display: flex; align-items: center; justify-content: center; gap: 0; flex-wrap: wrap; }
.trust-strip span, .trust-strip a { color: var(--muted); font-size: 12px; line-height: 1.3; padding: 4px 12px; text-decoration: none; }
.trust-strip span + span, .trust-strip a { border-left: 1px solid var(--line); }
.trust-strip a { color: var(--ink); font-weight: 600; }
.trust-strip a:hover { color: var(--oxide); }
@media (max-width: 640px) {
  .trust-strip .wrap { justify-content: flex-start; padding-top: 5px; padding-bottom: 5px; }
  .trust-strip span, .trust-strip a { font-size: 11px; padding: 3px 8px; }
  .trust-strip span:nth-child(3) { display: none; }
}
.footer-bottom .legal a { color: rgba(238,240,240,.5); }
.footer-bottom .legal a:hover { color: #fff; }

/* ── Юридический текст (политика/реквизиты) ── */
.legal-text { font-size: 14.5px; color: var(--muted); line-height: 1.7; padding-bottom: 60px; }
.legal-text h2 { font-size: 17px; color: var(--ink); margin: 32px 0 10px; }
.legal-text h2:first-child { margin-top: 0; }
.legal-text p { margin: 0 0 14px; }
.legal-text a { color: var(--oxide); }
.legal-text table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: 14px; }
.legal-text table td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-text table td:first-child { color: var(--faint); width: 42%; }

/* ── Cookie-плашка ── */
.cookie-banner {
  position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 80; max-width: 640px; margin: 0 auto;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 20px; box-shadow: 0 12px 32px rgba(10,12,13,.12);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; font-size: 13px; color: var(--muted); flex: 1; min-width: 200px; }
.cookie-banner a { color: var(--ink); }
@media (max-width: 560px) { .cookie-banner { left: 12px; right: 12px; bottom: 12px; padding: 14px 16px; } }

/* ── Чат на сайте ── */
.chat-launcher {
  position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 75;
  display: flex; align-items: center; gap: 9px;
  background: var(--oxide); color: var(--oxide-ink); border: none; border-radius: 999px;
  padding: 13px 20px 13px 16px; font-family: "Golos Text", sans-serif; font-weight: 600; font-size: 14px;
  cursor: pointer; box-shadow: 0 8px 24px rgba(184,67,30,.35);
  transition: transform .15s ease, box-shadow .15s ease;
}
.chat-launcher:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(184,67,30,.42); }
.chat-launcher-icon { position: relative; display: flex; align-items: center; flex-shrink: 0; }
.chat-launcher .chat-dot {
  position: absolute; top: -4px; right: -5px; width: 11px; height: 11px; border-radius: 50%;
  background: #E8483A; border: 2px solid var(--oxide); display: none;
}
.chat-launcher.has-unread .chat-dot { display: block; }
.chat-launcher[hidden] { display: none; }

.chat-panel {
  position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 90;
  width: 360px; max-width: calc(100vw - 24px); height: 500px; max-height: calc(100vh - 40px);
  min-width: 300px; min-height: 340px;
  background:
    linear-gradient(155deg, rgba(255,255,255,.5) 0%, rgba(255,255,255,.08) 40%, rgba(255,255,255,0) 65%),
    rgba(238,240,240,.58);
  backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(255,255,255,.5); border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(10,12,13,.32), inset 0 1px 0 rgba(255,255,255,.6);
  display: flex; flex-direction: column; overflow: hidden;
}
.chat-panel[hidden] { display: none; }
.chat-panel.chat-dragover { outline: 2px dashed var(--oxide); outline-offset: -2px; }
.chat-resize-handle {
  position: absolute; top: 0; left: 0; width: 18px; height: 18px; z-index: 5;
  cursor: nwse-resize; display: flex; align-items: flex-start; justify-content: flex-start;
  padding: 3px; touch-action: none; color: var(--faint);
}
.chat-resize-handle:hover { color: var(--oxide); }
.chat-panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 16px; border-bottom: 1px solid rgba(179,190,193,.5); flex-shrink: 0;
}
.chat-panel-head h3 { font-size: 14.5px; font-family: "Golos Text", sans-serif; font-weight: 700; margin: 0; }
.chat-panel-head p { margin: 2px 0 0; font-size: 11.5px; color: var(--muted); }
.chat-panel-head-actions { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.chat-pin-btn, .chat-panel-close {
  width: 26px; height: 26px; border: none; background: none; color: var(--muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 18px; line-height: 1;
  border-radius: 50%;
}
.chat-pin-btn:hover, .chat-panel-close:hover { color: var(--ink); }
.chat-pin-btn.pinned { color: var(--oxide); }
.chat-body {
  flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px;
  scrollbar-width: thin; scrollbar-color: rgba(184,67,30,.4) transparent;
}
.chat-body::-webkit-scrollbar { width: 7px; }
.chat-body::-webkit-scrollbar-track { background: transparent; }
.chat-body::-webkit-scrollbar-thumb { background: rgba(184,67,30,.35); border-radius: 4px; }
.chat-body::-webkit-scrollbar-thumb:hover { background: rgba(184,67,30,.6); }
.chat-empty { color: var(--muted); font-size: 13px; line-height: 1.6; text-align: center; margin: auto; padding: 20px 10px; }
.chat-empty a { color: var(--oxide); cursor: pointer; text-decoration: underline; }
.chat-msg { max-width: 84%; padding: 9px 12px; border-radius: 12px; font-size: 13.5px; line-height: 1.45; word-wrap: break-word; }
.chat-msg.visitor { align-self: flex-end; background: var(--oxide); color: #fff; border-bottom-right-radius: 3px; }
.chat-msg.manager { align-self: flex-start; background: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.5); color: var(--ink); border-bottom-left-radius: 3px; }
.chat-msg.failed { opacity: .75; }
.chat-msg .chat-retry { display: block; margin-top: 4px; font-size: 11.5px; text-decoration: underline; cursor: pointer; opacity: .9; }
.chat-foot { padding: 10px 12px; border-top: 1px solid rgba(179,190,193,.5); flex-shrink: 0; }
.chat-input-row { display: flex; align-items: center; gap: 8px; }
.chat-input-row textarea {
  flex: 1; resize: vertical; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 9px 11px; font-family: "Golos Text", sans-serif; font-size: 16px; color: var(--ink);
  background: rgba(255,255,255,.6);
  max-height: 160px; min-height: 38px; line-height: 1.4;
  scrollbar-width: thin; scrollbar-color: rgba(184,67,30,.4) transparent;
}
.chat-input-row textarea::-webkit-scrollbar { width: 6px; }
.chat-input-row textarea::-webkit-scrollbar-track { background: transparent; }
.chat-input-row textarea::-webkit-scrollbar-thumb { background: rgba(184,67,30,.35); border-radius: 4px; }
.chat-input-row textarea:focus { outline: none; border-color: var(--oxide); background: var(--surface); }
.chat-attach-btn {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); background: rgba(255,255,255,.5); color: var(--muted);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.chat-attach-btn:hover { color: var(--oxide); border-color: var(--oxide); background: var(--oxide-soft); }
.chat-attach-btn svg { flex-shrink: 0; width: 17px; height: 17px; }
.chat-msg .chat-file-link {
  display: flex; align-items: center; gap: 7px; color: inherit; text-decoration: none; font-weight: 600;
}
.chat-msg img.chat-file-img { max-width: 100%; border-radius: 8px; display: block; margin-bottom: 4px; }
.chat-msg.uploading { opacity: .65; }
.chat-send-btn {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: var(--radius-sm); border: none;
  background: var(--oxide); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.chat-send-btn svg,
.chat-launcher-icon svg,
.chat-panel-close svg,
.chat-pin-btn svg,
.chat-resize-handle svg { flex-shrink: 0; width: 1em; height: 1em; }
.chat-send-btn svg { width: 17px; height: 17px; }
.chat-launcher-icon svg { width: 18px; height: 18px; }
.chat-panel-close svg, .chat-pin-btn svg { width: 14px; height: 14px; }
.chat-resize-handle svg { width: 12px; height: 12px; }
.chat-send-btn:hover { background: #9c3818; }
.chat-callback-link { text-align: center; font-size: 11.5px; color: var(--muted); margin-top: 7px; }
.chat-callback-link a { color: var(--oxide); cursor: pointer; text-decoration: underline; }
@media (max-width: 480px) {
  .chat-panel { right: 8px; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); left: 8px; width: auto !important; height: calc(100vh - 90px) !important; }
  .chat-launcher { right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); padding: 12px 16px 12px 14px; font-size: 13px; }
}

/* ── Калькулятор габиона ── */
.calc-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; max-width: 640px; }
.calc-shape-tabs { display: flex; gap: 6px; margin-bottom: 20px; border-bottom: 1px solid var(--line); padding-bottom: 0; }
.calc-shape-tab { font-family: "Golos Text", sans-serif; font-size: 13px; font-weight: 600; padding: 9px 14px; border: none; background: none; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .15s ease, border-color .15s ease; }
.calc-shape-tab:hover { color: var(--ink); }
.calc-shape-tab.active { color: var(--oxide); border-bottom-color: var(--oxide); }
.calc-preset-cyl, .calc-preset-ball { font-family: "Golos Text", sans-serif; font-size: 12.5px; font-weight: 500; padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); color: var(--muted); cursor: pointer; transition: border-color .15s ease, color .15s ease; }
.calc-preset-cyl:hover, .calc-preset-ball:hover { border-color: var(--oxide); color: var(--oxide); }
.calc-inputs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.calc-field { display: flex; flex-direction: column; gap: 4px; }
.calc-field label { font-size: 11px; text-transform: uppercase; letter-spacing: .03em; color: var(--faint); font-weight: 600; }
.calc-field input { font-family: "JetBrains Mono", monospace; font-size: 18px; font-weight: 600; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); width: 100%; box-sizing: border-box; }
.calc-field input:focus { outline: none; border-color: var(--oxide); }
.calc-presets { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; }
.calc-inputs[hidden], .calc-presets[hidden] { display: none; }
.calc-presets-label { font-size: 12.5px; color: var(--faint); margin-right: 2px; }
.calc-preset { font-family: "Golos Text", sans-serif; font-size: 12.5px; font-weight: 500; padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); color: var(--muted); cursor: pointer; transition: border-color .15s ease, color .15s ease; }
.calc-preset:hover { border-color: var(--oxide); color: var(--oxide); }
.calc-results { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.calc-result-label { font-size: 12px; color: var(--faint); margin-bottom: 6px; }
.calc-result-value { font-family: "JetBrains Mono", monospace; font-size: 26px; font-weight: 700; color: var(--oxide); }
.calc-note { font-size: 12.5px; color: var(--faint); margin: 14px 0 20px; line-height: 1.5; }
@media (max-width: 560px) {
  .calc-card { padding: 20px; }
  .calc-inputs { grid-template-columns: 1fr; }
  .calc-results { grid-template-columns: 1fr; }
}

/* ── Паспорт компании ── */
.passport-card { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; max-width: 1120px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.passport-card > .passport-col:first-child { grid-column: 1 / -1; }
.passport-col h4 { font-size: 15px; margin-bottom: 12px; }
.passport-col .spectable { font-size: 12.5px; margin-bottom: 0; }
.passport-col .spectable td:first-child { width: 42%; }
.passport-list { list-style: none; margin: 0 0 4px; padding: 0; font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 8px; }
.passport-list li { padding-left: 14px; position: relative; }
.passport-list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 5px; height: 5px; border-radius: 50%; background: var(--oxide); }
.legal-list { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.legal-list > div { display: grid; grid-template-columns: 42% 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.legal-list .legal-address { grid-column: 1 / -1; }
.legal-list dt { color: var(--muted); font-size: 12.5px; }
.legal-list dd { margin: 0; color: var(--ink); font-family: "Golos Text", sans-serif; font-size: 13px; line-height: 1.45; font-weight: 500; overflow-wrap: anywhere; }
.standards-details summary { cursor: pointer; font-size: 13px; font-weight: 650; color: var(--ink); }
.standards-list { margin-top: 12px; columns: 2; column-gap: 20px; }
.standards-list li { break-inside: avoid; margin-bottom: 7px; }
.standards-missing { margin: 14px 0 0; color: var(--faint); font-size: 12px; line-height: 1.5; }
.photo-card { position: relative; overflow: hidden; margin: 0; min-height: 180px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.photo-card img { display: block; width: 100%; height: 100%; min-height: 180px; object-fit: cover; transition: transform .25s ease; }
.photo-card:hover img { transform: scale(1.025); }
.photo-card-watermarked::after { content: "GABIONOPT.RU   ·   GABIONOPT.RU   ·   GABIONOPT.RU"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; color: rgba(41,48,52,.24); font: 700 clamp(14px, 2.4vw, 24px)/1.3 Arial, sans-serif; letter-spacing: .04em; text-align: center; pointer-events: none; }
.photo-card figcaption { position: absolute; left: 12px; bottom: 12px; padding: 7px 10px; border-radius: 999px; color: #fff; background: rgba(20,24,26,.78); font-size: 12px; font-weight: 600; }
.photo-card-wide { grid-column: 1 / -1; min-height: 220px; }
.photo-card-wide img { min-height: 220px; }
.after-gallery-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 1120px; margin-top: 28px; padding: 24px 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.after-gallery-cta h3 { margin: 0 0 6px; font-size: 18px; }
.after-gallery-cta p { max-width: 62ch; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.spec-request-card { display: grid; grid-template-columns: minmax(0, .82fr) minmax(340px, 1.18fr); gap: clamp(24px, 5vw, 56px); align-items: start; }
@media (max-width: 860px) {
  .passport-card { grid-template-columns: 1fr; gap: 24px; }
  .spec-request-card { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .legal-list { grid-template-columns: 1fr; }
  .standards-list { columns: 1; }
  .photo-card, .photo-card img { min-height: 200px; }
  .after-gallery-cta { flex-direction: column; align-items: flex-start; padding: 20px; }
  .after-gallery-cta .btn { width: 100%; }
}

/* ── Toast: копирование email ── */
.copy-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 16px);
  background: var(--ink);
  color: #fff;
  font-family: "Golos Text", sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  padding: 12px 18px;
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(10,12,13,.24);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 9999;
  max-width: 90vw;
  text-align: center;
}
.copy-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ── Выбираемые чипы типоразмеров ── */
.size-chip-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.size-chip {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 8px 10px;
  text-align: center;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.size-chip:hover { border-color: var(--oxide); color: var(--oxide); }
.size-chip.selected { background: var(--oxide); border-color: var(--oxide); color: #fff; }
@media (max-width: 860px) {
  .size-chip-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  .size-chip-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  body:has(.pdp-sticky-bar) .chat-launcher { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}

/* ── Плашки характеристик на фото карточки (диаметр / размер) ── */
.pcard-spec-chip {
  position: absolute; top: 5px; z-index: 2;
  background: rgba(10,12,13,.72); color: #fff;
  font-family: "JetBrains Mono", monospace; font-size: 9.5px; font-weight: 600;
  line-height: 1.3; padding: 2px 5px; border-radius: 4px;
  white-space: nowrap; max-width: calc(50% - 8px); overflow: hidden; text-overflow: ellipsis;
}
.pcard-spec-chip.diam { left: 5px; }
.pcard-spec-chip.size {
  right: 5px; max-width: calc(58% - 8px); overflow: hidden; text-overflow: ellipsis;
  background: rgba(255,255,255,.95); color: var(--ink);
  border: 1px solid rgba(10,12,13,.1); box-shadow: 0 1px 3px rgba(10,12,13,.12);
  display: flex; align-items: center; gap: 3px; white-space: nowrap; line-height: 1.3;
}
.pcard-spec-chip.size svg { width: 9px; height: 9px; flex-shrink: 0; color: var(--muted); }
.pcard-zinc-badge {
  position: absolute; right: 5px; bottom: 5px; width: 18px; height: 18px; z-index: 2;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(10,12,13,.35);
  display: flex; align-items: center; justify-content: center; cursor: help;
}
.pcard-zinc-badge svg { width: 12px; height: 12px; }
.pcard-zinc-badge::after {
  content: "Оцинковано"; position: absolute; right: 0; bottom: 130%;
  background: rgba(10,12,13,.92); color: #fff; font-size: 10.5px; font-weight: 400;
  padding: 5px 8px; border-radius: 6px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .06s ease; z-index: 5;
}
.pcard-zinc-badge:hover::after, .pcard-zinc-badge:focus::after { opacity: 1; }
@media (max-width: 480px) {
  .pcard-spec-chip { font-size: 8.5px; padding: 1.5px 4px; }
}
.pdp-gallery .pcard-spec-chip { font-size: 12px; padding: 4px 8px; top: 10px; max-width: calc(50% - 16px); }
.pdp-gallery .pcard-spec-chip.diam { left: 10px; }
.pdp-gallery .pcard-spec-chip.size { right: 10px; max-width: calc(58% - 16px); }
.pdp-gallery .pcard-zinc-badge { width: 28px; height: 28px; right: 10px; bottom: 10px; }
.pdp-gallery .pcard-zinc-badge svg { width: 18px; height: 18px; }

/* Calculator cross-links sidebar */
#calc { scroll-margin-top: calc(var(--header-h, 64px) + 12px); }
.calc-layout { display: flex; gap: 24px; align-items: flex-start; }
.calc-layout .calc-card { flex: 1 1 640px; }
.calc-sidebar { flex: 0 0 260px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; position: sticky; top: calc(var(--header-h, 64px) + 20px); }
.calc-sidebar h3 { font-size: 14px; margin: 0 0 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.calc-sidebar a, .calc-sidebar span.calc-sidebar-current { display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none; font-size: 14px; font-weight: 600; border: 1px solid var(--line); margin-bottom: 8px; transition: border-color .15s ease, background .15s ease, color .15s ease, transform .15s ease; }
.calc-sidebar a { color: var(--ink); }
.calc-sidebar a:last-child, .calc-sidebar span.calc-sidebar-current:last-child { margin-bottom: 0; }
.calc-sidebar a:hover { border-color: var(--oxide); background: var(--oxide-soft); color: var(--oxide); transform: translateX(3px); }
.calc-sidebar span.calc-sidebar-current { background: var(--oxide); border-color: var(--oxide); color: var(--oxide-ink); cursor: default; }
@media (max-width: 900px) {
  .calc-layout { flex-direction: column; }
  .calc-sidebar { width: 100%; position: static; }
}

/* Order button at card level */
.pcard .foot { margin-top: auto; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 8px; flex-wrap: nowrap; }
.pcard-actions { display: flex; gap: 8px; width: 100%; }
.pcard-actions .btn { flex: 1 1 0; min-width: 0; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: 8px; padding-right: 8px; }


/* ── Стек длинных чипов диаметра и размера ── */

/* ── Mobile catalog navigation ── */
@media (max-width: 760px) {
  .crumbs { display: block; margin-bottom: 18px; }
  .desktop-crumbs { display: none; }
  .mobile-catalog-nav { display: flex; align-items: center; gap: 6px; min-width: 0; flex-wrap: wrap; }
  .mobile-catalog-menu { position: relative; }
  .mobile-catalog-menu summary {
    display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 8px 10px;
    color: var(--ink); font-size: 14px; font-weight: 650; cursor: pointer; list-style: none;
    border: 1px solid var(--line); border-radius: 8px; background: var(--surface);
  }
  .mobile-catalog-menu summary::-webkit-details-marker { display: none; }
  .mobile-catalog-menu summary::after {
    content: ""; width: 7px; height: 7px; margin: -4px 1px 0 2px;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    color: var(--muted); transform: rotate(45deg); transition: transform .15s ease;
  }
  .mobile-catalog-menu[open] summary::after { transform: translateY(3px) rotate(225deg); }
  .mobile-catalog-menu[open] summary { border-color: var(--oxide); color: var(--oxide); }
  .mobile-catalog-panel {
    position: absolute; z-index: 40; top: calc(100% + 2px); left: 0; width: min(290px, calc(100vw - 40px));
    padding: 8px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px;
    box-shadow: 0 12px 28px rgba(14, 20, 24, .16);
  }
  .mobile-catalog-menu::after { content: ""; position: absolute; left: -8px; right: -8px; top: 100%; height: 14px; }
  .mobile-catalog-panel a { display: block; padding: 11px 12px; border-radius: 7px; color: var(--ink); font-size: 14px; line-height: 1.3; }
  .mobile-catalog-panel a:hover, .mobile-catalog-panel a[aria-current="page"] { color: var(--oxide); background: var(--oxide-soft); }
  .mobile-catalog-title { display: block; padding: 7px 12px 5px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
  .mobile-catalog-sep { color: var(--faint); }
  .mobile-catalog-current { color: var(--muted); font-size: 13px; line-height: 1.35; }
}
