@import url('../fonts/manrope.css');

/* ── Токены ───────────────────────────────────────────────────────────── */
:root {
  /* фирменный цвет клиента #052647 и шкала от него */
  --brand-900: #052647;
  --brand-800: #0a3a66;
  --brand-700: #14507f;
  --brand-600: #2a6a9e;
  --brand-500: #5b7e9e;
  --brand-300: #93a8bc;
  --brand-100: #dce6ee;
  --paper: #f2f6f9;
  --white: #fff;

  --ink: #052647;
  --ink-70: #3d5771;
  --ink-50: #6b8199;
  --line: #dfe8ef;

  --r-xl: 40px;
  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;

  /* ритм: всё кратно 8 */
  --container: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
  --gap: clamp(20px, 2.2vw, 32px);
  --pad-card: clamp(24px, 2.4vw, 36px);
  --section: clamp(72px, 9vw, 136px);
  --head-gap: clamp(40px, 4.4vw, 64px);

  --shadow-sm: 0 2px 10px rgba(5, 38, 71, .06);
  --shadow-md: 0 14px 40px rgba(5, 38, 71, .10);
  --shadow-lg: 0 24px 64px rgba(5, 38, 71, .16);

  --header-h: 84px;
}

/* ── База ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; }

h1, h2, h3, h4 {
  margin: 0; font-weight: 800; letter-spacing: -.02em;
  text-wrap: balance; overflow-wrap: break-word;
}
h1 { font-size: clamp(34px, 4.2vw, 58px); line-height: 1.08; }
h2 { font-size: clamp(27px, 2.7vw, 40px); line-height: 1.14; }
h3 { font-size: clamp(19px, 1.5vw, 23px); line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
li { text-wrap: pretty; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--paper { background: var(--paper); }
/* две белые секции подряд не складывают отступы */
.section:not(.section--paper) + .section:not(.section--paper) { padding-top: 0; }
.section--flush-top { padding-top: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

:where(a, button, input, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--brand-600);
  outline-offset: 3px;
  border-radius: 6px;
}

.lead { font-size: clamp(17px, 1.35vw, 19px); color: var(--ink-70); max-width: 62ch; }
.text-muted { color: var(--ink-70); }
.fineprint { font-size: 14.5px; color: var(--ink-50); max-width: 70ch; }
.stack { display: grid; gap: 16px; }
.stack > p { margin: 0; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(32px, 3.4vw, 48px); }

/* ── Кнопки ───────────────────────────────────────────────────────────── */
.btn {
  --btn-bg: var(--brand-800);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 30px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 700; font-size: 16px; line-height: 1.2; text-align: center;
  text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.btn:hover { background: var(--brand-600); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--brand-300); }
