/* ШЗА — сайт, версия v3 (основная с 19.11.2026).
   Раскладка блоков, анимации и общий вид — по образцу needboost.ru (тёмный тёплый фон, Montserrat,
   карточки с белой рамкой и скруглением 20px, фото-«окна» на всю ширину, ленты карточек).
   Тексты, фото и ролики — ШЗА. */

:root {
  --bg: #211e1c;              /* основной фон — как у needboost */
  --bg-deep: #000;            /* под фото и роликами */
  --fg: #fff;
  --fg-2: rgba(255, 255, 255, .72);
  --fg-3: rgba(255, 255, 255, .5);
  --line: #fff;               /* рамки карточек */
  --accent: #1f74c4;          /* фирменный синий ШЗА, чуть светлее логотипа — чтобы читался на тёмном */
  --accent-2: #2b86db;
  --ink: #111;                /* текст на белых карточках */
  --ease: cubic-bezier(.19, 1, .22, 1);   /* та же кривая, что у анимаций Тильды */
  --hdr: 85px;
  --wrap: 1200px;
  --pad: 20px;
  --font: 'Montserrat', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--hdr);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 18px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }

img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
main:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }
::selection { background: var(--accent); color: #fff; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--pad) * 2);
  margin-inline: auto;
  padding-inline: var(--pad);
}

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

.skip {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px;
  background: #fff; color: #000;
  font-weight: 600; text-decoration: none;
  border-radius: 8px;
  transition: top .2s;
}
.skip:focus { top: 12px; }


/* ══════════════ ШАПКА ══════════════ */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--hdr);
  background: var(--bg);
}
.hdr__in {
  height: 100%;
  display: flex; align-items: center;
}
.hdr__logo img { width: auto; height: 46px; }

.nav { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 36px); margin-left: auto; }

