/* ==========================================================================
   Бетон Микс — дизайн-система v3 «Промышленная точность»
   Палитра унаследована с прежней версии сайта (#0074B7 / #FF3A4B / #1a2a3a)
   и пересобрана в контрастную шкалу (WCAG AA).
   ========================================================================== */

/* ── 1. Токены ─────────────────────────────────────────────────────────── */
:root {
  --ink-900: #0e1a26;
  --ink-800: #16273a;
  --ink-700: #2b3f52;
  --ink-600: #41576c;
  --ink-500: #5a6b7c;
  --ink-400: #8496a6;
  --ink-300: #a8b6c4;

  --bg:        #ffffff;
  --surface-1: #f6f9fc;
  --surface-2: #eef4fa;
  --line:      #dde5ed;
  --line-soft: #eaf0f6;

  --blue-900: #003f66;
  --blue-800: #004e7c;
  --blue-700: #005e96;
  --blue-600: #0074b7;
  --blue-500: #2a8fcb;
  --blue-100: #d3e6f4;
  --blue-50:  #eef6fc;

  --red-700: #b81525;
  --red-600: #d8202f;
  --red-500: #ff3a4b;
  --red-50:  #fff1f2;

  --ok-600: #1f7a4d;

  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 16px;
  --r-pill: 999px;

  --sh-1: 0 1px 2px rgba(14,26,38,.05), 0 1px 1px rgba(14,26,38,.04);
  --sh-2: 0 1px 2px rgba(14,26,38,.04), 0 10px 22px -14px rgba(14,26,38,.30);
  --sh-3: 0 2px 6px rgba(14,26,38,.06), 0 18px 40px -20px rgba(14,26,38,.35);

  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 40px);
  --sec-y: clamp(44px, 6vw, 88px);

  --f-display: 'Oswald', 'Arial Narrow', Arial, sans-serif;
  --f-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

  --t-hero: clamp(2rem, 1.15rem + 3.6vw, 4rem);
  --t-h1:   clamp(1.6rem, 1.1rem + 2vw, 2.6rem);
  --t-h2:   clamp(1.3rem, 1.05rem + 1.2vw, 1.95rem);
  --t-h3:   clamp(1.075rem, 1rem + .45vw, 1.3rem);
  --t-body: clamp(.9375rem, .9rem + .18vw, 1.0625rem);
  --t-sm:   .875rem;
  --t-xs:   .75rem;

  --ease: cubic-bezier(.32, .72, .28, 1);
  --dur: .22s;

  --hdr-h: 68px;
  --actionbar-h: 0px;
}