.btn--ghost:hover { --btn-fg: #fff; background: var(--brand-800); border-color: var(--brand-800); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--brand-900); }
.btn--light:hover { background: var(--paper); color: var(--brand-800); }
.btn--ondark-ghost { --btn-bg: transparent; --btn-fg: #fff; border-color: rgba(255, 255, 255, .45); }
.btn--ondark-ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.btn--wide { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; text-decoration: none; color: var(--brand-800); white-space: nowrap;
  transition: gap .18s ease, color .18s ease;
}
.link-arrow:hover { gap: 14px; color: var(--brand-600); }
.link-arrow svg { flex: none; }
/* Длинная ссылка-строка: переносится по словам, стрелка остаётся за последним словом. */
.link-arrow--text { display: inline; white-space: normal; line-height: 1.45; }
.link-arrow--text svg { display: inline-block; margin-left: 4px; vertical-align: -1px; }
.actions--links { gap: 14px 40px; }

/* ── Шапка ────────────────────────────────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner { min-height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.header__logo { display: flex; align-items: center; text-decoration: none; flex: none; }
.header__logo img { height: 40px; width: auto; }
.header__nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: 15.5px; color: var(--ink);
  transition: background-color .18s ease, color .18s ease;
  white-space: nowrap;
}
.nav__link:hover { background: var(--paper); color: var(--brand-800); }
.nav__link[aria-current='page'],
.nav__toggle[aria-current='true'] { background: var(--brand-100); color: var(--brand-800); }

.nav__group { position: relative; }
.nav__toggle { border: 0; background: none; cursor: pointer; }
.nav__toggle svg { transition: transform .2s ease; }
.nav__group.is-open .nav__toggle svg { transform: rotate(180deg); }
.nav__menu {
  position: absolute; top: calc(100% + 14px); left: -16px; z-index: 20;
  display: none; grid-template-columns: repeat(2, minmax(240px, 1fr)); gap: 0 32px;
  padding: 28px 28px 24px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
}
.nav__group.is-open .nav__menu { display: grid; }
.nav__menu-title {
  font-size: 12px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
  color: var(--ink-50); padding: 0 12px 10px; margin-bottom: 6px; border-bottom: 1px solid var(--line);
}
.nav__menu ul { list-style: none; margin: 0; padding: 0; }
.nav__menu a {
  display: block; padding: 9px 12px; border-radius: 10px;
  text-decoration: none; font-weight: 600; font-size: 15.5px; white-space: nowrap;
  transition: background-color .16s ease, color .16s ease;
}
.nav__menu a:hover { background: var(--paper); color: var(--brand-800); }
.nav__menu a[aria-current='page'] { color: var(--brand-600); }

.header__contacts { display: flex; align-items: center; gap: 20px; flex: none; }
.header__phone { text-decoration: none; font-weight: 800; white-space: nowrap; font-size: 16px; }
.header__phone:hover { color: var(--brand-600); }
.header__contacts .btn { min-height: 48px; padding: 0 24px; }
.header__call {
  display: none; width: 48px; height: 48px; flex: none;
  align-items: center; justify-content: center;
  border: 0; border-radius: 14px; background: var(--brand-600); color: #fff; cursor: pointer;
}
.callpick {
  width: min(400px, calc(100% - 32px)); margin: auto; padding: 20px; border: 0; border-radius: var(--r-xl);
  background: #fff; color: var(--ink); box-shadow: 0 40px 100px rgba(5, 38, 71, .35);
}
.callpick::backdrop { background: rgba(5, 38, 71, .62); backdrop-filter: blur(4px); }
.callpick__phone { display: flex; align-items: center; gap: 16px; padding: 8px 4px 20px; text-decoration: none; font-weight: 800; font-size: 22px; white-space: nowrap; }
.callpick__phone svg { width: 52px; height: 52px; padding: 14px; flex: none; border-radius: 16px; background: var(--brand-600); color: #fff; }
.callpick__phone small { display: block; font-size: 13px; font-weight: 600; color: var(--ink-50); }
.header__burger {
  display: none; width: 48px; height: 48px; flex: none;
  align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer;
}
.header__burger span { display: block; width: 20px; height: 2px; background: var(--ink); position: relative; }
.header__burger span::before, .header__burger span::after {
  content: ''; position: absolute; left: 0; width: 20px; height: 2px; background: var(--ink);
  transition: transform .2s ease, top .2s ease;
}
.header__burger span::before { top: -6px; }
.header__burger span::after { top: 6px; }
.header.is-menu-open .header__burger span { background: transparent; }
.header.is-menu-open .header__burger span::before { top: 0; transform: rotate(45deg); }
.header.is-menu-open .header__burger span::after { top: 0; transform: rotate(-45deg); }
.nav__mobile-cta { display: none; }

/* ── Хлебные крошки ───────────────────────────────────────────────────── */
.crumbs { padding-top: 24px; font-size: 14px; color: var(--ink-50); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.crumbs li::after { content: '/'; margin-left: 8px; color: var(--brand-300); }
.crumbs li:last-child::after { content: none; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--brand-800); text-decoration: underline; }

/* ── Первый экран главной ─────────────────────────────────────────────── */
.hero { padding-top: 24px; }
.hero__box {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: var(--r-xl);
  background:
    radial-gradient(46% 62% at 66% 44%, #fff 0%, rgba(255, 255, 255, .7) 45%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(120deg, #fbfdfe 0%, #f1f6fa 45%, #dfe9f2 100%);
}
.hero__box::before { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--line); pointer-events: none; }
/* инженерная сетка, как на чертеже: проявляется справа, под изделиями */
.hero__box::after {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background-image:
    linear-gradient(rgba(5, 38, 71, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(5, 38, 71, .07) 1px, transparent 1px);
  background-size: 44px 44px; background-position: -1px -1px;
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 62%);
  mask-image: linear-gradient(90deg, transparent 30%, #000 62%);
}
.hero__media { position: absolute; z-index: 1; top: 28px; bottom: clamp(205px, 16vw, 230px); left: 50%; right: 32px; }
.hero__top { z-index: 2; pointer-events: none; }
.hero__main { pointer-events: auto; }
.hero__cards { position: relative; z-index: 2; }

/* карусель рендеров: крутится сама, тянется мышью и пальцем */
.hshow { height: 100%; display: flex; flex-direction: column; user-select: none; -webkit-user-select: none; }
.hshow__stage { position: relative; flex: 1; min-height: 0; touch-action: pan-y; cursor: grab; }
.hshow__stage::after { content: ''; position: absolute; left: 30%; right: 30%; bottom: 0; height: 34px; border-radius: 50%; background: radial-gradient(closest-side, rgba(5, 38, 71, .22), rgba(5, 38, 71, 0)); pointer-events: none; }
.hshow__stage.is-drag { cursor: grabbing; }
.hshow__item {
  position: absolute; left: 50%; bottom: 0; width: var(--item, 340px); aspect-ratio: 1; height: auto;
  display: block; translate: -50% 0; transform-origin: 50% 100%;
  transition: transform .8s cubic-bezier(.22, .8, .24, 1), opacity .8s ease, filter .8s ease;
  -webkit-tap-highlight-color: transparent;
}
.hshow__stage.is-drag .hshow__item { transition: none; }
.hshow__item img { display: block; width: 100%; height: 100%; object-fit: contain; -webkit-user-drag: none; pointer-events: none; filter: drop-shadow(0 22px 20px rgba(5, 38, 71, .16)); }
.hshow__item.is-active img { animation: hshow-float 5s ease-in-out infinite; }
@keyframes hshow-float { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-12px) rotate(-.8deg); } }
.hshow__bar { display: flex; align-items: center; justify-content: center; gap: 18px; padding-top: 14px; }
.hshow__btn { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--brand-900); box-shadow: var(--shadow-sm, 0 4px 14px rgba(5, 38, 71, .08)); cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.hshow__btn:hover { background: var(--brand-900); color: #fff; transform: scale(1.05); }
.hshow__cap { min-width: 230px; text-align: center; display: flex; flex-direction: column; gap: 2px; }
.hshow__name { color: var(--ink); font-size: 17px; font-weight: 700; line-height: 1.25; }
.hshow__price { color: var(--brand-600); font-size: 14px; font-weight: 600; }
.hshow__cap.is-swap { animation: hshow-cap .5s ease; }
@keyframes hshow-cap { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .hshow__item { transition: none; }
  .hshow__item.is-active img, .hshow__cap.is-swap { animation: none; }
}
.hero__inner { padding: clamp(40px, 5vw, 72px) clamp(28px, 4vw, 56px) clamp(24px, 3vw, 40px); }
.hero__top { position: relative; display: flex; justify-content: space-between; gap: 32px; }
.hero__main { max-width: 660px; }
.hero__title { text-wrap: wrap; }
.hero__title { color: var(--ink); font-size: clamp(34px, 3.5vw, 50px); line-height: 1.07; letter-spacing: -.03em; }
.hero__title em { font-style: normal; color: var(--brand-600); }
.hero__subtitle { margin-top: 24px; max-width: 34ch; font-size: 16.5px; line-height: 1.6; color: var(--ink-70); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn--glass { --btn-bg: rgba(255, 255, 255, .75); --btn-fg: var(--ink); border-color: var(--line); backdrop-filter: blur(8px); }
.btn--glass:hover { --btn-fg: #fff; background: var(--brand-800); border-color: var(--brand-800); }


.hero__cards { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr) minmax(0, 1.7fr); gap: 16px; margin-top: clamp(48px, 5vw, 72px); }
.hcard {
  position: relative; min-height: 190px; padding: 24px 26px;
  border-radius: 22px; background: #fff; box-shadow: var(--shadow-md);
  display: flex; flex-direction: column;
}
.hcard--dark { background: var(--brand-900); color: #fff; }
.hcard__num { font-size: clamp(40px, 3.6vw, 52px); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.hcard__label { margin-top: 10px; font-size: 15px; color: rgba(255, 255, 255, .82); }
.hcard__dot { margin-top: auto; padding-top: 18px; font-size: 13.5px; color: rgba(255, 255, 255, .7); display: flex; align-items: center; gap: 8px; }
.hcard__dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-300); flex: none; }
.hcard__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.hcard__title { font-size: 16.5px; font-weight: 700; line-height: 1.35; }
.hcard__ic { color: var(--brand-600); flex: none; }
.hcard__dots { list-style: none; margin: auto 0 0; padding: 16px 0 0; display: grid; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--ink-70); }
.hcard__dots li { display: flex; align-items: center; gap: 10px; }
.hcard__dots li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--brand-600); flex: none; }
.hcard--wide { padding-right: 34%; overflow: hidden; }
.hflow { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 700; color: var(--brand-300); }
.hflow li { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.hflow li:not(:last-child)::after { content: ''; width: clamp(14px, 1.8vw, 32px); height: 1px; background: currentColor; opacity: .6; }
.hflow li.is-active { color: var(--brand-600); }
.hcard__text { margin-top: auto; padding-top: 18px; font-size: 14.5px; font-weight: 600; line-height: 1.45; color: var(--ink); max-width: 24ch; }
.hcard__img { position: absolute; right: 20px; bottom: -30px; width: auto; height: 118%; max-width: 30%; object-fit: contain; filter: drop-shadow(0 10px 18px rgba(5, 38, 71, .18)); }

/* ── Первый экран внутренних страниц ──────────────────────────────────── */
.pagehero { padding-top: 24px; }
.pagehero__box {
  border-radius: var(--r-xl); overflow: hidden;
  background: var(--brand-900); color: #fff;
  display: grid; grid-template-columns: minmax(0, 1fr) clamp(260px, 26vw, 360px);
}
.pagehero__content { padding: clamp(32px, 4.4vw, 64px); display: flex; flex-direction: column; }
.pagehero h1 { color: #fff; font-size: clamp(30px, 2.9vw, 42px); }
.pagehero__text { margin-top: 24px; color: rgba(255, 255, 255, .82); max-width: 40em; }
.pagehero__text p { margin-bottom: 12px; }
.pagehero__price {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  margin-top: 32px;
  font-size: clamp(26px, 2.4vw, 34px); font-weight: 800; letter-spacing: -.02em;
}
.pagehero__price small { font-size: 15px; font-weight: 600; letter-spacing: 0; color: rgba(255, 255, 255, .62); }
.pagehero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.pagehero__note { margin-top: 20px; font-size: 14.5px; color: rgba(255, 255, 255, .62); }
.pagehero__media { position: relative; min-height: 360px; background: #fff; }
.pagehero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pagehero__media--contain img { object-fit: contain; padding: 32px; }

/* заголовок страницы без первого экрана */
.intro { padding-block: clamp(48px, 6vw, 96px) clamp(40px, 5vw, 72px); }
.intro h1 { max-width: 18em; }
.intro .lead { margin-top: 24px; }

/* ── Заголовки секций ─────────────────────────────────────────────────── */
/* подводка всегда под заголовком, не справа */
.sec-head {
  display: grid; grid-template-columns: minmax(0, 1fr);
  gap: 16px; align-items: start;
  margin-bottom: var(--head-gap);
}
.sec-head h2 { max-width: 20em; }
/* подводка к заголовку секции — второстепенный уровень, укладывается в 2–3 строки */
.sec-head p { color: var(--ink-70); font-size: 15px; line-height: 1.6; max-width: 62ch; }
.sec-head--stack { grid-template-columns: 1fr; align-items: start; }
.sec-head--stack p { max-width: 62ch; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brand-600); margin-bottom: 20px;
}
.eyebrow::before { content: ''; width: 24px; height: 2px; background: currentColor; border-radius: 2px; }

/* ── Карточки продукции ───────────────────────────────────────────────── */
.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.products--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pcard {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg) var(--r-lg) var(--r-lg) 10px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand-300); }
.pcard__media {
  position: relative; aspect-ratio: 4 / 3; margin: 12px 12px 0;
  border-radius: calc(var(--r-lg) - 10px); overflow: hidden;
  background: var(--paper);
}
.pcard__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pcard__media--contain img { object-fit: contain; padding: 22px; }
.pcard__body { padding: 28px 28px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.pcard__title a { text-decoration: none; }
.pcard__title h3 { font-size: clamp(19px, 1.45vw, 21px); }
.pcard--long .pcard__title h3 { font-size: clamp(17px, 1.25vw, 18.5px); }
.pcard__title a::after { content: ''; position: absolute; inset: 0; }
.pcard__text { color: var(--ink-70); font-size: 16px; }
.pcard__foot {
  margin-top: auto; padding-top: 24px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  border-top: 1px solid var(--line);
}
.pcard__body > .pcard__foot { margin-top: auto; }
.pcard__text + .pcard__foot { margin-top: auto; }
.pcard__price { font-weight: 800; font-size: 18px; white-space: nowrap; line-height: 1.3; }
.pcard__price small { display: block; font-size: 13px; font-weight: 600; color: var(--ink-50); }
.pcard__pricelink { position: relative; z-index: 1; font-size: 15px; padding-bottom: 2px; }

.pcard--accent { background: var(--brand-900); border-color: var(--brand-900); color: #fff; }
.pcard--accent .pcard__media { background: rgba(255, 255, 255, .07); }
.pcard--accent .pcard__text { color: rgba(255, 255, 255, .74); }
.pcard--accent .pcard__foot { border-color: rgba(255, 255, 255, .14); }
.pcard--accent .pcard__price small { color: rgba(255, 255, 255, .6); }
.pcard--accent .link-arrow { color: #fff; }
.pcard--accent .link-arrow:hover { color: var(--brand-300); }

.tag {
  display: inline-block; padding: 5px 12px; border-radius: 999px;
  background: var(--brand-100); color: var(--brand-800);
  font-size: 12.5px; font-weight: 700; letter-spacing: .01em; white-space: nowrap;
}

/* ── Задачи: карточки с номером ───────────────────────────────────────── */
.tasks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.tasks--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.task {
  display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 8px 24px; align-content: start;
  padding: var(--pad-card);
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg) 10px var(--r-lg) var(--r-lg);
}
.task__num {
  grid-row: span 2;
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-900); color: #fff; font-weight: 800; font-size: 17px;
}
.task h3 { padding-top: 12px; font-size: clamp(19px, 1.45vw, 21px); }
.task p { color: var(--ink-70); font-size: 16px; }
.tasks--3 .task { grid-template-columns: 1fr; }
.tasks--3 .task__num { grid-row: auto; margin-bottom: 16px; }
.tasks--3 .task h3 { padding-top: 0; }

/* ── Блок с фото и бейджем ────────────────────────────────────────────── */
.feature { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.feature__media { position: relative; }
.feature__img { border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4 / 5; background: var(--brand-100); }
.feature__img img { width: 100%; height: 100%; object-fit: cover; }
.feature__badge {
  position: absolute; top: -24px; right: -24px;
  width: 156px; height: 156px; border-radius: 50%;
  background: var(--brand-600); color: #fff;
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-weight: 700; font-size: 15.5px; line-height: 1.3; padding: 20px;
  box-shadow: var(--shadow-md);
}
.feature__body h2 { margin-bottom: 32px; }
/* блок с портретом: фото в родном размере, без растягивания */
.feature--person { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: clamp(48px, 7vw, 112px); }
.feature--person .feature__img { aspect-ratio: 4 / 5; }
.feature--person .feature__img img { object-position: 50% 18%; }

/* карточка инженера на продуктовых страницах */
.person { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 28px; align-items: center; max-width: 760px; margin-bottom: 48px; }
.person__photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 6px var(--paper); }
.person__name { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.person__role { margin-top: 2px; font-size: 14.5px; font-weight: 600; color: var(--brand-600); }
.person__text { margin-top: 10px; color: var(--ink-70); font-size: 16px; }

/* этапы работы — ровная сетка */
.chain { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; counter-reset: ch; }
.chain li {
  counter-increment: ch;
  padding: 18px 20px 20px; border-radius: var(--r-md);
  background: var(--paper); border: 1px solid var(--line);
  font-weight: 700; font-size: 15px; line-height: 1.35;
}
.section--paper .chain li { background: #fff; }
.chain li::before {
  content: counter(ch, decimal-leading-zero);
  display: block; margin-bottom: 10px;
  font-size: 13px; font-weight: 800; color: var(--brand-600); letter-spacing: .04em;
}

.sec-head + .chain { margin-top: 0; }
.feature .chain { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* список этапов со значками (о компании) */
.steps__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--gap); }
.steps__item { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 24px; padding: 32px 0; border-top: 1px solid var(--line); }
.steps__icon {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-900); color: #fff; font-weight: 800;
}
.steps__item h3 { margin: 12px 0 10px; }
.steps__item p { color: var(--ink-70); font-size: 16px; }

/* строки «заголовок — описание» */
.rows { list-style: none; margin: 0; padding: 0; }
.rows li {
  display: grid; grid-template-columns: 52px minmax(0, .9fr) minmax(0, 1.2fr); gap: 24px 40px; align-items: baseline;
  padding: 32px 0; border-top: 1px solid var(--line);
}
.rows li:last-child { border-bottom: 1px solid var(--line); }
.rows__num { font-size: 14px; font-weight: 800; color: var(--brand-600); letter-spacing: .04em; }
.rows p { color: var(--ink-70); font-size: 16.5px; }

/* ── Проекты ──────────────────────────────────────────────────────────── */
.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.project {
  position: relative; display: flex; flex-direction: column;
  border-radius: var(--r-lg); overflow: hidden;
  background: #fff; border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease;
}
.project:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.project__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper); }
.project__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.project:hover .project__media img { transform: scale(1.04); }
.project__body { padding: 28px 28px 28px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.project__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.project__body p { color: var(--ink-70); font-size: 16px; }
.project__more { margin-top: auto; padding-top: 16px; }
.project__more a::after { content: ''; position: absolute; inset: 0; }

/* кейс в разделе /raboty/ */
.cases { display: grid; gap: clamp(72px, 8vw, 120px); }
.case { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.case:nth-child(even) .case__media { order: 2; }
.case__media { position: sticky; top: calc(var(--header-h) + 24px); }
.case__cover { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; }
.case__cover img { width: 100%; height: 100%; object-fit: cover; }
.case__gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.case__gallery img { border-radius: var(--r-sm); aspect-ratio: 1; object-fit: cover; width: 100%; }
.case h2 { margin: 20px 0 0; font-size: clamp(26px, 2.4vw, 36px); }
.case__facts { list-style: none; margin: 32px 0 0; padding: 0; display: grid; }
.case__facts li { display: grid; grid-template-columns: 136px minmax(0, 1fr); gap: 24px; padding: 20px 0; border-top: 1px solid var(--line); font-size: 16px; }
.case__facts li:last-child { border-bottom: 1px solid var(--line); }
.case__facts b { color: var(--ink-50); font-weight: 800; font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; line-height: 1.9; }

/* реальный проект на продуктовой странице */
.case--inline { align-items: center; }
.case--inline .case__media { position: static; }

/* ── Модели и цены ────────────────────────────────────────────────────── */
.models { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--gap); }
.models--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.models--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.model {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg) var(--r-lg) 10px var(--r-lg);
  padding: var(--pad-card); display: flex; flex-direction: column;
}
.model__name { font-weight: 800; font-size: 17px; line-height: 1.3; white-space: nowrap; }
.model__prices { margin-top: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); display: grid; gap: 12px; }
.model__price { font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; white-space: nowrap; }
.model__price span { display: block; margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--ink-50); letter-spacing: 0; }
.model__specs { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; font-size: 15px; }
.model__specs li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
/* в полном списке и на телефоне: если подпись и значение не помещаются в строку, значение уходит на следующую и остаётся справа */
.model__more .model__specs li { flex-wrap: wrap; gap: 2px 16px; }
.model__specs span:first-child { color: var(--ink-50); }
.model__specs span:last-child { margin-left: auto; font-weight: 700; text-align: right; white-space: nowrap; }

