/* Breadcrumbs */
  .crumbs { border-bottom: 1px solid var(--line); background: var(--bg-2); }
  .crumbs .wrap { display: flex; align-items: center; gap: 8px; padding-top: 12px; padding-bottom: 12px; font-size: 13px; color: var(--ink-3); flex-wrap: wrap; }
  .crumbs a:hover { color: var(--red); }
  .crumbs .sep { opacity: 0.5; }
  .crumbs .cur { color: var(--ink); font-weight: 500; }

  /* ===== PRODUCT HERO ===== */
  .pdp { padding: 36px 0 24px; }
  .pdp-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 44px; align-items: start; }

  /* Gallery */
  .gallery { position: sticky; top: 92px; }
  .gmain { position: relative; border: 1px solid var(--line); border-radius: var(--r-lg); aspect-ratio: 4/3; overflow: hidden; background: var(--bg-2); }
  .gmain .stage { position: absolute; inset: 0; opacity: 0; transition: opacity .3s; display: grid; place-items: center; }
  .gmain .stage.on { opacity: 1; }
  .gmain .stage.rib { background: linear-gradient(135deg, rgba(255,255,255,0.55), rgba(0,0,0,0.06)), repeating-linear-gradient(118deg, #D7DCE1 0 11px, #C8CED4 11px 22px); }
  .gmain .stage.cut { background: linear-gradient(135deg, rgba(255,255,255,0.55), rgba(0,0,0,0.06)), repeating-linear-gradient(90deg, #D2D8DE 0 16px, #C5CBD2 16px 32px); }
  .gmain .stage.coil { background: radial-gradient(circle at 50% 45%, #E3E7EC, #C5CBD2 70%); }
  .gmain .gimg-label { position: absolute; left: 16px; bottom: 14px; font-family: var(--font-mono); font-size: 11px; color: var(--ink-2); background: rgba(255,255,255,0.86); padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); }
  .gmain .gtag { position: absolute; left: 16px; top: 16px; font-family: var(--font-mono); font-size: 11px; background: var(--red); color: #fff; padding: 6px 12px; border-radius: 999px; letter-spacing: .04em; }
  .gthumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
  .gthumb { aspect-ratio: 1; border: 1.5px solid var(--line); border-radius: var(--r-md); overflow: hidden; position: relative; transition: border-color .15s, transform .12s; }
  .gthumb:hover { transform: translateY(-2px); }
  .gthumb[aria-pressed="true"] { border-color: var(--red); }
  .gthumb .tin { position: absolute; inset: 0; }
  .gthumb .tin.rib { background: repeating-linear-gradient(118deg, #D7DCE1 0 7px, #C8CED4 7px 14px); }
  .gthumb .tin.cut { background: repeating-linear-gradient(90deg, #D2D8DE 0 9px, #C5CBD2 9px 18px); }
  .gthumb .tin.coil { background: radial-gradient(circle at 50% 45%, #E3E7EC, #C5CBD2 70%); }
  .gthumb .tin.cert { background: var(--bg-3); display: grid; place-items: center; }
  .gthumb .tin.cert svg { width: 26px; height: 26px; color: var(--ink-3); }

  /* Buy column */
  .buy { }
  .buy .head { display: flex; align-items: flex-start; gap: 12px; justify-content: space-between; }
  .buy h1, .buy .buy-h1 { font-size: clamp(26px, 3vw, 36px); line-height: 1.08; margin: 12px 0 0; font-weight: 700; }
  .buy .gostline { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-3); margin-top: 10px; }
  .buy .metarow { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 14px; font-size: 13.5px; }
  .buy .stk { display: inline-flex; align-items: center; gap: 7px; color: #1F8A5B; font-weight: 600; }
  .buy .stk .d { width: 8px; height: 8px; border-radius: 99px; background: #1F9D57; box-shadow: 0 0 0 3px rgba(31,157,87,0.18); }
  .buy .sku { font-family: var(--font-mono); color: var(--ink-3); }
  .buy .sep-dot { width: 4px; height: 4px; border-radius: 99px; background: var(--line); }

  .buy .diasel { margin-top: 24px; }
  .buy .diasel .lab { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
  .buy .dchips { display: flex; flex-wrap: wrap; gap: 7px; }
  .dchip { font-family: var(--font-mono); font-size: 13.5px; padding: 9px 14px; border-radius: var(--r-sm); border: 1px solid var(--line); color: var(--ink-2); transition: all .14s; }
  .dchip[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
  .dchip:hover:not([aria-pressed="true"]) { border-color: var(--red); color: var(--red); }

  .buybox { border: 1px solid var(--line); border-radius: var(--r-lg); margin-top: 22px; overflow: hidden; }
  .buybox .priceband { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 22px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
  .buybox .price { font-size: 42px; font-weight: 700; letter-spacing: -.03em; color: var(--red); line-height: 1; }
  .buybox .price small { font-size: .35em; font-weight: 500; color: var(--ink-3); }
  .buybox .pricesub { font-size: 12.5px; color: var(--ink-3); margin-top: 8px; }
  .buybox .perton { text-align: right; font-size: 13px; color: var(--ink-2); }
  .buybox .perton b { display: block; font-size: 19px; color: var(--ink); font-weight: 700; letter-spacing: -.02em; }

  .buybox .calc { display: block !important; padding: 22px; grid-template-columns: none; background: #fff !important; color: var(--ink); }
  .calc .ctitle { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; }
  .calc .ctitle .unit-switch { display: inline-flex; gap: 2px; background: var(--bg-3); border-radius: var(--r-sm); padding: 3px; }
  .calc .ctitle .unit-switch button { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0; text-transform: none; padding: 5px 11px; border-radius: 4px; color: var(--ink-3); transition: all .15s; }
  .calc .ctitle .unit-switch button[aria-pressed="true"] { background: #fff; color: var(--red); box-shadow: 0 1px 3px rgba(20,24,40,.1); }
  .calc .qrow { display: flex; align-items: stretch; gap: 10px; }
  .calc .stepper { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; flex: 1; }
  .calc .stepper button { width: 46px; font-size: 20px; color: var(--ink-2); background: var(--bg-2); transition: background .14s; }
  .calc .stepper button:hover { background: var(--bg-3); color: var(--red); }
  .calc .stepper input { flex: 1; border: 0; text-align: center; font-family: var(--font-mono); font-size: 18px; font-weight: 600; color: var(--ink); width: 100%; min-width: 0; }
  .calc .stepper input:focus { outline: none; }
  .calc .qunit { display: grid; place-items: center; padding: 0 18px; border: 1px solid var(--line); border-radius: var(--r-sm); font-family: var(--font-mono); font-size: 13px; color: var(--ink-3); background: var(--bg-2); white-space: nowrap; }
  .calc .breakdown { margin-top: 16px; border: 1px dashed var(--line); border-radius: var(--r-md); padding: 14px 16px; display: flex; flex-direction: column; gap: 9px; }
  .calc .breakdown .br { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--ink-2); }
  .calc .breakdown .br b { color: var(--ink); font-family: var(--font-mono); font-weight: 600; }
  .calc .breakdown .br.total { border-top: 1px solid var(--line); padding-top: 11px; margin-top: 2px; font-size: 15px; }
  .calc .breakdown .br.total span { font-weight: 600; color: var(--ink); }
  .calc .breakdown .br.total b { color: var(--red); font-size: 21px; }
  .calc .actions { display: flex; gap: 10px; margin-top: 18px; }
  .calc .actions .btn-red { flex: 1; justify-content: center; }

  .buy .trust { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; margin-top: 18px; }
  .buy .trust .t { background: #fff; padding: 14px 16px; display: flex; gap: 11px; align-items: flex-start; }
  .buy .trust .t svg { width: 19px; height: 19px; color: var(--red); flex: none; margin-top: 1px; }
  .buy .trust .t b { display: block; font-size: 13.5px; font-weight: 600; }
  .buy .trust .t span { font-size: 12px; color: var(--ink-3); }

  .buy .mgr { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-md); }
  .buy .mgr .av { width: 46px; height: 46px; border-radius: 99px; background: var(--graphite); color: #fff; display: grid; place-items: center; font-weight: 700; font-family: var(--font-mono); flex: none; }
  .buy .mgr .mi { flex: 1; }
  .buy .mgr .mi b { font-size: 14px; }
  .buy .mgr .mi span { display: block; font-size: 12.5px; color: var(--ink-3); }
  .buy .mgr a.phone { font-family: var(--font-mono); font-size: 15px; font-weight: 600; color: var(--red); white-space: nowrap; }

  /* ===== TABS / SPEC NAV ===== */
  .specnav { position: sticky; top: 74px; z-index: 40; background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .specnav .wrap { display: flex; gap: 4px; overflow-x: auto; }
  .specnav a { padding: 16px 18px; font-size: 14px; font-weight: 500; color: var(--ink-2); border-bottom: 2px solid transparent; white-space: nowrap; transition: all .15s; }
  .specnav a:hover { color: var(--red); }
  .specnav a.active { color: var(--red); border-bottom-color: var(--red); }

  section.block { padding: 64px 0; }
  .sec-head { margin-bottom: 30px; }
  .sec-head h2 { font-size: clamp(26px, 3vw, 40px); line-height: 1.05; margin: 12px 0 0; }

  /* Specs */
  .specs-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
  .spectable { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
  .spectable .sr { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 15px 22px; border-top: 1px solid var(--line-2); font-size: 14.5px; }
  .spectable .sr:first-child { border-top: 0; }
  .spectable .sr:nth-child(even) { background: var(--bg-2); }
  .spectable .sr span { color: var(--ink-3); }
  .spectable .sr b { font-weight: 600; text-align: right; font-family: var(--font-mono); font-size: 13.5px; }
  .specaside { background: var(--graphite); color: #fff; border-radius: var(--r-lg); padding: 28px; }
  .specaside h3 { color: #fff; font-size: 19px; margin: 0 0 6px; }
  .specaside p { font-size: 13.5px; color: var(--steel-2); margin: 0 0 18px; line-height: 1.6; }
  .specaside .dl { display: flex; flex-direction: column; gap: 10px; }
  .specaside .dl a { display: flex; align-items: center; gap: 11px; padding: 12px 14px; background: var(--graphite-2); border: 1px solid var(--graphite-line); border-radius: var(--r-sm); font-size: 13.5px; transition: background .15s; }
  .specaside .dl a:hover { background: var(--graphite-3); }
  .specaside .dl a svg { width: 17px; height: 17px; color: var(--steel-2); flex: none; }
  .specaside .dl a .ext { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--steel); }

  /* Description */
  .desc { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 56px; }
  .desc article h3 { font-size: 20px; margin: 0 0 10px; }
  .desc article p { font-size: 15.5px; color: var(--ink-2); margin: 0; line-height: 1.65; }
  .applist { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
  .applist .ai { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
  .applist .ai .ic { width: 28px; height: 28px; border-radius: var(--r-sm); background: var(--red-tint); color: var(--red); display: grid; place-items: center; flex: none; }
  .applist .ai .ic svg { width: 16px; height: 16px; }

  /* Sortament strip */
  .sortband { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
  .sortband .trow { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr 1fr; gap: 14px; padding: 14px 22px; border-top: 1px solid var(--line-2); font-size: 14.5px; align-items: center; }
  .sortband .trow:first-child { border-top: 0; background: var(--bg-2); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
  .sortband .trow.cur { background: var(--red-tint); }
  .sortband .trow .d { font-weight: 600; color: var(--ink); }
  .sortband .trow .mono { font-family: var(--font-mono); }
  .sortband .trow .pr { font-family: var(--font-mono); font-weight: 600; color: var(--red); }
  .sortband .trow a.go { justify-self: end; }

  /* Delivery cards */
  .delivery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .dcard { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; }
  .dcard .ic { width: 44px; height: 44px; border-radius: var(--r-md); background: var(--bg-2); display: grid; place-items: center; color: var(--red); margin-bottom: 16px; }
  .dcard .ic svg { width: 22px; height: 22px; }
  .dcard h3 { font-size: 18px; margin: 0 0 8px; }
  .dcard p { font-size: 14px; color: var(--ink-2); margin: 0; line-height: 1.55; }

  /* Related */
  .pgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .pcard { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: #fff; display: flex; flex-direction: column; transition: transform .18s, border-color .18s, box-shadow .18s; }
  .pcard:hover { transform: translateY(-3px); border-color: var(--red); box-shadow: 0 16px 32px rgba(20,24,40,0.08); }
  .pcard .ph { height: 120px; position: relative; background: linear-gradient(135deg, rgba(255,255,255,0.5), rgba(0,0,0,0.05)), repeating-linear-gradient(115deg, #D7DCE1 0 9px, #CDD3D9 9px 18px); }
  .pcard .ph .badge { position: absolute; left: 12px; top: 12px; font-family: var(--font-mono); font-size: 10.5px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); padding: 4px 9px; border-radius: 999px; }
  .pcard .body { padding: 15px 15px 17px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
  .pcard h3 { font-size: 16px; margin: 0; }
  .pcard .gost { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }
  .pcard .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line-2); }
  .pcard .pr { font-weight: 700; color: var(--red); font-size: 17px; }
  .pcard .pr small { font-size: 12px; color: var(--ink-3); font-weight: 500; }

  /* CTA */
  .cta { background: var(--red); color: #fff; border-radius: var(--r-lg); padding: 56px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
  .cta h2 { font-size: clamp(28px, 3.4vw, 46px); margin: 12px 0 0; color: #fff; }
  .cta .eyebrow { color: #fff; }
  .cta .eyebrow::before { background: #fff; }
  .cta p { font-size: 16px; margin: 16px 0 0; opacity: 0.92; max-width: 400px; }
  .cta form { background: #fff; border-radius: var(--r-md); padding: 26px; display: flex; flex-direction: column; gap: 14px; }
  .cta form .fr { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .cta input, .cta select { width: 100%; background: var(--bg-2); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 13px 14px; font: inherit; font-size: 15px; }
  .cta input:focus, .cta select:focus { outline: none; border-color: var(--red); background: #fff; }
  .cta input::placeholder { color: var(--ink-3); }
  .cta .submit { width: 100%; justify-content: center; }
  .cta .agree { font-size: 11.5px; color: var(--ink-3); text-align: center; }
  .cta-ok { text-align: center; color: var(--ink); padding: 12px 0; }
  .cta-ok h2, .cta-ok p { color: var(--ink); }
  .cta-ok .big { width: 54px; height: 54px; margin: 0 auto 12px; border-radius: var(--r-md); background: var(--red); color: #fff; display: grid; place-items: center; font-size: 26px; }

/* ===== product page additions (real-data wiring, not in design) ===== */
.btn-sm { padding: 8px 13px; font-size: 13px; }
.field-w { display: block; }
.field-w.err input { border-color: var(--red); background:#fff; }
/* real gallery images replace the CSS placeholder stages */
.gmain .stage img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gthumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gmain .stage.ph-empty { background: linear-gradient(135deg, rgba(255,255,255,0.55), rgba(0,0,0,0.06)), repeating-linear-gradient(118deg, #D7DCE1 0 11px, #C8CED4 11px 22px); color: var(--ink-3); }
.gmain .stage.ph-empty svg { width: 64px; height: 64px; }
.pcard .ph img { display:block; }
/* rich-text (imported product description) */
/* таблицы в описании (спецификации с донора) — графитовая шапка + зебра */
.rte table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 18px 0; font-size: 14.5px; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.rte table td, .rte table th { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-2); }
.rte table tr:last-child td { border-bottom: 0; }
.rte table thead th { background: var(--graphite); color: #fff; font-weight: 600; border-bottom: 0; }
.rte table tbody tr:nth-child(2n) td { background: var(--bg-2); }
.rte p { font-size: 15.5px; color: var(--ink-2); margin: 0 0 14px; line-height: 1.65; }
.rte p:last-child { margin-bottom: 0; }
.rte h2, .rte h3, .rte h4 { color: var(--ink); margin: 22px 0 10px; font-size: 20px; line-height:1.2; }
.rte ul, .rte ol { margin: 0 0 14px; padding-left: 20px; color: var(--ink-2); font-size: 15.5px; line-height: 1.6; }
.rte li { margin: 4px 0; }
.rte a { color: var(--red); text-decoration: underline; }
.rte img { max-width: 100%; height: auto; border-radius: var(--r-md); }
.rte strong, .rte b { color: var(--ink); font-weight: 600; }
.rte table { border-collapse: collapse; width: 100%; margin: 0 0 14px; font-size: 14px; }
.rte td, .rte th { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
/* responsive (PDP grids) */
@media (max-width: 980px){
  .pdp-grid { grid-template-columns: 1fr; gap: 28px; }
  .gallery { position: static; }
  .specs-grid, .desc, .delivery, .pgrid { grid-template-columns: 1fr !important; }
  .cta { grid-template-columns: 1fr; padding: 32px; }
  .pgrid { grid-template-columns: 1fr 1fr !important; }
  section.block { padding: 44px 0; }
}
@media (max-width: 560px){
  .pgrid, .trust { grid-template-columns: 1fr !important; }
  .buybox .priceband { flex-direction: column; align-items: flex-start; }
}


/* ===== info pages v2 (hero + aside) ===== */
.hero--page .hero-inner { min-height: 360px; padding-top: 48px; padding-bottom: 132px; justify-content: flex-end; }
.hero--page .hero-inner h1 { font-size: clamp(30px, 3.6vw, 52px); max-width: 860px; }
.hero--page .hero-sub { margin: 18px 0 24px; }
.hero--short .hero-inner { min-height: 280px; padding-bottom: 56px; }
/* Компактный hero для каталога/товара — ниже на ~50%. hero--cat сохраняет
   зазор снизу под абсолютный statbar; hero--prod statbar не имеет → тоньше. */
/* Чипы размеров в фильтре каталога — ссылочные (серверные фильтры), активное
   состояние зеркалит input:checked из дизайна «Категория Арматура». */
a.fdia { display: block; }
.fdia.is-on span { background: var(--red); border-color: var(--red); color: #fff; }

.hero--cat .hero-inner  { min-height: 150px; padding-top: 26px; padding-bottom: 84px; }
.hero--prod .hero-inner { min-height: 130px; padding-top: 26px; padding-bottom: 30px; }
.hero--cat .hero-inner h1, .hero--prod .hero-inner h1 { font-size: clamp(24px, 2.6vw, 40px); margin: 6px 0 0; }
.hero--cat .crumbs-hero, .hero--prod .crumbs-hero { margin-bottom: 12px; }
.hero--cat .hero-flag, .hero--prod .hero-flag { margin-bottom: 8px; }
.hero--cat .hero-sub, .hero--prod .hero-sub { margin: 12px 0 18px; font-size: 14.5px; }
.hero--cat .hero-cta .btn, .hero--prod .hero-cta .btn { padding-top: 11px; padding-bottom: 11px; }
.hero--cat .hero-statbar .hero-stat { padding: 14px 0; }
.hero--cat .hero-statbar .ic { width: 32px; height: 32px; }
.crumbs-hero { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: rgba(221,224,242,0.75); margin-bottom: 22px; }
.crumbs-hero a { color: rgba(221,224,242,0.75); }
.crumbs-hero a:hover { color: #fff; }
.crumbs-hero .sep { opacity: .5; }
.crumbs-hero .cur { color: #fff; font-weight: 500; }
.page-grid { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: 44px; align-items: start; }
/* ===== info-page article typography (rich) ===== */
.page-article { font-size: 16px; line-height: 1.75; color: var(--ink-2); }
.page-article > :first-child { margin-top: 0; }
.page-article > :last-child { margin-bottom: 0; }
.page-article p { margin: 0 0 16px; }
/* lead — первый абзац крупнее и темнее */
.page-article > p:first-of-type { font-size: 18px; line-height: 1.65; color: var(--ink); }
/* заголовки с красным акцентом */
.page-article h2 { font-size: clamp(23px, 2.4vw, 30px); line-height: 1.2; font-weight: 700; color: var(--ink); margin: 42px 0 16px; }
.page-article h2::before { content: ""; display: block; width: 44px; height: 3px; background: var(--red); border-radius: 2px; margin-bottom: 16px; }
.page-article h3 { font-size: 19.5px; line-height: 1.3; font-weight: 600; color: var(--ink); margin: 30px 0 10px; }
.page-article h4 { font-size: 16.5px; font-weight: 600; color: var(--ink); margin: 22px 0 8px; }
.page-article strong, .page-article b { color: var(--ink); font-weight: 600; }
.page-article a { color: var(--red); font-weight: 500; text-decoration: none; border-bottom: 1px solid rgba(214,40,40,0.32); transition: border-color .15s ease; }
.page-article a:hover { border-bottom-color: var(--red); }
/* списки: маркеры-ромбы (ul) и моно-номера (ol) */
.page-article ul, .page-article ol { margin: 0 0 18px; padding: 0; list-style: none; }
.page-article li { position: relative; padding-left: 30px; margin-bottom: 11px; line-height: 1.62; }
.page-article ul > li::before { content: ""; position: absolute; left: 5px; top: 9px; width: 7px; height: 7px; background: var(--red); border-radius: 2px; transform: rotate(45deg); }
.page-article ol { counter-reset: li; }
.page-article ol > li { counter-increment: li; }
.page-article ol > li::before { content: counter(li); position: absolute; left: 0; top: 0; width: 22px; height: 22px; background: var(--red-tint); color: var(--red); border-radius: 6px; font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; display: grid; place-items: center; }
.page-article li > ul, .page-article li > ol { margin-top: 11px; }
/* картинки: скруглённые, на всю ширину, с лёгкой тенью */
.page-article img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--r-lg); margin: 24px 0; box-shadow: 0 12px 34px rgba(20,24,40,0.07); }
/* таблицы: графитовая шапка + зебра */
.page-article table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 24px 0; font-size: 14.5px; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.page-article table td, .page-article table th { padding: 13px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-2); }
.page-article table tr:last-child td { border-bottom: 0; }
.page-article table thead th, .page-article table tr:first-child td { background: var(--graphite); color: #fff; font-weight: 600; border-bottom: 0; }
.page-article table thead th b, .page-article table tr:first-child td b { color: #fff; }
.page-article table tr:nth-child(2n):not(:first-child) td { background: var(--bg-2); }
/* цитата-callout */
.page-article blockquote { margin: 24px 0; padding: 18px 24px; background: var(--bg-2); border-left: 3px solid var(--red); border-radius: 0 var(--r-md) var(--r-md) 0; color: var(--ink-2); }
.page-article blockquote p:last-child { margin-bottom: 0; }
.page-article hr { border: 0; border-top: 1px solid var(--line); margin: 34px 0; }
.page-aside { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 14px; }
.aside-card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; background: #fff; }
.aside-card h3 { font-size: 17px; margin: 0 0 12px; }
.aside-card--dark { background: var(--graphite); border-color: var(--graphite-line); color: #fff; }
.aside-card--dark h3 { color: #fff; }
.aside-card--dark .addr { font-size: 13.5px; color: var(--steel-2); margin: 0 0 12px; line-height: 1.5; }
.aside-card--dark .phone { display: block; font-family: var(--font-mono); font-size: 21px; font-weight: 600; color: #fff; margin: 2px 0 16px; }
.aside-card--dark .btn { width: 100%; justify-content: center; margin-top: 8px; }
.aside-links { display: flex; flex-direction: column; }
.aside-links a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 2px; border-top: 1px solid var(--line-2); font-size: 14px; color: var(--ink-2); }
.aside-links a:first-child { border-top: 0; }
.aside-links a:hover { color: var(--red); }
.aside-links a span { color: var(--ink-3); }
@media (max-width: 980px) {
  .page-grid { grid-template-columns: 1fr; }
  .page-aside { position: static; }
  .hero--page .hero-inner { min-height: 300px; padding-bottom: 60px; }
}


/* ===== team / docs components ===== */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 18px 0 8px; }
.tm-card { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #fff; transition: transform .18s, border-color .18s, box-shadow .18s; }
.tm-card:hover { transform: translateY(-3px); border-color: var(--red); box-shadow: 0 16px 32px rgba(20,24,40,0.08); }
.tm-ph { height: 210px; background: var(--bg-2); position: relative; }
.tm-ph img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; border: 0 !important; margin: 0 !important; border-radius: 0 !important; }
.tm-ava { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-mono); font-size: 42px; font-weight: 700; color: var(--steel); background: var(--graphite); }
.tm-body { padding: 16px 16px 18px; }
.tm-body b { display: block; font-size: 16px; }
.tm-role { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin: 5px 0 12px; }
.tm-row { display: flex; align-items: center; gap: 9px; padding: 7px 0; border-top: 1px solid var(--line-2); font-size: 13.5px; color: var(--ink-2) !important; text-decoration: none !important; }
.tm-row:hover { color: var(--red) !important; }
.tm-row .ic { width: 22px; height: 22px; flex: none; border-radius: var(--r-sm); background: var(--red-tint); color: var(--red); display: grid; place-items: center; font-size: 12px; }
.doc-list { display: flex; flex-direction: column; gap: 10px; margin: 18px 0; }
.doc-item { display: flex; align-items: center; gap: 13px; padding: 15px 18px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; font-size: 14.5px; color: var(--ink) !important; text-decoration: none !important; transition: border-color .15s, transform .15s; }
.doc-item:hover { border-color: var(--red); transform: translateY(-2px); }
.doc-item .doc-ic { font-size: 19px; }
.doc-item .doc-t { flex: 1; font-weight: 500; }
.doc-item .doc-ext { font-family: var(--font-mono); font-size: 11px; color: var(--red); background: var(--red-tint); padding: 4px 9px; border-radius: 999px; }
@media (max-width: 980px) { .team-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .team-grid { grid-template-columns: 1fr; } .page-article .pgrid { grid-template-columns: 1fr !important; } }

/* ===== страница отзывов ===== */
.reviews-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 22px 0 26px; }
.rev-card { border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; padding: 24px; margin: 0; display: flex; flex-direction: column; gap: 12px; transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.rev-card:hover { border-color: var(--red); transform: translateY(-3px); box-shadow: 0 16px 32px rgba(20,24,40,0.08); }
.rev-stars { display: flex; gap: 2px; color: #FFC93E; }
.rev-card blockquote { margin: 0; padding: 0; border: 0; background: none; font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }
.rev-card figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 6px; border-top: 1px solid var(--line-2); }
.rev-card figcaption b { font-size: 15px; color: var(--ink); }
.rev-card .rev-date { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); }
@media (max-width: 720px) { .reviews-grid { grid-template-columns: 1fr; } }


/* ===== страница «Продукция» — сетка категорий ===== */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding-bottom: 56px; }
.cat-tile { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #fff; display: flex; flex-direction: column; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.cat-tile:hover { transform: translateY(-4px); border-color: var(--red); box-shadow: 0 16px 34px rgba(20,24,40,0.09); }
.cat-tile .ph { height: 158px; background: var(--bg-2); position: relative; overflow: hidden; }
.cat-tile .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.cat-tile:hover .ph img { transform: scale(1.04); }
.cat-tile .body { padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cat-tile h3 { font-size: 16.5px; margin: 0 0 3px; color: var(--ink); }
.cat-tile .cnt { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-3); }
.cat-tile .arr { color: var(--red); font-size: 18px; font-weight: 700; flex: none; }
@media (max-width: 1080px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .cat-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px)  { .cat-grid { grid-template-columns: 1fr; } }


/* ===== попап заявки (lead modal) — textarea под стиль auth-полей ===== */
.auth-field textarea { width: 100%; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 13px; font: inherit; font-size: 15px; color: var(--ink); resize: vertical; min-height: 64px; }
.auth-field textarea:focus { outline: none; border-color: var(--red); background: #fff; }
#leadModal .auth-submit { width: 100%; justify-content: center; margin-top: 4px; }