/* ── 2. Сброс и база ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--hdr-h) + 62px);
  overflow-x: clip;
}

body {
  font-family: var(--f-body);
  font-size: var(--t-body);
  line-height: 1.65;
  color: var(--ink-700);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
  padding-bottom: var(--actionbar-h);
}
body.is-locked { overflow: hidden; }

img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--blue-700); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--red-600); }

h1, h2, h3, h4, h5 {
  font-family: var(--f-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.005em;
  color: var(--ink-900);
  text-wrap: balance;
}
h1 { font-size: var(--t-h1); margin: 0 0 18px; }
h2 { font-size: var(--t-h2); margin: 0 0 16px; }
h3 { font-size: var(--t-h3); font-weight: 600; margin: 0 0 12px; }
p  { margin: 0 0 16px; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 16px; padding-left: 1.3em; }
li { margin-bottom: 6px; }
strong, b { font-weight: 700; color: var(--ink-900); }
em { font-style: italic; }

.section h2:not(:first-child),
.sec h2:not(:first-child) { margin-top: clamp(28px, 3.5vw, 48px); }

::selection { background: var(--blue-100); color: var(--ink-900); }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 999;
  background: var(--ink-900); color: #fff;
  padding: 12px 20px; border-radius: var(--r-sm); font-weight: 700;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 12px; color: #fff; }

.vh {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ── 3. Раскладка ──────────────────────────────────────────────────────── */
.wrap, .cw {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.cp { padding-left: 0; padding-right: 0; }   /* совместимость со старой разметкой */
.cw.cp { padding-inline: var(--gutter); }

.section, .sec { padding-block: var(--sec-y); }
/* Первая секция после шапки страницы не нуждается в двойном отступе */
main > .sec:first-child, main > .section:first-child { padding-top: clamp(28px, 4vw, 52px); }
.section--tint, .sec_blue_light { background: var(--surface-1); }
.section--ink { background: var(--ink-900); color: var(--ink-300); }
.section--ink h2, .section--ink h3 { color: #fff; }

.sec-head { max-width: 64ch; margin-bottom: clamp(22px, 3vw, 38px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-display);
  font-size: .8125rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--blue-700);
  margin-bottom: 12px;
}
.eyebrow::before { content: ''; width: 24px; height: 2px; background: var(--red-500); flex: none; }
.section--ink .eyebrow { color: var(--blue-500); }

.sec_lead, .sec-lead {
  margin: 0 0 clamp(20px, 2.5vw, 32px);
  color: var(--ink-500); font-size: 1.0625rem; line-height: 1.6; max-width: 68ch;
}
.mt10 { margin-top: 10px; }

/* ── 4. Кнопки ─────────────────────────────────────────────────────────── */
.btn, .btn_red, .btn_white, .btn_outline, .ptbl2_btn, .blog_read_btn {
  --btn-bg: var(--blue-600);
  --btn-fg: #fff;
  --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px;
  padding: 12px clamp(18px, 2.2vw, 30px);
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1.5px solid var(--btn-bd); border-radius: var(--r-sm);
  font-family: var(--f-body); font-size: .9375rem; font-weight: 700;
  letter-spacing: .01em; line-height: 1.2; text-align: center;
  text-transform: none; text-decoration: none;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform .12s var(--ease);
}
.btn:hover, .btn_red:hover, .btn_white:hover, .btn_outline:hover,
.ptbl2_btn:hover, .blog_read_btn:hover { color: var(--btn-fg); }
.btn:active, .btn_red:active, .btn_white:active { transform: translateY(1px); }

.btn--primary, .btn_red { --btn-bg: var(--red-600); --btn-bd: var(--red-600); }
.btn--primary:hover, .btn_red:hover { --btn-bg: var(--red-700); --btn-bd: var(--red-700); }

.btn--blue:hover { --btn-bg: var(--blue-800); }

.btn--ghost, .ptbl2_btn, .blog_read_btn {
  --btn-bg: transparent; --btn-fg: var(--ink-900); --btn-bd: var(--line);
}
.btn--ghost:hover, .ptbl2_btn:hover, .blog_read_btn:hover {
  --btn-bd: var(--blue-600); --btn-fg: var(--blue-700); --btn-bg: var(--blue-50);
}

.btn--ondark { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255,255,255,.42); }
.btn--ondark:hover { --btn-bd: #fff; --btn-bg: rgba(255,255,255,.12); }

.btn_white { --btn-bg: #fff; --btn-fg: var(--ink-900); --btn-bd: #fff; }
.btn_white:hover { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: #fff; }

.btn_outline { --btn-bg: transparent; --btn-fg: rgba(255,255,255,.85); --btn-bd: rgba(255,255,255,.35); }
.btn_outline:hover { --btn-bd: #fff; --btn-fg: #fff; --btn-bg: rgba(255,255,255,.1); }

.btn--sm, .ptbl2_btn, .blog_read_btn { min-height: 40px; padding: 8px 18px; font-size: .875rem; }
.btn--block { width: 100%; }

.cta_row { margin-top: clamp(24px, 3vw, 36px); display: flex; flex-wrap: wrap; gap: 12px; }

/* ── 5. Служебная строка ───────────────────────────────────────────────── */
.topbar {
  background: var(--ink-900);
  color: var(--ink-300);
  font-size: var(--t-xs);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.topbar__row {
  display: flex; align-items: center; gap: clamp(14px, 2.4vw, 32px);
  flex-wrap: wrap; min-height: 40px; padding-block: 8px;
}
.topbar__item { display: inline-flex; align-items: center; gap: 8px; }
.topbar__item svg { width: 15px; height: 15px; fill: var(--blue-500); flex: none; }
.topbar__item a { color: var(--ink-300); }
.topbar__item a:hover { color: #fff; }
.topbar__spacer { margin-left: auto; }
@media (max-width: 900px) { .topbar { display: none; } }

/* ── 6. Шапка ──────────────────────────────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 60;
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--dur) var(--ease);
}
.header.is-stuck { box-shadow: var(--sh-2); }

.header__row {
  display: flex; align-items: center; gap: clamp(12px, 1.8vw, 26px);
  min-height: var(--hdr-h);
  padding-block: 10px;
  min-width: 0;
}
.logo { flex: none; display: block; color: var(--ink-900); }
.logo svg { width: clamp(148px, 14vw, 190px); height: auto; }

/* Навигация — отдельная строка во всю ширину: не конфликтует с телефоном */
.navbar { border-top: 1px solid var(--line-soft); background: #fff; }
.nav { min-width: 0; }
.nav__list {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: stretch; flex-wrap: nowrap;
  gap: clamp(0px, .4vw, 6px);
}
.nav__list li { margin: 0; min-width: 0; }
.nav__list a {
  display: flex; align-items: center; height: 100%;
  padding: 13px clamp(8px, 1vw, 16px);
  font-size: .875rem; font-weight: 600; color: var(--ink-700);
  white-space: nowrap; position: relative;
}
.nav__list a::after {
  content: ''; position: absolute; left: 50%; right: 50%; bottom: 0;
  height: 3px; background: var(--red-500);
  transition: left var(--dur) var(--ease), right var(--dur) var(--ease);
}
.nav__list a:hover { color: var(--ink-900); background: var(--surface-1); }
.nav__list a:hover::after, .nav__list .is-active a::after { left: 0; right: 0; }
.nav__list .is-active a { color: var(--ink-900); }

.header__phone { flex: none; margin-left: auto; text-align: right; line-height: 1.15; }
.header__phone a {
  display: block;
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(1.05rem, .85rem + .6vw, 1.35rem);
  color: var(--ink-900); font-variant-numeric: tabular-nums; letter-spacing: .01em;
  white-space: nowrap;
}
.header__phone a:hover { color: var(--red-600); }
.header__phone span {
  display: block; font-size: .6875rem; color: var(--ink-500);
  letter-spacing: .04em; margin-top: 2px; white-space: nowrap;
}
.header__cta { flex: none; }

.burger {
  display: none; flex: none;
  width: 46px; height: 46px; align-items: center; justify-content: center;
  background: var(--surface-1); border: 1px solid var(--line);
  border-radius: var(--r-sm); cursor: pointer;
}
.burger span { position: relative; display: block; width: 20px; height: 2px; background: var(--ink-900); border-radius: 2px; }
.burger span::before, .burger span::after {
  content: ''; position: absolute; left: 0; width: 20px; height: 2px;
  background: var(--ink-900); border-radius: 2px;
}
.burger span::before { top: -6px; }
.burger span::after  { top: 6px; }

@media (max-width: 1040px) {
  .navbar { display: none; }
  .burger { display: flex; }
}
@media (max-width: 620px) {
  .header__cta { display: none; }
  .header__phone { margin-left: auto; }
  .header__phone span { display: none; }
}
@media (max-width: 400px) {
  .header__phone a { font-size: .95rem; }
  .logo svg { width: 132px; }
}
@media (max-width: 360px) {
  .header__row { gap: 8px; }
  .logo svg { width: 112px; }
  .header__phone a { font-size: .875rem; }
}

/* ── 7. Мобильное меню ─────────────────────────────────────────────────── */
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 79;
  background: rgba(14,26,38,.55);
  opacity: 0; visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility var(--dur);
}
.drawer-backdrop.is-open { opacity: 1; visibility: visible; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 80;
  width: min(380px, 88vw);
  background: #fff;
  display: flex; flex-direction: column;
  transform: translateX(102%);
  visibility: hidden;
  transition: transform .3s var(--ease), visibility .3s;
  box-shadow: var(--sh-3);
}
.drawer.is-open { transform: translateX(0); visibility: visible; }

.drawer__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid var(--line); flex: none;
}
.drawer__close {
  width: 44px; height: 44px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-1); border: 1px solid var(--line);
  border-radius: var(--r-sm); cursor: pointer; color: var(--ink-700); font-size: 20px; line-height: 1;
}
.drawer__body { overflow-y: auto; flex: 1; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.drawer__nav { list-style: none; margin: 0; padding: 0; }
.drawer__nav li { margin: 0; }
.drawer__nav a {
  display: flex; align-items: center; padding: 15px 18px; min-height: 52px;
  font-size: 1rem; font-weight: 600; color: var(--ink-800);
  border-bottom: 1px solid var(--line-soft);
}
.drawer__nav .is-active a { color: var(--blue-700); background: var(--blue-50); box-shadow: inset 3px 0 0 var(--red-500); }
.drawer__foot { flex: none; padding: 18px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.drawer__phone {
  font-family: var(--f-display); font-size: 1.375rem; color: var(--ink-900);
  font-variant-numeric: tabular-nums; text-align: center;
}
.drawer__meta { font-size: var(--t-xs); color: var(--ink-500); text-align: center; margin: 0; }

/* ── 8. Нижняя панель действий (мобильные) ─────────────────────────────── */
.actionbar { display: none; }
@media (max-width: 780px) {
  :root { --actionbar-h: calc(62px + env(safe-area-inset-bottom, 0px)); }
  .actionbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
    background: rgba(255,255,255,.97);
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px -14px rgba(14,26,38,.5);
  }
  .actionbar .btn { min-height: 46px; font-size: .9375rem; padding-inline: 10px; }
  #btn_up { bottom: calc(var(--actionbar-h) + 14px); }
}

/* ── 9. Герой (главная) ────────────────────────────────────────────────── */
/* Текст по сетке шапки. Фото cover до правого края: на широком экране
   кадр становится горизонтальным срезом (силос + миксер целиком),
   без пустой полосы и без размытия. */
.hero {
  display: grid;
  grid-template-columns:
    minmax(0, calc((100% - var(--wrap)) / 2))
    minmax(20rem, 46rem)
    minmax(24rem, 1fr);
  align-items: stretch;
  background: var(--ink-900);
  isolation: isolate;
  overflow: hidden;
}
.hero__media {
  position: relative;
  grid-column: 3;
  grid-row: 1;
  min-width: 0;
  min-height: 100%;
  overflow: hidden;
  background: #1c3a4d;
}
.hero__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; max-width: none;
  object-fit: cover;
  object-position: 100% 58%;
}
.hero__media::after {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--ink-900) 0%, rgba(14,26,38,.12) 5%, transparent 12%),
    linear-gradient(180deg, transparent 70%, rgba(14,26,38,.18) 100%);
}
.hero__inner.wrap {
  grid-column: 2;
  grid-row: 1;
  z-index: 1;
  max-width: none;
  width: 100%;
  margin: 0;
  padding-block: clamp(44px, 6.5vw, 88px) clamp(56px, 7vw, 104px);
  padding-left: var(--gutter);
  padding-right: clamp(16px, 2vw, 28px);
}
.hero__facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(30px, 4vw, 46px);
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--r-md);
  overflow: hidden;
}

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .hero__media {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    height: min(34vh, 280px);
    min-height: 200px;
    aspect-ratio: auto;
    max-height: none;
  }
  .hero__media img {
    object-fit: cover;
    object-position: 78% 52%;
  }
  .hero__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__media::after {
    background: linear-gradient(180deg, transparent 50%, rgba(14,26,38,.35) 82%, var(--ink-900) 100%);
  }
  .hero__inner.wrap {
    grid-column: 1;
    grid-row: 2;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
    padding-block: 22px 28px;
  }
}
@media (max-width: 780px) {
  .hero__media {
    height: min(28vh, 220px);
    min-height: 168px;
  }
  /* Кнопки героя остаются над панелью «Позвонить / Заказать»,
     цифры уходят ниже сгиба и не выглядывают из-под неё */
  .hero__facts { margin-top: 56px; }
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-family: var(--f-display); font-size: .8125rem; font-weight: 400;
  letter-spacing: .16em; text-transform: uppercase; color: #fff;
  padding: 7px 14px; border: 1px solid rgba(255,255,255,.28);
  border-radius: var(--r-pill); background: rgba(14,26,38,.35);
  margin: 0 0 clamp(18px, 2.4vw, 26px);
}
.hero__eyebrow b { color: var(--red-500); font-weight: 500; }
@media (max-width: 620px) {
  .hero__eyebrow {
    display: block; padding: 0 0 0 12px; border: 0; border-left: 2px solid var(--red-500);
    border-radius: 0; background: none; font-size: .75rem; letter-spacing: .12em;
    line-height: 1.7; color: rgba(255,255,255,.9);
  }
  .hero__eyebrow b { display: none; }
}