/* «Все характеристики» в карточке: остальные строки раскрываются под основными */
.model__more { margin-top: auto; padding-top: 18px; }
.model__more summary {
  display: inline-flex; align-items: center; gap: 10px; min-height: 32px;
  cursor: pointer; list-style: none; font-size: 15px; font-weight: 700; color: var(--brand-800);
  transition: color .2s ease;
}
.model__more summary::-webkit-details-marker { display: none; }
.model__more summary::after {
  content: ''; flex: none; width: 8px; height: 8px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-3px); transition: transform .2s ease;
}
.model__more[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.model__more summary:hover { color: var(--brand-600); }
.model__more .model__specs { margin-top: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.model__more[open] .model__specs { animation: specs-in .35s ease both; }

/* листалка карточек на телефоне: счётчик и стрелки включает скрипт */
.models-nav { display: none; }

.specs { margin-top: clamp(32px, 3.4vw, 48px); border-top: 1px solid var(--line); }
.specs summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 24px 0; cursor: pointer; list-style: none;
  font-weight: 700; font-size: 17px;
}
.specs summary::-webkit-details-marker { display: none; }
.specs summary::after {
  content: ''; flex: none; width: 12px; height: 12px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-3px); transition: transform .2s ease;
}
.specs[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.specs summary:hover { color: var(--brand-600); }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r-md); border: 1px solid var(--line); }
.ptable { width: 100%; border-collapse: collapse; background: #fff; min-width: 720px; }
.ptable th, .ptable td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: 15px; vertical-align: top; }
.ptable th { background: var(--paper); color: var(--ink-70); font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; line-height: 1.35; }
.ptable tr:last-child td { border-bottom: 0; }
.ptable td { white-space: nowrap; }
.ptable td:first-child { font-weight: 700; }
.ptable .price { font-weight: 800; }

/* ── Списки ───────────────────────────────────────────────────────────── */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); column-gap: var(--gap); }
.checklist--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.checklist--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.checklist li {
  display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 16px; align-items: start;
  padding: 18px 0; border-top: 1px solid var(--line);
  font-size: 16.5px; font-weight: 600;
}
.checklist li::before {
  content: ''; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%;
  background: var(--brand-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' fill='none'%3E%3Cpath d='M1 5l3.2 3L11 1' stroke='%230a3a66' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.datalist { list-style: none; margin: 0; padding: 0; display: grid; counter-reset: d; }
.datalist li {
  counter-increment: d;
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 20px; align-items: center;
  padding: 18px 0; border-top: 1px solid var(--line); font-size: 16.5px; font-weight: 600;
}
.datalist li::before {
  content: counter(d);
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--brand-900); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px;
}

.col-title { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-50); margin-bottom: 16px; }

/* ── Доверие ──────────────────────────────────────────────────────────── */
.trust { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.trust__item {
  display: grid; gap: 12px; align-content: start;
  padding: var(--pad-card); border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line);
}
.section--paper .trust__item { border-color: transparent; }
.trust__value { font-size: clamp(22px, 2vw, 28px); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; color: var(--brand-800); }
.trust__item p { color: var(--ink-70); font-size: 16px; }
.trust__item a { color: var(--brand-800); }