/* корзина в шапке */
.hdr__cart {
  position: relative; flex: none;
  width: 44px; height: 44px; margin-left: 22px;
  display: grid; place-items: center;
  color: #fff;
  transition: opacity .2s;
}
.hdr__cart:hover { opacity: .7; }
.hdr__cart svg {
  width: 26px; height: 26px;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.hdr__cart-count {
  position: absolute; top: 1px; right: -2px;
  min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 10px;
  background: var(--accent); color: #fff;
  font-size: 12px; font-weight: 700; line-height: 20px; text-align: center;
}
.hdr__cart.is-bump .hdr__cart-count { animation: bump .45s var(--ease); }
@keyframes bump {
  40% { transform: scale(1.4); }
}

/* поле-ловушка для ботов: людям не видно */
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.nav a {
  font-size: 20px;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity .2s;
}
.nav a:hover,
.nav a.is-active { opacity: .7; }

.burger {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  margin-right: -8px; padding: 0;
  background: none; border: 0; cursor: pointer;
}
.burger span {
  position: absolute; left: 8px; right: 8px;
  height: 2px; background: #fff;
  transition: transform .4s var(--ease), opacity .2s;
}
.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 28px; }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mnav {
  position: fixed; inset: var(--hdr) 0 0; z-index: 49;
  display: flex; flex-direction: column; gap: 4px;
  padding: 28px var(--pad) 40px;
  background: var(--bg);
  overflow-y: auto;
  visibility: hidden; opacity: 0;
  transition: opacity .35s var(--ease), visibility 0s .35s;
}
.mnav.is-open { visibility: visible; opacity: 1; transition: opacity .35s var(--ease); }
.mnav > a {
  padding: 8px 0;
  font-size: 26px; font-weight: 500;
  text-decoration: none;
  opacity: 0; transform: translateX(-40px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  transition-delay: calc(var(--i) * 60ms);
}
.mnav.is-open > a { opacity: 1; transform: none; }
.mnav__contacts {
  margin-top: auto; padding-top: 32px;
  display: grid; gap: 8px;
  font-size: 18px; color: var(--fg-2);
}
.mnav__contacts a { text-decoration: none; }
body.menu-open { overflow: hidden; }


/* ══════════════ «ОКНА»: фото и ролики на всю ширину ══════════════
   Картинка закреплена относительно экрана (position: fixed), а сам блок вырезает из неё
   своё окно (clip-path) — так страница «проезжает» над неподвижным фоном. */
.cover {
  position: relative;
  height: 80vh; min-height: 420px;
  background: var(--bg-deep);
  clip-path: inset(0);
}
.cover__media {
  position: fixed; left: 0; top: 0; z-index: 0;
  width: 100%; height: 100vh;
  pointer-events: none;
}
@supports (height: 100lvh) { .cover__media { height: 100lvh; } }
.cover__media picture,
.cover__media img { width: 100%; height: 100%; }
.cover__media img { object-fit: cover; }
.cover__veil {
  position: absolute; inset: 0; z-index: 1;
  background: rgba(0, 0, 0, var(--veil, .6));
}
/* ролик в окне грузится, только когда до окна недалеко, и не рисуется, когда окно далеко */
.js .cover--lazy:not(.was-near) .cover__media { display: none; }
.js .cover.is-far .cover__media { visibility: hidden; }

.cover__arrow {
  position: absolute; left: 50%; bottom: 26px; z-index: 3;
  width: 64px; height: 44px; margin-left: -32px;
  display: grid; place-items: center;
}
.cover__arrow svg {
  width: 38px; height: 19px;
  fill: none; stroke: #fff; stroke-width: 2;
  animation: arrow-bounce 1.7s infinite;
}
@keyframes arrow-bounce {
  0%, 55%, 70%, 80%, 100% { transform: translateY(0); }
  65%, 75% { transform: translateY(-7px); }
}

/* главный экран */
.cover--hero { height: 85vh; min-height: 560px; }
.cover--hero .cover__media img { object-position: 50% 50%; }
.hero {
  position: relative; z-index: 2;
  height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding-top: var(--hdr); padding-bottom: 40px;
  text-align: center;
}
.hero__title {
  max-width: 980px;
  font-size: 48px; line-height: 1.23; font-weight: 600;
  text-wrap: balance;          /* строки заголовка примерно равной длины, без одиноких слов */
  color: rgba(255, 255, 255, .92);
}
.hero__title > span:not(.nowrap) {
  display: block;
  margin-top: 8px;
  font-size: 30px; line-height: 1.3;
  color: #fff;
}
.hero__line {
  width: 140px; height: 1px;
  margin: 40px auto;
  border: 0; background: #fff;
}
.hero__descr { font-size: 24px; line-height: 1.55; font-weight: 600; letter-spacing: .01em; }

.cover--drawing { background: #171512; }


/* ══════════════ СЕКЦИИ ══════════════ */
.sec { padding: 105px 0; }
.sec__title {
  margin-bottom: 90px;
  font-size: 38px; line-height: 1.23;
  text-align: center;
}
.sec__sub {
  max-width: 780px;
  margin: -62px auto 80px;
  font-size: 20px; line-height: 1.55;
  text-align: center;
  color: var(--fg-2);
}
.sec__sub a { color: #fff; }

/* о заводе: список слева, чертёж справа */
.about { padding: 90px 0 105px; }
.about__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  align-items: center;
}
.bullets {
  display: grid; gap: 10px;
  padding-left: 1.15em;
  list-style: disc;
  font-size: 20px; line-height: 1.55;
}
.about__img { margin: 0; }
.about__img img { width: 100%; height: auto; }

/* как мы работаем: карточки с номером в кружке на рамке */
.steps {
  list-style: none;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.step { position: relative; padding-top: 36px; }
.step__num {
  position: absolute; top: 0; left: 50%; z-index: 1;
  width: 72px; height: 72px; margin-left: -36px;
  display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%;
  background: var(--bg);
  font-size: 18px; font-weight: 600;
}
.step__box {
  height: 100%;
  display: flex; flex-direction: column; align-items: center;
  padding: 60px 24px 40px;
  border: 1px solid var(--line); border-radius: 20px;
  text-align: center;
}
.step h3 { margin-bottom: 16px; font-size: 24px; line-height: 1.25; }
.step p { margin-bottom: 32px; font-size: 18px; line-height: 1.5; }
.step__icon {
  width: 64px; height: 64px; margin-top: auto;
  fill: none; stroke: #fff; stroke-width: 1.5;
  stroke-linejoin: round; stroke-linecap: round;
}

/* что мы изготавливаем: карточки с просветом в верхней рамке */
.variants { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.variant { padding-top: 36px; }
.variant__box {
  position: relative;
  height: 100%;
  display: flex; flex-direction: column; align-items: center;
  padding: 53px 30px 40px;
  border: 1px solid var(--line); border-radius: 20px;
  text-align: center;
}
.variant__box::before {
  content: '';
  position: absolute; top: -1px; left: 50%;
  width: 72px; height: 1px; margin-left: -36px;
  background: var(--bg);
}
.variant h3 { margin-bottom: 16px; font-size: 26px; line-height: 1.25; }
.variant p { margin-bottom: 32px; font-size: 18px; line-height: 1.5; }
.plate {
  margin-top: auto;
  width: 150px; height: 150px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #fff;
  overflow: hidden;
}
.plate img { width: 76%; height: 62%; object-fit: contain; }
.plate--drawing img { width: 72%; height: 72%; }

/* покрытия: белые круги */
.coats { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.coat { display: flex; flex-direction: column; align-items: center; text-align: center; }
.coat__disc {
  width: 160px; height: 160px;
  margin-bottom: 24px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #fff; color: var(--bg);
  font-size: 56px; font-weight: 700; line-height: 1; letter-spacing: -.01em;
  transition: transform .5s var(--ease);
}
.coat__disc--sm { font-size: 28px; line-height: 1.1; }
.coat:hover .coat__disc { transform: scale(1.05); }
.coat__name { font-size: 18px; }

/* ленты карточек */
.sec--slider { padding: 70px 0 40px; }
.sec--slider + .sec--slider { padding-top: 50px; }
.sec__title--slider { margin-bottom: 14px; }
.swipe { height: 44px; display: flex; align-items: center; padding-left: 44px; }
.swipe svg { width: 34px; height: 34px; fill: rgba(255, 255, 255, .5); animation: swipe 2s linear infinite; }
@keyframes swipe {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-40px); }
}

.slider {
  position: relative;
  max-width: calc(var(--wrap) + var(--pad) * 2);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.slider__track {
  display: flex; gap: 20px;
  padding: 10px 0 30px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__track.is-drag { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.slider__track.is-drag .pcard { pointer-events: none; }

.pcard {
  flex: 0 0 calc((100% - 60px) / 4);
  min-height: 470px;
  display: flex; flex-direction: column;
  scroll-snap-align: start;
  background: #fff; color: var(--ink);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
}
.pcard__img {
  aspect-ratio: 5 / 4;
  display: grid; place-items: center;
  padding: 22px;
  overflow: hidden;
}
.pcard__img img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s; -webkit-user-drag: none; }
.pcard:hover .pcard__img img { transform: scale(1.08); }
.pcard__body { flex: 1; display: flex; flex-direction: column; padding: 0 20px 18px; }
.pcard__title { margin-bottom: 10px; font-size: 15px; font-weight: 600; line-height: 1.35; }
.pcard__descr { font-size: 15px; font-weight: 300; line-height: 1.6; color: rgba(0, 0, 0, .9); }
.pcard__more {
  margin-top: auto; padding-top: 16px;
  font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(0, 0, 0, .5);
  transition: color .2s;
}
.pcard:hover .pcard__more { color: var(--accent); }

.pcard--cta { background: transparent; color: #fff; border: 1px solid var(--line); }
.pcard--cta .pcard__body { padding: 32px 24px 22px; }
.pcard__big { margin-bottom: 14px; font-size: 22px; font-weight: 600; line-height: 1.3; }
.pcard--cta .pcard__descr { font-weight: 400; color: var(--fg-2); }
.pcard--cta .pcard__more { color: var(--fg-3); }
.pcard--cta:hover .pcard__more { color: #fff; }

.slider__arrow {
  position: absolute; top: calc(50% - 10px); z-index: 2;
  width: 40px; height: 40px; margin-top: -20px; padding: 0;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: #000; color: #fff;
  cursor: pointer;
  transition: background-color .2s;
}
.slider__arrow:hover { background: #3a3633; }
.slider__arrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.slider__arrow--prev { left: 0; }
.slider__arrow--next { right: 0; }
.slider__arrow[hidden] { display: none; }

/* металлы: плитки, как логотипы партнёров у needboost — белые и чёрные квадраты */
.tiles {
  list-style: none;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 20px;
  max-width: 1120px; margin: 0 auto;
}
.tile {
  width: 170px; height: 170px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 12px;
  background: #fff; color: var(--bg);
  text-align: center;
}
.tile b { font-size: 22px; font-weight: 700; line-height: 1.1; letter-spacing: -.01em; }
.tile span { font-size: 12px; line-height: 1.3; opacity: .7; }
.tile--dark { background: #000; color: #fff; }
.tiles--logos .tile img { max-width: 100%; max-height: 80px; object-fit: contain; }

/* контакты */
.contact {
  display: grid; grid-template-columns: 5fr 7fr; gap: 48px;
  align-items: start;
}
.contact__info { margin: 0; display: grid; gap: 26px; }
.contact__info dt {
  margin-bottom: 6px;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--fg-3);
}
.contact__info dd { margin: 0; font-size: 18px; line-height: 1.55; }
.contact__info .big {
  display: inline-block;
  font-size: 26px; font-weight: 600; line-height: 1.3;
  text-decoration: none;
  transition: opacity .2s;
}
.contact__info .big:hover { opacity: .7; }
.contact__info small { display: block; margin-top: 2px; font-size: 15px; color: var(--fg-2); }

.form {
  display: grid; gap: 18px;
  padding: 40px;
  border: 1px solid var(--line); border-radius: 20px;
}
.form__title { margin-bottom: 4px; font-size: 26px; line-height: 1.25; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field > span { font-size: 14px; color: var(--fg-2); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 15px 18px;
  font: 400 16px/1.4 var(--font);
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .4); border-radius: 12px;
  transition: border-color .2s;
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(255, 255, 255, .35); }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: #fff; }
.field select {
  appearance: none; -webkit-appearance: none;
  padding-right: 46px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 6l5 5 5-5' fill='none' stroke='white' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat right 18px center / 16px;
  cursor: pointer;
}
.field select option { background: var(--bg); color: #fff; }
.field textarea { min-height: 124px; resize: vertical; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 58px; padding: 0 30px;
  border: 1px solid transparent; border-radius: 12px;
  background: var(--accent); color: #fff;
  font: 600 16px var(--font);
  text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--accent-2); }
.btn:disabled { opacity: .6; cursor: default; }
.btn--line { background: transparent; border-color: #fff; }
.btn--line:hover { background: #fff; color: var(--bg); }
.btn--block { width: 100%; }
.form__msg { padding: 14px 18px; border-radius: 12px; font-size: 16px; }
.form__msg.ok { background: rgba(60, 170, 100, .15); color: #9be3b4; }
.form__msg.err { background: rgba(220, 80, 60, .15); color: #ffb4a6; }


/* ══════════════ ПОДВАЛ ══════════════ */
.ftr {
  padding: 40px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, .15);
  font-size: 13px; line-height: 1.6;
  color: var(--fg-2);
}
.ftr__in { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px 40px; }
.ftr__brand { display: flex; align-items: center; gap: 20px; }
.ftr__brand img { width: auto; height: 36px; }
.ftr__nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; font-size: 14px; }
.ftr__nav a { color: #fff; text-decoration: none; transition: opacity .2s; }
.ftr__nav a:hover { opacity: .7; }
.ftr__contacts { display: grid; gap: 2px; text-align: right; }
.ftr__contacts a { color: #fff; text-decoration: none; }
.ftr__contacts a:hover { opacity: .7; }
.ftr__bottom { margin-top: 24px; font-size: 12px; color: var(--fg-3); }
/* пока край содержимого близко к правому краю экрана, контакты в подвале отодвинуты от кнопки связи */
@media (max-width: 1380px) { .ftr__in { padding-right: 104px; } }


/* ══════════════ ЧАТ ══════════════ */
.chat { position: fixed; right: 24px; bottom: 24px; z-index: 60; }
.chat__btn {
  position: relative;
  width: 60px; height: 60px; padding: 0;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: var(--accent); color: #fff;
  box-shadow: 0 0 20px rgba(0, 0, 0, .3);
  cursor: pointer;
  transition: transform .2s, background-color .2s;
}
.chat__btn:hover { transform: scale(1.06); background: var(--accent-2); }
.chat__ico {
  position: absolute;
  width: 32px; height: 32px;
  fill: none; stroke: #fff; stroke-width: 1.8; stroke-linejoin: round;
  transition: opacity .2s, transform .35s var(--ease);
}
.chat__ico--close { opacity: 0; transform: rotate(-90deg); }
.chat.is-open .chat__ico--open { opacity: 0; transform: rotate(90deg); }
.chat.is-open .chat__ico--close { opacity: 1; transform: none; }

.chat__panel {
  position: absolute; right: 0; bottom: 76px;
  width: 360px; height: min(560px, calc(100vh - 150px));
  display: flex; flex-direction: column;
  background: #fff; color: var(--ink);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .4);
  visibility: hidden; opacity: 0; transform: translateY(12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s;
}
.chat.is-open .chat__panel {
  visibility: visible; opacity: 1; transform: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.chat__head {
  flex: none;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 8px 12px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}
.chat__avatar {
  flex: none;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--bg); color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: .03em;
}
.chat__who { display: grid; line-height: 1.3; }
.chat__who b { font-size: 16px; font-weight: 600; }
.chat__who small { font-size: 12px; color: rgba(0, 0, 0, .5); }
.chat__x {
  margin-left: auto;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: transparent; color: rgba(0, 0, 0, .45);
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.chat__x:hover { background: rgba(0, 0, 0, .05); color: #000; }
.chat__x svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

.chat__log {
  flex: 1; min-height: 0;
  display: flex; flex-direction: column; gap: 8px;
  padding: 16px 14px;
  overflow-y: auto; overscroll-behavior: contain;
  background: #f4f3f1;
}
.msg { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.45; }
.msg p { white-space: pre-wrap; overflow-wrap: anywhere; }
.msg--bot { align-self: flex-start; background: #fff; border: 1px solid rgba(0, 0, 0, .06); border-bottom-left-radius: 6px; }
.msg--me { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 6px; }
.msg__st { display: block; margin-top: 4px; font-size: 11px; opacity: .85; text-align: right; }
.msg__retry { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
.msg--typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.msg--typing i { width: 7px; height: 7px; border-radius: 50%; background: rgba(0, 0, 0, .35); animation: typing 1s infinite; }
.msg--typing i:nth-child(2) { animation-delay: .15s; }
.msg--typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing {
  0%, 60%, 100% { transform: none; opacity: .5; }
  30% { transform: translateY(-4px); opacity: 1; }
}
.chat__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chat__chip {
  padding: 7px 12px;
  border: 1px solid var(--accent); border-radius: 16px;
  background: #fff; color: var(--accent);
  font: 500 13px var(--font);
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.chat__chip:hover { background: var(--accent); color: #fff; }
.chat-contact {
  align-self: stretch;
  display: grid; gap: 8px;
  padding: 12px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .08); border-radius: 14px;
}
.chat-contact input {
  width: 100%; height: 42px; padding: 0 12px;
  border: 1px solid rgba(0, 0, 0, .18); border-radius: 10px;
  background: #fff; color: var(--ink);
  font: 400 15px var(--font);
}
.chat-contact input:focus { outline: none; border-color: var(--accent); }
.chat-contact button {
  height: 42px;
  border: 0; border-radius: 10px;
  background: var(--accent); color: #fff;
  font: 600 14px var(--font);
  cursor: pointer;
}
.chat-contact button:hover { background: var(--accent-2); }
.chat-contact__err { font-size: 12.5px; color: #c0402c; }

.chat__form {
  flex: none;
  display: flex; align-items: flex-end; gap: 8px;
  padding: 10px 10px 10px 14px;
  border-top: 1px solid rgba(0, 0, 0, .08);
  background: #fff;
}
.chat__input {
  flex: 1;
  min-height: 42px; max-height: 120px;
  padding: 10px 12px;
  border: 1px solid rgba(0, 0, 0, .15); border-radius: 12px;
  background: #fff; color: var(--ink);
  font: 400 15px/1.4 var(--font);
  resize: none;
}
.chat__input:focus { outline: none; border-color: var(--accent); }
.chat__send {
  flex: none;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: var(--accent); color: #fff;
  cursor: pointer;
  transition: background-color .2s;
}
.chat__send:hover { background: var(--accent-2); }
.chat__send svg { width: 18px; height: 18px; fill: currentColor; }
.chat__alt { flex: none; padding: 0 14px 12px; background: #fff; font-size: 12px; text-align: center; color: rgba(0, 0, 0, .5); }
.chat__alt a { color: inherit; text-decoration: none; }
.chat__alt a:hover { color: var(--accent); }

/* приветствие у кнопки */
.chat__hint {
  position: absolute; right: 0; bottom: 76px;
  width: 270px;
  padding: 14px 36px 14px 16px;
  background: #fff; color: var(--ink);
  border-radius: 16px 16px 6px 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  font-size: 14px; line-height: 1.45;
  cursor: pointer;
}
.chat__hint:not([hidden]) { animation: hint-in .5s var(--ease) both; }
.chat.is-open .chat__hint { display: none; }
.chat__hint-x {
  position: absolute; top: 6px; right: 6px;
  width: 28px; height: 28px;
  border: 0; background: none;
  color: rgba(0, 0, 0, .4); font-size: 20px; line-height: 1;
  cursor: pointer;
}
@keyframes hint-in {
  from { opacity: 0; transform: translateY(10px) scale(.96); }
  to { opacity: 1; transform: none; }
}

/* ══════════════ КОРЗИНА ══════════════ */
.part-add {
  display: inline-flex; align-items: center; gap: 7px;
  height: 36px; padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, .55); border-radius: 18px;
  background: transparent; color: #fff;
  font: 600 13px var(--font); white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.part-add::before { content: '+'; font-size: 17px; font-weight: 500; line-height: 1; }
.part-add:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.part-add.is-in { border-color: #fff; background: #fff; color: var(--bg); }
.part-add.is-in::before { content: '✓'; font-size: 13px; }
.cat-tip { margin: -10px 0 22px; font-size: 15px; color: var(--fg-2); }
.cat-tip a { color: #fff; }
.cat-side__count {
  min-width: 22px; height: 22px; padding: 0 7px;
  border-radius: 11px;
  background: #fff; color: var(--accent);
  font-size: 12px; font-weight: 700; line-height: 22px;
}

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 70;
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px;
  max-width: min(560px, calc(100vw - 140px));
  padding: 14px 20px;
  background: #fff; color: var(--ink);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .4);
  font-size: 14px; line-height: 1.4;
  opacity: 0; visibility: hidden; transform: translate(-50%, 16px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s;
}
.toast.is-on {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.toast__link { color: var(--accent); font-weight: 600; text-decoration: none; white-space: nowrap; }
.toast__link:hover { text-decoration: underline; }

.sec--cart { padding-top: 70px; }
.cart { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: start; }
.cart__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 20px; }
.cart__head h2 { font-size: 32px; line-height: 1.2; }
.cart__empty {
  padding: 56px 24px;
  border: 1px dashed rgba(255, 255, 255, .35); border-radius: 20px;
  text-align: center; color: var(--fg-2);
}
.cart__empty p { margin-bottom: 22px; font-size: 18px; }
.cart__list { list-style: none; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.cart-item {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px 18px;
  padding: 14px 12px 14px 20px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.cart-item:first-child { border-top: 0; }
.cart-item__type { display: block; font-size: 13px; color: var(--fg-3); }
.cart-item__code { display: block; font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.qty { display: inline-flex; align-items: center; gap: 6px; }
.qty__btn {
  width: 34px; height: 34px; padding: 0;
  border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%;
  background: transparent; color: #fff;
  font: 500 18px/1 var(--font);
  cursor: pointer;
  transition: border-color .2s;
}
.qty__btn:hover { border-color: #fff; }
.qty__input {
  width: 92px; height: 38px; padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, .4); border-radius: 10px;
  background: transparent; color: #fff;
  font: 600 16px var(--font); text-align: center;
  -moz-appearance: textfield; appearance: textfield;
}
.qty__input::-webkit-outer-spin-button,
.qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty__input:focus { outline: none; border-color: #fff; }
.qty__unit { margin-left: 2px; font-size: 14px; color: var(--fg-2); }
.cart-item__del {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: transparent; color: var(--fg-3);
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.cart-item__del:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.cart-item__del svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.cart__add { margin-top: 24px; }
.cart__add-label { display: block; margin-bottom: 8px; font-size: 14px; color: var(--fg-2); }
.cart__add-row { display: flex; gap: 10px; }
.cart__add-row input {
  flex: 1; min-width: 0; height: 52px; padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, .4); border-radius: 12px;
  background: transparent; color: #fff;
  font: 400 16px var(--font);
}
.cart__add-row input::placeholder { color: rgba(255, 255, 255, .35); }
.cart__add-row input:focus { outline: none; border-color: #fff; }
.cart__add-row .btn { height: 52px; }
.cart__tools { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 22px; font-size: 15px; }
.cart__back { color: var(--fg-2); text-decoration: none; transition: color .2s; }
.cart__back:hover { color: #fff; }
.link-btn {
  padding: 0; border: 0; background: none;
  color: var(--fg-2); font: inherit;
  text-decoration: underline; text-underline-offset: 3px;
  cursor: pointer;
}
.link-btn:hover { color: #fff; }
.cart__order { position: sticky; top: calc(var(--hdr) + 24px); }
.req { color: var(--accent-2); font-weight: 600; }
.field.is-invalid input,
.field.is-invalid textarea { border-color: #ff8a73; }
.field.is-invalid > span { color: #ffb4a6; }
.form__note { font-size: 13px; line-height: 1.5; color: var(--fg-3); }
.order-done {
  padding: 44px 32px;
  border: 1px solid var(--line); border-radius: 20px;
  text-align: center;
}
.order-done__ico {
  width: 64px; height: 64px; margin: 0 auto 18px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #3fbf72;
}
.order-done__ico svg { width: 32px; height: 32px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.order-done h3 { margin-bottom: 12px; font-size: 26px; line-height: 1.25; }
.order-done p { margin-bottom: 26px; color: var(--fg-2); }


/* ══════════════ ПОЯВЛЕНИЕ ПРИ ПРОКРУТКЕ ══════════════
   Как у Тильды: блок выезжает на 100px слева (right) или снизу (up) и проявляется;
   карточки одного ряда — по очереди, с шагом 0,16 с (задержку ставит site.js). */
.js [data-anim] {
  opacity: 0;
  transition: opacity var(--dur, 1s) var(--ease), transform var(--dur, 1s) var(--ease);
  transition-delay: var(--delay, 0s);
}
.js [data-anim="right"] { transform: translate3d(-100px, 0, 0); }
.js [data-anim="left"] { transform: translate3d(100px, 0, 0); }
.js [data-anim="up"] { transform: translate3d(0, 100px, 0); }
.js [data-anim].is-in { opacity: 1; transform: none; }
[data-dur="title"] { --dur: 1.2s; }
[data-dur="text"] { --dur: .7s; }
[data-chain] > [data-anim] { --dur: .7s; }


/* ══════════════ АДАПТИВ ══════════════ */
@media (max-width: 1199px) {
  .nav a { font-size: 18px; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .pcard { flex-basis: calc((100% - 40px) / 3); }
}

@media (max-width: 979px) {
  .nav { display: none; }
  .burger { display: block; margin-left: 6px; }
  .hdr__cart { margin-left: auto; }
  .sec { padding: 80px 0; }
  .sec__title { margin-bottom: 64px; font-size: 32px; }
  .sec__sub { margin: -44px auto 56px; font-size: 18px; }
  .hero__title { font-size: 40px; }
  .hero__title > span:not(.nowrap) { font-size: 26px; }
  .about__grid { grid-template-columns: 1fr; gap: 48px; }
  .variants { grid-template-columns: 1fr; row-gap: 40px; max-width: 520px; margin: 0 auto; }
  .coats { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .contact { grid-template-columns: 1fr; gap: 48px; }
  .pcard { flex-basis: calc((100% - 20px) / 2); }
}

@media (max-width: 640px) {
  :root { --hdr: 64px; }
  body { font-size: 16px; }
  .hdr__logo img { height: 36px; }
  .cover { height: 70vh; min-height: 360px; }
  .cover--hero { height: 100vh; min-height: 520px; }
  @supports (height: 100svh) { .cover--hero { height: 100svh; } }
  .hero__title { font-size: 30px; }
  .hero__title > span:not(.nowrap) { font-size: 21px; }
  .hero__line { width: 120px; margin: 28px auto; }
  .hero__descr { font-size: 19px; }
  .sec { padding: 64px 0; }
  .about { padding: 64px 0; }
  .sec__title { margin-bottom: 48px; font-size: 26px; }
  .sec__sub { margin: -30px auto 40px; font-size: 16px; }
  .bullets { font-size: 17px; }
  .steps { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .step__box { padding: 56px 24px 32px; }
  .step h3, .variant h3 { font-size: 22px; }
  .step p, .variant p { font-size: 16px; }
  .coat__disc { width: 130px; height: 130px; font-size: 46px; }
  .coat__disc--sm { font-size: 22px; }
  .coat__name { font-size: 15px; }
  .sec--slider { padding: 56px 0 24px; }
  .swipe { justify-content: flex-end; padding: 0 10px 0 0; }
  .pcard { flex-basis: 78%; min-height: 440px; }
  .slider__arrow { display: none; }
  .tiles { gap: 12px; }
  .tile { width: calc(50% - 6px); height: auto; aspect-ratio: 1; }
  .form { padding: 28px 20px; }
  .form__row { grid-template-columns: 1fr; }
  .contact__info .big { font-size: 22px; }
  .ftr { padding-bottom: 96px; }
  .ftr__in { padding-right: var(--pad); }
  .ftr__contacts { text-align: left; }
  .chat { right: 16px; bottom: 16px; }
  .chat__panel { position: fixed; left: 8px; right: 8px; bottom: 84px; width: auto; height: min(72vh, 540px); }
  .chat__hint { width: min(270px, calc(100vw - 32px)); }
  .toast { left: 12px; right: 84px; bottom: 20px; max-width: none; transform: translateY(16px); }
  .toast.is-on { transform: none; }
}

/* ══════════════ ВНУТРЕННИЕ СТРАНИЦЫ: «О компании», каталог, блог ══════════════ */

.sec--flush-top { padding-top: 0; }

/* заголовок страницы — то же «окно», что на главной, только ниже */
.cover--page { height: 72vh; min-height: 480px; }
.cover--short { height: 58vh; min-height: 420px; }
.crumbs {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  margin-bottom: 22px;
  font-size: 14px; color: var(--fg-2);
}
.crumbs a { color: #fff; text-decoration: none; transition: opacity .2s; }
.crumbs a:hover { opacity: .7; }
.crumbs span { opacity: .5; }
.hero__title--page { font-size: 44px; }
.hero__meta { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px 0; font-size: 18px; font-weight: 500; }
.hero__meta > *:not(:first-child)::before { content: '/'; margin: 0 14px; opacity: .5; }

/* «О компании» */
.about__title { margin-bottom: 24px; font-size: 38px; line-height: 1.23; }
.about__lead { font-size: 20px; line-height: 1.65; color: rgba(255, 255, 255, .9); }
.about__brand {
  margin: 0;
  padding: 56px 40px 44px;
  border: 1px solid var(--line); border-radius: 20px;
  text-align: center;
}
.about__brand img { width: min(360px, 80%); height: auto; margin: 0 auto 26px; }
.about__brand figcaption { font-size: 20px; font-weight: 500; letter-spacing: .02em; color: var(--fg-2); }

.variant .variant__big { margin-bottom: 14px; font-size: 20px; font-weight: 600; line-height: 1.35; color: #fff; }
.variant p:last-child { margin-bottom: 0; }

.tiles--sm { gap: 12px; }
.tiles--sm .tile { width: 116px; height: 116px; }
.tiles--sm .tile b { font-size: 26px; }

.coat__disc--icon svg {
  width: 78px; height: 78px;
  fill: none; stroke: var(--bg); stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tcard { padding: 40px; border: 1px solid var(--line); border-radius: 20px; }
.tcard h3 { margin-bottom: 16px; font-size: 24px; line-height: 1.25; }
.tcard p { font-size: 17px; line-height: 1.7; color: rgba(255, 255, 255, .88); }

.cta {
  display: grid; justify-items: center; gap: 28px;
  margin-top: 80px; padding: 56px 40px;
  border: 1px solid var(--line); border-radius: 20px;
  text-align: center;
}
.cta__title { max-width: 820px; font-size: 28px; line-height: 1.3; }
.cta__acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.nowrap { white-space: nowrap; }
/* обозначение в заголовке записи («16-7-ЛКП-ОСТ 1 12090-75») — одной строкой; на телефоне можно перенести по пробелу */
.std { white-space: nowrap; }
@media (max-width: 640px) { .hero__title .std { white-space: normal; } }

/* текст: НИОКР на «О компании», записи блога */
.prose { font-size: 19px; line-height: 1.7; color: rgba(255, 255, 255, .9); }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 1.8em; font-size: 28px; line-height: 1.25; color: #fff; }
.prose h3 { margin-top: 1.5em; font-size: 22px; line-height: 1.3; color: #fff; }
.prose a { color: #fff; text-decoration-color: rgba(255, 255, 255, .5); text-underline-offset: 3px; transition: color .2s; }
.prose a:hover { color: var(--accent-2); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose strong { color: #fff; font-weight: 600; }
.prose blockquote { margin-left: 0; margin-right: 0; padding: 4px 0 4px 24px; border-left: 2px solid #fff; color: #fff; font-size: 21px; }
.prose figure { margin: 1.6em 0; }
.prose figure img { width: auto; max-width: 100%; height: auto; max-height: 720px; margin-inline: auto; border-radius: 20px; }   /* вертикальные фото с телефона — не выше 720px */
.prose figcaption { text-align: center; }
.prose figcaption { margin-top: 10px; font-size: 14px; color: var(--fg-3); }
.prose hr { height: 1px; margin: 2em 0; border: 0; background: rgba(255, 255, 255, .2); }
.prose code { padding: 2px 6px; border-radius: 6px; background: rgba(255, 255, 255, .08); font: .9em ui-monospace, Consolas, monospace; }
.table-wrap { overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.prose th, .prose td { padding: 10px 14px; border-bottom: 1px solid rgba(255, 255, 255, .15); text-align: left; }
.prose th { color: #fff; font-weight: 600; }
.prose--center { max-width: 860px; margin: 0 auto; }
/* позиции с кнопкой «В корзину» внутри записи блога */
.post-order { border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.post-order__row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px;
  padding: 14px 14px 14px 20px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.post-order__row:first-child { border-top: 0; }
.post-order__name { font-size: 17px; font-weight: 600; line-height: 1.4; color: #fff; }

/* каталог */
.sec--catalog { padding-top: 70px; }
.cat-layout {
  display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 40px;
  align-items: start;
}
.cat-side {
  position: sticky; top: calc(var(--hdr) + 24px);
  max-height: calc(100vh - var(--hdr) - 48px);
  overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: transparent transparent;
  padding-right: 4px;
}
.cat-side:hover { scrollbar-color: rgba(255, 255, 255, .25) transparent; }
.cat-side, .cat-main { min-width: 0; }
.search { position: relative; margin-bottom: 22px; }
.search svg {
  position: absolute; left: 16px; top: 50%;
  width: 18px; height: 18px; margin-top: -9px;
  color: var(--fg-3); pointer-events: none;
}
.search input {
  width: 100%; height: 52px;
  padding: 0 40px 0 44px;
  font: 400 15px var(--font); color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .4); border-radius: 12px;
  transition: border-color .2s;
}
.search input::placeholder { color: rgba(255, 255, 255, .4); }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search input:focus { outline: none; border-color: #fff; }
.search kbd {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  min-width: 22px; height: 22px; padding: 0 6px;
  border: 1px solid rgba(255, 255, 255, .3); border-radius: 6px;
  font: 500 12px/20px var(--font); color: var(--fg-3); text-align: center;
}
.search input:focus + kbd,
.search input:not(:placeholder-shown) + kbd { display: none; }

.cat-nav { display: flex; flex-direction: column; gap: 2px; margin-bottom: 22px; }
.cat-nav-head {
  margin: 18px 0 6px; padding: 0 14px;
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--fg-3);
}
.cat-nav-head:first-child { margin-top: 0; }
.cat-link {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 16px; color: var(--fg-2); text-decoration: none;
  transition: background-color .2s, color .2s;
}
.cat-link:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.cat-link.active { background: #fff; color: var(--bg); font-weight: 600; }
.cat-link .cnt { font-size: 13px; color: var(--fg-3); }
.cat-link.active .cnt { color: rgba(0, 0, 0, .5); }
.cat-side__btn { height: auto; min-height: 56px; padding: 12px 18px; line-height: 1.3; text-align: center; white-space: normal; }

.cat-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 24px; }
.cat-head h2 { font-size: 32px; line-height: 1.2; }
.cat-count { font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-3); white-space: nowrap; }

.cat-group {
  margin-bottom: 24px;
  border: 1px solid var(--line); border-radius: 20px;
  overflow: hidden;
}
.cat-group-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; }
.cat-group-head h3 { font-size: 20px; line-height: 1.3; }
.cat-group-head .cnt {
  min-width: 34px; height: 26px; padding: 0 10px;
  display: inline-grid; place-items: center;
  border-radius: 13px;
  background: #fff; color: var(--bg);
  font-size: 13px; font-weight: 600;
}
.cat-main.is-single .cat-group-head { display: none; }
.cat-main.is-single .part:first-child { border-top: 0; }
.parts { list-style: none; }
.part {
  position: relative;
  display: grid; grid-template-columns: 92px minmax(0, 1fr) auto auto; align-items: center; gap: 4px 20px;
  padding: 13px 20px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  transition: background-color .2s;
}
.part:hover { background: rgba(255, 255, 255, .05); }
.part-type { font-size: 14px; color: var(--fg-3); }
.part-code { overflow: hidden; font-size: 16px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.part-stock { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--fg-2); white-space: nowrap; }
.part-stock::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #3fbf72; }

.no-results {
  padding: 56px 24px;
  border: 1px dashed rgba(255, 255, 255, .35); border-radius: 20px;
  text-align: center; color: var(--fg-2);
}
.no-results svg { width: 44px; height: 44px; margin: 0 auto 16px; color: var(--fg-3); }
.no-results a { color: #fff; }

/* блог: белые карточки, как лента у needboost */
.blog-lead { margin-bottom: 20px; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bcard {
  display: flex; flex-direction: column;
  background: #fff; color: var(--ink);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
}
.bcard__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #171512; }
.bcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.bcard:hover .bcard__img img { transform: scale(1.05); }
.bcard__body { flex: 1; display: flex; flex-direction: column; padding: 22px 24px; }
.bcard__meta {
  display: flex; flex-wrap: wrap; gap: 4px 14px;
  margin-bottom: 12px;
  font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: rgba(0, 0, 0, .5);
}
.bcard__title { margin-bottom: 10px; font-size: 20px; font-weight: 600; line-height: 1.3; }
.bcard__text { font-size: 15px; font-weight: 300; line-height: 1.6; color: rgba(0, 0, 0, .85); }
.bcard__more {
  margin-top: auto; padding-top: 18px;
  font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(0, 0, 0, .5);
  transition: color .2s;
}
.bcard:hover .bcard__more { color: var(--accent); }
.bcard--lead { display: grid; grid-template-columns: 1.2fr 1fr; }
.bcard--lead .bcard__img { position: relative; aspect-ratio: auto; min-height: 380px; }
.bcard--lead .bcard__img img { position: absolute; inset: 0; }   /* вертикальное фото не растягивает карточку */
.bcard--lead .bcard__body { justify-content: center; padding: 44px 40px; }
.bcard--lead .bcard__title { font-size: 30px; line-height: 1.25; }
.bcard--lead .bcard__text { font-size: 17px; }
.bcard--lead .bcard__more { margin-top: 0; padding-top: 26px; }
.blog-empty { padding: 40px 0; text-align: center; font-size: 20px; color: var(--fg-2); }

.post { padding-top: 90px; }
.post__layout { display: grid; grid-template-columns: 180px minmax(0, 760px); gap: 48px; justify-content: center; }
.post__back {
  position: sticky; top: calc(var(--hdr) + 24px);
  align-self: start;
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 15px; color: var(--fg-2); text-decoration: none;
  transition: color .2s;
}
.post__back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .3s var(--ease); }
.post__back:hover { color: #fff; }
.post__back:hover svg { transform: translateX(-4px); }

@media (max-width: 1199px) {
  .cat-layout { grid-template-columns: 250px minmax(0, 1fr); gap: 32px; }
  .part { grid-template-columns: 80px minmax(0, 1fr) auto; }
  .part-stock { display: none; }
}

@media (max-width: 979px) {
  .cart { grid-template-columns: minmax(0, 1fr); }
  .cart__order { position: static; }
  .hero__title--page { font-size: 34px; }
  .about__title { font-size: 32px; }
  .duo { grid-template-columns: 1fr; }
  .cta { margin-top: 64px; }
  .cat-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .cat-side { position: static; max-height: none; overflow: visible; padding-right: 0; }
  .cat-nav {
    flex-direction: row; gap: 8px;
    margin: 0 calc(var(--pad) * -1) 8px; padding: 0 var(--pad) 6px;
    overflow-x: auto; scrollbar-width: none;
  }
  .cat-nav::-webkit-scrollbar { display: none; }
  .cat-nav-head { display: none; }
  .cat-link { flex: none; gap: 8px; padding: 8px 14px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 22px; font-size: 14px; white-space: nowrap; }
  .cat-link.active { border-color: #fff; }
  .cat-side__btn { display: none; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .bcard--lead { grid-template-columns: 1fr; }
  .bcard--lead .bcard__img { aspect-ratio: 16 / 9; min-height: 0; }
  .post__layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .post__back { position: static; }
}

@media (max-width: 640px) {
  .cover--page { height: 78vh; min-height: 460px; }
  .cover--short { height: 62vh; min-height: 420px; }
  .hero__title--page { font-size: 27px; }
  .hero__meta { font-size: 15px; }
  .about__title { font-size: 26px; }
  .about__lead { font-size: 17px; }
  .about__brand { padding: 40px 24px 32px; }
  .tiles--sm .tile { width: calc(33.333% - 8px); height: auto; aspect-ratio: 1; }
  .tiles--sm .tile b { font-size: 22px; }
  .coat__disc--icon svg { width: 54px; height: 54px; }
  .tcard { padding: 28px 22px; }
  .tcard h3 { font-size: 21px; }
  .tcard p { font-size: 16px; }
  .cta { padding: 32px 22px; gap: 24px; }
  .cta__title { font-size: 21px; }
  .cta__acts .btn { flex: 1 1 100%; }
  .prose { font-size: 17px; }
  .prose h2 { font-size: 23px; }
  .cat-head h2 { font-size: 24px; }
  .search input { font-size: 16px; }   /* меньше 16px — iPhone приближает страницу при вводе */
  .part {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "type req" "code req";
    gap: 2px 12px; padding: 12px 16px;
  }
  .part-type { grid-area: type; font-size: 13px; }
  .part-code { grid-area: code; white-space: normal; }
  .part-add { grid-area: req; height: 34px; padding: 0 12px; font-size: 12.5px; }
  .cart-item { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name del" "qty qty"; padding: 14px 8px 14px 16px; }
  .cart-item__name { grid-area: name; }
  .cart-item__del { grid-area: del; }
  .qty { grid-area: qty; }
  .cart__head h2 { font-size: 24px; }
  .cart__add-row { flex-wrap: wrap; }
  .cart__add-row .btn { flex: 1 1 100%; }
  .order-done { padding: 32px 20px; }
  .cat-group-head { padding: 16px; }
  .blog-grid { grid-template-columns: 1fr; }
  .bcard--lead .bcard__body { padding: 26px 22px; }
  .bcard--lead .bcard__title { font-size: 23px; }
  .post { padding-top: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-anim] { opacity: 1; transform: none; transition: none; }
  .cover__arrow svg,
  .swipe svg,
  .msg--typing i,
  .chat__hint:not([hidden]),
  .hdr__cart.is-bump .hdr__cart-count { animation: none; }
  .mnav > a { transition: none; }
}