.hero__title {
  font-size: var(--t-hero); color: #fff; font-weight: 500;
  line-height: 1.05; letter-spacing: -.01em; max-width: 39rem;
  margin: 0 0 clamp(14px, 1.8vw, 20px);
}
.hero__title em { font-style: normal; color: var(--blue-500); }
.hero__text {
  font-size: clamp(1rem, .95rem + .4vw, 1.1875rem);
  color: rgba(255,255,255,.82);
  max-width: 34rem; margin: 0 0 clamp(24px, 3vw, 34px);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__fact { background: rgba(14,26,38,.55); padding: 14px 12px; }
.hero__fact b {
  display: block; font-family: var(--f-display); font-weight: 500;
  font-size: clamp(1.4rem, 1.1rem + .9vw, 1.9rem); color: #fff;
  line-height: 1.1; font-variant-numeric: tabular-nums;
}
.hero__fact span { display: block; font-size: var(--t-xs); color: rgba(255,255,255,.72); line-height: 1.35; margin-top: 4px; }

/* ── 10. Шапка внутренней страницы ─────────────────────────────────────── */
.pagehead {
  position: relative; background: var(--ink-900); color: #fff; isolation: isolate; overflow: hidden;
}
.pagehead__media { position: absolute; inset: 0; z-index: -2; }
.pagehead__media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 45%; }
.pagehead::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(14,26,38,.96) 0%, rgba(14,26,38,.90) 50%, rgba(14,26,38,.66) 100%);
}
.pagehead__inner { padding-block: clamp(26px, 4vw, 48px) clamp(30px, 4.5vw, 56px); }
.pagehead__eyebrow {
  font-family: var(--f-display); font-size: .8125rem; font-weight: 400;
  letter-spacing: .16em; text-transform: uppercase; color: var(--blue-500);
  margin: 0 0 10px;
}
.pagehead h1 { color: #fff; margin: 0; max-width: 34ch; }

.crumbs { margin: 0 0 clamp(14px, 2vw, 22px); font-size: var(--t-xs); }
/* Строчный поток вместо flex: длинная последняя крошка переносится
   как обычный текст, а разделитель не «уезжает» на вторую строку */
.crumbs ol { list-style: none; margin: 0; padding: 0; }
.crumbs li { display: inline; margin: 0; color: rgba(255,255,255,.6); }
.crumbs li + li::before { content: '/'; margin: 0 6px; color: rgba(255,255,255,.32); }
.crumbs a { color: rgba(255,255,255,.72); }
.crumbs a:hover { color: #fff; }
.crumbs [aria-current] { color: rgba(255,255,255,.55); }
.bc { font-size: var(--t-xs); color: var(--ink-400); margin-bottom: 14px; }

/* ── 11. Полоса категорий ──────────────────────────────────────────────── */
.catbar { position: relative; z-index: 5; margin-top: clamp(-72px, -6vw, -56px); }
@media (max-width: 960px) {
  .catbar { margin-top: 16px; }
}
.catbar__grid {
  display: grid; grid-template-columns: repeat(8, minmax(0, 1fr));
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-3); overflow: hidden;
}
.catbar__item {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  gap: 10px; padding: 20px 10px 18px;
  border-right: 1px solid var(--line-soft);
  color: var(--ink-800); text-align: center; position: relative;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.catbar__item:last-child { border-right: 0; }
.catbar__item img {
  width: 40px; height: 40px; object-fit: contain;
  filter: brightness(0) saturate(100%) invert(26%) sepia(84%) saturate(1550%) hue-rotate(180deg) brightness(92%) contrast(101%);
  transition: filter var(--dur) var(--ease);
}
.catbar__item span {
  font-family: var(--f-display); font-size: .8125rem; font-weight: 400;
  letter-spacing: .07em; text-transform: uppercase; line-height: 1.2;
  overflow-wrap: anywhere;
}
.catbar__item::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--red-500); transform: scaleX(0);
  transition: transform var(--dur) var(--ease);
}
.catbar__item:hover { background: var(--blue-600); color: #fff; }
.catbar__item:hover img { filter: brightness(0) invert(1); }
.catbar__item:hover::after { transform: scaleX(1); }

@media (max-width: 1080px) {
  .catbar__grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .catbar__item:nth-child(4n) { border-right: 0; }
  .catbar__item:nth-child(-n+4) { border-bottom: 1px solid var(--line-soft); }
}
@media (max-width: 560px) {
  .catbar__grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .catbar__item { border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); padding: 16px 8px; }
  .catbar__item:nth-child(2n) { border-right: 0; }
  .catbar__item:nth-last-child(-n+2) { border-bottom: 0; }
  .catbar__item img { width: 34px; height: 34px; }
  .catbar__item span { font-size: .75rem; }
}