/* ── Тёмный блок ──────────────────────────────────────────────────────── */
.dark { background: var(--brand-900); color: #fff; border-radius: var(--r-xl); padding: clamp(32px, 5vw, 72px); }
.dark h2, .dark h3 { color: #fff; }
.dark h2 { font-size: clamp(26px, 2.6vw, 38px); }
.dark p { color: rgba(255, 255, 255, .8); }
.dark a:not(.btn) { color: #fff; }
.dark .eyebrow { color: var(--brand-300); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.split--wide-left { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }

/* ── Формы ────────────────────────────────────────────────────────────── */
.formblock { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.formblock h2 { font-size: clamp(26px, 2.3vw, 32px); }
.formblock__text { margin-top: 24px; }
.formblock__note { margin-top: 20px; font-size: 15px; color: rgba(255, 255, 255, .64); }
.form__body { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field > label { font-size: 14px; font-weight: 700; color: rgba(255, 255, 255, .8); }
.field input, .field textarea {
  width: 100%; min-height: 56px; padding: 15px 20px;
  border: 1px solid rgba(255, 255, 255, .2); border-radius: 16px;
  background: rgba(255, 255, 255, .06); color: #fff;
  font: inherit; font-size: 16px;
  transition: border-color .18s ease, background-color .18s ease;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255, 255, 255, .42); }
.field input:hover, .field textarea:hover { border-color: rgba(255, 255, 255, .4); }
.field input:focus, .field textarea:focus { outline: none; border-color: #fff; background: rgba(255, 255, 255, .1); }
.field textarea { min-height: 120px; resize: vertical; }
.field.has-error input, .field.has-error textarea { border-color: #ff9d9d; }
.field__error { font-size: 13.5px; color: #ffb4b4; }
.field__error:empty { display: none; }

.filefield input[type='file'] { display: none; }
.filefield__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.filefield__btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border-radius: 16px; cursor: pointer;
  border: 1px dashed rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .04);
  font-size: 15px; font-weight: 600; color: rgba(255, 255, 255, .9);
  transition: border-color .18s ease, background-color .18s ease;
}
.filefield__btn:hover { border-color: #fff; background: rgba(255, 255, 255, .1); }
.filefield__hint { font-size: 13.5px; color: rgba(255, 255, 255, .5); }
.filefield__name { font-size: 14px; color: rgba(255, 255, 255, .75); word-break: break-all; }
.filefield__name:empty { display: none; }

.consent { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 14px; align-items: start; font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, .72); margin-top: 4px; }
.consent input { width: 22px; height: 22px; margin: 0; accent-color: var(--brand-600); cursor: pointer; }
.consent a { color: #fff; }
.consent.has-error { color: #ffb4b4; }
.form__body > .btn { margin-top: 4px; }

.form__success {
  display: none; padding: 32px; border-radius: var(--r-md);
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .24);
}
.form.is-sent .form__success { display: block; }
.form.is-sent .form__body { display: none; }

/* ── Контакты ─────────────────────────────────────────────────────────── */
.contacts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.contacts--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.contact-card {
  padding: var(--pad-card); border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px;
}
.section--paper .contact-card { border-color: transparent; }
.contact-card b { font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-50); }
.contact-card a, .contact-card strong { font-size: clamp(19px, 1.6vw, 22px); font-weight: 800; text-decoration: none; letter-spacing: -.01em; line-height: 1.3; }
.contact-card a:hover { color: var(--brand-600); }
.contact-card span { color: var(--ink-70); font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a {
  font-size: 14.5px !important; font-weight: 600 !important; letter-spacing: 0 !important;
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line);
}
.chips a:hover { border-color: var(--brand-600); }

.requisites { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 14px 40px; margin: 32px 0 0; font-size: 16px; }
.requisites dt { color: rgba(255, 255, 255, .56); font-weight: 600; }
.requisites dd { margin: 0; color: #fff; }

/* ── Подвал ───────────────────────────────────────────────────────────── */
.footer { background: var(--brand-900); color: rgba(255, 255, 255, .74); }
.footer a { color: rgba(255, 255, 255, .74); text-decoration: none; }
.footer a:hover { color: #fff; }
.footer__top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 48px; padding-block: clamp(56px, 6vw, 88px) 48px; }
.footer__logo img { height: 48px; width: auto; margin-bottom: 20px; }
.footer__about { font-size: 15px; max-width: 30ch; }
.footer h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--brand-300); margin-bottom: 20px; font-weight: 800; }
.footer h4 + .footer__req, .footer ul + h4 { margin-top: 32px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 15px; }
.footer__contacts a { font-weight: 700; color: #fff; }
.footer__socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.footer__socials a { padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; border: 1px solid rgba(255, 255, 255, .2); }
.footer__socials a:hover { background: rgba(255, 255, 255, .1); }
.footer__req { font-size: 14.5px; line-height: 1.75; }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 28px 36px;
  display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between;
  font-size: 14px; color: rgba(255, 255, 255, .56);
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.footer__legal button { background: none; border: 0; padding: 0; cursor: pointer; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; }
.granula-credit { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.granula-credit img { display: block; height: 12px; width: auto; opacity: .8; transition: opacity .2s; }
.granula-credit:hover img { opacity: 1; }

/* ── Cookie ───────────────────────────────────────────────────────────── */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90;
  display: none; gap: 20px; align-items: center; flex-wrap: wrap;
  max-width: 920px; margin: 0 auto; padding: 20px 24px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); font-size: 15px;
}
.cookie.is-visible { display: flex; }
.cookie p { flex: 1 1 360px; color: var(--ink-70); line-height: 1.5; }
.cookie__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie__actions .btn { min-height: 46px; padding: 0 22px; }

/* ── Прайс ────────────────────────────────────────────────────────────── */
.pricenav { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; margin-top: 48px; }
.pricenav__item {
  display: flex; flex-direction: column; gap: 6px;
  padding: 18px 20px; border-radius: var(--r-md);
  background: #fff; border: 1px solid var(--line); text-decoration: none;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.pricenav__item:hover { border-color: var(--brand-600); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.pricenav__title { font-weight: 800; }
.pricenav__price { font-size: 14px; color: var(--ink-50); white-space: nowrap; }
/* разделы прайса идут подряд: один отступ и тонкая линия между ними */
.pricesec { padding-top: 0; }
.pricesec h2 { font-size: clamp(24px, 2.2vw, 32px); }
.pricesec .sec-head { padding-top: clamp(48px, 6vw, 88px); border-top: 1px solid var(--line); }

/* ── Статьи ───────────────────────────────────────────────────────────── */
.articles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.articles--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.article-card {
  position: relative; display: flex; flex-direction: column; gap: 16px;
  padding: 28px; border-radius: var(--r-lg) var(--r-lg) 10px var(--r-lg);
  background: #fff; border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease;
}
.section--paper .article-card { border-color: transparent; }
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.article-card time { font-size: 14px; color: var(--ink-50); }
.article-card h2, .article-card h3 { font-size: clamp(19px, 1.5vw, 23px); line-height: 1.3; }
.article-card a { text-decoration: none; }
.article-card a::after { content: ''; position: absolute; inset: 0; }
.article-card p { color: var(--ink-70); font-size: 16px; }
.article-card__more { margin-top: auto; padding-top: 16px; }

.article-head { max-width: 860px; }
.article-head time { display: block; margin-bottom: 20px; color: var(--ink-50); font-size: 15px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-bottom: 20px; color: var(--ink-50); font-size: 15px; }
.article-head .article-meta time { display: inline; margin: 0; }
.toc { max-width: 720px; margin-top: clamp(32px, 3vw, 48px); padding: 24px 28px; border-radius: var(--r-md); background: var(--paper); }
.toc__title { margin-bottom: 14px; font-weight: 700; }
.toc ol { margin: 0; padding-left: 22px; display: grid; gap: 10px; color: var(--ink-50); }
.toc li { text-wrap: balance; }
.toc a { color: var(--brand-700); text-decoration: none; line-height: 1.45; }
.toc a:hover { text-decoration: underline; }
.prose { max-width: 720px; margin-top: clamp(40px, 4vw, 64px); }
.prose h2 { scroll-margin-top: calc(var(--header-h) + 24px); }
.prose a { color: var(--brand-700); text-underline-offset: 3px; }
.prose a:hover { color: var(--brand-600); }
.prose h2 { font-size: clamp(24px, 2.2vw, 32px); margin: 56px 0 20px; }
.prose h3 { font-size: clamp(19px, 1.6vw, 23px); margin: 40px 0 14px; }
.prose p { margin-bottom: 20px; color: var(--ink-70); line-height: 1.75; }
.prose ul { margin: 0 0 24px; padding: 0; list-style: none; display: grid; gap: 12px; }
.prose ul li { position: relative; padding-left: 28px; color: var(--ink-70); line-height: 1.65; }
.prose ul li::before { content: ''; position: absolute; left: 6px; top: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-600); }
.prose > *:first-child { margin-top: 0; }

/* ── 404 ──────────────────────────────────────────────────────────────── */
.notfound { text-align: center; padding-block: clamp(80px, 12vw, 160px); }
.notfound__code { font-size: clamp(88px, 14vw, 176px); font-weight: 800; line-height: 1; color: var(--brand-100); letter-spacing: -.04em; }
.notfound h1 { margin-top: 24px; }
.notfound .lead { margin: 24px auto 0; }
.notfound__links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 40px; }

/* ── Плашка-примечание ────────────────────────────────────────────────── */
.note {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px 24px; border-radius: var(--r-md);
  background: var(--brand-100); color: var(--brand-800);
  font-size: 15.5px; font-weight: 600; line-height: 1.5;
  max-width: 900px;
}

/* ── Адаптив ──────────────────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .pricenav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .case__facts li { grid-template-columns: 1fr; gap: 6px; }
  .models--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1100px) {
  .sec-head { grid-template-columns: 1fr; align-items: start; }
  .sec-head p { max-width: 70ch; }
  .products, .projects, .articles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tasks--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust { grid-template-columns: 1fr; }
  .contacts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .checklist--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .header__phone { display: none; }
}

@media (max-width: 960px) {
  :root { --header-h: 72px; }
  .header__nav {
    position: fixed; inset: var(--header-h) 0 0; z-index: 55;
    display: none; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 24px var(--gutter) 48px; margin: 0;
    background: #fff; overflow-y: auto;
  }
  .header.is-menu-open .header__nav { display: flex; }
  .header.is-menu-open { box-shadow: var(--shadow-md); }
  .nav__link { padding: 14px 16px; font-size: 17px; }
  .nav__group { position: static; }
  .nav__menu { position: static; box-shadow: none; border: 0; border-radius: 0; grid-template-columns: 1fr; padding: 4px 0 12px 16px; gap: 12px; }
  .nav__menu-title { border: 0; padding-bottom: 4px; }
  .nav__menu a { font-size: 16px; }
  .nav__mobile-cta { display: grid; gap: 10px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
  .header__call { display: flex; }
  .header__contacts { gap: 10px; }
  .header__burger { display: flex; }
  .header__contacts .btn { display: none; }

  .sec-head { grid-template-columns: 1fr; align-items: start; }
  .feature, .formblock, .split, .split--wide-left, .case { grid-template-columns: 1fr; }
  .case:nth-child(even) .case__media { order: 0; }
  .case__media { position: static; }
  .pagehero__box { grid-template-columns: 1fr; }
  .pagehero__media { min-height: 280px; order: -1; }
  .feature__img { aspect-ratio: 16 / 11; }
  .feature--person .feature__media { max-width: 340px; }
  .feature--person .feature__img { aspect-ratio: 4 / 5; }
  .feature__badge { width: 124px; height: 124px; font-size: 13.5px; top: 16px; right: 16px; }
  .steps__list { grid-template-columns: 1fr; }
  .checklist--2 { grid-template-columns: 1fr; }
  .tasks { grid-template-columns: 1fr; }
  .rows li { grid-template-columns: 52px minmax(0, 1fr); gap: 8px 16px; }
  .rows li p { grid-column: 2; }
  .models--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .products, .products--2, .projects, .articles, .articles--2, .tasks, .tasks--3, .contacts, .contacts--2 { grid-template-columns: 1fr; }
  /* карточки моделей листаются вбок: следующая выглядывает справа */
  .models, .models--4, .models--3 {
    display: flex; align-items: stretch; gap: 12px;
    margin-inline: calc(var(--gutter) * -1); padding: 6px var(--gutter) 10px;
    overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .models::-webkit-scrollbar { display: none; }
  .models > .model { flex: 0 0 min(86%, 320px); padding: 24px 20px; scroll-snap-align: start; }
  .models > .model:only-child { flex-basis: 100%; }
  .models .model__specs li { flex-wrap: wrap; gap: 2px 16px; }
  .models > .model:hover { transform: none; box-shadow: none; }
  .models-nav:not([hidden]) { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 10px; }
  .models-nav__count { min-width: 64px; text-align: center; font-size: 15px; font-weight: 700; color: var(--ink-50); }
  .models-nav__btn {
    width: 44px; height: 44px; display: grid; place-items: center; flex: none;
    border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--brand-800); cursor: pointer;
  }
  .models-nav__btn[data-dir="-1"] svg { transform: rotate(180deg); }
  .models-nav__btn[disabled] { opacity: .35; }
  .checklist--3 { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 40px; }
  .pagehero__cta .btn { width: 100%; }
  .pagehero__content { padding: 32px 24px 36px; }
  .case__facts li { grid-template-columns: 1fr; gap: 4px; }
  .case__gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .pricenav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .requisites { grid-template-columns: 1fr; gap: 4px; }
  .requisites dd { margin-bottom: 12px; }
  .cookie { left: 10px; right: 10px; bottom: 10px; padding: 18px; }
  .cookie__actions { width: 100%; }
  .cookie__actions .btn { flex: 1 1 auto; }
  .task { grid-template-columns: 1fr; }
  .person { grid-template-columns: 88px minmax(0, 1fr); gap: 18px; align-items: start; }
  .person__photo { width: 88px; height: 88px; }
  .rows li { grid-template-columns: 1fr; gap: 8px; }
  .task__num { grid-row: auto; margin-bottom: 12px; }
  .task h3 { padding-top: 0; }
}

@media (max-width: 480px) {
  /* мобильная шкала: длинные русские слова должны помещаться в строку */
  h1, .intro h1, .notfound h1 { font-size: 29px; }
  .pagehero h1 { font-size: 26px; }
  .chain, .feature .chain { grid-template-columns: 1fr; gap: 8px; }
  .chain li { display: flex; align-items: baseline; gap: 14px; padding: 14px 18px; }
  .chain li::before { margin: 0; }
  h2, .case h2 { font-size: 24px; }
  .dark h2, .formblock h2 { font-size: 23px; }
  h3 { font-size: 19px; }
  .article-head h1 { font-size: 27px; }
  .prose h2 { font-size: 22px; }
  .lead { font-size: 16.5px; }
  .sec-head { gap: 16px; }
}

@media (max-width: 380px) {
  .btn { padding: 0 22px; }
  .header__logo img { height: 32px; }
}

/* ── Поля в строку и светлая форма ────────────────────────────────────── */
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

.form--light .field > label { color: var(--ink-70); }
.form--light .field input, .form--light .field textarea {
  background: #fff; border-color: var(--line); color: var(--ink);
}
.form--light .field input::placeholder, .form--light .field textarea::placeholder { color: var(--ink-50); }
.form--light .field input:hover, .form--light .field textarea:hover { border-color: var(--brand-300); }
.form--light .field input:focus, .form--light .field textarea:focus { border-color: var(--brand-600); background: #fff; box-shadow: 0 0 0 4px rgba(42, 106, 158, .12); }
.form--light .field.has-error input, .form--light .field.has-error textarea { border-color: #d0453b; }
.form--light .field__error { color: #c0392b; }
.form--light .filefield__btn { color: var(--ink-70); border-color: var(--brand-300); background: var(--paper); }
.form--light .filefield__btn:hover { border-color: var(--brand-600); background: #fff; }
.form--light .filefield__hint { color: var(--ink-50); }
.form--light .filefield__name { color: var(--ink-70); }
.form--light .consent { color: var(--ink-70); }
.form--light .consent a { color: var(--brand-800); }
.form--light .consent.has-error { color: #c0392b; }
.form--light .form__success { background: var(--paper); border-color: var(--line); }

/* ── Попап с заявкой ──────────────────────────────────────────────────── */
html.has-popup { overflow: hidden; }
.popup {
  width: min(640px, calc(100% - 32px)); max-height: calc(100% - 32px);
  margin: auto; padding: 0; border: 0; border-radius: var(--r-xl);
  background: #fff; color: var(--ink);
  box-shadow: 0 40px 100px rgba(5, 38, 71, .35);
  overflow: auto; overscroll-behavior: contain;
}
.popup::backdrop { background: rgba(5, 38, 71, .62); backdrop-filter: blur(4px); }
.popup[open] { animation: popup-in .28s cubic-bezier(.2, .8, .2, 1); }
.popup[open]::backdrop { animation: popup-fade .28s ease; }
.popup__panel { position: relative; padding: clamp(28px, 4vw, 48px); }
.popup__close {
  position: absolute; top: 18px; right: 18px;
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}
.popup__close:hover { background: var(--paper); border-color: var(--brand-300); transform: rotate(90deg); }
.popup__head { padding-right: 56px; margin-bottom: 28px; }
.popup__title { font-size: clamp(24px, 2.4vw, 32px); }
.popup__text { margin-top: 12px; color: var(--ink-70); font-size: 15.5px; }
.popup__phone { margin-top: 20px; text-align: center; font-size: 15px; color: var(--ink-50); }
.popup__phone a { color: var(--ink); font-weight: 800; text-decoration: none; white-space: nowrap; }
.popup__phone a:hover { color: var(--brand-600); }
.popup .form__body { gap: 16px; }
.popup .field textarea { min-height: 96px; }

@keyframes popup-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
@keyframes popup-fade { from { opacity: 0; } }

@media (max-width: 620px) {
  .form__row { grid-template-columns: 1fr; }
  /* на телефоне — лист снизу во всю ширину */
  .popup {
    width: 100%; max-width: none; max-height: 92dvh;
    margin: auto 0 0; border-radius: 28px 28px 0 0;
  }
  .popup[open] { animation-name: popup-up; }
  .popup__close { top: 14px; right: 14px; }
  @keyframes popup-up { from { transform: translateY(40px); opacity: 0; } }
}

/* ── Страница «Спасибо» ───────────────────────────────────────────────── */
.thanks { padding-block: clamp(48px, 7vw, 112px); }
.thanks__box {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(32px, 5vw, 80px); align-items: center;
  padding: clamp(32px, 5vw, 72px); border-radius: var(--r-xl);
  background-color: var(--brand-900); color: #fff;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 48px 48px; background-position: center;
}
.thanks__box h1 { color: #fff; font-size: clamp(30px, 3.4vw, 48px); }
.thanks__box .lead { color: rgba(255, 255, 255, .82); margin-top: 20px; }
.thanks__art { justify-self: center; width: min(260px, 100%); }
.thanks__art svg { width: 100%; height: auto; overflow: visible; }
.thanks__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); counter-reset: th; }
.thanks__steps li {
  counter-increment: th;
  padding: var(--pad-card); border-radius: var(--r-lg); background: var(--paper);
}
.thanks__steps li::before {
  content: counter(th, decimal-leading-zero);
  display: block; margin-bottom: 16px;
  font-size: 13px; font-weight: 800; letter-spacing: .06em; color: var(--brand-600);
}
.thanks__steps h3 { margin-bottom: 10px; }
.thanks__steps p { color: var(--ink-70); font-size: 16px; }
.thanks__links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.th-wave { animation: pl-wave 2.4s linear infinite; }

@media (max-width: 960px) {
  .thanks__box { grid-template-columns: 1fr; }
  .thanks__art { order: -1; width: 180px; justify-self: start; }
  .thanks__steps { grid-template-columns: 1fr; }
}

/* ── Прелоадер: сварка корпуса → испытание наливом ────────────────────── */
html.is-loading { overflow: hidden; }
.preloader {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background-color: var(--brand-900);
  /* миллиметровка чертежа */
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, .02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .02) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px, 16px 16px, 16px 16px;
  background-position: center;
  transition: opacity .55s ease, visibility .55s ease;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__stage { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.preloader__svg { width: clamp(180px, 20vw, 240px); height: auto; overflow: visible; }

.pl-outline {
  stroke: #dce6ee; stroke-width: 2.6; stroke-linejoin: round;
  stroke-dasharray: 100; stroke-dashoffset: 100;
  animation: pl-draw .9s .1s linear forwards;
}
.pl-seam {
  stroke: rgba(220, 230, 238, .42); stroke-width: 1.4; stroke-dasharray: 3 5;
  opacity: 0; animation: pl-fade .35s .55s ease forwards;
}
.pl-seam--2 { animation-delay: .75s; }
.pl-details {
  stroke: #dce6ee; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  opacity: 0; animation: pl-fade .4s .85s ease forwards;
}
.pl-dim { opacity: 0; animation: pl-fade .4s 1s ease forwards; }
.pl-dim path { stroke: rgba(147, 168, 188, .7); stroke-width: 1.2; }
.pl-dim text { fill: rgba(147, 168, 188, .95); font: 700 10px/1 'Manrope', system-ui, sans-serif; letter-spacing: .06em; }

.pl-spark { animation: pl-spark-out .25s 1s ease forwards; }
.pl-spark circle:first-child { animation: pl-flicker .12s steps(2) infinite; }

.pl-water { transform: translateY(214px); animation: pl-fill .75s 1s cubic-bezier(.45, .05, .35, 1) forwards; }
.pl-wave { animation: pl-wave 1.3s linear infinite; }
.pl-wave--back { animation-duration: 2.1s; animation-direction: reverse; }

.pl-bubble { opacity: 0; animation: pl-bubble 1.4s 1.15s ease-in infinite; }
.pl-bubble--2 { animation-delay: 1.45s; animation-duration: 1.2s; }
.pl-bubble--3 { animation-delay: 1.3s; animation-duration: 1.6s; }

.preloader__caption {
  position: relative; height: 22px; min-width: 260px; text-align: center;
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(220, 230, 238, .78);
}
.pl-cap { position: absolute; inset: 0; white-space: nowrap; }
.pl-cap b { color: #fff; font-weight: 800; letter-spacing: .04em; display: inline-block; min-width: 4ch; text-align: left; }
/* подписи сменяются по очереди, без наложения */
.pl-cap--weld { animation: pl-cap-out .2s .84s ease forwards; }
.pl-cap--test { opacity: 0; transform: translateY(6px); animation: pl-cap-in .3s 1.02s ease forwards; }

@keyframes pl-draw { to { stroke-dashoffset: 0; } }
@keyframes pl-fade { to { opacity: 1; } }
@keyframes pl-cap-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes pl-cap-in { to { opacity: 1; transform: translateY(0); } }
@keyframes pl-spark-out { to { opacity: 0; } }
@keyframes pl-flicker { 50% { opacity: .55; } }
@keyframes pl-fill { to { transform: translateY(84px); } }
@keyframes pl-wave { from { transform: translateX(0); } to { transform: translateX(-60px); } }
@keyframes pl-bubble {
  0% { opacity: 0; transform: translateY(0); }
  15% { opacity: .9; }
  100% { opacity: 0; transform: translateY(-104px); }
}

@media (prefers-reduced-motion: reduce) {
  .preloader { display: none; }
}

/* ── Первый экран главной: планшет и телефон ──────────────────────────── */
@media (max-width: 1100px) {
  .hero__cards { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hcard--wide { grid-column: 1 / -1; }
  .hero__media { bottom: auto; height: clamp(360px, 36vw, 396px); left: 50%; right: 24px; }
}
@media (min-width: 761px) and (max-width: 960px) {
  .hero__media { top: 32px; left: 61%; right: 8px; height: 372px; }
  .hshow__bar { gap: 8px; }
  .hshow__cap { min-width: 170px; }
}
@media (max-width: 760px) {
  .hero__box { display: flex; flex-direction: column; background: radial-gradient(90% 40% at 50% 14%, #fff 0%, rgba(255, 255, 255, 0) 100%), linear-gradient(180deg, #e6eef5 0%, #f4f8fb 34%, #fff 52%); }
  .hero__box::after { -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 30%); mask-image: linear-gradient(180deg, #000 0%, transparent 30%); }
  .hero__media { position: relative; inset: auto; height: 350px; padding: 12px 16px 0; }
  .hero__inner { padding: 28px 20px 20px; position: relative; }
  .hshow__cap { min-width: 0; flex: 1; }
  .hero__top { flex-direction: column; min-height: 0; gap: 0; }
  .hero__title { font-size: 30px; text-wrap: balance; }
  .br-desk { display: none; }
  .hero__cta .btn { width: 100%; }
  .hero__cards { grid-template-columns: 1fr; margin-top: 28px; gap: 12px; }
  .hcard { min-height: 0; box-shadow: none; border: 1px solid var(--line); }
  .hcard--dark { border-color: var(--brand-900); }
  .hcard--wide { padding-right: 24px; }
  .hflow { font-size: 12.5px; gap: 6px; }
  .hflow li { gap: 6px; }
  .hflow li:not(:last-child)::after { width: 12px; }
  .hcard__text { max-width: 58%; }
  .hcard__img { right: 12px; bottom: -22px; height: 78%; max-width: 32%; }
}

/* ══ Обновление блоков: сетка-чертёж, карточки, анимации ═══════════════ */

/* кнопки: блик при наведении */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s ease;
}
.btn:hover::after { transform: translateX(120%); }

/* шапка при прокрутке */
.header { transition: box-shadow .25s ease, background-color .25s ease; }
.header.is-scrolled { box-shadow: 0 10px 30px rgba(5, 38, 71, .07); background: rgba(255, 255, 255, .97); }

/* заголовок страницы: светлая плашка с сеткой, как на главной */
.intro { padding-block: 24px clamp(40px, 5vw, 72px); }
.intro + .section:not(.section--paper) { padding-top: 0; }
.intro__art {
  position: absolute; z-index: -1; top: clamp(52px, 5vw, 84px); right: calc(var(--gutter) + clamp(40px, 6vw, 110px));
  width: clamp(170px, 16vw, 230px); pointer-events: none;
  animation: art-in 1.2s cubic-bezier(.2, .7, .2, 1) both, art-float 7s ease-in-out 1.2s infinite;
}
.intro__art img { width: 100%; height: auto; filter: drop-shadow(0 24px 30px rgba(5, 38, 71, .16)); }
@keyframes art-in { from { opacity: 0; transform: translateY(24px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes art-float { 0%, 100% { transform: none; } 50% { transform: translateY(-12px); } }
.intro .container:has(.pricenav) .intro__art { width: clamp(170px, 16vw, 220px); }
@media (max-width: 1100px) { .intro__art { width: 170px; opacity: .85; } }
@media (max-width: 860px) { .intro__art { display: none; } }
.intro > .container {
  position: relative; isolation: isolate;
  padding-block: clamp(48px, 6vw, 96px);
  padding-inline: calc(var(--gutter) + clamp(24px, 4vw, 64px));
}
.intro > .container::before,
.intro > .container::after { content: ''; position: absolute; inset: 0 var(--gutter); z-index: -1; border-radius: var(--r-xl); pointer-events: none; }
.intro > .container::before {
  border: 1px solid var(--line);
  background:
    radial-gradient(38% 70% at 86% 24%, rgba(42, 106, 158, .14), rgba(42, 106, 158, 0) 70%),
    linear-gradient(120deg, #fbfdfe 0%, #f1f6fa 55%, #e2ebf3 100%);
  background-size: 140% 140%, 100% 100%;
  animation: blueprint-glow 14s ease-in-out infinite alternate;
}
.intro > .container::after, .pagehero__box::before, .section--paper::before {
  background-image:
    linear-gradient(rgba(5, 38, 71, .065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(5, 38, 71, .065) 1px, transparent 1px);
  background-size: 44px 44px; background-position: -1px -1px;
}
.intro > .container::after {
  -webkit-mask-image: linear-gradient(100deg, transparent 35%, #000 85%);
  mask-image: linear-gradient(100deg, transparent 35%, #000 85%);
}
@keyframes blueprint-glow { from { background-position: 0% 0%, 0 0; } to { background-position: 100% 60%, 0 0; } }
.intro .eyebrow { padding: 7px 14px 7px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.intro .pricenav__item { background: rgba(255, 255, 255, .85); backdrop-filter: blur(6px); }

/* первый экран страниц направлений */
.pagehero__box {
  position: relative; isolation: isolate;
  background:
    radial-gradient(45% 80% at 30% 20%, #fff 0%, rgba(255, 255, 255, 0) 70%),
    linear-gradient(120deg, #fbfdfe 0%, #f1f6fa 50%, #dfe9f2 100%);
  color: var(--ink); border: 1px solid var(--line);
  grid-template-columns: minmax(0, 1fr) clamp(280px, 30vw, 420px);
}
.pagehero__box::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000 70%);
  mask-image: linear-gradient(90deg, transparent 20%, #000 70%);
}
.pagehero h1 { color: var(--ink); font-size: clamp(28px, 2.7vw, 40px); }
.pagehero__text { color: var(--ink-70); }
.pagehero__price {
  align-self: flex-start; align-items: center;
  padding: 12px 22px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: clamp(22px, 2vw, 28px); color: var(--ink);
}
.pagehero__price:empty { display: none; }
.pagehero__price small { color: var(--ink-50); }
.pagehero__note { color: var(--ink-50); }
.pagehero__media {
  margin: 14px; border-radius: calc(var(--r-xl) - 12px); overflow: hidden;
  min-height: 400px; box-shadow: var(--shadow-md);
}
.pagehero__media img { animation: hero-zoom 1.6s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes hero-zoom { from { transform: scale(1.1); } to { transform: scale(1); } }

/* серые секции: сетка проявляется в углу */
.section--paper { position: relative; isolation: isolate; }
.section--paper::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  -webkit-mask-image: radial-gradient(55% 60% at 100% 0%, #000 0%, transparent 70%);
  mask-image: radial-gradient(55% 60% at 100% 0%, #000 0%, transparent 70%);
}

/* тёмные блоки: сетка и мягкое свечение */
.dark { position: relative; overflow: hidden; isolation: isolate; }
.dark::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(100deg, transparent 30%, #000 90%);
  mask-image: linear-gradient(100deg, transparent 30%, #000 90%);
}
.dark::after {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  width: 520px; height: 520px; right: -160px; top: -220px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(42, 106, 158, .55), rgba(42, 106, 158, 0));
  animation: glow-drift 12s ease-in-out infinite alternate;
}
@keyframes glow-drift { to { transform: translate(-80px, 60px) scale(1.15); } }

/* списки с галочками — плитки */
.checklist { gap: 12px var(--gap); }
.checklist li {
  grid-template-columns: 30px minmax(0, 1fr); align-items: center;
  padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.checklist li::before { width: 30px; height: 30px; margin-top: 0; background-size: 13px; transition: background-color .25s ease; }
.section--paper .checklist li { border-color: transparent; box-shadow: var(--shadow-sm); }
.checklist li:hover { transform: translateY(-3px); border-color: var(--brand-300); box-shadow: var(--shadow-md); }
.checklist li:hover::before { background-color: #c9dbe9; }

/* нумерованные параметры */
.datalist { gap: 12px; }
.datalist li {
  padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.datalist li:hover { transform: translateX(6px); border-color: var(--brand-300); box-shadow: var(--shadow-sm); }
.datalist li::before { background: linear-gradient(135deg, var(--brand-600), var(--brand-900)); }

/* строки «номер — заголовок — текст» — карточки */
.rows { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.rows li, .rows li:last-child {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 14px;
  padding: var(--pad-card); border: 1px solid transparent; border-radius: var(--r-lg);
  background: #fff; box-shadow: var(--shadow-sm);
}
.rows__num { font-size: clamp(40px, 3.6vw, 56px); line-height: 1; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1.5px var(--brand-300); }
.rows p { font-size: 16px; }

/* карточки: подъём и полоса-акцент при наведении */
.rows li, .trust__item, .contact-card, .task, .model, .steps__item {
  position: relative; overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.rows li::after, .model::before, .trust__item::after, .contact-card::after, .task::after, .steps__item::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, var(--brand-600), var(--brand-900));
  transform: scaleX(0); transform-origin: left; transition: transform .45s ease;
}
.model::before { top: 0; bottom: auto; }
.rows li:hover, .trust__item:hover, .contact-card:hover, .task:hover, .steps__item:hover, .model:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.rows li:hover::after, .model:hover::before, .trust__item:hover::after, .contact-card:hover::after, .task:hover::after, .steps__item:hover::after { transform: scaleX(1); }
.task__num, .steps__icon { background: linear-gradient(135deg, var(--brand-600), var(--brand-900)); box-shadow: 0 8px 18px rgba(5, 38, 71, .18); }
.pcard { transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.pcard__media img { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.pcard:hover .pcard__media img { transform: scale(1.06); }

/* этапы «о компании» — карточки */
.steps__list { gap: var(--gap); }
.steps__item { padding: var(--pad-card); border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }

/* этапы работы — таймлайн (компьютер и планшет) */
@media (min-width: 761px) {
  .chain { gap: 0 16px; }
  .chain li, .section--paper .chain li {
    position: relative; padding: 60px 8px 0 0; background: none; border: 0; border-radius: 0;
  }
  .chain li::before {
    position: absolute; left: 0; top: 0; margin: 0;
    width: 44px; height: 44px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: #fff; border: 1.5px solid var(--brand-300); color: var(--brand-800);
    transition: background-color .3s ease, color .3s ease, border-color .3s ease;
  }
  .chain li::after {
    content: ''; position: absolute; top: 22px; left: 52px; right: -8px; height: 2px;
    background: linear-gradient(90deg, var(--brand-300), var(--line));
    transform-origin: left; transition: transform .9s ease .2s;
  }
  .chain li:last-child::after { content: none; }
  .chain li:hover::before { background: var(--brand-900); color: #fff; border-color: var(--brand-900); }
  .chain li.rv::after { transform: scaleX(0); }
  .chain li.rv.is-in::after { transform: scaleX(1); }
  /* в блоке с фото — плитки, как раньше */
  .feature .chain { gap: 12px; }
  .feature .chain li, .section--paper .feature .chain li { padding: 18px 20px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); }
  .feature .chain li::before { position: static; width: auto; height: auto; display: block; margin-bottom: 10px; background: none; border: 0; color: var(--brand-600); }
  .feature .chain li::after { content: none; }
}

/* фото: мягкое приближение при наведении */
.case__cover img, .case__gallery img, .feature__img img { transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.case__cover:hover img, .feature__img:hover img { transform: scale(1.04); }
.case__gallery img:hover { transform: scale(1.05); }
.feature__badge { animation: badge-float 6s ease-in-out infinite; }
@keyframes badge-float { 50% { transform: translateY(-10px) rotate(-4deg); } }
.person__photo { box-shadow: 0 0 0 6px var(--paper), 0 0 0 7px var(--brand-100); }

/* раскрывающийся список характеристик */
.specs summary { transition: color .2s ease, padding-left .25s ease; }
.specs summary:hover { padding-left: 8px; }
.specs[open] > *:not(summary) { animation: specs-in .45s ease both; }
@keyframes specs-in { from { opacity: 0; transform: translateY(-8px); } }

/* появление при прокрутке: класс ставит скрипт, без JS всё видно сразу */
.rv { opacity: 0; transform: translateY(28px); }
.rv.is-in { opacity: 1; transform: none; }
.rv, .rv.is-in { transition: opacity .75s cubic-bezier(.2, .7, .2, 1), transform .75s cubic-bezier(.2, .7, .2, 1); }

@media (max-width: 1100px) {
  .rows { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .pagehero__box { grid-template-columns: 1fr; }
  .pagehero__media { order: -1; min-height: 320px; }
}
@media (max-width: 760px) {
  .intro > .container { padding-inline: calc(var(--gutter) + 22px); padding-block: 40px; }
  .intro > .container::before, .intro > .container::after { border-radius: var(--r-lg); }
  .rows { grid-template-columns: 1fr; }
  .pagehero__media { min-height: 260px; margin: 10px; }
  .pagehero h1 { font-size: 25px; }
  .pagehero__price { border-radius: var(--r-md); padding: 10px 18px; font-size: 22px; }
  .checklist li { padding: 14px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; }
}

/* номера в карточках задач и этапов — крупные цифры заголовочным шрифтом, без кругов */
.task__num, .steps__icon {
  width: auto; min-width: 56px; height: auto; border-radius: 0;
  background: none; box-shadow: none;
  justify-content: flex-start; align-items: flex-start;
  color: var(--brand-600); font-weight: 800; font-size: clamp(48px, 4.2vw, 64px);
  line-height: .85; letter-spacing: -.05em;
  transition: color .3s ease, transform .3s ease;
}
.task { grid-template-columns: auto minmax(0, 1fr); column-gap: 28px; }
.task h3 { padding-top: 4px; }
.steps__item { grid-template-columns: auto minmax(0, 1fr); column-gap: 28px; }
.steps__item h3 { margin-top: 4px; }
.task:hover .task__num, .steps__item:hover .steps__icon { color: var(--brand-900); transform: translateY(-2px); }

/* блок с фото Александра: фото по высоте текста — от имени до этапов */
@media (min-width: 961px) {
  .feature--person { align-items: stretch; }
  .feature--person .feature__media { display: flex; }
  .feature--person .feature__img { aspect-ratio: auto; flex: 1; min-height: 100%; }
}
/* заголовок и подводка не заходят на знак логотипа */
@media (min-width: 861px) {
  .intro h1 { font-size: clamp(34px, 3.4vw, 48px); max-width: calc(100% - clamp(200px, 20vw, 290px)); }
  .intro .lead { max-width: min(62ch, calc(100% - clamp(200px, 20vw, 290px))); }
}

/* крупные цифры: от верхнего поля карточки до нижнего края; размер подгоняет скрипт */
.task, .steps__item { --num-col: clamp(96px, 9vw, 136px); position: relative; grid-template-columns: var(--num-col) minmax(0, 1fr); grid-template-rows: auto; align-content: start; }
.task > :not(.task__num), .steps__item > :not(.steps__icon) { grid-column: 2; }
.task__num, .steps__icon {
  position: absolute; left: var(--pad-card); top: 0; margin: 0;
  grid-row: auto; align-self: auto; min-width: 0;
  font-size: 120px; line-height: 1; letter-spacing: -.04em;
}
.tasks--3 .task__num { position: static; font-size: 72px; margin-bottom: 16px; }
@media (max-width: 760px) {
  .task, .steps__item { grid-template-columns: 1fr; }
  .task > :not(.task__num), .steps__item > :not(.steps__icon) { grid-column: 1; }
  .task__num, .steps__icon { position: static; font-size: 88px !important; line-height: .8; margin: -4px 0 18px; }
}

/* ── Карточка инженера: тёмный блок с сеткой, цифрами и цепочкой этапов ── */
.person-card {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(14px, 1.4vw, 20px);
  padding-right: clamp(28px, 4.4vw, 72px);
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, #0a3a66 0%, var(--brand-900) 60%);
  color: #fff; box-shadow: var(--shadow-lg);
}
.person-card::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(100deg, transparent 35%, #000 95%);
  mask-image: linear-gradient(100deg, transparent 35%, #000 95%);
}
.person-card::after {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  width: 560px; height: 560px; right: -200px; bottom: -260px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(42, 106, 158, .6), rgba(42, 106, 158, 0));
  animation: glow-drift 12s ease-in-out infinite alternate;
}
.person-card .feature__img { border-radius: calc(var(--r-xl) - 12px); box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.person-card .feature__body { padding-block: clamp(28px, 3.4vw, 56px); }
.person-card h2 { color: #fff; margin: 14px 0 24px; font-size: clamp(30px, 3vw, 44px); }
.person-card__tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
  font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--brand-100);
}
.person-card__tag::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #5fd08b; box-shadow: 0 0 0 4px rgba(95, 208, 139, .2); animation: art-pulse 2.4s ease-in-out infinite; }
.person-card .lead, .person-card .lead p { color: rgba(255, 255, 255, .8); }

.person-stats {
  list-style: none; margin: 32px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
}
.person-stats li {
  display: flex; flex-direction: column; gap: 6px;
  padding: 18px 20px; border-radius: var(--r-md);
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(6px);
  transition: background-color .3s ease, transform .3s ease;
}
.person-stats li:hover { background: rgba(255, 255, 255, .12); transform: translateY(-3px); }
.person-stats b { font-size: clamp(30px, 2.8vw, 40px); font-weight: 800; line-height: 1; letter-spacing: -.03em; color: #fff; }
.person-stats span { font-size: 14px; line-height: 1.4; color: rgba(255, 255, 255, .68); }

/* этапы — цепочка «таблеток» со стрелками */
.feature .person-flow, .section--paper .feature .person-flow {
  display: flex; flex-wrap: wrap; gap: 10px 8px; margin-top: 24px; counter-reset: ch;
}
.feature .person-flow li, .section--paper .feature .person-flow li {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 10px; border-radius: 999px;
  background: #fff; border: 0; color: var(--brand-900);
  font-size: 14.5px; font-weight: 700; line-height: 1.2;
}
.feature .person-flow li::before {
  position: static; display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; margin: 0; border-radius: 50%;
  background: var(--brand-100); border: 0; color: var(--brand-800); font-size: 12px;
}
.feature .person-flow li:not(:last-child)::after {
  content: '→'; position: static; display: inline; width: auto; height: auto; margin-left: 8px;
  background: none; color: var(--brand-300); font-weight: 800; transform: none;
}
.feature .person-flow li:hover::before { background: var(--brand-900); color: #fff; }

@media (max-width: 960px) {
  .person-card { padding: 12px 12px 28px; }
  .person-card .feature__body { padding: 8px 12px 0; }
}
@media (max-width: 760px) {
  .person-stats { grid-template-columns: 1fr; }
  .person-stats li { flex-direction: row; align-items: baseline; gap: 12px; }
  .person-stats b { min-width: 88px; }
  .feature .person-flow li:not(:last-child)::after { content: none; }
}

/* ── Подпись студии в шапке ─────────────────────────────────────────── */
.header__credit {
  display: inline-flex; flex-direction: column; align-items: flex-start; gap: 4px; flex: none;
  padding-left: 14px; border-left: 1px solid var(--line);
  font-size: 11px; font-weight: 600; line-height: 1; color: var(--ink-50); text-decoration: none; white-space: nowrap;
}
.header__credit img { height: 10px; width: auto; opacity: .6; transition: opacity .2s ease; }
.header__credit:hover { color: var(--ink); }
.header__credit:hover img { opacity: 1; }
@media (min-width: 1400px) {
  .header__inner { gap: 14px; }
  .header__nav .nav__link { padding-inline: 10px; }
  .header__contacts { gap: 16px; margin-left: 8px; }
}
@media (max-width: 1399px) { .header__credit { display: none; } }

/* ── Меню «Оборудование»: шире, строки двух колонок на одном уровне ─── */
.nav__menu { grid-template-columns: repeat(2, minmax(270px, max-content)); gap: 0 40px; padding: 26px 28px 22px; }
.nav__col { display: grid; grid-template-rows: auto 1fr; }
.nav__menu-title { white-space: nowrap; }
.nav__menu ul { display: grid; grid-auto-rows: 42px; }
.nav__menu a { display: flex; align-items: center; height: 100%; padding-block: 0; }
@media (max-width: 960px) {
  .nav__menu { grid-template-columns: 1fr; }
  .nav__menu ul { grid-auto-rows: auto; }
  .nav__menu a { padding-block: 9px; }
}

/* ── Форма: блок «свяжитесь сами» внизу, на уровне кнопки отправки ──── */
.formblock { align-items: stretch; }
.formblock__side { display: flex; flex-direction: column; }
.formblock__contact { margin-top: auto; padding-top: 32px; }
.formblock__or { margin: 0 0 14px; font-size: 14.5px; font-weight: 600; color: rgba(255, 255, 255, .64); }
.formblock__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.msgr {
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); color: #fff;
  transition: background-color .2s ease, transform .2s ease, border-color .2s ease;
}
.msgr:hover { transform: translateY(-2px); border-color: transparent; }
.msgr--telegram:hover { background: #2aabee; }
.msgr--vk:hover { background: #0077ff; }
.formblock .form { display: flex; flex-direction: column; }
@media (max-width: 960px) {
  .formblock__contact { padding-top: 24px; }
}

/* ── Прайс: карточки раскрываются и показывают модель ───────────────── */
@media (min-width: 1201px) {
  .pricenav { display: flex; gap: 10px; align-items: flex-start; height: 196px; }
  .pricenav__item, .intro .pricenav__item {
    position: relative; overflow: hidden; flex: 1 1 0; min-width: 0; height: 128px;
    justify-content: flex-end; padding: 16px 18px;
    transition: flex-grow .55s cubic-bezier(.2, .7, .2, 1), height .55s cubic-bezier(.2, .7, .2, 1), background-color .4s ease, color .4s ease, box-shadow .4s ease, border-color .4s ease;
  }
  .pricenav__item:hover, .intro .pricenav__item:hover {
    flex-grow: 2.1; height: 196px; transform: none;
    background: linear-gradient(150deg, var(--brand-700), var(--brand-900)); border-color: transparent;
    box-shadow: var(--shadow-lg); color: #fff;
  }
  .pricenav__img {
    position: absolute; right: 6px; top: 4px; width: 128px; height: 128px; object-fit: contain;
    opacity: 0; transform: translateY(30px) scale(.8) rotate(-6deg);
    transition: opacity .45s ease, transform .6s cubic-bezier(.2, .7, .2, 1);
    filter: drop-shadow(0 16px 18px rgba(0, 0, 0, .3)); pointer-events: none;
  }
  .pricenav__item:hover .pricenav__img { opacity: 1; transform: none; transition-delay: .08s; }
  .pricenav__title, .pricenav__price { position: relative; z-index: 1; }
  .pricenav__item:hover .pricenav__price { color: rgba(255, 255, 255, .72); }
  .pricenav__go {
    position: relative; z-index: 1; align-self: flex-start; margin-top: 0; max-height: 0; opacity: 0; overflow: hidden;
    padding: 0 12px; border-radius: 999px; background: #fff; color: var(--brand-900);
    font-size: 12.5px; font-weight: 700; line-height: 26px; white-space: nowrap;
    transition: opacity .35s ease, max-height .35s ease, margin-top .35s ease;
  }
  .pricenav__item:hover .pricenav__go { max-height: 26px; opacity: 1; margin-top: 10px; transition-delay: .12s; }
}
@media (max-width: 1200px) {
  .pricenav__img { display: none; }
  .pricenav__go { display: none; }
}

/* ── Прайс: подводка раздела — короткая в строку, длинная в две ─────── */
.pricesec .sec-head p { max-width: 94ch; }

.header__credit--menu { display: none !important; }
@media (max-width: 960px) { .header__credit--menu { display: inline-flex !important; flex-direction: row; align-items: center; gap: 8px; margin-top: 16px; padding: 0; border: 0; font-size: 13px; } .header__credit--menu img { height: 11px; } }

/* ── Таблицы моделей: цифры по центру, заголовки колонок в одну строку ─ */
.ptable th { white-space: nowrap; }
.ptable th:not(:first-child), .ptable td:not(:first-child) { text-align: center; }

/* ── Комплектация: 5 вертикальных плашек, примечание — последним рядом ─ */
.checklist--kit { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.checklist--kit li {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 18px;
  min-height: 132px; padding: 20px;
}
.checklist--kit li::before { flex: none; }
.checklist--kit .checklist__note, .section--paper .checklist--kit .checklist__note {
  grid-column: 1 / -1; min-height: 0; flex-direction: row; align-items: center; gap: 14px;
  background: var(--brand-900); color: #fff; border-color: transparent; font-weight: 600;
}
.checklist--kit .checklist__note::before {
  background: rgba(255, 255, 255, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none'%3E%3Ccircle cx='7' cy='7' r='6' stroke='%23fff' stroke-width='1.6'/%3E%3Cpath d='M7 6.2v3.6M7 4.2v.1' stroke='%23fff' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.checklist--kit .checklist__note:hover { transform: none; box-shadow: none; }
@media (max-width: 1100px) { .checklist--kit { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .checklist--kit { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .checklist--kit li { min-height: 112px; padding: 16px; }
}

/* ── Кнопка расчёта размером с плашку параметров ───────────────────── */
.btn--plate { display: flex; width: 100%; margin-top: 12px; min-height: 76px; border-radius: var(--r-md); font-size: 16.5px; }
.checklist--kit .checklist__note, .section--paper .checklist--kit .checklist__note { justify-content: flex-start; padding: 18px 22px; }

/* реальный проект на странице изделия: фото по высоте текста — от плашки до «Смотреть проект» */
@media (min-width: 961px) {
  .case--inline { align-items: stretch; }
  .case--inline .case__media { display: flex; flex-direction: column; }
  .case--inline .case__cover { position: relative; flex: 1; aspect-ratio: auto; min-height: 360px; }
  .case--inline .case__cover img { position: absolute; inset: 0; }
}

/* цифры полупрозрачные, чтобы не спорили с текстом */
.task__num, .steps__icon { color: var(--brand-600); opacity: .28; }
.task:hover .task__num, .steps__item:hover .steps__icon { color: var(--brand-600); opacity: .45; transform: none; }
@media (max-width: 760px) { .task__num, .steps__icon { opacity: .35; } }

/* ── Параметры для расчёта: колонки равной высоты, плашки выровнены по верху и низу ── */
.calc-split { align-items: stretch; }
.calc-col { display: flex; flex-direction: column; }
.calc-split .datalist, .calc-split .checklist { flex: 1; grid-auto-rows: 1fr; }
.calc-split .datalist li, .calc-split .checklist li { align-items: center; }
/* без доп. колонки — пункты в два столбика */
.datalist--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(var(--rows, 4), auto); grid-auto-flow: column; gap: 12px var(--gap); }
.calc-solo .btn--plate { width: calc((100% - var(--gap)) / 2); }
@media (max-width: 760px) {
  .datalist--2 { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; }
  .calc-solo .btn--plate { width: 100%; }
}

/* прайс: широкие модели в раскрытой карточке стоят выше, чтобы не заходить на название */
@media (min-width: 1201px) { .pricenav__img--wide { top: -30px; } }

/* ── Блок об инженере: крупный заголовок, цифры-карточки, цепочка этапов ── */
.pers .feature__media { position: relative; }
.pers__ask {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 52px; padding: 0 20px; border-radius: 999px;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); color: var(--brand-900);
  font-size: 15px; font-weight: 700; text-decoration: none; box-shadow: var(--shadow-md);
  transition: background-color .25s ease, color .25s ease, transform .25s ease;
}
.pers__ask:hover { background: var(--brand-900); color: #fff; transform: translateY(-2px); }
.pers__chip {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--brand-300); background: #fff;
  font-size: 12.5px; font-weight: 700; letter-spacing: .04em; color: var(--brand-800);
}
.pers__chip::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-600); }
.feature__body .pers__title { margin: 0 0 24px; font-size: clamp(32px, 3.6vw, 52px); line-height: 1.04; letter-spacing: -.03em; }
.pers__title span { display: block; color: var(--brand-300); }
.pers__lead { max-width: 58ch; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.55; font-weight: 600; color: var(--ink); }
.pers__text { max-width: 62ch; margin-top: 14px; font-size: 15.5px; line-height: 1.6; color: var(--ink-70); }
.pers__stats { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pers__stats li {
  position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: baseline; align-content: flex-start; gap: 0 6px;
  padding: 20px 18px 18px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.pers__stats li::after {
  content: ''; position: absolute; right: -26px; top: -26px; width: 84px; height: 84px; border-radius: 50%;
  border: 1px solid var(--brand-100); box-shadow: 0 0 0 14px rgba(220, 230, 238, .35); transition: transform .5s ease;
}
.pers__stats li:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand-300); }
.pers__stats li:hover::after { transform: scale(1.25); }
.pers__stats small { font-size: 14px; font-weight: 700; color: var(--brand-600); }
.pers__stats b { font-size: clamp(26px, 2.3vw, 34px); font-weight: 800; line-height: 1; letter-spacing: -.03em; color: var(--brand-600); white-space: nowrap; }
.pers__stats span { flex-basis: 100%; margin-top: 10px; font-size: 13px; line-height: 1.4; color: var(--ink-70); }
.pers__steps { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 0; counter-reset: ps; font-size: 14.5px; font-weight: 700; color: var(--ink); }
.pers__steps li { counter-increment: ps; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.pers__steps li::before { content: counter(ps, decimal-leading-zero); font-size: 12px; font-weight: 800; color: var(--brand-600); }
.pers__steps li:not(:last-child)::after { content: ''; width: clamp(16px, 2.4vw, 40px); height: 1.5px; margin: 0 12px 0 4px; background: linear-gradient(90deg, var(--brand-300), var(--line)); }
@media (max-width: 1200px) { .pers__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .pers__steps { flex-direction: column; align-items: flex-start; gap: 10px; }
  .pers__steps li:not(:last-child)::after { content: none; }
  .pers__ask { font-size: 14px; min-height: 48px; }
}
/* этапы в блоке инженера — одной строкой, линии между ними тянутся */
@media (min-width: 1201px), (min-width: 761px) and (max-width: 960px) {
  .pers__steps { flex-wrap: nowrap; gap: 0; font-size: clamp(12.5px, .95vw, 14.5px); }
  .pers__steps li { gap: 6px; }
  .pers__steps li:not(:last-child) { flex: 1 1 auto; }
  .pers__steps li:not(:last-child)::after { flex: 1 1 auto; width: auto; min-width: 10px; margin: 0 10px 0 4px; }
}
/* карточки цифр: без кружков, при наведении заливаются синим */
.pers__stats li::after { content: none; }
.pers__stats li { isolation: isolate; }
.pers__stats li::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(150deg, var(--brand-700), var(--brand-900));
  transform: translateY(101%); transition: transform .45s cubic-bezier(.2, .7, .2, 1);
}
.pers__stats li:hover { border-color: transparent; }
.pers__stats li:hover::before { transform: none; }
.pers__stats b, .pers__stats small, .pers__stats span { transition: color .3s ease; }
.pers__stats li:hover b, .pers__stats li:hover small { color: #fff; }
.pers__stats li:hover span { color: rgba(255, 255, 255, .78); }
/* в блоках с двумя столбиками кнопка расчёта — на всю ширину */
.calc-solo .btn--plate { width: 100%; }

/* при нечётном числе пунктов кнопка расчёта занимает свободную ячейку правого столбика */
.datalist .datalist__cta, .datalist .datalist__cta:hover { padding: 0; border: 0; background: none; display: block; transform: none; box-shadow: none; counter-increment: none; }
.datalist .datalist__cta::before { content: none; }
.datalist__cta .btn--plate { margin: 0; height: 100%; min-height: 0; }

/* ── Телефон и планшет ─────────────────────────────────────────────── */
@media (max-width: 960px) {
  /* размытие фона у шапки делает её «рамкой» для выпадающего меню и обрезает его — на мобильных отключаем */
  .header, .header.is-scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .header__contacts { margin-left: auto; }
  /* форма: блок «Или свяжитесь с нами сами» уходит под форму, соцсети — под кнопку телефона */
  .formblock { gap: 0; }
  .formblock__side { display: contents; }
  .formblock .form { order: 1; margin-top: 32px; }
  .formblock__contact { order: 2; margin-top: 32px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .14); }
  .formblock__actions .btn { width: 100%; }
}
@media (max-width: 760px) {
  .pers__steps { display: none; }
}

/* комплектация на узких телефонах: шрифт меньше, длинные слова переносятся по слогам */
@media (max-width: 760px) {
  .checklist--kit li { font-size: 15px; line-height: 1.35; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: anywhere; }
}
@media (max-width: 420px) {
  .checklist--kit { gap: 8px; }
  .checklist--kit li { font-size: 13.5px; padding: 14px 12px; min-height: 104px; gap: 12px; }
  .checklist--kit li::before { width: 26px; height: 26px; }
  .checklist--kit .checklist__note, .section--paper .checklist--kit .checklist__note { font-size: 14px; padding: 14px; min-height: 0; }
}
@media (max-width: 760px) {
  .checklist--kit li { overflow-wrap: break-word; }
  .checklist--kit .checklist__note { hyphens: manual; -webkit-hyphens: manual; }
}
@media (max-width: 420px) {
  .checklist--kit li { font-size: 13px; padding: 14px 10px; letter-spacing: -.01em; }
}

/* ── Мобильная версия: контент не выходит за рамки, кнопки нормальной высоты ── */
.pagehero__content, .feature__body, .formblock > *, .split > *, .case > * { min-width: 0; }
@media (max-width: 960px) {
  .pagehero__box { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .btn { white-space: normal; }
  .pagehero__cta .btn, .hero__cta .btn, .actions .btn { padding: 12px 20px; }
  .formblock__or { font-size: 14px; white-space: nowrap; }
  /* кнопка расчёта внутри списка параметров */
  .datalist__cta .btn--plate { height: auto; min-height: 64px; }
  .btn--plate { min-height: 64px; }
}
@media (max-width: 359px) {
  .formblock__or { white-space: normal; }
  .dark { padding: 28px 22px; }
}

/* ── Таблицы: подсветка строки под курсором и выбранной нажатием ───── */
.ptable tbody tr { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ptable tbody td { transition: background-color .18s ease, color .18s ease; }
@media (hover: hover) { .ptable tbody tr:hover td { background: var(--paper); } }
.ptable tbody tr.is-picked td { background: var(--brand-100); color: var(--brand-900); }
.ptable tbody tr.is-picked td:first-child { box-shadow: inset 4px 0 0 var(--brand-600); }

.cookie p a { color: var(--brand-800); }

/* ── Документы для скачивания ───────────────────────────────────────── */
.docs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.doc {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line);
  text-decoration: none; color: var(--ink); max-width: 720px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
a.doc.mt-24 { display: flex; }
.doc:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--brand-300); }
.section--paper .doc { border-color: transparent; box-shadow: var(--shadow-sm); }
.doc__ic { flex: none; width: 48px; height: 56px; border-radius: 8px; display: grid; place-items: center; background: var(--brand-900); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .06em; position: relative; }
.doc__ic::after { content: ''; position: absolute; top: 0; right: 0; border-style: solid; border-width: 0 12px 12px 0; border-color: #fff #fff var(--brand-600) var(--brand-600); border-top-right-radius: 8px; }
.doc__body { display: grid; gap: 3px; min-width: 0; flex: 1; }
.doc__body b { font-size: 16px; font-weight: 700; line-height: 1.3; }
.doc__body span { font-size: 13.5px; color: var(--ink-50); line-height: 1.4; }
.doc > svg { flex: none; color: var(--brand-600); transition: transform .25s ease; }
.doc:hover > svg { transform: translateX(4px); }
@media (max-width: 1100px) { .docs { grid-template-columns: 1fr; } }

/* ── Юридические страницы: текст на всю ширину, меньше пустоты сверху ── */
.legal { padding-top: clamp(32px, 4vw, 56px); }
.legal .article-head, .legal .prose { max-width: none; }
.legal .article-head h1 { font-size: clamp(30px, 3.2vw, 44px); }
.legal .prose { margin-top: clamp(28px, 3vw, 40px); }
.legal .prose p, .legal .prose ul li { font-size: 16.5px; line-height: 1.7; }
.legal .prose h2 { margin-top: 44px; }

/* заголовок группы в меню «Оборудование» — ссылка на раздел */
a.nav__menu-title { display: block; text-decoration: none; transition: color .16s ease; }
a.nav__menu-title:hover, a.nav__menu-title[aria-current='page'] { color: var(--brand-600); }

/* ── Страница проекта /raboty/<id>/ ───────────────────────────────────── */
.case__title-link { color: inherit; text-decoration: none; }
.case__title-link:hover { color: var(--brand-700); }
.case__cover { display: block; }
.case-page { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.case-page__cover { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; position: sticky; top: calc(var(--header-h) + 24px); }
.case-page__cover img { width: 100%; height: 100%; object-fit: cover; }
.case-page__facts { margin-top: 0; }
.case-page__facts li { grid-template-columns: 1fr; gap: 6px; }
.intro--case .project__tags { margin-bottom: 16px; }
.case-page__actions { margin-top: 40px; }
.gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.gal__item { display: block; border-radius: var(--r-sm); overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper); cursor: zoom-in; }
.gal__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gal__item:hover img { transform: scale(1.04); }
.projects--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.projects--4 .project { flex-direction: row; }
.projects--4 .project__media { flex: 0 0 38%; aspect-ratio: auto; min-height: 100%; }
.projects--4 .project__body { padding: 24px; }
.projects--4 .project h3 { font-size: 20px; }
.lbox { position: fixed; inset: 0; z-index: 1000; background: rgba(5, 18, 34, .92); display: flex; align-items: center; justify-content: center; padding: 56px 16px; }
.lbox[hidden] { display: none; }
.lbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.lbox__btn { position: absolute; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.lbox__btn:hover { background: rgba(255, 255, 255, .24); }
.lbox__close { top: 16px; right: 16px; }
.lbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 1100px) { .projects--4 { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .case-page { grid-template-columns: 1fr; }
  .case-page__cover { position: static; }
}
@media (max-width: 640px) {
  .intro--case h1 { font-size: 28px; }
  .projects--4 .project { flex-direction: column; }
  .projects--4 .project__media { aspect-ratio: 4 / 3; }
  .gal { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .lbox__prev, .lbox__next { top: auto; bottom: 16px; transform: none; }
}

/* ── Посадочные страницы, вопросы и ответы, кейс без фото ─────────────── */
.seealso { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.seealso__title { margin: clamp(48px, 5vw, 72px) 0 24px; font-size: clamp(22px, 2vw, 28px); }
.seealso__item {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 24px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line);
  color: var(--ink); font-weight: 700; font-size: 16.5px; line-height: 1.35; text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.seealso__item svg { flex: none; color: var(--brand-600); transition: transform .25s ease; }
.seealso__item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--brand-300); }
.seealso__item:hover svg { transform: translateX(4px); }
.section--paper .seealso__item { border-color: transparent; box-shadow: var(--shadow-sm); }

.faq { display: grid; gap: 12px; max-width: 920px; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); }
.section--paper .faq__item { border-color: transparent; box-shadow: var(--shadow-sm); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 24px; cursor: pointer; list-style: none;
  font-weight: 700; font-size: 17.5px; line-height: 1.35; color: var(--ink);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ''; flex: none; width: 10px; height: 10px; margin-right: 4px;
  border-right: 2px solid var(--brand-600); border-bottom: 2px solid var(--brand-600);
  transform: rotate(45deg) translateY(-3px); transition: transform .25s ease;
}
.faq__item[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq__item summary:hover { color: var(--brand-700); }
.faq__body { padding: 0 24px 24px; display: grid; gap: 14px; justify-items: start; }
.faq__body p { color: var(--ink-70); font-size: 16.5px; max-width: 68ch; }

.dark__list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.dark__list li { position: relative; padding-left: 26px; color: rgba(255, 255, 255, .86); font-size: 16.5px; line-height: 1.5; }
.dark__list li::before { content: ''; position: absolute; left: 0; top: .62em; width: 12px; height: 2px; background: var(--brand-300); }

.case:nth-child(even) .case__plate { order: 2; }
.case__plate {
  display: flex; flex-direction: column; justify-content: flex-end; gap: 16px;
  aspect-ratio: 4 / 3; padding: clamp(28px, 3.4vw, 48px); border-radius: var(--r-lg);
  background: var(--brand-900); color: #fff; text-decoration: none;
  position: sticky; top: calc(var(--header-h) + 24px);
}
.case__plate-label { font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--brand-300); }
.case__plate-text { font-size: clamp(20px, 1.9vw, 27px); font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.case-page:has(.case-page__facts--solo) { grid-template-columns: minmax(0, 1fr); max-width: 920px; }
.case-page__actions--solo { margin-top: 0; }

@media (max-width: 960px) {
  .seealso { grid-template-columns: 1fr; }
  .case__plate, .case:nth-child(even) .case__plate { order: 0; position: static; aspect-ratio: auto; min-height: 220px; }
}
@media (max-width: 760px) {
  .faq__item summary { padding: 18px 18px; font-size: 16.5px; }
  .faq__body { padding: 0 18px 20px; }
}