/* ── 12. Прайс-таблица (ptbl2) → карточки на мобильном ─────────────────── */
.ptbl2_wrap {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; background: #fff;
}
.ptbl2 { width: 100%; border-collapse: collapse; }

.ptbl2 thead th {
  background: var(--ink-900); color: rgba(255,255,255,.72);
  font-family: var(--f-display); font-weight: 400;
  font-size: .75rem; letter-spacing: .14em; text-transform: uppercase;
  padding: 14px 20px; text-align: left; white-space: nowrap;
}
.ptbl2 thead th:last-child { text-align: right; }
.ptbl2_h_mat { width: 40%; } .ptbl2_h_type { width: 26%; }
.ptbl2_h_price { width: 18%; } .ptbl2_h_btn { width: 16%; }

.ptbl2 tbody tr { border-top: 1px solid var(--line-soft); transition: background var(--dur) var(--ease); }
.ptbl2 tbody tr:first-child { border-top: 0; }
.ptbl2 tbody tr.even { background: transparent; }
.ptbl2 tbody tr:hover { background: var(--surface-1); }
.ptbl2 td { padding: 13px 20px; vertical-align: middle; }

.ptbl2_mat { display: flex !important; align-items: center; gap: 16px; min-width: 0; }
.ptbl2_mat_noimg { }
.ptbl2_thumb {
  width: 68px; height: 52px; flex: none; object-fit: cover;
  border-radius: var(--r-sm); background: var(--surface-2);
}
.ptbl2_name, .ptbl2_name_plain {
  font-weight: 700; font-size: 1rem; color: var(--ink-900); line-height: 1.3;
}
.ptbl2_name:hover { color: var(--blue-700); }
.ptbl2_type { color: var(--ink-500); font-size: .875rem; line-height: 1.45; }
.ptbl2_price, .ptbl2_price span {
  font-family: var(--f-display); font-weight: 500; font-size: 1.125rem;
  color: var(--ink-900); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.ptbl2_btn_cell { text-align: right; white-space: nowrap; }
.ptbl2_nodash { text-align: right; }
.ptbl2_note {
  margin-top: 14px; font-size: .875rem; color: var(--ink-500); font-style: normal;
  padding-left: 14px; border-left: 2px solid var(--blue-100);
}
.ptbl2_note em { font-style: normal; }

@media (max-width: 860px) {
  .ptbl2_wrap { border: 0; border-radius: 0; background: transparent; overflow: visible; }
  .ptbl2, .ptbl2 tbody, .ptbl2 tr, .ptbl2 td { display: block; width: 100%; }
  .ptbl2 thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); }
  .ptbl2 tbody tr {
    border: 1px solid var(--line); border-radius: var(--r-md);
    background: #fff; box-shadow: var(--sh-1);
    padding: 14px; margin-bottom: 12px;
    display: grid; grid-template-columns: 1fr auto; gap: 10px 14px; align-items: center;
  }
  .ptbl2 tbody tr:hover { background: #fff; }
  .ptbl2 td { padding: 0; }
  .ptbl2_mat, .ptbl2_mat_noimg { grid-column: 1 / -1; }
  .ptbl2_type {
    grid-column: 1 / -1; padding-top: 10px; border-top: 1px solid var(--line-soft);
  }
  .ptbl2_price { grid-column: 1; font-size: 1.25rem; }
  .ptbl2_btn_cell, .ptbl2_nodash { grid-column: 2; text-align: right; }
  .ptbl2_thumb { width: 60px; height: 56px; }
}
@media (max-width: 400px) {
  .ptbl2 tbody tr { grid-template-columns: 1fr; }
  .ptbl2_btn_cell, .ptbl2_nodash { grid-column: 1; text-align: left; }
  .ptbl2_btn_cell .ptbl2_btn { width: 100%; }
}

/* ── 13. Обычные таблицы (ptbl) ────────────────────────────────────────── */
.tbl_wrap {
  overflow-x: auto; margin: 18px 0 26px;
  border: 1px solid var(--line); border-radius: var(--r-md);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.ptbl { width: 100%; border-collapse: collapse; min-width: 420px; background: #fff; }
.ptbl th {
  background: var(--ink-900); color: rgba(255,255,255,.78);
  font-family: var(--f-display); font-weight: 400; font-size: .75rem;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 12px 16px; text-align: left; white-space: nowrap;
}
.ptbl td { padding: 12px 16px; border-top: 1px solid var(--line-soft); font-size: .9375rem; }
.ptbl tr:nth-child(even) td { background: var(--surface-1); }
.ptbl tr:hover td { background: var(--blue-50); }
.ptbl td:first-child { color: var(--ink-600); }
.ptbl td:last-child { font-weight: 600; color: var(--ink-900); }

/* ── 14. Инфо-карточки (igrid / icard) ─────────────────────────────────── */
.igrid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(12px, 1.4vw, 18px); margin: 18px 0 26px;
}
/* Пять-шесть карточек в четыре колонки оставляют неполный ряд с провалом
   справа: поднимаем минимум, и ряды делятся ровно (3+2, 3+3). */
.igrid:has(> :nth-child(5):last-child),
.igrid:has(> :nth-child(6):last-child),
.ok_prod_row:has(> :nth-child(5):last-child),
.ok_prod_row:has(> :nth-child(6):last-child) {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}
.icard {
  background: #fff; border: 1px solid var(--line);
  border-left: 3px solid var(--blue-600);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 20px 22px;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.icard:hover { box-shadow: var(--sh-2); border-left-color: var(--red-500); }
.icard strong {
  display: block; font-family: var(--f-display); font-weight: 500;
  font-size: 1.0625rem; color: var(--ink-900); margin-bottom: 8px; letter-spacing: 0;
}
.icard p { margin: 0; font-size: .9375rem; color: var(--ink-600); line-height: 1.55; }
.sec_blue_light .icard, .section--tint .icard { background: #fff; }

/* ── 15. Преимущества (q_grid) ─────────────────────────────────────────── */
.sec_quality {
  background: var(--ink-900);
  background-image: linear-gradient(rgba(14,26,38,.94), rgba(14,26,38,.94)), url('../images/quality_bg.jpg');
  background-size: cover; background-position: center;
}
.sec_quality h2 { color: #fff; }
.q_grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: clamp(12px, 1.4vw, 18px);
}
.q_card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: var(--r-md);
  padding: 22px;
  display: grid; grid-template-columns: 1fr auto; gap: 14px 12px; align-content: start;
  font-size: .9375rem; color: rgba(255,255,255,.86); line-height: 1.55;
  position: relative; overflow: hidden; max-width: none;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.q_card:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.24); }
.q_line { grid-column: 1 / -1; display: block; width: 32px; height: 3px; background: var(--red-500); border-radius: 2px; }
.q_ico {
  position: static; width: 30px; height: 30px; object-fit: contain; opacity: .8;
  grid-column: 2; align-self: end; justify-self: end;
}

/* ── 16. Блок «О компании» на главной ──────────────────────────────────── */
.about_row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(24px, 3.5vw, 52px); align-items: center;
}
.about_text { min-width: 0; }
.about_img { min-width: 0; }
.about_img svg, .about_img img { width: 100%; height: auto; border-radius: var(--r-md); }
.infogr_wrap { width: 100%; max-width: 620px; margin: 0 auto; }
.infogr_svg { width: 100%; height: auto; }

/* ── 17. Формы ─────────────────────────────────────────────────────────── */
.ff { margin-bottom: 14px; }
.ff label:not(.cl) { display: block; font-size: var(--t-xs); color: var(--ink-500); margin-bottom: 6px; font-weight: 600; }
.fi {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  font-size: 1rem; font-family: inherit; color: var(--ink-900);
  background: #fff; transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.fi::placeholder { color: var(--ink-400); }
.fi:focus { border-color: var(--blue-600); outline: none; box-shadow: 0 0 0 3px rgba(0,116,183,.15); }
textarea.fi { resize: vertical; min-height: 110px; }
select.fi { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%235a6b7c'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 20px; padding-right: 40px; }
.cl { display: flex; align-items: flex-start; gap: 10px; font-size: .875rem; color: var(--ink-500); cursor: pointer; line-height: 1.45; }
.cl input { width: 18px; height: 18px; flex: none; margin-top: 2px; accent-color: var(--blue-600); }
.cl--legal { align-items: flex-start; max-width: 62ch; }
.cl__text { display: grid; gap: 5px; min-width: 0; }
.cl__text strong { font-weight: 700; color: var(--ink-800); }
.cl__note { font-size: .8125rem; color: var(--ink-500); }
.cl--legal a { color: var(--blue-700); text-decoration: underline; text-underline-offset: 2px; }
.cl--legal a:hover { color: var(--blue-900); }

/* ── 18. Секция обратного звонка ───────────────────────────────────────── */
.cb_section {
  background: var(--blue-800);
  background-image: linear-gradient(120deg, var(--blue-900) 0%, var(--blue-700) 100%);
  padding-block: clamp(32px, 4vw, 52px);
}
.cb_title {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(1.25rem, 1.05rem + .8vw, 1.75rem);
  color: #fff; text-align: center; margin: 0 auto clamp(18px, 2.2vw, 28px);
  line-height: 1.2;
}
.cb_form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 10px 12px; align-items: center;
  max-width: 1100px; margin-inline: auto;
}
.cb_form .fi {
  min-width: 0;
  border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.10); color: #fff;
}
.cb_form .btn_white { grid-column: 4; grid-row: 1; min-width: 140px; width: auto; }
.cb_form .cl { grid-column: 1 / -1; grid-row: 2; }
.cb_form .fi::placeholder { color: rgba(255,255,255,.65); }
.cb_form .fi:focus { border-color: #fff; background: rgba(255,255,255,.16); box-shadow: 0 0 0 3px rgba(255,255,255,.16); }
.cb_form .cl { color: rgba(255,255,255,.88) !important; max-width: none; }
.cb_form .cl input { accent-color: var(--red-500); }
.cb_form .cl a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.cb_form .cl a:hover { color: #fff; }
.cb_form .cl__text strong, .cb_form .cl__note { color: rgba(255,255,255,.9); }
@media (max-width: 720px) {
  .cb_form { grid-template-columns: 1fr 1fr; }
  .cb_form .btn_white { grid-column: 1 / -1; grid-row: auto; }
  .cb_form .cl { grid-row: auto; }
}
@media (max-width: 520px) {
  .cb_form { display: flex; flex-wrap: wrap; }
  .cb_form .fi, .cb_form .cl, .cb_form .btn_white { flex: 1 1 100%; grid-column: auto; grid-row: auto; }
  .cb_form .btn_white { width: 100%; }
}

/* ── 19. Карта и футер ─────────────────────────────────────────────────── */
.footer_map { line-height: 0; background: var(--surface-2); }
.footer_map iframe { display: block; width: 100%; border: 0; }

.site_footer { background: var(--ink-900); color: var(--ink-300); padding-block: clamp(40px, 5vw, 64px); }
.ftr_grid {
  display: grid;
  grid-template-columns: minmax(15rem, 1.35fr) repeat(4, minmax(9.5rem, 1fr));
  gap: clamp(22px, 3vw, 44px);
}
.ftr_col { min-width: 0; overflow-wrap: anywhere; }
.ftr_col .logo { color: #fff; margin-bottom: 18px; }
.ftr_col .logo svg { width: min(190px, 100%); }
.ftr_contacts { margin: 0 0 18px; display: grid; gap: 11px; font-size: .875rem; color: var(--ink-300); }
.ftr_contacts div {
  display: flex; align-items: flex-start; gap: 9px;
  min-width: 0;
}
.ftr_contacts .ico { flex: none; }
.ftr_contacts a { color: var(--ink-300); min-width: 0; overflow-wrap: anywhere; }
.ftr_contacts a:hover { color: #fff; }
.ftr_nav_title {
  font-family: var(--f-display); font-size: .8125rem; font-weight: 400; color: #fff;
  text-transform: uppercase; letter-spacing: .14em; margin-bottom: 14px;
  padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.12);
}
.ftr_links { display: grid; gap: 9px; }
.ftr_links a { color: var(--ink-300); font-size: .875rem; }
.ftr_links a:hover { color: #fff; }
@media (max-width: 1120px) {
  .ftr_grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ftr_col:first-child { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .ftr_grid { grid-template-columns: 1fr; }
  .ftr_col:first-child { grid-column: auto; }
}

.ico { width: 18px; height: 18px; fill: var(--blue-500); flex: none; margin-top: 3px; }
.ci_blue { fill: var(--blue-600) !important; }

.copy_bar { background: #08131d; padding-block: 14px; border-top: 1px solid rgba(255,255,255,.06); }
.copy_inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px; font-size: var(--t-xs); color: var(--ink-400);
}
.copy_inner a { color: var(--ink-400); }
.copy_inner a:hover { color: #fff; }

/* ── 20. Кнопка «наверх» ───────────────────────────────────────────────── */
#btn_up {
  position: fixed; bottom: 24px; right: 20px; z-index: 65;
  width: 46px; height: 46px;
  background: var(--ink-900); color: #fff; border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--r-sm); font-size: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur) var(--ease), background var(--dur) var(--ease);
  box-shadow: var(--sh-2);
}
#btn_up:hover { background: var(--blue-700); }
#btn_up.vis { opacity: 1; pointer-events: auto; }

/* ── 21. Попап ─────────────────────────────────────────────────────────── */
.bg_popup {
  position: fixed; inset: 0; z-index: 199; background: rgba(14,26,38,.6);
  opacity: 0; visibility: hidden; transition: opacity var(--dur) var(--ease), visibility var(--dur);
}
.bg_popup.open { opacity: 1; visibility: visible; }
.popup_wrap {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; visibility: hidden; transition: opacity var(--dur) var(--ease), visibility var(--dur);
}
.popup_wrap.open { opacity: 1; visibility: visible; }
.popup_inner {
  background: #fff; border-radius: var(--r-lg); padding: clamp(24px, 4vw, 36px);
  max-width: 440px; width: 100%; position: relative;
  box-shadow: var(--sh-3);
  max-height: calc(100dvh - 40px); overflow-y: auto;
  transform: translateY(12px); transition: transform var(--dur) var(--ease);
}
.popup_wrap.open .popup_inner { transform: none; }
.popup_inner h3 { margin-bottom: 18px; padding-right: 40px; }
.close_btn {
  position: absolute; top: 12px; right: 12px;
  width: 40px; height: 40px; border: 1px solid var(--line); background: var(--surface-1);
  border-radius: var(--r-sm); cursor: pointer; color: var(--ink-600);
  display: flex; align-items: center; justify-content: center; font-size: 20px; line-height: 1;
}
.close_btn::after { content: '✕'; }
.close_btn:hover { background: var(--surface-2); color: var(--ink-900); }

/* ── 22. Контакты / заказ ──────────────────────────────────────────────── */
.contacts_row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(24px, 3.5vw, 48px); margin-bottom: 36px; align-items: start;
}
.contacts_info, .contacts_form { min-width: 0; }
.contacts_form {
  background: var(--surface-1); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: clamp(20px, 3vw, 30px);
}
.ci_row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; font-size: 1rem; }
.big_phone {
  font-family: var(--f-display); font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  font-weight: 500; color: var(--ink-900) !important; font-variant-numeric: tabular-nums;
}
.big_phone:hover { color: var(--red-600) !important; }

.order_wrap {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(24px, 3.5vw, 48px); margin-top: 24px; align-items: start;
}
.order_wrap form {
  min-width: 0; background: var(--surface-1); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: clamp(20px, 3vw, 30px);
}
.or_phone { min-width: 0; }
.or_phone p { margin-bottom: 8px; color: var(--ink-500); }
.or_media { margin: clamp(20px, 2.5vw, 28px) 0 0; }
.or_media img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 4 / 3; object-fit: cover;
  border: 1px solid var(--line); border-radius: var(--r-md);
}
.or_media figcaption {
  margin-top: 9px; font-size: var(--t-xs); color: var(--ink-500); line-height: 1.4;
  padding-left: 11px; border-left: 2px solid var(--blue-600);
}

/* ── 23. FAQ ───────────────────────────────────────────────────────────── */
.beton_faq { display: grid; gap: 12px; margin: 20px 0 26px; }
.bfaq_item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
  transition: box-shadow var(--dur) var(--ease);
}
.bfaq_item:hover { box-shadow: var(--sh-2); }
.bfaq_q {
  padding: 16px 20px; font-family: var(--f-display); font-weight: 500;
  font-size: 1.0625rem; color: var(--ink-900);
  border-left: 3px solid var(--blue-600); background: var(--surface-1);
}
.bfaq_a { padding: 16px 20px; font-size: .9375rem; color: var(--ink-600); line-height: 1.65; }

/* ── 24. Шаги ──────────────────────────────────────────────────────────── */
.beton_steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: clamp(12px, 1.4vw, 18px); margin: 20px 0 28px;
}
.bstep {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 22px; position: relative;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.bstep:hover { border-color: var(--blue-100); box-shadow: var(--sh-2); }
.bstep_n {
  width: 38px; height: 38px; border-radius: var(--r-sm);
  background: var(--ink-900); color: #fff;
  font-family: var(--f-display); font-size: 1.125rem; font-weight: 500;
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.bstep_t { font-family: var(--f-display); font-weight: 500; font-size: 1.0625rem; color: var(--ink-900); margin-bottom: 8px; }
.bstep p { font-size: .9375rem; color: var(--ink-600); line-height: 1.55; margin: 0; }

/* ── 25. Свойства бетона ───────────────────────────────────────────────── */
.beton_props { display: grid; gap: 10px; margin: 18px 0 26px; }
.bprop {
  display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 20px;
}
.bprop_lbl {
  width: 40px; height: 40px; border-radius: var(--r-sm);
  background: var(--blue-600); color: #fff;
  font-family: var(--f-display); font-size: 1.25rem; font-weight: 600;
  display: flex; align-items: center; justify-content: center; flex: none;
}
.bprop_txt { font-size: .9375rem; color: var(--ink-600); line-height: 1.65; min-width: 0; }

/* ── 26. Промо-блок миксера ────────────────────────────────────────────── */
.mixer_promo {
  display: grid; grid-template-columns: auto 1fr auto; gap: clamp(16px, 2vw, 26px);
  align-items: center;
  background: var(--ink-900);
  border: 1px solid rgba(255,255,255,.1);
  border-left: 3px solid var(--red-500);
  color: rgba(255,255,255,.82);
  border-radius: var(--r-md); padding: clamp(18px, 2.4vw, 26px);
  margin: 24px 0 30px;
}
.mixer_icon { font-size: 34px; line-height: 1; flex: none; }
.mixer_text { min-width: 0; }
.mixer_text strong {
  display: block; font-family: var(--f-display); font-weight: 500;
  font-size: 1.125rem; color: #fff; margin-bottom: 6px;
}
.mixer_text span { font-size: .9375rem; line-height: 1.55; }
.mixer_promo .btn_red { flex: none; white-space: nowrap; }
@media (max-width: 720px) {
  .mixer_promo { grid-template-columns: auto 1fr; }
  .mixer_promo .btn_red { grid-column: 1 / -1; width: 100%; }
}

/* ── 27. Связанные карточки ────────────────────────────────────────────── */
.rel_grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: clamp(12px, 1.4vw, 18px); margin: 20px 0 30px;
}
.rel_card {
  display: grid; gap: 6px; align-content: start;
  padding: 20px 22px; border-radius: var(--r-md);
  border: 1px solid var(--line); background: #fff;
  color: var(--ink-600); position: relative; overflow: hidden; max-width: none;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.rel_card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--blue-600); transform: scaleY(0); transform-origin: top;
  transition: transform var(--dur) var(--ease);
}
.rel_card:hover { border-color: var(--blue-100); box-shadow: var(--sh-2); color: var(--ink-600); }
.rel_card:hover::before { transform: scaleY(1); }
.rel_card strong {
  font-family: var(--f-display); font-weight: 500; font-size: 1.125rem; color: var(--ink-900);
}
.rel_card span { font-size: .875rem; color: var(--ink-500); line-height: 1.45; }
.rel_service::before { background: var(--red-500); }
.rel_service strong { color: var(--blue-700); }

/* ── 28. Блог ──────────────────────────────────────────────────────────── */
.blog_grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 286px), 1fr));
  gap: clamp(16px, 2vw, 26px); margin-top: 28px;
}
.blog_card {
  border: 1px solid var(--line); border-radius: var(--r-md);
  padding: clamp(20px, 2.4vw, 28px);
  display: flex; flex-direction: column; gap: 12px; background: #fff;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.blog_card:hover { border-color: var(--blue-100); box-shadow: var(--sh-2); }
.blog_card_date {
  font-family: var(--f-display); font-size: .75rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-400);
}
.blog_card_title { font-size: 1.1875rem; margin: 0; line-height: 1.25; }
.blog_card_title a { color: var(--ink-900); }
.blog_card_title a:hover { color: var(--blue-700); }
.blog_card_preview { font-size: .9375rem; color: var(--ink-600); line-height: 1.6; margin: 0; flex: 1; }
.blog_read_btn { align-self: flex-start; }
.blog_post_meta {
  font-family: var(--f-display); font-size: .75rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-400); margin-bottom: 12px;
}
.blog_intro {
  font-size: 1.0625rem; color: var(--ink-600); font-style: normal;
  margin-bottom: 26px; padding-left: 18px; border-left: 3px solid var(--blue-600); line-height: 1.6;
}

/* ── 29. О компании ────────────────────────────────────────────────────── */
.ok_hero {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(24px, 3.5vw, 44px); align-items: start; margin: 24px 0 40px;
}
.ok_hero_text { min-width: 0; }
.ok_hero_img { min-width: 0; }
.ok_hero_img img {
  width: 100%; border-radius: var(--r-md); display: block;
  object-fit: cover; max-height: 320px; border: 1px solid var(--line);
}
.ok_stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr));
  gap: 12px; margin-top: 26px;
}
.ok_stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 18px 16px; text-align: center;
}
.ok_num {
  display: block; font-family: var(--f-display); font-size: clamp(1.5rem, 1.2rem + .9vw, 1.95rem);
  font-weight: 500; color: var(--ink-900); line-height: 1.1; font-variant-numeric: tabular-nums;
}
.ok_lbl { display: block; font-size: var(--t-xs); color: var(--ink-500); margin-top: 6px; line-height: 1.35; }
.ok_prod_row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(12px, 1.6vw, 20px); margin: 18px 0 30px;
}
.ok_prod_card {
  border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: #fff;
  transition: box-shadow var(--dur) var(--ease);
}
.ok_prod_card:hover { box-shadow: var(--sh-2); }
.ok_prod_img { width: 100%; height: 200px; object-fit: cover; display: block; }
.ok_prod_cap { padding: 14px 16px; font-size: .875rem; color: var(--ink-500); line-height: 1.5; }
@media (max-width: 860px) { .ok_hero { grid-template-columns: 1fr; } }

/* ── 30. Галерея ───────────────────────────────────────────────────────── */
.gal_tabs {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 26px;
  border-bottom: 1px solid var(--line); padding-bottom: 0;
}
.gal_tab {
  background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px;
  padding: 12px 20px; min-height: 46px;
  font-family: var(--f-display); font-size: 1rem; font-weight: 400;
  letter-spacing: .04em; color: var(--ink-500); cursor: pointer;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.gal_tab:hover { color: var(--ink-900); }
.gal_tab.active { color: var(--ink-900); border-bottom-color: var(--red-500); }
.gal_grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: clamp(10px, 1.4vw, 18px); margin: 16px 0 32px;
}
.gal_card {
  border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
  cursor: pointer; background: #fff;
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.gal_card:hover { box-shadow: var(--sh-2); transform: translateY(-2px); }
.gal_img { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; display: block; transition: transform .35s var(--ease); }
.gal_card:hover .gal_img { transform: scale(1.03); }
.gal_cap { padding: 12px 14px; font-size: .8125rem; color: var(--ink-500); line-height: 1.45; background: #fff; }
.gal_lb {
  display: none; position: fixed; inset: 0; background: rgba(8,19,29,.94); z-index: 9999;
  align-items: center; justify-content: center; flex-direction: column; padding: 20px;
}
.gal_lb_close {
  position: absolute; top: 18px; right: 18px;
  width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.1); color: #fff; font-size: 20px;
  border-radius: var(--r-sm); cursor: pointer; line-height: 1;
}
.gal_lb_close:hover { background: rgba(255,255,255,.22); }
.gal_lb_img { max-width: 92vw; max-height: 78vh; border-radius: var(--r-md); object-fit: contain; }
.gal_lb_cap { margin-top: 16px; color: rgba(255,255,255,.82); font-size: .9375rem; text-align: center; max-width: 620px; }

/* ── 31. Лид-блок: вводный текст и тематический снимок ─────────────────── */
.lead {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
  margin: 4px 0 clamp(28px, 3.4vw, 44px);
}
.lead__text { min-width: 0; }
.lead__text > p {
  margin: 0; font-size: clamp(1rem, .95rem + .3vw, 1.1875rem);
  line-height: 1.62; color: var(--ink-600);
}
/* Вводный абзац статей уже оформлен линейкой — не дублируем отступы */
.lead__text > .blog_intro { margin-bottom: 0; }
.leadfacts {
  display: grid; grid-template-columns: 1fr;
  gap: 1px; margin: clamp(18px, 2vw, 24px) 0 0;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--r-sm);
  overflow: hidden;
}
.leadfacts > div { background: #fff; padding: 13px 15px; }
.leadfacts dt {
  font-size: var(--t-xs); color: var(--ink-500); line-height: 1.3; margin-bottom: 5px;
}
.leadfacts dd {
  margin: 0; font-family: var(--f-display); font-weight: 500;
  font-size: clamp(1rem, .95rem + .25vw, 1.125rem); color: var(--ink-900); line-height: 1.2;
}
.leadfacts > div:first-child dd { color: var(--red-600); }
/* Три факта в две колонки оставляют пустую клетку — переходим в строку
   только когда хватает места на все три */
@media (min-width: 560px) {
  .leadfacts { grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr)); }
}
.lead__media { margin: 0; min-width: 0; }
.lead__media img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 16 / 10; object-fit: cover;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
}
/* Телефонные кадры 3:4: держим технику в кадре, а не пустое небо */
.lead__media img.img--tall { object-position: center 78%; }
.lead__media img.img--mid { object-position: center 42%; }
.lead__media figcaption {
  margin-top: 9px; font-size: var(--t-xs); color: var(--ink-500);
  line-height: 1.4; padding-left: 11px; border-left: 2px solid var(--blue-600);
}
/* В статьях снимок работает обложкой во всю ширину колонки */
.lead--wide { grid-template-columns: 1fr; gap: clamp(18px, 2.2vw, 26px); }
.lead--wide .lead__media img { aspect-ratio: 21 / 9; }
/* На планшете двухколоночный лид сжимает и текст, и сводку фактов —
   раскладываем в одну колонку раньше, чем ломается типографика */
@media (max-width: 900px) {
  .lead { grid-template-columns: 1fr; }
  .lead__media { order: -1; }
  .lead__media img { aspect-ratio: 21 / 9; }
  .lead--wide .lead__media img { aspect-ratio: 16 / 9; }
}
/* На узком экране карточки идут в одну колонку: более плоский кадр
   экономит длину прокрутки */
@media (max-width: 560px) {
  .icard__ph img, .fleet__card img { aspect-ratio: 16 / 9; }
}

/* ── 32. Карточки применения со снимком ────────────────────────────────── */
.igrid--ph { grid-template-columns: repeat(auto-fit, minmax(min(100%, 268px), 1fr)); }
/* Наследуем правило неполного ряда из .igrid, но фото требует шире колонку */
.igrid--ph:has(> :nth-child(5):last-child),
.igrid--ph:has(> :nth-child(6):last-child) {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
}
.icard--ph {
  padding: 0; overflow: hidden;
  border-left-width: 1px; border-radius: var(--r-md);
  display: flex; flex-direction: column;
  border-top: 3px solid var(--blue-600);
}
.icard--ph:hover { border-left-color: var(--line); border-top-color: var(--red-500); }
.icard__ph { line-height: 0; background: var(--surface-2); }
.icard__ph img {
  width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover;
  display: block; transition: transform .5s var(--ease);
}
.icard__ph img.img--tall { object-position: center 70%; }
.icard--ph:hover .icard__ph img { transform: scale(1.035); }
.icard__body { padding: 18px 20px 20px; }
.icard__body strong {
  display: block; font-family: var(--f-display); font-weight: 500;
  font-size: 1.0625rem; color: var(--ink-900); margin-bottom: 7px;
}
.icard__body p { margin: 0; font-size: .9375rem; color: var(--ink-600); line-height: 1.55; }

/* ── 33. Фотополоса техники и производства ─────────────────────────────── */
.fleet {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: clamp(12px, 1.6vw, 20px); margin: 18px 0 30px;
}
.fleet__card {
  margin: 0; background: #fff; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r-md);
  display: flex; flex-direction: column;
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.fleet__card:hover { box-shadow: var(--sh-2); border-color: var(--blue-100); }
.fleet__card img {
  width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block;
}
.fleet__card img.img--tall { object-position: center 72%; }
.fleet__card figcaption {
  padding: 13px 16px; font-size: .875rem; color: var(--ink-600);
  line-height: 1.45; flex: 1;
  border-top: 1px solid var(--line-soft);
}

/* ── 34. Обложки в списке блога ────────────────────────────────────────── */
.blog_card--ph { padding: 0; overflow: hidden; }
.blog_card__ph { display: block; line-height: 0; background: var(--surface-2); }
.blog_card__ph img {
  width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
  display: block; transition: transform .5s var(--ease);
}
.blog_card--ph:hover .blog_card__ph img { transform: scale(1.035); }
.blog_card__body {
  padding: clamp(18px, 2vw, 24px);
  display: flex; flex-direction: column; gap: 11px; flex: 1;
}

/* ── 35. Оглавление длинных страниц ────────────────────────────────────── */
.toc {
  margin: 6px 0 clamp(26px, 3vw, 38px);
  padding: clamp(16px, 1.8vw, 22px) clamp(18px, 2vw, 24px);
  background: var(--surface-1); border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
}
.toc__title {
  margin: 0 0 12px; font-family: var(--f-display); font-size: .75rem;
  font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-500);
}
.toc__list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px 10px;
}
.toc__list a {
  display: inline-block; padding: 7px 13px;
  font-size: .875rem; line-height: 1.35; color: var(--ink-700);
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-pill);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.toc__list a:hover { border-color: var(--blue-500); color: var(--blue-700); }
.sec_blue_light .toc, .section--tint .toc { background: #fff; }

/* ── 36. «Читайте также» ───────────────────────────────────────────────── */
.rposts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: clamp(12px, 1.6vw, 20px); margin: 18px 0 30px;
}
.rpost {
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  color: var(--ink-900); max-width: none;
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.rpost:hover { box-shadow: var(--sh-2); border-color: var(--blue-100); color: var(--blue-700); }
.rpost__ph { display: block; line-height: 0; background: var(--surface-2); }
.rpost__ph img {
  width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
  display: block; transition: transform .5s var(--ease);
}
.rpost:hover .rpost__ph img { transform: scale(1.035); }
.rpost__t {
  padding: 14px 17px 17px; font-family: var(--f-display); font-weight: 500;
  font-size: 1rem; line-height: 1.3; flex: 1;
}

/* ── 37. Появление при скролле ─────────────────────────────────────────── */
/* Скрываем только при работающем JS — без него контент виден всегда. */
.js .reveal { opacity: 0; transform: translateY(14px); }
.js .reveal.is-in { opacity: 1; transform: none; transition: opacity .5s var(--ease), transform .5s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .gal_card:hover { transform: none; }
}

/* ── 38. Юридические страницы ──────────────────────────────────────────── */
.legal { max-width: 42rem; margin-inline: auto; }
.legal > p:first-child {
  font-size: 1.0625rem; color: var(--ink-600); line-height: 1.65;
  padding-left: 16px; border-left: 3px solid var(--blue-600); margin-bottom: 28px;
}
.legal h2 { margin-top: 1.75em; }
.legal p, .legal li { color: var(--ink-600); }
.legal ul { margin: 0 0 1.1em 1.15em; display: grid; gap: 6px; }
.legal ol { margin: 0 0 1.1em 1.25em; display: grid; gap: 8px; color: var(--ink-600); }
.legal a { color: var(--blue-700); text-decoration: underline; text-underline-offset: 2px; }
.legal .tbl_wrap { margin-top: 12px; }
.legal table { font-size: .875rem; }
.legal th { white-space: nowrap; }
.legal td { vertical-align: top; }
.legal-nav {
  display: flex; flex-wrap: wrap; gap: 10px 18px;
  margin: 28px 0 8px; padding-top: 22px; border-top: 1px solid var(--line);
  font-size: .875rem;
}

/* ── 39. Печать ────────────────────────────────────────────────────────── */
@media print {
  .topbar, .header, .drawer, .drawer-backdrop, .actionbar, #btn_up,
  .cb_section, .footer_map, .catbar, .hero__media { display: none !important; }
  body { color: #000; padding-bottom: 0; }
  .pagehead, .hero { background: none; color: #000; display: block; }
  .pagehead h1, .hero__title { color: #000; }
  .hero__inner.wrap { padding-left: 0; padding-right: 0; max-width: none; }
}
