/* ==========================================================================
   Nortex — главная страница
   Значения взяты из Figma (фрейм «главная», 1440px, контейнер 1200px)
   ========================================================================== */

:root {
  --nx-red: #e41f25;
  --nx-red-icon: #ee1c25;
  --nx-bg: #f8f8f8;
  --nx-dark: #262626;
  --nx-text: rgba(0, 0, 0, .8);
  --nx-muted: rgba(0, 0, 0, .3);

  --font-head: 'Manrope', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-brand: 'Arial Black', 'Arial Bold', Gadget, sans-serif;

  --glass-shadow:
    inset 0 4px 16px 0 rgba(233, 233, 233, .2),
    inset 0 1px 40px 0 rgba(226, 226, 226, .2),
    inset 0 80px 65px 0 rgba(212, 212, 212, .2);
}

/* ---------- База ---------- */
body {
  background: var(--nx-bg);
  color: #000;
  font-family: var(--font-body);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

/* Резиновая сетка: контейнер на всю ширину, по бокам — отступы.
   В макете 1440px отступ 120px; на меньших экранах плавно уменьшается. */
:root { --gutter: 10px; }
@media (min-width: 768px) { :root { --gutter: 30px; } }
@media (min-width: 1200px) { :root { --gutter: clamp(40px, calc((100vw - 1200px) / 3 + 40px), 120px); } }

.container,
.container-fluid {
  max-width: none;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

img { max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--nx-red);
  outline-offset: 3px;
}

.g-20 { --bs-gutter-x: 20px; --bs-gutter-y: 20px; }
.text-red { color: var(--nx-red); }

/* «nortex» пишется строчными, а у Arial Black строчные ниже заглавных
   (высота строчной ≈ 0.52em против 0.72em у заглавной Manrope).
   Увеличиваем кегль в 1.38 раза — слово встаёт вровень с соседним текстом.
   line-height: 0 — чтобы увеличенное слово не раздвигало строки. */
.brand-word {
  font-family: var(--font-brand);
  font-weight: 900;
  font-size: 1.38em;
  line-height: 0;
  text-transform: lowercase;
}

/* Названия систем со смешанным регистром (AlumSN®): заголовки и подписи
   набраны капсом, поэтому написание фиксируем прямо на слове. */
.brand-case { text-transform: none; }

.h-section {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(22px, calc(14px + 1.4vw), 34px);
  line-height: 1;
  text-transform: uppercase;
  color: #000;
}
.h-section--muted { color: var(--nx-muted); margin-top: 4px; }

.glass {
  background: rgba(255, 255, 255, .01);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  box-shadow: var(--glass-shadow);
}

/* Скошенный правый верхний угол секций */
.cut-corner {
  --cut-x: 160px;
  --cut-y: 130px;
  clip-path: polygon(0 0, calc(100% - var(--cut-x)) 0, 100% var(--cut-y), 100% 100%, 0 100%);
}
.cut-corner--lg { --cut-y: 150px; }

/* Фоновая карта мира 5% */
.world-map {
  position: absolute;
  left: 50%;
  width: 1502px;
  height: 726px;
  margin-left: -751px;
  opacity: .05;
  overflow: hidden;
  pointer-events: none;
}
.world-map img {
  position: absolute;
  left: -.01%;
  top: -12.67%;
  width: 100.02%;
  height: 137.9%;
  max-width: none;
}

/* ---------- Кнопки ---------- */
.btn-nx {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 51px;
  padding: 0 40px;
  border: 1px solid rgba(228, 31, 37, .4);
  border-radius: 25px;
  background: #fff;
  color: var(--nx-red);
  font: 600 14px/1.2 var(--font-body);
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color .2s, background-color .2s;
}
.btn-nx:hover { color: var(--nx-red); border-color: var(--nx-red); }

.btn-nx--sm { height: 47px; }

.btn-nx--arrow {
  width: 330px;
  max-width: 100%;
  justify-content: space-between;
}

.btn-nx--white,
.btn-nx--outline-white {
  width: 180px;
  height: 41px;
  padding: 0;
}
.btn-nx--white { border-color: #fff; }
.btn-nx--white:hover { background: rgba(255, 255, 255, .88); border-color: #fff; }
.btn-nx--outline-white { background: transparent; border-color: #fff; color: #fff; }
.btn-nx--outline-white:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; }

/* Стрелка-ассет (Arrow 12): линия 12.728px, повёрнута на -45° в боксе 9×9 */
.btn-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 9px;
  height: 9px;
}
.btn-arrow > span {
  position: relative;
  display: block;
  flex: none;
  width: 12.728px;
  height: 0;
  transform: rotate(-45deg);
}
.btn-arrow img {
  position: absolute;
  left: 0;
  top: -7.36px;
  display: block;
  width: 13.728px;
  height: 14.72px;
  max-width: none;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1030;
  border-bottom: 1px solid rgba(255, 255, 255, .4);
  transition:
    transform .5s cubic-bezier(.4, 0, .2, 1),
    background-color .4s ease,
    border-color .4s ease;
}
/* после прокрутки — тёмная «стеклянная» подложка */
.site-header.is-scrolled {
  background: rgba(38, 38, 38, .88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: rgba(255, 255, 255, .1);
}
/* прячем при прокрутке вниз, показываем при прокрутке вверх */
.site-header.is-hidden { transform: translateY(-100%); }

.site-header__row {
  display: flex;
  align-items: center;
  height: 60px;
}
.site-header__logo { display: block; flex: none; margin-left: -2px; line-height: 0; }
.site-header__logo img { width: 122px; height: 45.17px; }

.site-nav {
  position: relative;
  align-self: stretch;
  align-items: center;
  gap: 20px;
  margin-left: 20px;
}
.site-nav__item { display: flex; align-items: center; align-self: stretch; }
.site-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #fff;
  font: 600 14px/normal var(--font-body);
  text-decoration: none;
  white-space: nowrap;
  transition: color .25s;
}
.site-nav__link:hover,
.site-nav__link[aria-expanded="true"] { color: rgba(255, 255, 255, .75); }

.icon-grid { position: relative; flex: none; width: 11px; height: 11px; }
.icon-grid i { position: absolute; width: 4px; height: 4px; background: var(--nx-red-icon); }
.icon-grid i:nth-child(1) { left: 0; top: 1px; }
.icon-grid i:nth-child(2) { left: 0; top: 7px; }
.icon-grid i:nth-child(3) { left: 6px; top: 0; width: 5px; height: 5px; }
.icon-grid i:nth-child(4) { left: 6px; top: 7px; }

.site-header__tools {
  display: flex;
  align-items: center;
  align-self: stretch;
  gap: 15px;
  margin-left: auto;
}
.site-header__sep {
  width: 1px;
  align-self: stretch;
  background: rgba(255, 255, 255, .4);
}

/* Поиск: строка ввода, лупа — кнопка отправки */
.search-pill {
  align-items: center;
  gap: 15px;
  width: 184px;
  height: 41px;
  padding: 0 16px 0 20px;
  border-radius: 25px;
  transition: background-color .25s, box-shadow .25s;
}
.search-pill:focus-within {
  background: rgba(255, 255, 255, .1);
  box-shadow: var(--glass-shadow), 0 0 0 2px rgba(255, 255, 255, .45);
}
.search-pill__btn {
  display: flex;
  flex: none;
  width: 21px;
  height: 21px;
  padding: 0;
  border: 0;
  background: none;
  line-height: 0;
  cursor: pointer;
  transition: transform .25s;
}
.search-pill__btn:hover { transform: scale(1.12); }
.search-pill__btn img { width: 21px; height: 21px; }
.search-pill__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font: 600 14px/normal var(--font-body);
  outline: none;
}
.search-pill__input::placeholder { color: #fff; opacity: 1; }
.search-pill__input::-webkit-search-cancel-button { -webkit-appearance: none; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 5px;
}
.icon-btn img { width: 26px; height: 26px; }

.burger {
  display: inline-flex;
  flex: none;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  background: transparent;
  line-height: 0;
}
.burger img { width: 38px; height: 38px; }

/* ---------- Мега-меню каталога ---------- */
.mega {
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  width: 944px;
  min-height: 413px;
  padding: 30px 30px 30px;
  border-radius: 15px;
  background: #fff;
  box-shadow: 2px 2px 30px -4px rgba(0, 0, 0, .2);
  color: #000;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 14px, 0);
  transition:
    opacity .35s ease,
    transform .5s cubic-bezier(.2, .7, .2, 1),
    visibility 0s linear .5s;
}
.mega.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity .35s ease,
    transform .5s cubic-bezier(.2, .7, .2, 1),
    visibility 0s;
}

.mega__tabs {
  display: inline-flex;
  gap: 10px;
  padding: 10px;
  border-radius: 15px;
  background: var(--nx-bg);
}
.mega__tab {
  padding: 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #000;
  font: 600 18px/1 var(--font-head);
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color .3s, color .3s;
}
.mega__tab:hover { color: var(--nx-red); }
.mega__tab.is-active { background: #fff; color: var(--nx-red); }

.mega__pane { margin-top: 20px; }
.mega__pane.is-active { animation: megaPane .45s ease both; }
@keyframes megaPane {
  from { opacity: 0; transform: translate3d(0, 8px, 0); }
  to { opacity: 1; transform: none; }
}

.mega__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 40px;
  min-height: 285px;
}
.mega__col { position: relative; display: flex; flex-direction: column; gap: 15px; }
.mega__col + .mega__col::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -20px;
  width: 1px;
  background: rgba(0, 0, 0, .1);
}

.mega-item {
  display: grid;
  grid-template-columns: 60px 1fr 16px;
  align-items: center;
  column-gap: 10px;
  color: #000;
  font: 600 14px/1 var(--font-body);
  text-decoration: none;
  transition: color .25s;
}
.mega-item > img:first-child {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  background: #d9d9d9;
  object-fit: cover;
}
.mega-item__arrow { width: 16px; height: 16px; transition: transform .25s; }
.mega-item__stub { display: block; width: 60px; height: 60px; border-radius: 10px; background: var(--nx-bg); }
.mega-item:hover { color: var(--nx-red); }
.mega-item:hover .mega-item__arrow { transform: translateX(3px); }

/* ---------- Мобильное меню ---------- */
/* панель во всю высоту экрана; прокручивается внутренний экран, не вся панель */
.offcanvas.mobile-menu {
  --bs-offcanvas-width: 343px;
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  height: 100dvh;
  max-height: 100dvh;
  padding: 20px;
  overflow: hidden;
  border: 0;
  border-radius: 10px 0 0 10px;
  background: #fff;
  box-shadow: 0 2px 20px 6px rgba(0, 0, 0, .15);
  color: #000;
}
.offcanvas-backdrop.show { opacity: .15; }

.mobile-menu__head {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, .1);
}
.mobile-menu__head img { display: block; }
.mobile-menu__close { padding: 0; border: 0; background: none; line-height: 0; }

.mobile-menu__nav { display: flex; flex: none; flex-direction: column; padding: 30px 0; }
.mobile-menu__link,
.mobile-menu__sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  border: 0;
  text-align: left;
  text-decoration: none;
  transition: color .25s, background-color .25s;
}
.mobile-menu__link { padding: 0; background: none; color: #000; font: 600 16px/19px var(--font-body); }
.mobile-menu__link + .mobile-menu__link,
.mobile-menu__group + .mobile-menu__link { margin-top: 15px; }
.mobile-menu__link img,
.mobile-menu__sub img { transition: transform .35s ease; }

/* 2-й уровень: аккордеон */
.mobile-menu__toggle[aria-expanded="true"] { color: var(--nx-red); }
.mobile-menu__toggle[aria-expanded="true"] img { transform: rotate(90deg); }
.mobile-menu__subs { padding-bottom: 5px; }
.mobile-menu__sub {
  width: calc(100% - 10px);
  margin: 10px 10px 0 0;
  padding: 12px 10px 12px 30px;
  border-radius: 10px;
  background: var(--nx-bg);
  color: rgba(0, 0, 0, .6);
  font: 600 14px/1 var(--font-body);
}
.mobile-menu__link:hover,
.mobile-menu__sub:hover { color: var(--nx-red); }
.mobile-menu__sub:hover img { transform: translateX(3px); }

/* 3-й уровень: отдельный экран с товарами, выезжает справа */
.mm-screens {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
/* оба экрана занимают всю высоту панели и прокручиваются пальцем сами */
.mm-screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  transition:
    transform .45s cubic-bezier(.4, 0, .2, 1),
    opacity .35s ease,
    visibility 0s linear .45s;
}
.mm-screen::-webkit-scrollbar { display: none; }
.mm-screen--sub {
  padding: 20px 0 10px;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(100%, 0, 0);
}
.mm-screen--main {
  transition:
    transform .45s cubic-bezier(.4, 0, .2, 1),
    opacity .35s ease .05s,
    visibility 0s;
}
.mm-screens.is-drilled .mm-screen--main {
  opacity: 0;
  visibility: hidden;
  transform: translate3d(-30%, 0, 0);
  transition:
    transform .45s cubic-bezier(.4, 0, .2, 1),
    opacity .35s ease,
    visibility 0s linear .45s;
}
.mm-screens.is-drilled .mm-screen--sub {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    transform .45s cubic-bezier(.4, 0, .2, 1),
    opacity .35s ease .05s,
    visibility 0s;
}

.mm-back {
  display: inline-flex;
  flex: none;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: rgba(0, 0, 0, .6);
  font: 600 14px/1 var(--font-body);
  transition: color .25s;
}
.mm-back img { width: 16px; height: 16px; transform: rotate(180deg); }
.mm-back:hover { color: var(--nx-red); }

.mm-sub-title {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(0, 0, 0, .1);
  color: var(--nx-red);
  font: 600 18px/1.1 var(--font-head);
  text-transform: uppercase;
  text-decoration: none;
}
.mm-sub-title img { flex: none; width: 16px; height: 16px; }

.mm-products { display: flex; flex-direction: column; gap: 10px; padding-top: 15px; padding-bottom: 10px; }
.mm-product {
  display: grid;
  grid-template-columns: 50px 1fr 16px;
  align-items: center;
  column-gap: 12px;
  padding: 5px 10px 5px 5px;
  border-radius: 10px;
  background: var(--nx-bg);
  color: #000;
  font: 600 14px/1.15 var(--font-body);
  text-decoration: none;
  transition: color .25s;
}
.mm-product > img:first-child {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  background: #d9d9d9;
  object-fit: cover;
}
.mm-product__arrow { width: 16px; height: 16px; }
.mm-product:hover { color: var(--nx-red); }

/* появление пунктов на экране товаров */
.mm-screens.is-drilled .mm-product { animation: mmItem .5s ease both; }
@keyframes mmItem {
  from { opacity: 0; transform: translate3d(16px, 0, 0); }
  to { opacity: 1; transform: none; }
}
.mobile-menu__link img,
.mobile-menu__sub img { flex: none; width: 16px; height: 16px; }

.mobile-menu__contacts {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 15px;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid rgba(0, 0, 0, .1);
}
.mobile-menu__contacts a { color: #000; font: 600 18px/22px var(--font-body); text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--nx-dark);
  color: #fff;
}
.hero__media { position: absolute; inset: 0; }
.hero__video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__media::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, .6); }

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 845px;
  padding-top: 121px;
  padding-bottom: 230px; /* 130px перекрывает следующая секция */
}

.hero__title {
  max-width: 948px;
  margin: 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(28px, calc(14px + 2.22vw), 46px);
  line-height: 1;
  text-transform: uppercase;
}

.hero__lead {
  position: relative;
  max-width: 490px;
  margin: 20px 0 0;
  padding-left: 25px;
  font-size: 14px;
  line-height: 1.1;
}
.hero__bullet {
  position: absolute;
  left: 0;
  top: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
}
.hero__bullet > span {
  position: relative;
  flex: none;
  width: 15px;
  height: 15px;
  transform: rotate(-90deg) scaleY(-1);
}
.hero__bullet img {
  position: absolute;
  top: 6.67%;
  left: 11.57%;
  width: 76.86%;
  height: 68.33%;
  max-width: none;
  display: block;
}

.hero__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-top: auto;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 30px; }

.hero-card {
  position: relative;
  flex: none;
  width: 429px;
  height: 187px;
  border-radius: 15px;
  overflow: hidden;
}

/* слайды лежат друг на друге: входящий выезжает справа, уходящий — влево */
.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  gap: 15px;
  padding: 15px 15px 15px 13px;
  color: #fff;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(40px, 0, 0);
  transition:
    opacity .8s ease,
    transform .9s cubic-bezier(.2, .7, .2, 1),
    visibility 0s linear .9s;
}
.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity .8s ease .15s,
    transform .9s cubic-bezier(.2, .7, .2, 1) .15s,
    visibility 0s;
}
.hero-slide.is-leaving { transform: translate3d(-40px, 0, 0); }
.hero-slide:hover { color: #fff; }
.hero-card__img {
  flex: none;
  width: 142px;
  height: 157px;
  border-radius: 15px;
  object-fit: cover;
}
.hero-card__body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}
.hero-card__title {
  max-width: 179px;
  font: 600 18px/1 var(--font-head);
  text-transform: uppercase;
}
.hero-card__text { max-width: 221px; font-size: 12px; line-height: 1.1; }
.hero-card__arrow {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 27px;
  height: 27px;
}

/* ---------- О компании ---------- */
.about {
  position: relative;
  z-index: 2;
  margin-top: -130px;
  padding: 100px 0;
  overflow: hidden;
  background: var(--nx-bg);
}
.world-map--about { top: -36px; }

.about__sub { margin-top: 3px; padding-left: 102px; }
.about__row { margin-top: 42px; }

.about__text p {
  max-width: 737px;
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.09;
  color: var(--nx-text);
}
.about__text .about__text-narrow { max-width: 674px; }

.locations {
  width: 163px;
  margin: -12px 0 0 auto;
  padding: 0;
  list-style: none;
}
.locations__item { display: flex; align-items: flex-start; gap: 11px; }
.locations__item + .locations__item { margin-top: 24px; }
.locations__item b {
  display: block;
  margin-top: -2px;
  font-weight: 500;
  font-size: 16px;
  line-height: 19px;
  color: #000;
  white-space: nowrap;
}
.locations__item b + span {
  display: block;
  margin-top: 5px;
  font-size: 14px;
  line-height: 17px;
  color: var(--nx-text);
  white-space: nowrap;
}
.locations__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 37px;
  height: 37px;
  border-radius: 5px;
  background: #fff;
}
.locations__icon img { width: 21px; height: 21px; }
.locations__icon .locations__icon-global { width: 22px; height: 22px; }

.video-block {
  position: relative;
  margin-top: 38px;
  aspect-ratio: 1200 / 495;
  border-radius: 15px;
  overflow: hidden;
}
.video-block__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-block__play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 103px;
  height: 103px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  transform: translate(-50%, -50%);
  transition: transform .2s;
}
.video-block__play img { display: block; width: 103px; height: 103px; }
.video-block__play:hover { transform: translate(-50%, -50%) scale(1.05); }

.about__more { margin-top: 30px; }

/* ---------- Каталог ---------- */
.catalog { padding: 50px 0; background: #fff; }
/* у .row с g-20 отрицательный margin-top 20px — компенсируем */
.catalog__grid { margin-top: 20px; }
.catalog__divider + .catalog__grid { margin-top: -20px; }

.catalog__divider {
  margin: 30px 0;
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, .2);
  opacity: 1;
}
@media (min-width: 1200px) {
  /* линия шире сетки на 62px с каждой стороны, но не вылезает за экран */
  .catalog__divider {
    margin-left: calc(-1 * min(62px, var(--gutter) - 20px));
    margin-right: calc(-1 * min(62px, var(--gutter) - 20px));
  }
}

.cat-card {
  position: relative;
  display: block;
  aspect-ratio: 285 / 236;
  border-radius: 15px;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
}
.cat-card > img:first-child {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.cat-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .7) 1.483%, rgba(0, 0, 0, 0) 50%);
}
.cat-card:hover { color: #fff; }
.cat-card:hover > img:first-child { transform: scale(1.04); }

.cat-card__title {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 1;
  font: 600 18px/1 var(--font-head);
  text-transform: uppercase;
}
.cat-card__arrow {
  position: absolute;
  top: 15px;
  right: 15.3px;
  z-index: 1;
  width: 27.684px;
  height: 27.684px;
}

.catalog__more { margin-top: 30px; }

/* ---------- Собственные решения ---------- */
.solutions { padding: 100px 0 0; }
.solutions__sub { max-width: 754px; }
.solutions__row { margin-top: 20px; }
/* второй заголовок внутри секции — «Производство материалов» */
.solutions__title--next { margin-top: 100px; }

.sol-card {
  --sol-angle: 147.43deg;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 219px;
  padding: 25px;
  border-radius: 15px;
  overflow: hidden;
  background: #fff;
  color: #000;
  text-decoration: none;
}
.sol-card:hover { color: #000; }
.sol-card--grey { background: linear-gradient(148.35deg, #fff 35.892%, #cecece 141.29%); }

/* активная карточка — красная; градиент лежит слоем, чтобы плавно проявляться */
.sol-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(var(--sol-angle), #ef1b24 18.15%, #890f15 104.35%);
  opacity: 0;
  transition: opacity .5s ease;
}
.sol-card.is-active::before { opacity: 1; }

.sol-card__badge {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: url('../img/badge-red.svg') center / 30px 30px no-repeat;
  color: #fff;
  font: 600 16px/1 var(--font-head);
  transition: color .5s ease;
}
.sol-card__badge::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url('../img/badge-white.svg') center / 30px 30px no-repeat;
  opacity: 0;
  transition: opacity .5s ease;
}
.sol-card.is-active .sol-card__badge { color: var(--nx-red); }
.sol-card.is-active .sol-card__badge::before { opacity: 1; }

.sol-card__title {
  display: block;
  font: 600 22px/1 var(--font-head);
  text-transform: uppercase;
  color: var(--nx-red);
  transition: color .5s ease;
}
.sol-card__text {
  display: block;
  max-width: 232px;
  margin-top: 15px;
  font-size: 12px;
  line-height: 1.1;
  color: var(--nx-text);
  transition: color .5s ease;
}
.sol-card.is-active .sol-card__title,
.sol-card.is-active .sol-card__text { color: #fff; }

.solutions__img-wrap {
  position: relative;
  height: 100%;
  border-radius: 15px;
  overflow: hidden;
}
.solutions__img-inner { position: absolute; inset: 0; }
.solutions__img-inner img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* новая картинка проявляется поверх старой */
.solutions__img-inner img.is-entering { opacity: 0; transition: opacity .6s ease; }
.solutions__img-inner img.is-entering.is-visible { opacity: 1; }

/* Остерегайтесь подделок */
.original {
  position: relative;
  margin-top: 50px;
  padding: 47px 8.5% 55px;
  border-radius: 10px;
  overflow: hidden;
}
.original__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.original::before { content: ''; position: absolute; inset: 0; z-index: 1; background: rgba(0, 0, 0, .2); }

.original__panel {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 50px;
  min-height: 393px;
  padding: 30px 100px 30px 30px;
  border-radius: 15px;
  color: #fff;
}
.original__cert {
  flex: none;
  width: 242px;
  height: 333px;
  border-radius: 15px;
  object-fit: cover;
}
/* тот же блок, но с несколькими патентами: слайды лежат стопкой и перетекают */
.cert-slider { position: relative; overflow: hidden; }
.cert-slide {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  visibility: hidden;
  /* клики ловит только текущий слайд: visibility переключается в конце
     перехода, и без этого уходящий слайд ещё секунду перехватывал бы курсор */
  pointer-events: none;
  transition: opacity .8s ease, visibility .8s;
}
.cert-slide.is-active { opacity: 1; visibility: visible; pointer-events: auto; }
.cert-slide img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 15px;
  object-fit: cover;
}
@media (prefers-reduced-motion: reduce) {
  .cert-slide { transition: none; }
}
.original__body { padding-top: 40px; max-width: 574px; }
.original__title {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--nx-red);
  color: #fff;
}
.original__text {
  max-width: 529px;
  margin: 15px 0 0;
  font-size: 14px;
  line-height: 1.09;
}
.original__btn { width: auto; margin-top: 30px; gap: 70px; }

/* ---------- FAQ ---------- */
.faq { position: relative; padding: 120px 0 100px; overflow: hidden; }
.world-map--faq { top: 0; }

.faq__label {
  margin: 0 0 20px;
  font: 600 16px/1 var(--font-body);
  color: var(--nx-red);
}
.faq__grid { margin-top: 10px; }
.faq__col { display: flex; flex-direction: column; gap: 15px; }

.faq-item { border-radius: 5px; background: #fff; }
.faq-item__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  width: 100%;
  min-height: 58px;
  padding: 10px 10px 10px 15px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #000;
  font: 600 18px/1 var(--font-head);
  text-align: left;
  text-transform: uppercase;
}
.faq-item__icon {
  flex: none;
  width: 38px;
  height: 38px;
  transition: transform .2s;
}
.faq-item__q[aria-expanded="true"] .faq-item__icon { transform: rotate(180deg); }
.faq-item__a {
  padding: 0 63px 20px 15px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--nx-text);
}

/* ---------- Консультация ---------- */
.consult {
  position: relative;
  z-index: 2;
  padding-top: 60px;
  overflow: hidden;
  background: var(--nx-dark);
  color: #fff;
}
.consult__title { max-width: 777px; color: #fff; }

.consult__stage {
  position: relative;
  margin-top: 15px;
  padding-bottom: 104px;
}
.consult__bg {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  overflow: hidden;
}
.consult__bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.consult__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--nx-dark) 4.891%, rgba(38, 38, 38, 0) 67.503%);
}

.consult__lead {
  max-width: 692px;
  margin: 0;
  font-size: 14px;
  line-height: 1.09;
}
.consult__line {
  width: 786px;
  max-width: 100%;
  margin: 20px 0 50px;
  border: 0;
  border-top: 1px solid var(--nx-red);
  opacity: 1;
}

.lead-form {
  width: calc(50% - 10px);
  max-width: 100%;
  padding: 40px 42px 40px;
  border-radius: 15px;
  background: #fff;
  color: #000;
}
.lead-form__title {
  margin: 0 0 30px;
  font: 600 22px/1 var(--font-head);
  text-transform: uppercase;
}
.lead-form__input {
  display: block;
  width: 345px;
  max-width: 100%;
  margin: 0 0 20px;
  padding: 0 0 7px;
  border: 0;
  border-bottom: 1px solid rgba(0, 0, 0, .2);
  border-radius: 0;
  background: transparent;
  color: #000;
  font: 12px/1.1 var(--font-body);
}
.lead-form__input::placeholder { color: rgba(0, 0, 0, .6); opacity: 1; }
.lead-form__input:focus { outline: none; border-bottom-color: var(--nx-red); }
.lead-form__textarea { height: 73px; margin-bottom: 14px; resize: none; }

.lead-form__agree {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  max-width: 431px;
  font-size: 10px;
  line-height: 1;
  letter-spacing: -.2px;
  color: var(--nx-text);
  cursor: pointer;
}
.lead-form__agree input {
  flex: none;
  width: 10px;
  height: 10px;
  margin: 0;
  border: 1px solid #000;
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.lead-form__agree input:checked { background: var(--nx-red); border-color: var(--nx-red); }
.lead-form__agree a { color: inherit; }

.lead-form__btn {
  margin-top: 30px;
  padding: 0 23.5px;
  border-color: var(--nx-red);
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 95px 0 20px;
  line-height: 1.09;
  background: var(--nx-dark);
  color: #fff;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 370fr 445fr 385fr;
}
.site-footer__brand img { display: block; width: 215px; height: 79px; margin-left: -4px; }
.site-footer__brand .site-footer__link { display: inline-block; margin-top: 15px; }

.site-footer__head {
  width: 282px;
  max-width: 100%;
  margin: 6px 0 0;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  font: 600 22px/1 var(--font-head);
  text-transform: uppercase;
  color: var(--nx-red);
}
.site-footer__label {
  margin: 12px 0 15px;
  font: 600 16px/1 var(--font-head);
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
  white-space: nowrap;
}
.site-footer__label--gap { margin-top: 25px; }

.site-footer__cols { display: grid; grid-template-columns: 192px auto; }
.site-footer__cols--contacts { grid-template-columns: 256px auto; }

.site-footer__list { margin: 0; padding: 0; list-style: none; }
.site-footer__list li + li { margin-top: 15px; }
.site-footer__link {
  color: #fff;
  font-size: 14px;
  line-height: 1.09;
  text-decoration: none;
}
a.site-footer__link:hover { color: rgba(255, 255, 255, .7); }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 20px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .2);
  font-size: 14px;
  line-height: 1.09;
  color: rgba(255, 255, 255, .5);
}
.site-footer__bottom a { color: inherit; text-decoration: none; }
.site-footer__bottom a:hover { color: #fff; }

.video-modal__close { position: absolute; top: -40px; right: 0; z-index: 2; }

/* ==========================================================================
   Анимации появления (как на uralchemgroup.ru: opacity + сдвиг, 1.2s ease)
   Классы проставляет js/main.js — без JS контент виден сразу
   ========================================================================== */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, var(--reveal-y, 50px), 0);
  transition:
    opacity 1.2s ease var(--reveal-delay, .2s),
    transform 1.2s ease var(--reveal-delay, .2s);
}
.js [data-reveal="line"] { transform: scaleX(0); transform-origin: left center; }
.js [data-reveal].is-inview { opacity: 1; transform: none; }
/* до разбиения заголовка на слова прячем его, чтобы не мигал */
.js .hero__title:not([data-split-done]) { opacity: 0; }
/* пока JS расставляет атрибуты — без переходов */
.reveal-init [data-reveal],
.reveal-init [data-split] .w { transition: none !important; }

/* заголовки — построчно: слова одной строки выезжают вместе */
.js [data-split] .w {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, .55em, 0);
  transition:
    opacity 1.2s ease var(--d, .2s),
    transform 1.2s ease var(--d, .2s);
}
.js [data-split].is-inview .w { opacity: 1; transform: none; }

.br-mobile { display: none; }

/* ==========================================================================
   Адаптив
   ========================================================================== */
@media (max-width: 1399.98px) {
  .site-nav { gap: 16px; }
  .search-pill { width: 140px; }
  .site-header__tools { padding-left: 12px; }
}

@media (max-width: 1199.98px) {
  .solutions .sol-card__text { max-width: none; }
  .original { padding: 40px; }
  .original__panel { padding-right: 40px; }
}

@media (max-width: 991.98px) {
  .cut-corner { --cut-x: 60px; --cut-y: 50px; }

  .hero__inner { min-height: 0; padding-top: 110px; padding-bottom: 110px; }
  .hero__bottom { flex-direction: column; align-items: stretch; margin-top: 40px; }
  .hero-card { width: 100%; max-width: 429px; }

  .about { margin-top: -50px; padding: 70px 0; }
  .about__sub { padding-left: 0; }
  .locations { width: auto; margin: 30px 0 0; display: grid; gap: 16px; }
  .locations__item + .locations__item { margin-top: 0; }
  .video-block { margin-top: 40px; }

  .solutions { padding-top: 70px; }
  .solutions__img-wrap { height: auto; aspect-ratio: 590 / 697; max-height: 520px; }

  .original { padding: 20px; }
  .original__panel { flex-direction: column; gap: 24px; min-height: 0; padding: 24px; }
  .original__cert { width: 160px; height: auto; aspect-ratio: 242 / 333; }
  .original__body { padding-top: 0; }

  .faq { padding: 80px 0 70px; }
  .consult { padding-top: 70px; }
  .consult__stage { padding-bottom: 60px; }

  .site-footer { padding-top: 60px; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- Мобильная версия (макет 375px) ---------- */
@media (max-width: 767.98px) {
  .br-mobile { display: inline; }
  .h-section { font-size: 26px; }
  .world-map { display: none; }
  .cut-corner { clip-path: none; }

  /* шапка */
  .site-header { border-bottom-color: transparent; }
  .site-header__row { height: 68px; }
  .site-header__logo { margin-left: 0; }
  .site-header__logo img { width: 140px; height: 52px; }
  .site-header__tools { align-self: center; gap: 20px; }

  /* первый экран */
  .hero__inner { padding-top: 178px; padding-bottom: 178px; }
  .hero__title { font-size: 30px; }
  .hero__lead { max-width: 356px; margin-top: 20px; padding-left: 22px; }
  .hero__bullet,
  .hero__bullet > span { width: 12px; height: 12px; }
  .hero__bullet { top: 17px; }
  .hero__bullet img { top: 8.33%; left: 12.79%; width: 74.42%; height: 66.67%; }
  .hero__bottom { margin-top: 30px; }
  .hero__actions { flex-wrap: nowrap; gap: 13px; width: 100%; }
  .hero__actions .btn-nx { width: calc(50% - 6.5px); }

  /* о компании */
  .about { margin-top: 0; padding: 60px 0; }
  .about__sub { margin-top: 2px; }
  .about__row { margin-top: 20px; }
  .about__text p:last-child { margin-bottom: 0; }
  .video-block { margin-top: 20px; aspect-ratio: auto; height: 236px; border-radius: 10px; }
  .video-block__play,
  .video-block__play img { width: 66px; height: 66px; }
  .about__more { margin-top: 20px; }

  /* каталог */
  .catalog { padding: 30px 0; }
  .catalog__title { max-width: 293px; }
  .catalog__sub { max-width: 272px; margin-top: 2px; }
  .catalog .g-20 { --bs-gutter-y: 15px; }
  .catalog__grid { margin-top: 5px; }
  .catalog__divider + .catalog__grid { margin-top: -15px; }
  .cat-card { aspect-ratio: auto; height: 236px; border-radius: 10px; }
  .cat-card__arrow { top: 20px; right: 20px; }

  /* собственные решения */
  .solutions { padding-top: 60px; }
  .solutions__title { max-width: 293px; }
  .solutions__sub { max-width: 337px; margin-top: 2px; }
  .solutions__row { margin-top: 0; }
  .solutions__row .row { --bs-gutter-y: 15px; }
  .sol-card { height: 176px; padding: 20px; border-radius: 10px; background: #f4f4f4; }
  .sol-card { --sol-angle: 157.6deg; }
  .sol-card--grey { background: linear-gradient(140.54deg, #fff 35.892%, #cecece 141.29%); }
  .solutions .sol-card__text { max-width: 241px; }
  .solutions__img-wrap { height: 369px; aspect-ratio: auto; max-height: none; border-radius: 10px; }

  .original { margin-top: 40px; padding: 20px; border-radius: 10px; }
  .original__panel {
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
  }
  .original__cert { width: 190px; height: 260px; aspect-ratio: auto; border-radius: 10px; }
  .original__body { padding-top: 20px; }
  .original__title { margin: 0; padding-bottom: 0; border-bottom: 0; font-size: 22px; overflow-wrap: break-word; hyphens: auto; }
  .original__text { max-width: none; margin: 15px -12.5px 0; }
  .original__body .original__text + .original__text { margin-top: 15px; }

  /* FAQ */
  .faq { padding: 60px 0; }
  .faq__label { margin-bottom: 15px; }
  .faq__grid { --bs-gutter-y: 15px; margin-top: 5px; }
  .faq-item__q { min-height: 52px; gap: 10px; padding: 10px; font-size: 16px; }
  .faq-item__text { max-width: 235px; }
  .faq-item__icon { width: 31.16px; height: 31.16px; margin-right: 1px; }
  .faq-item__a { padding: 0 52px 16px 10px; }

  /* консультация */
  .consult { padding-top: 30px; }
  .consult__title { max-width: 329px; }
  .consult__stage { margin-top: 20px; padding-bottom: 122px; }
  .consult__bg { top: -49px; border-radius: 0; }
  .consult__lead { max-width: 344px; }
  .consult__line { display: none; }
  .lead-form { margin-top: 30px; padding: 20px; border-radius: 10px; }
  .lead-form__title { margin-bottom: 20px; font-size: 20px; }
  .lead-form__input { width: 100%; }
  .lead-form__textarea { margin-bottom: 10px; }
  .lead-form__agree { align-items: center; gap: 10px; max-width: 303px; }
  .lead-form__btn { width: 100%; margin-top: 20px; justify-content: center; gap: 50px; }

  /* подвал */
  .site-footer { padding: 60px 0 20px; }
  .site-footer__grid { gap: 0; }
  .site-footer__brand img { margin-left: -5px; }
  .site-footer__grid > div:nth-child(2) { margin-top: 20px; }
  .site-footer__grid > div:nth-child(3) { margin-top: 30px; }
  .site-footer__head { width: 100%; margin-top: 0; }
  .site-footer__nav-label { display: none; }
  .site-footer__cols { grid-template-columns: 1fr auto; margin-top: 20px; }
  .site-footer__cols--contacts { grid-template-columns: 226px 1fr; margin-top: 0; }
  .site-footer__label { margin: 20px 0 15px; }
  .site-footer__label--gap { margin-top: 25px; }
  .site-footer__bottom { flex-direction: column; gap: 15px; margin-top: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .js [data-reveal],
  .js [data-split] .w { opacity: 1 !important; transform: none !important; }
}

/* ==========================================================================
   Страница «О компании» (about.html)
   ========================================================================== */
.site-nav__link.is-current { color: rgba(255, 255, 255, .75); }

/* первый экран */
.hero__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero--page .hero__inner {
  align-items: center;
  min-height: 845px;
  padding-top: 234px;
  padding-bottom: 230px;
  text-align: center;
}
.page-hero__title { position: relative; margin: 0; }
.page-hero__word {
  display: block;
  font-family: var(--font-brand);
  font-weight: 900;
  font-size: clamp(96px, 16.67vw, 240px);
  line-height: 1;
  text-transform: lowercase;
  color: rgba(255, 255, 255, .5);
}
.page-hero__kicker {
  position: absolute;
  top: 4px;
  right: 0;
  left: 0;
  z-index: 1;
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
  font: 500 20px/1 var(--font-body);
  text-transform: uppercase;
  color: #fff;
}
.page-hero__text { max-width: 641px; margin: 20px auto 0; font: 500 14px/1.1 var(--font-body); }

/* направления */
.company {
  position: relative;
  z-index: 2;
  margin-top: -130px;
  padding: 100px 0 50px;
  overflow: hidden;
  background: #fff;
}
.company__title { max-width: 501px; }
.company__line { margin: 30px 0; border: 0; border-top: 1px solid rgba(0, 0, 0, .15); opacity: 1; }
.company__text p { max-width: 492px; margin: 0 0 15px; font-size: 14px; line-height: 1.09; color: var(--nx-text); }
.company__text p:last-child { margin-bottom: 0; }
.company__text .company__text-narrow { max-width: 463px; }
.video-block--sm { margin-top: 0; aspect-ratio: 590 / 353; }
.company__img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 290px;
  border-radius: 15px;
  object-fit: cover;
}
.directions__title {
  margin: 12px 0 20px;
  font: 600 20px/1 var(--font-head);
  text-transform: uppercase;
  color: var(--nx-red);
}
.direction-card {
  position: relative;
  height: 135px;
  padding: 20px;
  border-radius: 15px;
  background: var(--nx-bg);
}
.direction-card::after {
  content: '';
  position: absolute;
  top: 15px;
  right: 15px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--nx-red);
}
.direction-card__title { margin: 0; font: 500 14px/1 var(--font-body); color: #000; }
.direction-card__text { max-width: 245px; margin: 15px 0 0; font-size: 12px; line-height: 1.09; color: var(--nx-text); }

/* цифры */
.stat-card {
  display: flex;
  flex-direction: column;
  height: 228px;
  padding: 20px 20px 33px;
  border-radius: 15px;
  background: var(--nx-bg);
}
.stat-card__icon { display: block; width: 30px; height: 30px; }
.stat-card__icon--lg { width: 39px; height: 39px; margin-top: -4px; }
.stat-card__value {
  margin: auto 0 0;
  font: 600 48px/1 var(--font-head);
  text-transform: uppercase;
  color: #000;
}
.stat-card__value--sm { font-size: 32px; }
.stat-card__text { max-width: 240px; margin: 10px 0 0; font-size: 12px; line-height: 1.1; color: var(--nx-text); }

.stat-card--red {
  position: relative;
  padding-bottom: 34px;
  background: linear-gradient(141deg, #ef1b24 18%, #890f15 104%);
  color: #fff;
  /* скошенный угол, как в макете: 70px по горизонтали и 69px по вертикали */
  clip-path: polygon(0 0, calc(100% - 70px) 0, 100% 69px, 100% 100%, 0 100%);
}
.stat-card--red .stat-card__value--xl { margin: 0; font-size: 76px; color: #fff; }
.stat-card--red .stat-card__text {
  position: relative;
  margin-top: auto;
  padding-top: 28px;
  font-size: 14px;
  color: #fff;
}
.stat-card--red .stat-card__text::before {
  content: '';
  position: absolute;
  top: 0;
  left: 4px;
  width: min(237px, 100%);
  height: 1px;
  background: rgba(255, 255, 255, .2);
}
.company__more { margin-top: 30px; }

/* история: карточки едут по горизонтали, пока секция закреплена */
.history { position: relative; padding: 100px 0; overflow: hidden; }
.history__sub { max-width: 895px; }
.history__viewport { margin-top: 40px; }
.history__track {
  display: flex;
  gap: 20px;
  width: max-content;
  padding: 0 var(--gutter);
  will-change: transform;
}
.history-card {
  position: relative;
  flex: none;
  width: 387px;
  height: 424px;
  padding: 163px 30px 30px;
  border-radius: 15px;
  overflow: hidden;
  background: #fff;
}
.history-card__media,
.history-card__deco { position: absolute; inset: 0; width: 100%; height: 100%; }
.history-card__media img,
.history-card__video { display: block; width: 100%; height: 100%; object-fit: cover; }
.history-card__deco { object-fit: cover; pointer-events: none; }
/* затемнение для видео (у постера оно уже «зашито») */
.history-card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  opacity: 0;
  transition: opacity .4s;
}
.history-card__media.is-playing::after { opacity: 1; }
.history-card__title {
  position: relative;
  max-width: 275px;
  margin: 0;
  font: 600 22px/1 var(--font-head);
  text-transform: uppercase;
  color: #000;
}
.history-card__title--narrow { max-width: 217px; }
.history-card__text {
  position: relative;
  max-width: 275px;
  margin: 15px 0 0;
  font-size: 12px;
  line-height: 1.1;
  color: var(--nx-text);
}
.history-card--dark .history-card__title,
.history-card--dark .history-card__text { color: #fff; }

/* рынки */
.markets { padding: 50px 0 0; background: #fff; }
.markets__grid { margin-top: 20px; }
.market-card {
  height: 305px;
  padding: 20px;
  border-radius: 15px;
  background: var(--nx-bg);
}
.market-card__img {
  display: block;
  width: 100%;
  height: 147px;
  border-radius: 15px;
  object-fit: cover;
}
.market-card__title {
  margin: 20px 0 0;
  font: 600 22px/1 var(--font-head);
  text-transform: uppercase;
  color: #000;
}
.market-card__text { max-width: 300px; margin: 15px 0 0; font-size: 12px; line-height: 1.1; color: var(--nx-text); }
.markets__more { margin-top: 30px; }

/* логистика */
.logistics {
  position: relative;
  padding: 100px 0 50px;
  overflow: hidden;
  background: #fff;
}
.world-map--logistics { top: 0; width: 1539px; height: 744px; margin-left: -770px; }
.logistics__sub { max-width: 452px; }
.logistics__text { margin-top: 38px; }
.logistics__text p { max-width: 492px; margin: 0 0 15px; font-size: 14px; line-height: 1.09; color: var(--nx-text); }
.logistics__text p:last-child { margin-bottom: 0; }
.logistics__text .logistics__text-narrow { max-width: 457px; }
.benefits { max-width: 401px; margin-left: auto; padding-top: 136px; }
.benefits__title {
  margin: 0;
  font: 600 20px/1 var(--font-head);
  text-transform: uppercase;
  color: var(--nx-red);
}
.benefit { margin-top: 20px; padding-left: 8px; border-left: 1px solid rgba(228, 31, 37, .3); }
.benefit + .benefit { margin-top: 15px; }
.benefit__title { margin: 0; font: 500 14px/normal var(--font-body); color: #000; }
.benefit__text { max-width: 392px; margin: 5px 0 0; font-size: 12px; line-height: 1.09; color: var(--nx-text); }
.logistics__img-wrap {
  margin-top: 38px;
  aspect-ratio: 1200 / 389;
  border-radius: 20px;
  overflow: hidden;
}
.logistics__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.logistics__more { margin-top: 30px; }

.solutions--page { padding-bottom: 100px; }

@media (max-width: 1199.98px) {
  .company__title { max-width: none; }
}

@media (max-width: 991.98px) {
  .lead-form { width: 100%; max-width: 590px; }

  .hero--page .hero__inner { min-height: 0; padding-top: 170px; padding-bottom: 110px; }
  .company { margin-top: -50px; padding-top: 70px; }
  .company__img { height: auto; aspect-ratio: 590 / 353; min-height: 0; }
  .directions__title { margin-top: 10px; }
  .history { padding: 70px 0; }
  /* без закрепления — обычная горизонтальная прокрутка */
  .history__viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .history__viewport::-webkit-scrollbar { display: none; }
  .history-card { scroll-snap-align: start; scroll-margin-left: var(--gutter); }
  .benefits { max-width: none; margin-left: 0; padding-top: 20px; }
  .logistics { padding-top: 70px; }
  .logistics__img-wrap { aspect-ratio: 16 / 9; }
  .solutions--page { padding-bottom: 70px; }
}

@media (max-width: 767.98px) {
  .page-hero__word { font-size: 25vw; }
  .page-hero__kicker { position: static; display: block; width: auto; margin-bottom: 12px; font-size: 16px; }

  .company { margin-top: 0; padding: 60px 0 40px; }
  .company__line { margin: 20px 0; }
  .video-block--sm { height: auto; aspect-ratio: 590 / 353; }
  .direction-card { height: auto; min-height: 135px; }
  .stat-card { height: 200px; }
  .stat-card__value { font-size: 40px; }
  .stat-card--red .stat-card__value--xl { font-size: 64px; }
  .history { padding: 60px 0; }
  .history-card { width: min(320px, 85vw); height: 380px; padding: 140px 20px 20px; border-radius: 10px; }
  .markets { padding-top: 40px; }
  .markets .row { --bs-gutter-y: 15px; }
  .market-card { height: auto; border-radius: 10px; }
  .logistics { padding: 60px 0 40px; }
  .logistics__text { margin-top: 20px; }
  .logistics__img-wrap { margin-top: 30px; border-radius: 10px; }
  .solutions--page { padding-bottom: 60px; }
}

/* ==========================================================================
   Страница товара (poll-tex.html)
   ========================================================================== */
/* на внутренних страницах шапка тёмная с самого верха */
.page-light { padding-top: 65px; background: var(--nx-bg); }
.page-light .site-header { background: var(--nx-dark); border-bottom-color: transparent; }
.page-light .site-header__row { height: 65px; }
.page-light .site-header__sep { background: rgba(255, 255, 255, .4); }

.breadcrumbs { padding: 45px 0 0; }
.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 16px;
  line-height: 1;
  color: var(--nx-text);
}
.breadcrumbs__list a { color: var(--nx-text); text-decoration: none; transition: color .25s; }
.breadcrumbs__list a:hover { color: var(--nx-red); }
.breadcrumbs__list li + li::before {
  content: '';
  display: inline-block;
  width: 11px;
  height: 1px;
  margin-right: 11px;
  vertical-align: middle;
  background: var(--nx-red);
}
.breadcrumbs__list li:last-child { color: var(--nx-red); }

/* шапка товара */
.product-hero {
  position: relative;
  margin-top: 60px;
  padding: 179px 0 53px;
  border-radius: 20px;
  overflow: hidden;
  color: #fff;
}
.product-hero__bg { position: absolute; inset: 0; }
.product-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.product-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .4);
  box-shadow: inset 0 -400px 300px -200px rgba(0, 0, 0, .5);
}
.product-hero__inner { position: relative; }
.product-hero__eyebrow { margin: 0 0 20px; font-size: 14px; line-height: 1; }
.product-hero__title {
  max-width: 895px;
  margin: 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(28px, calc(14px + 2.22vw), 46px);
  line-height: 1;
  text-transform: uppercase;
}
.product-hero__text { max-width: 823px; margin: 20px 0 0; font-size: 14px; line-height: 1.2; }

/* переключатель «Описание / цены» — в одном стиле с вкладками товара */
.page-switch {
  display: flex;
  gap: 10px;
  margin-top: 39px;
  padding: 10px;
  border-radius: 15px;
  background: #fff;
}
.page-switch__item {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 38px;
  padding: 11px 20px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #000;
  font: 600 16px/1 var(--font-head);
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color .3s, color .3s;
}
/* иконка в отдельном боксе — не зависит от базовой линии текста
   и от того, какой высоты окажется сам svg */
.page-switch__item img {
  display: block;
  flex: none;
  width: 10px;
  height: 10px;
  align-self: center;
  object-fit: contain;
  transition: filter .3s;
}
.page-switch__item:hover { color: var(--nx-red); }
.page-switch__item.is-active { background: var(--nx-red); color: #fff; }
.page-switch__item.is-active img { filter: brightness(0) invert(1); }

/* подробнее о товаре */
/* снизу 100px: по макету между блоком с вкладками и белой секцией «Почему выбирают» */
.product-info { padding: 40px 0 100px; }
.product-info__sub { max-width: 626px; margin-top: 4px; }
.product-info__note { margin: 0; font-size: 14px; line-height: 1.09; color: var(--nx-text); }
.product-info__head { align-items: flex-start; }
.product-info__body { margin-top: 40px; }
.product-info__img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  border-radius: 15px;
  object-fit: cover;
}

.ptabs { display: flex; flex-direction: column; height: 100%; }
.ptabs__nav {
  display: inline-flex;
  align-self: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px;
  border-radius: 15px;
  background: #fff;
}
.ptabs__btn {
  padding: 10px 14px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #000;
  font: 600 16px/1 var(--font-head);
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color .3s, color .3s;
}
.ptabs__btn img { display: block; align-self: center; object-fit: contain; }
.ptabs__btn:hover { color: var(--nx-red); }
.ptabs__btn.is-active { background: var(--nx-red); color: #fff; }

.ptabs__panes { flex: 1 0 auto; padding-top: 30px; }
.ptabs__pane.is-active { animation: megaPane .45s ease both; }
.ptabs__title {
  max-width: 499px;
  margin: 0 0 15px;
  font: 600 22px/1 var(--font-head);
  text-transform: uppercase;
  color: #000;
}
.ptabs__text { max-width: 489px; margin: 0 0 15px; font-size: 12px; line-height: 1.09; color: var(--nx-text); }
.ptabs__text:last-child { margin-bottom: 0; }

.ptabs__list { margin: 0; padding: 0; list-style: none; }
.ptabs__list li {
  position: relative;
  padding: 0 0 10px 10px;
  font-size: 12px;
  line-height: 1.09;
  color: var(--nx-text);
}
.ptabs__list li::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--nx-red);
}

.ptabs__points { margin: 0; padding: 0; list-style: none; }
.ptabs__points li { display: flex; gap: 10px; }
.ptabs__points li + li { margin-top: 24px; }
.ptabs__points img { flex: none; width: 24px; height: 24px; }
.ptabs__points span { font-size: 12px; line-height: 1.09; color: var(--nx-text); }
.ptabs__points b {
  display: block;
  margin-bottom: 8px;
  font: 500 14px/normal var(--font-body);
  color: #000;
}
.ptabs__video { width: 358px; max-width: 100%; margin-top: 25px; }
.ptabs__order { width: 357px; max-width: 100%; margin-top: 30px; }

/* почему выбирают */
.features { padding: 50px 0; background: #fff; }
.features__sub { max-width: 927px; }
.features__grid { margin-top: 40px; }
.feature-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 251px;
  padding: 20px;
  border-radius: 15px;
  background: var(--nx-bg);
}
.feature-card__title {
  margin: 0;
  font: 600 22px/1 var(--font-head);
  text-transform: uppercase;
  color: #000;
}
.feature-card__text { max-width: 295px; margin: 15px 0 0; font-size: 12px; line-height: 1.09; color: var(--nx-text); }
.feature-card--photo { padding: 0; overflow: hidden; }
.feature-card--photo img { width: 100%; height: 100%; object-fit: cover; }
.features__order { margin-top: 30px; }

/* цвета полотна */
.colors { padding: 50px 0; }
.colors__stage {
  position: relative;
  margin-top: 40px;
  aspect-ratio: 1200 / 278;
  border-radius: 15px;
  overflow: hidden;
}
.colors__img { width: 100%; height: 100%; object-fit: cover; }
.colors__chip {
  position: absolute;
  left: 20px;
  bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  height: 52px;
  padding: 0 15px;
  border-radius: 15px;
  color: #fff;
  font: 600 22px/1 var(--font-head);
  text-transform: uppercase;
}

/* технология */
.tech { padding: 50px 0; }
.tech__sub { max-width: 599px; }
.tech__text { margin-top: 20px; }
.tech__text p { max-width: 489px; margin: 0 0 15px; font-size: 12px; line-height: 1.09; color: var(--nx-text); }
.tech__text p:last-child { margin-bottom: 0; }
.tech__grid { margin-top: 30px; }
.tech-card {
  position: relative;
  height: 100%;
  min-height: 139px;
  padding: 46px 20px 20px;
  border-radius: 15px;
  background: #fff;
}
.tech-card__icon { position: absolute; top: 5px; right: 5px; width: 40px; height: 40px; }
.tech-card__title {
  margin: 0;
  font: 600 16px/1 var(--font-head);
  text-transform: uppercase;
  color: #000;
}
.tech-card__text { margin: 15px 0 0; font-size: 12px; line-height: 1.09; color: var(--nx-text); }
/* по макету: текст 611px, картинка 537×667, между ними 32px, по вертикали — по центру */
@media (min-width: 992px) {
  .tech > .container > .row { justify-content: space-between; align-items: center; }
  .tech > .container > .row > .col-lg-6:first-child { width: 51.721%; }
  .tech > .container > .row > .col-lg-6:last-child { width: 45.656%; }
}
.tech__img-wrap {
  aspect-ratio: 537 / 667;
  border-radius: 15px;
  overflow: hidden;
}
.tech__img { width: 100%; height: 100%; object-fit: cover; }

.original-wrap { padding: 50px 0; }
.original-wrap .original { margin-top: 0; }

/* ассортимент */
.assortment { padding: 50px 0 100px; }
.assortment__sub { max-width: 725px; }
.assortment__grid { margin-top: 40px; }
/* карточка товара по макету: 387×271, внутри поля 15px */
.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 271px;
  padding: 15px;
  border-radius: 15px;
  background: #fff;
}
.product-card__img {
  display: block;
  width: 100%;
  height: 149px;
  border-radius: 15px;
  object-fit: cover;
}
.product-card__title {
  margin: 15px 0 0;
  font: 600 18px/1 var(--font-head);
  color: #000;
}
.product-card__prices {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 40px;
  margin: 15px 0 0;
}
/* цена: число крупное, единица измерения мелкая */
.product-card__price {
  font: 400 12px/1.09 var(--font-body);
  color: #000;
  white-space: nowrap;
}
.product-card__price b { font: 600 24px/1.09 var(--font-body); }

@media (max-width: 991.98px) {
  .product-hero { margin-top: 40px; padding: 60px 0 40px; }
  .product-info__note { margin-top: 20px; }
  .product-info__img { height: auto; aspect-ratio: 488 / 524; min-height: 0; }
  .ptabs__panes { padding-top: 25px; }
  .tech__img-wrap { margin-top: 20px; }
  .feature-card { height: auto; min-height: 210px; }
  .feature-card--photo { min-height: 0; aspect-ratio: 794 / 251; }
  .assortment { padding-bottom: 70px; }
}

@media (max-width: 767.98px) {
  .page-light { padding-top: 68px; }
  .page-light .site-header__row { height: 68px; }
  .breadcrumbs { padding-top: 20px; }
  .breadcrumbs__list { font-size: 13px; gap: 8px; }
  .breadcrumbs__list li + li::before { width: 8px; margin-right: 8px; }

  .product-hero { margin-top: 20px; padding: 40px 0 30px; border-radius: 10px; }
  .product-hero__title { font-size: 26px; }
  .page-switch { flex-direction: column; gap: 6px; margin-top: 20px; padding: 6px; border-radius: 12px; }
  .page-switch__item { min-height: 36px; padding: 10px 16px; border-radius: 10px; font-size: 15px; }

  .product-info { padding-top: 40px; padding-bottom: 60px; }
  .product-info__body { margin-top: 20px; }
  .ptabs__nav { align-self: stretch; gap: 6px; padding: 6px; border-radius: 12px; }
  .ptabs__btn { flex: 1 1 calc(50% - 6px); padding: 9px 8px; border-radius: 10px; font-size: 13px; }
  /* на телефоне высоту не фиксируем — панель занимает столько, сколько нужно */
  .ptabs__panes { min-height: 0 !important; }
  .ptabs__video, .ptabs__order { width: 100%; }

  .features { padding: 40px 0; }
  .features__grid { margin-top: 20px; --bs-gutter-y: 15px; }
  .feature-card { border-radius: 10px; }
  .colors { padding: 40px 0; }
  .colors__stage { margin-top: 20px; aspect-ratio: 4 / 3; border-radius: 10px; }
  .tech { padding: 40px 0; }
  .tech__text { margin-top: 20px; }
  .tech__grid { --bs-gutter-y: 15px; }
  .tech-card { border-radius: 10px; }
  .tech__img-wrap { border-radius: 10px; }
  .original-wrap { padding: 40px 0; }
  .assortment { padding: 40px 0 60px; }
  .assortment__grid { margin-top: 20px; --bs-gutter-y: 15px; }
  .product-card { border-radius: 10px; }
}

/* ==========================================================================
   Страница системы VSN® (vsn.html)
   ========================================================================== */
.product-hero__title--narrow { max-width: 712px; }
.product-hero__text--narrow { max-width: 563px; }

/* что такое VSN */
.vsn-about { padding: 40px 0 0; }
.vsn-about__sub { max-width: 556px; margin-top: 4px; }
.vsn-about__text { margin-top: 20px; }
.vsn-about__text p { max-width: 566px; margin: 0 0 15px; font-size: 14px; line-height: 1.09; color: var(--nx-text); }
.vsn-about__text p:last-child { margin-bottom: 0; }
.vsn-about__img-wrap {
  aspect-ratio: 590 / 424;
  border-radius: 15px;
  overflow: hidden;
}
.vsn-about__img { width: 100%; height: 100%; object-fit: cover; }
/* на этой странице в блоке два абзаца */
.original__body .original__text + .original__text { margin-top: 15px; }

/* для кого подходит */
.audience { padding: 50px 0; }
.audience__head { align-items: flex-start; }
.audience__sub { max-width: 494px; margin-top: 4px; }
.audience__note { margin: 0; font-size: 14px; line-height: 1.09; color: var(--nx-text); }
.audience__grid { margin-top: 40px; }
.audience-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: 423px;
  padding: 15px;
  border-radius: 15px;
  overflow: hidden;
}
.audience-card__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.audience-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0) 55%);
}
.audience-card__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 15px;
  border-radius: 15px;
  color: #fff;
}
.audience-card__title {
  margin: 0;
  font: 600 18px/1.1 var(--font-head);
  text-transform: uppercase;
}
.audience-card__text { margin: 9px 0 0; font-size: 12px; line-height: 1.09; color: rgba(255, 255, 255, .9); }
.audience__order { margin-top: 30px; }

/* каталог системы */
.vsn-catalog { padding: 50px 0; background: #fff; }
.vsn-catalog__head { align-items: flex-start; }
.vsn-catalog__sub { max-width: 545px; margin-top: 4px; }
.vsn-catalog__note { margin: 0; font-size: 12px; line-height: 1.09; color: var(--nx-text); }
.vsn-catalog__grid { margin-top: 40px; }
.part-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 331px;
  padding: 15px;
  border-radius: 15px;
  background: var(--nx-bg);
}
.part-card__img {
  display: block;
  width: 100%;
  height: 149px;
  border-radius: 15px;
  object-fit: cover;
}
.part-card__title {
  min-height: 40px;
  margin: 15px 0 0;
  font: 600 18px/1.1 var(--font-head);
  text-transform: uppercase;
  color: #000;
}
.part-card__text { margin: 15px 0 20px; font-size: 12px; line-height: 1.09; color: var(--nx-text); }
.part-card__btn {
  width: 100%;
  height: 40px;
  margin-top: auto;
  padding: 0 18px;
  font-size: 13px;
}

/* FAQ в одну колонку (как в макете VSN) */
.faq--rows { padding-top: 60px; }
.faq__rows { display: flex; flex-direction: column; gap: 15px; margin-top: 30px; }

@media (max-width: 991.98px) {
  .vsn-about { padding-top: 40px; }
  .vsn-about__img-wrap { margin-top: 20px; }
  .audience__note, .vsn-catalog__note { margin-top: 20px; }
  .audience-card { height: 360px; }
  .part-card { min-height: 0; }
}

@media (max-width: 767.98px) {
  .vsn-about { padding-top: 30px; }
  .vsn-about__img-wrap { border-radius: 10px; }
  .audience { padding: 40px 0; }
  .audience__grid { margin-top: 20px; --bs-gutter-y: 15px; }
  .audience-card { height: 320px; border-radius: 10px; }
  .vsn-catalog { padding: 40px 0; }
  .vsn-catalog__grid { margin-top: 20px; --bs-gutter-y: 15px; }
  .part-card { border-radius: 10px; }
  .faq--rows { padding-top: 40px; }
  .faq__rows { gap: 10px; margin-top: 20px; }
}

/* ==========================================================================
   Каталог продукции (catalog.html)
   ========================================================================== */
.catalog-page { padding: 60px 0 50px; }
.catalog-page__title { max-width: 471px; }

/* переключатель направлений: две широкие кнопки */
.ptabs--wide { display: block; }
.ptabs--wide .ptabs__nav {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  padding: 0;
  border-radius: 0;
  background: none;
}
.ptabs--wide .ptabs__btn {
  flex: 1 1 0;
  height: 47px;
  padding: 0 10px;
  border: 1px solid rgba(228, 31, 37, .4);
  border-radius: 25px;
  background: #fff;
  color: var(--nx-red);
  font: 600 14px/1 var(--font-body);
}
.ptabs--wide .ptabs__btn:hover { border-color: var(--nx-red); }
.ptabs--wide .ptabs__btn.is-active { background: var(--nx-red); border-color: var(--nx-red); color: #fff; }
.ptabs--wide .ptabs__panes { padding-top: 30px; }

@media (max-width: 767.98px) {
  .catalog-page { padding: 30px 0 40px; }
  .ptabs--wide .ptabs__nav { flex-direction: column; gap: 10px; margin-top: 20px; }
  .ptabs--wide .ptabs__btn { flex: none; width: 100%; }
  .ptabs--wide .ptabs__panes { padding-top: 20px; }
}

/* ==========================================================================
   Полотна для москитных сеток (fabrics.html)
   ========================================================================== */
.product-hero__title--wide { max-width: 767px; }
.product-hero__text--sm { max-width: 545px; }

.fabrics { padding: 60px 0 50px; }
.fabrics__sub { max-width: 725px; margin-top: 4px; }
.fabrics__grid { margin-top: 40px; }
.part-card--white { background: #fff; }

/* экспертиза */
.expertise { position: relative; padding: 50px 0; overflow: hidden; background: #fff; }
.world-map--expertise { top: 0; width: 1090px; height: 513px; margin-left: -545px; }
.expertise__head { align-items: flex-start; }
.expertise__title { max-width: 805px; }
.expertise__lead { max-width: 486px; margin: 20px 0 0; font-size: 14px; line-height: 1.09; color: var(--nx-text); }
.expertise__note {
  position: relative;
  margin: 0;
  padding-left: 58px;
  font-size: 14px;
  line-height: 1.09;
  color: var(--nx-text);
}
.expertise__note-icon {
  position: absolute;
  top: -2px;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 5px;
  background: var(--nx-red);
}
.expertise__note-icon img { width: 37px; height: 37px; }
.expertise__body { margin-top: 38px; }
.expertise__panel { height: 100%; padding: 40px; border-radius: 15px; background: var(--nx-bg); }
.expertise__panel-title {
  max-width: 245px;
  margin: 0 0 20px;
  font: 600 18px/1.1 var(--font-head);
  text-transform: uppercase;
  color: #000;
}
.exp-card {
  position: relative;
  min-height: 139px;
  height: 100%;
  padding: 33px 60px 20px 20px;
  border-radius: 15px;
  background: #fff;
}
.exp-card__icon { position: absolute; top: 10px; right: 15px; width: 30px; height: 30px; }
.exp-card__title {
  margin: 0;
  font: 600 18px/1.1 var(--font-head);
  text-transform: uppercase;
  color: #000;
}
.exp-card__text { margin: 15px 0 0; font-size: 12px; line-height: 1.09; color: var(--nx-text); }
.expertise__img-wrap { height: 100%; min-height: 300px; border-radius: 15px; overflow: hidden; }
.expertise__img { width: 100%; height: 100%; object-fit: cover; }

.features--quality { background: var(--nx-bg); }
.features__head { align-items: flex-start; }
.features__note { margin: 0; font-size: 14px; line-height: 1.09; color: var(--nx-text); }

/* задачи — слайдер */
.tasks { padding: 50px 0; background: #fff; }
.tasks__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}
.tasks__sub { max-width: 980px; margin-top: 4px; }
.tasks__nav { display: flex; gap: 10px; flex: none; }
.tasks__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: var(--nx-red);
  transition: opacity .25s, background-color .25s;
}
.tasks__arrow img { width: 14px; height: 15px; filter: brightness(0) invert(1); }
.tasks__arrow[data-slider-prev] img { transform: scaleX(-1); }
.tasks__arrow:disabled { opacity: .35; cursor: default; }
.tasks__viewport {
  margin-top: 40px;
  overflow: hidden;
  scrollbar-width: none;
}
.tasks__viewport::-webkit-scrollbar { display: none; }
.tasks__track {
  display: flex;
  gap: 20px;
  transition: transform .6s cubic-bezier(.4, 0, .2, 1);
}
.task-card {
  display: flex;
  gap: 20px;
  flex: none;
  width: calc((100% - 20px) / 2);
  padding: 20px;
  border-radius: 15px;
  background: var(--nx-bg);
}
.task-card__img {
  flex: none;
  width: 228px;
  height: 252px;
  border-radius: 15px;
  object-fit: cover;
}
.task-card__body { display: flex; flex-direction: column; min-width: 0; }
.task-card__title {
  margin: 0 0 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(0, 0, 0, .2);
  font: 600 18px/1.1 var(--font-head);
  text-transform: uppercase;
  color: #000;
}
.task-card__solution {
  margin: 0 0 15px;
  font: 600 14px/1.29 var(--font-body);
  color: var(--nx-red);
}
.task-card__text { margin: 0 0 20px; font-size: 12px; line-height: 1.09; color: var(--nx-text); }
.task-card__btn { width: 100%; height: 42px; margin-top: auto; padding: 0 20px; font-size: 13px; }

/* сертификаты */
.certs { position: relative; padding: 50px 0; overflow: hidden; }
.world-map--certs { top: 0; width: 1579px; height: 743px; margin-left: -790px; }
.certs__sub { max-width: 1098px; margin-top: 4px; }
.certs__grid { margin-top: 40px; }
.cert-card {
  display: block;
  aspect-ratio: 285 / 402;
  border-radius: 15px;
  overflow: hidden;
}
.cert-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.cert-card:hover img { transform: scale(1.03); }
.certs__btn { margin-top: 30px; }

@media (max-width: 991.98px) {
  .expertise__note { margin-top: 20px; }
  .expertise__panel { padding: 24px; }
  .expertise__img-wrap { margin-top: 20px; aspect-ratio: 488 / 442; height: auto; min-height: 0; }
  .features__note { margin-top: 20px; }
  .task-card { width: 100%; }
  .task-card__img { width: 180px; height: 200px; }
}

@media (max-width: 767.98px) {
  .fabrics { padding: 30px 0 40px; }
  .fabrics__grid { margin-top: 20px; --bs-gutter-y: 15px; }
  .expertise { padding: 40px 0; }
  .expertise__body { margin-top: 20px; }
  .expertise__panel { padding: 20px; border-radius: 10px; }
  .exp-card { border-radius: 10px; }
  .expertise__img-wrap { border-radius: 10px; }
  .tasks { padding: 40px 0; }
  .tasks__head { flex-direction: column; align-items: stretch; gap: 20px; }
  .tasks__nav { justify-content: flex-end; }
  .tasks__viewport { margin-top: 20px; }
  .task-card { flex-direction: column; gap: 15px; border-radius: 10px; padding: 15px; }
  .task-card__img { width: 100%; height: 200px; }
  .certs { padding: 40px 0; }
  .certs__grid { margin-top: 20px; --bs-gutter-y: 15px; }
  .cert-card { border-radius: 10px; }
  .certs__btn { width: 100%; }
}

/* ==========================================================================
   Контакты (contacts.html)
   ========================================================================== */
.contacts { padding: 60px 0 100px; }
.office {
  display: flex;
  gap: 30px;
  margin-top: 40px;
  padding: 50px;
  border-radius: 15px;
  background: #fff;
}
.office__body { flex: 1 1 auto; min-width: 0; max-width: 400px; }
.office__title {
  max-width: 300px;
  margin: 0 0 30px;
  font: 600 22px/1.1 var(--font-head);
  text-transform: uppercase;
  color: #000;
}
.office__list { margin: 0; }
.office__row { padding-bottom: 14px; border-bottom: 1px solid rgba(0, 0, 0, .1); }
.office__row + .office__row { margin-top: 15px; }
.office__row dt { margin: 0 0 10px; font: 500 15px/1 var(--font-body); color: var(--nx-text); }
.office__row dd { margin: 0; font: 500 16px/1.1 var(--font-body); color: #000; }
.office__value { color: var(--nx-red); font-size: 18px; text-decoration: none; }
.office__value:hover { color: var(--nx-red); text-decoration: underline; }
/* координаты одной кнопкой: клик копирует значение из data-copy */
.office__copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  font: 500 18px/1.1 var(--font-body);
  color: var(--nx-red);
  cursor: pointer;
}
.office__copy:hover .office__copy-text { text-decoration: underline; }
.office__copy-icon {
  position: relative;
  flex: none;
  width: 15px;
  height: 15px;
}
/* две рамки-прямоугольника — иконка копирования, без отдельного файла */
.office__copy-icon::before,
.office__copy-icon::after {
  content: '';
  position: absolute;
  border: 1.5px solid currentColor;
  border-radius: 3px;
}
.office__copy-icon::before { left: 0; top: 0; width: 10px; height: 10px; }
.office__copy-icon::after { right: 0; bottom: 0; width: 10px; height: 10px; background: #fff; }
.office__copy-note {
  margin-left: 10px;
  font-size: 14px;
  color: var(--nx-text);
  opacity: 0;
  transition: opacity .2s;
}
.office__copy-note.is-shown { opacity: 1; }

.office__btn { width: 274px; max-width: 100%; margin-top: 15px; }
.office__map {
  flex: 1 1 666px;
  max-width: 666px;
  border-radius: 15px;
  overflow: hidden;
}
.office__map img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   Сертификаты (certificates.html)
   ========================================================================== */
.certs-page { padding: 60px 0 100px; }
.ptabs--docs { display: block; }
.ptabs--docs .ptabs__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
  padding: 0;
  border-radius: 0;
  background: none;
}
.ptabs--docs .ptabs__btn {
  flex: 0 1 282px;
  height: 47px;
  padding: 0 10px;
  border: 1px solid rgba(228, 31, 37, .4);
  border-radius: 25px;
  background: #fff;
  color: var(--nx-red);
  font: 600 14px/1 var(--font-body);
}
.ptabs--docs .ptabs__btn:hover { border-color: var(--nx-red); }
.ptabs--docs .ptabs__btn.is-active { background: var(--nx-red); border-color: var(--nx-red); color: #fff; }
.ptabs--docs .ptabs__panes { padding-top: 30px; }

/* Лайтбокс сертификатов — на модалке Bootstrap, отдельной библиотеки нет */
.lightbox__content {
  position: relative;
  align-items: center;
  padding: 20px;
  border: 0;
  border-radius: 15px;
  background: #fff;
}
.lightbox__img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 160px);
  border-radius: 10px;
  object-fit: contain;
}
.lightbox__caption {
  max-width: 640px;
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.2;
  text-align: center;
  color: #000;
}
.lightbox__close {
  position: absolute;
  top: -34px;
  right: 0;
  z-index: 2;
  opacity: .9;
}
.lightbox__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  border: 0;
  border-radius: 50%;
  background: var(--nx-red);
  transition: opacity .25s;
}
.lightbox__nav:hover { opacity: .85; }
.lightbox__nav::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -3px;
  border: solid #fff;
  border-width: 2px 2px 0 0;
}
.lightbox__nav--prev { left: -60px; }
.lightbox__nav--prev::before { margin-left: -7px; transform: rotate(-135deg); }
.lightbox__nav--next { right: -60px; }
.lightbox__nav--next::before { transform: rotate(45deg); }

@media (max-width: 991.98px) {
  .lightbox__nav--prev { left: 6px; }
  .lightbox__nav--next { right: 6px; }
  .lightbox__close { top: -32px; right: 6px; }
}

/* Карточка тянется на всю высоту ряда, подпись прижата к низу —
   так подписи в ряду стоят на одной линии при разной высоте сканов */
.doc-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
}
.doc-card__img {
  display: block;
  width: 100%;
  /* высота по самой картинке: сканы приходят разных пропорций, и жёсткая
     коробка оставляла бы внутри рамки белые поля сверху и снизу */
  height: auto;
  border: 1px solid #ececec;
  border-radius: 15px;
  background: #fff;
  transition: transform .4s, border-color .25s;
}
.doc-card:hover .doc-card__img {
  transform: scale(1.02);
  border-color: rgba(228, 31, 37, .4);
}
.doc-card__title {
  display: block;
  margin-top: auto;
  padding-top: 10px;
  font-size: 14px;
  line-height: 1.2;
  color: #000;
  transition: color .25s;
}
.doc-card:hover .doc-card__title { color: var(--nx-red); }

/* ==========================================================================
   Новости (news.html)
   ========================================================================== */
.news { padding: 50px 0 100px; }
.news-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: 410px;
  padding: 15px;
  border-radius: 15px;
  overflow: hidden;
  /* фон на случай новости без картинки */
  background: var(--nx-dark);
}
.news-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.news-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .75), rgba(0, 0, 0, 0) 60%);
}
.news-card__body { position: relative; z-index: 1; width: 100%; color: #fff; }
.news-card__title {
  max-width: 335px;
  margin: 0;
  font: 600 18px/1.1 var(--font-head);
  text-transform: uppercase;
}
.news-card__date { margin: 14px 0 0; font-size: 12px; line-height: 1; color: rgba(255, 255, 255, .8); }
.news-card__text {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.2;
  color: rgba(255, 255, 255, .85);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card__btn {
  width: 100%;
  height: 41px;
  margin-top: 15px;
  padding: 0 14px;
  font-size: 13px;
}

.pager { margin-top: 40px; }
.pager__count { margin: 0 0 10px; font-size: 14px; line-height: 1; color: var(--nx-text); }
.pager__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pager__list > li + li { padding-left: 16px; border-left: 1px solid rgba(0, 0, 0, .2); }
.pager__list a {
  font: 500 16px/1.2 var(--font-body);
  color: #000;
  text-decoration: none;
  transition: color .25s;
}
.pager__list a:hover { color: var(--nx-red); }
.pager__list a[aria-disabled="true"] { color: var(--nx-muted); pointer-events: none; }
.pager__pages { display: flex; gap: 8px; }
.pager__pages a.is-current { color: var(--nx-red); }

@media (max-width: 991.98px) {
  .office { flex-direction: column; padding: 30px; }
  .office__body { max-width: none; }
  .office__map { flex: 0 0 auto; max-width: none; }
  .news-card { height: 360px; }
}

@media (max-width: 767.98px) {
  .contacts, .certs-page { padding: 30px 0 60px; }
  .office { margin-top: 20px; padding: 20px; border-radius: 10px; }
  .office__title { max-width: none; margin-bottom: 20px; font-size: 20px; }
  .office__map { border-radius: 10px; }
  .office__btn { width: 100%; }
  .ptabs--docs .ptabs__nav { flex-direction: column; gap: 10px; }
  .ptabs--docs .ptabs__btn { flex: none; width: 100%; font-size: 13px; }
  .ptabs--docs .ptabs__panes { padding-top: 20px; }
  .ptabs--docs .row { --bs-gutter-y: 15px; }
  .doc-card__img { border-radius: 10px; }
  .news { padding: 30px 0 60px; }
  .news__grid { --bs-gutter-y: 15px; }
  .news-card { height: 340px; border-radius: 10px; }
  .pager { margin-top: 30px; }
  .pager__list { gap: 8px 10px; font-size: 14px; }
  .pager__list > li + li { padding-left: 10px; }
  .pager__list a { font-size: 14px; }
}

/* ==========================================================================
   Каталог цен (prices.html, prices-vsn.html)
   ========================================================================== */
.prices { padding: 60px 0 50px; }
.prices__title { max-width: 490px; margin-bottom: 30px; }
.prices__layout { display: flex; align-items: flex-start; gap: 20px; }

.prices__aside {
  position: sticky;
  top: 85px;
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 82px;
  padding: 20px 0;
  border-radius: 15px;
  background: #fff;
}
.prices__filter {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 35px;
  height: 35px;
  padding: 9px;
  border: 0;
  border-radius: 5px;
  background: transparent;
}
.prices__filter span { display: block; height: 1px; background: var(--nx-red); }
.prices__filter span:nth-child(2) { width: 12px; }
.prices__filter span:nth-child(3) { width: 8px; }
.prices__thumb { display: block; line-height: 0; }
.prices__thumb img {
  width: 35px;
  height: 35px;
  border-radius: 5px;
  background: var(--nx-bg);
  object-fit: cover;
  transition: transform .25s;
}
.prices__thumb:hover img { transform: scale(1.08); }

.prices__body { flex: 1 1 auto; min-width: 0; }
.prices__divider {
  margin: 30px 0;
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, .2);
  opacity: 1;
}
.cat-card--sm { aspect-ratio: 259 / 219; }

.price-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 232px;
  padding: 10px;
  border-radius: 15px;
  background: #fff;
}
.price-card__img {
  display: block;
  width: 100%;
  height: 145px;
  border-radius: 15px;
  background: #d9d9d9;
  object-fit: cover;
}
.price-card__title {
  margin: 15px 0 0;
  font: 400 14px/1.29 var(--font-body);
  color: #000;
}
/* название товара — ссылка; цвет задаём явно, иначе он будет синим */
.price-card__title a { color: inherit; text-decoration: none; transition: color .25s; }
.price-card__title a:hover { color: var(--nx-red); }
.price-card__price {
  margin: 15px 0 0;
  font: 600 22px/1.18 var(--font-head);
  color: var(--nx-red);
}
.price-card__btn { width: 100%; margin-top: auto; padding-top: 0; }
.price-card__btn { height: 47px; margin-top: 16px; padding: 0 16px; }

@media (max-width: 991.98px) {
  .prices__aside {
    position: static;
    flex-direction: row;
    width: 100%;
    padding: 12px 20px;
  }
  .prices__layout { flex-direction: column; }
  .price-card { min-height: 0; }
}

@media (max-width: 767.98px) {
  .prices { padding: 30px 0 40px; }
  .prices__title { margin-bottom: 20px; }
  .prices__aside { border-radius: 10px; }
  .prices__divider { margin: 20px 0; }
  .price-card { border-radius: 10px; }
  .price-card__img { border-radius: 10px; }
}

/* ==========================================================================
   Обойный клей (glue.html)
   ========================================================================== */
.product-hero__title--glue { max-width: 752px; }
.product-hero__text--glue { max-width: 681px; }
.glue-about__title { max-width: 537px; }
.glue-about__sub { max-width: 616px; margin-top: 4px; }
.glue-about__img-wrap { aspect-ratio: 534 / 441; }

.lineup { padding: 50px 0; }
.lineup__head { align-items: flex-start; }
.lineup__sub { max-width: 545px; margin-top: 4px; }
.lineup__note { margin: 0; font-size: 14px; line-height: 1.09; color: var(--nx-text); }
.lineup__grid { margin-top: 40px; }
.glue-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 288px;
  padding: 15px;
  border-radius: 15px;
  background: #fff;
}
.glue-card__title {
  margin: 20px 0 0;
  font: 600 18px/1.1 var(--font-head);
  text-transform: uppercase;
  color: #000;
}
.glue-card__density {
  margin: 10px 0 0;
  font: 500 12px/1.1 var(--font-body);
  color: var(--nx-red);
}
.glue-card__text { margin: 15px 0 0; font-size: 12px; line-height: 1.09; color: var(--nx-text); }
.lineup__banner {
  margin-top: 40px;
  aspect-ratio: 1200 / 408;
  border-radius: 15px;
  overflow: hidden;
}
.lineup__banner img { width: 100%; height: 100%; object-fit: cover; }
.lineup__order { margin-top: 30px; }

@media (max-width: 991.98px) {
  .lineup__note { margin-top: 20px; }
  .glue-card { min-height: 0; }
}

@media (max-width: 767.98px) {
  .lineup { padding: 40px 0; }
  .lineup__grid { margin-top: 20px; --bs-gutter-y: 15px; }
  .glue-card { border-radius: 10px; }
  .lineup__banner { margin-top: 30px; aspect-ratio: 16 / 9; border-radius: 10px; }
}

/* ==========================================================================
   Пигментированный стеклохолст (pigment.html)
   ========================================================================== */
.pigment-about__title { max-width: 574px; }
.pigment-about__sub { max-width: 455px; margin-top: 4px; }
.features__title-wide { max-width: 728px; }

/* где применялся материал */
.objects { padding: 50px 0; }
.objects__sub { max-width: 495px; margin-top: 4px; }
.objects__photo {
  position: relative;
  aspect-ratio: 590 / 331;
  border-radius: 15px;
  overflow: hidden;
}
.objects__photo + .objects__photo { margin-top: 20px; }
.objects__photo img { width: 100%; height: 100%; object-fit: cover; }
.objects__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .45), rgba(0, 0, 0, 0) 45%);
}
.objects__tag {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 15px;
  border-radius: 10px;
  background: var(--nx-red);
  color: #fff;
  font: 600 18px/1 var(--font-head);
  text-transform: uppercase;
}
.objects__list { margin: 38px 0 0; padding: 0; list-style: none; }
.objects__list li { padding-bottom: 15px; border-bottom: 1px solid rgba(0, 0, 0, .1); }
.objects__list li + li { margin-top: 15px; }
.objects__name {
  margin: 0;
  font: 600 18px/1.1 var(--font-head);
  text-transform: uppercase;
  color: #000;
}
.objects__note { margin: 10px 0 0; font-size: 12px; line-height: 1.09; color: var(--nx-text); }

.lineup__sub--wide { max-width: 813px; }
.lineup__intro { margin-top: 30px; }
.glue-card--sm { min-height: 205px; }
.glue-card--sm .glue-card__text { margin-top: 10px; }

/* баннер с крупным словом nortex */
.lineup__banner--brand { position: relative; }
.lineup__banner-word {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(60px, 14vw, 200px);
  line-height: 1;
  color: rgba(255, 255, 255, .5);
  pointer-events: none;
}

@media (max-width: 991.98px) {
  .objects__list { margin-top: 20px; }
}

@media (max-width: 767.98px) {
  .objects { padding: 40px 0; }
  .objects__photo { border-radius: 10px; }
  .objects__photo + .objects__photo { margin-top: 15px; }
  .objects__tag { top: 15px; left: 15px; height: 40px; font-size: 15px; }
  .lineup__intro { margin-top: 20px; }
  .lineup__intro .lineup__note + .lineup__note { margin-top: 0; }
  .glue-card--sm { min-height: 0; }
}

/* ==========================================================================
   Видео установки и варианты окон (usn.html)
   ========================================================================== */
.video-guides { padding: 50px 0; }
.video-guides__head { align-items: flex-start; }
.video-guides__sub { max-width: 545px; margin-top: 4px; }
.video-guides__note { margin: 0; font-size: 14px; line-height: 1.09; color: var(--nx-text); }
.video-guides__video { margin-top: 40px; }

.window-types { padding: 0 0 50px; }
.window-types__sub { max-width: 545px; margin-top: 4px; }
.window-types__grid { margin-top: 40px; }
.window-card__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 387 / 290;
  border-radius: 15px;
  object-fit: cover;
}
.window-card__title {
  margin: 15px 0 0;
  font: 600 18px/1.1 var(--font-head);
  text-transform: uppercase;
  color: #000;
}

@media (max-width: 991.98px) {
  .video-guides__note { margin-top: 20px; }
}

@media (max-width: 767.98px) {
  .video-guides { padding: 40px 0; }
  .video-guides__video { margin-top: 20px; }
  .window-types { padding-bottom: 40px; }
  .window-types__grid { margin-top: 20px; --bs-gutter-y: 15px; }
  .window-card__img { border-radius: 10px; }
}

/* два видео в ряд (tools.html) */
.video-block--half {
  width: 100%;
  height: auto;
  margin-top: 0;
  aspect-ratio: 590 / 331;
}
.video-block__caption {
  margin: 15px 0 0;
  font: 600 18px/1.1 var(--font-head);
  text-transform: uppercase;
  color: #000;
}
.vsn-about--reverse { padding-top: 0; }

@media (max-width: 767.98px) {
  /* на телефоне общая мобильная высота .video-block не должна ломать пропорцию */
  .video-block--half { height: auto; border-radius: 10px; }
}

/* ==========================================================================
   Состав комплекта (страницы раздела «Сделай сам»)
   ========================================================================== */
.kit { padding: 50px 0; }
.kit__sub { max-width: 545px; margin-top: 4px; }
.kit__card {
  margin-top: 40px;
  padding: 40px;
  border-radius: 15px;
  background: #fff;
}
.kit__list {
  column-count: 2;
  column-gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.kit__list li {
  position: relative;
  margin-bottom: 12px;
  padding-left: 14px;
  font-size: 14px;
  line-height: 1.2;
  color: var(--nx-text);
  break-inside: avoid;
}
.kit__list li::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--nx-red);
}
.kit__list b { color: #000; font-weight: 600; }
.kit__note { margin: 20px 0 0; font-size: 12px; line-height: 1.09; color: var(--nx-muted); }

/* характеристики моделей */
.specs__grid { margin-top: 40px; }
.spec-card {
  height: 100%;
  padding: 30px;
  border-radius: 15px;
  background: #fff;
}
.spec-card__title {
  margin: 0 0 20px;
  font: 600 22px/1.1 var(--font-head);
  text-transform: uppercase;
  color: var(--nx-red);
}
.spec-card__row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 10px;
  font-size: 14px;
  line-height: 1.2;
  color: var(--nx-text);
}
.spec-card__row + .spec-card__row { margin-top: 10px; }
.spec-card__row { border-bottom: 1px solid rgba(0, 0, 0, .1); }
.spec-card__row b { flex: none; color: #000; font-weight: 600; text-align: right; }

@media (max-width: 767.98px) {
  .kit { padding: 40px 0; }
  .kit__card { margin-top: 20px; padding: 20px; border-radius: 10px; }
  .kit__list { column-count: 1; }
  .specs__grid { margin-top: 20px; --bs-gutter-y: 15px; }
  .spec-card { padding: 20px; border-radius: 10px; }
}

/* ==========================================================================
   Детальная страница новости
   ========================================================================== */
.article { padding: 40px 0 50px; }
.article__head { max-width: 900px; }
.article__date {
  margin: 0 0 15px;
  font: 500 14px/1 var(--font-body);
  color: var(--nx-red);
}
.article__title {
  margin: 0;
  font: 600 34px/1.1 var(--font-head);
  text-transform: uppercase;
  color: #000;
}
.article__lead {
  max-width: 800px;
  margin: 20px 0 0;
  font: 500 16px/1.3 var(--font-body);
  color: var(--nx-text);
}
.article__cover {
  margin-top: 40px;
  aspect-ratio: 1200 / 500;
  border-radius: 15px;
  overflow: hidden;
}
.article__cover img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* типографика текста новости — теги приходят из редактора Битрикса */
.article__body { max-width: 800px; margin-top: 40px; }
.article__body > *:first-child { margin-top: 0; }
.article__body p {
  margin: 0 0 15px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--nx-text);
}
.article__body h2,
.article__body h3,
.article__body h4 {
  margin: 30px 0 15px;
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.1;
  text-transform: uppercase;
  color: #000;
}
.article__body h2 { font-size: 22px; }
.article__body h3 { font-size: 18px; }
.article__body h4 { font-size: 16px; }
.article__body ul,
.article__body ol { margin: 0 0 15px; padding: 0 0 0 18px; }
.article__body ul { list-style: none; padding-left: 0; }
.article__body ul li {
  position: relative;
  margin-bottom: 8px;
  padding-left: 14px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--nx-text);
}
.article__body ul li::before {
  content: '';
  position: absolute;
  top: 9px;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--nx-red);
}
.article__body ol li { margin-bottom: 8px; font-size: 14px; line-height: 1.5; color: var(--nx-text); }
.article__body a { color: var(--nx-red); }
.article__body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 20px 0;
  border-radius: 15px;
}
.article__body blockquote {
  margin: 20px 0;
  padding: 20px 25px;
  border-left: 2px solid var(--nx-red);
  border-radius: 0 15px 15px 0;
  background: #fff;
  font-size: 14px;
  line-height: 1.5;
  color: var(--nx-text);
}
.article__body table {
  width: 100%;
  margin: 20px 0;
  border-collapse: collapse;
  font-size: 14px;
  color: var(--nx-text);
}
.article__body th,
.article__body td { padding: 10px 12px; border-bottom: 1px solid rgba(0, 0, 0, .1); text-align: left; }
.article__body th { color: #000; font-weight: 600; }
.article__back { margin-top: 40px; }

/* другие новости */
.more-news { padding: 0 0 50px; }
.more-news__grid { margin-top: 40px; }

@media (max-width: 767.98px) {
  .article { padding: 20px 0 40px; }
  .article__title { font-size: 24px; }
  .article__cover { margin-top: 20px; aspect-ratio: 16 / 9; border-radius: 10px; }
  .article__body { margin-top: 20px; }
  .article__body img, .article__body blockquote { border-radius: 10px; }
  .article__back { width: 100%; margin-top: 30px; }
  .more-news { padding-bottom: 40px; }
  .more-news__grid { margin-top: 20px; --bs-gutter-y: 15px; }
}

/* заголовок группы разделов в каталоге цен (если включён SHOW_PARENT_NAME) */
.prices__group-title { margin-bottom: 20px; }
.prices__empty { margin: 0; font-size: 14px; color: var(--nx-text); }

/* ==========================================================================
   Боковая колонка каталога цен: раскрывается на месте
   ========================================================================== */
.prices__aside {
  position: sticky;
  top: 85px;
  z-index: 5;
  display: flex;
  flex: none;
  flex-direction: column;
  gap: 12px;
  width: 82px;
  padding: 15px 10px 18px;
  border-radius: 15px;
  background: #fff;
  transition: width .35s cubic-bezier(.4, 0, .2, 1);
}
.prices__aside.is-open { width: 320px; }

/* кнопка */
/* перекрываем старое правило кнопки из вёрстки каталога цен */
.prices__filter {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  flex: none;
  width: 100%;
  height: auto;
  padding: 6px 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
}
/* подпись — обычный текст, а не полоска иконки */
.prices__filter .prices__filter-label {
  height: auto;
  background: none;
}
/* иконка: три одинаковые полоски 17×2, как в макете.
   height/background перекрывают старое правило .prices__filter span */
.prices__filter .prices__filter-icon {
  display: flex;
  flex: none;
  flex-direction: column;
  gap: 3px;
  width: 17px;
  height: auto;
  background: none;
}
.prices__filter-icon i { display: block; width: 17px; height: 2px; background: var(--nx-red); }
.prices__filter-label {
  white-space: nowrap;
  font: 600 13px/1.2 var(--font-head);
  text-transform: uppercase;
  color: #000;
}

/* список разделов — целиком, без внутренней прокрутки */
.prices__nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 0;
}

.prices__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 6px;
  border-radius: 12px;
  /* цвет задаём на самой ссылке, иначе Bootstrap красит её синим */
  color: #000;
  text-decoration: none;
  transition: background-color .2s;
}
.prices__item:hover { color: #000; }
.prices__item.is-current, .prices__item.is-current:hover { color: #fff; }
.prices__item:hover { background: var(--nx-bg); }
.prices__item.is-current { background: var(--nx-red); }

.prices__item-pic {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--nx-bg);
  object-fit: cover;
}
.prices__item-pic--empty { display: block; }

.prices__item-text {
  flex: 1 1 auto;
  min-width: 0;
  font: 500 13px/1.25 var(--font-body);
  color: inherit;
}
.prices__item-count { flex: none; font: 400 12px/1 var(--font-body); color: var(--nx-muted); }
.prices__item.is-current .prices__item-count { color: rgba(255, 255, 255, .85); }

/* в свёрнутом виде — только картинки, по центру колонки */
.prices__aside:not(.is-open) .prices__filter-label,
.prices__aside:not(.is-open) .prices__item-text,
.prices__aside:not(.is-open) .prices__item-count { display: none; }
.prices__aside:not(.is-open) .prices__item { justify-content: center; }
.prices__aside:not(.is-open) .prices__filter { justify-content: center; }

@media (max-width: 991.98px) {
  /* на телефоне колонка во всю ширину, список разворачивается кнопкой */
  .prices__aside {
    position: static;
    width: 100%;
    max-height: none;
    padding: 12px;
  }
  .prices__aside.is-open { width: 100%; }
  /* на телефоне подпись видна всегда — перекрываем правила свёрнутого вида */
  .prices__aside:not(.is-open) .prices__filter { justify-content: flex-start; }
  .prices__aside:not(.is-open) .prices__filter-label { display: block; min-width: 0; }
  .prices__nav { display: none; max-height: 60vh; overflow-y: auto; }
  .prices__aside.is-open .prices__nav { display: flex; }
  .prices__item { padding: 8px; }
  .prices__item-text { font-size: 14px; }
}

/* колонка фильтра в каталоге цен (шаблон section_vertical комплексного компонента) */
.prices__side { flex: 0 0 300px; max-width: 300px; }
.prices__side-block + .prices__side-block { margin-top: 20px; }

@media (max-width: 991.98px) {
  .prices__side { flex: 1 1 100%; max-width: none; }
}
.faq-item__a p { margin: 0 0 8px; }
.faq-item__a p:last-child { margin-bottom: 0; }
.faq-item__a ul { margin: 0; padding-left: 18px; }
.faq-item__a li + li { margin-top: 4px; }
.faq-item__a p { margin: 0 0 8px; }
.faq-item__a p:last-child { margin-bottom: 0; }
.page-switch--prices { margin-top: 0; margin-bottom: 25px; }
.part-card { min-height: 0; }
/* «Описание» без нижнего отступа: если сразу за ним белый блок,
   добавляем зазор, иначе картинка упирается в край белой подложки */
.vsn-about + .features,
.vsn-about + .vsn-catalog { margin-top: 50px; }
@media (max-width: 767.98px) {
  .vsn-about + .features,
  .vsn-about + .vsn-catalog { margin-top: 40px; }
}

/* два видео в ряд: отступ от заголовка блока, как у одиночного видео */
.video-guides__grid { margin-top: 40px; }
@media (max-width: 767.98px) {
  .video-guides__grid { margin-top: 20px; }
}

/* ==========================================================================
   Карточка товара в каталоге цен (catalog.element)
   ========================================================================== */
.price-item { margin-top: 10px; }
.price-item__img { display: block; width: 100%; aspect-ratio: 950 / 633; border-radius: 15px; background: #fff; object-fit: contain; }
.price-item__img--empty { background: var(--nx-bg); }
.price-item__thumbs { margin-top: 10px; --bs-gutter-x: 10px; --bs-gutter-y: 10px; }
.price-item__thumb { display: block; width: 100%; aspect-ratio: 1; border-radius: 10px; background: #fff; object-fit: contain; }
.price-item__card { height: 100%; padding: 30px; border-radius: 15px; background: #fff; }
.price-item__label { margin: 0 0 10px; font: 600 14px/1.2 var(--font-head); text-transform: uppercase; color: var(--nx-muted); }
.price-item__prices { margin: 0; }
.price-item__prices .product-card__price b { font-size: 32px; }
.price-item__list { margin-top: 25px; }
.price-item__text { margin-top: 20px; font-size: 14px; line-height: 1.4; color: var(--nx-text); }
.price-item__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 30px; }
.price-item__back { font-size: 14px; color: var(--nx-text); text-decoration: none; }
.price-item__back:hover { color: var(--nx-red); }
@media (max-width: 767.98px) {
  .price-item__card { padding: 20px; border-radius: 10px; }
  .price-item__img { border-radius: 10px; }
  .price-item__prices .product-card__price b { font-size: 26px; }
}

/* consult: title above background on mobile (3-line titles) */
.consult > .container:first-child { position: relative; z-index: 1; }

.pager__list .pager__disabled { font: 500 16px/1.2 var(--font-body); color: var(--nx-muted); cursor: default; }
@media (max-width: 767.98px) { .pager__list .pager__disabled { font-size: 14px; } }

/* статьи: небольшая обложка не растягиваем */
.article__cover--small { max-width: 360px; aspect-ratio: auto; }
.article__cover--small img { height: auto; }
.article__body h2 { margin: 30px 0 15px; font: 600 22px/1.15 var(--font-head); text-transform: uppercase; color: #000; }
.article__body h3 { margin: 20px 0 10px; font: 600 17px/1.2 var(--font-head); color: #000; }
@media (max-width: 767.98px) { .article__body h2 { font-size: 18px; } }

/* цвета полотна — раздвижная галерея (Pet Screen) */
.colors__panels { display: flex; gap: 8px; margin-top: 40px; height: clamp(240px, 30vw, 380px); }
.colors__panel { position: relative; flex: 1 1 0; min-width: 0; padding: 0; border: 0; border-radius: 15px; overflow: hidden; background: #e5e5e5; cursor: pointer; transition: flex-grow .5s ease; }
.colors__panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.colors__panel.is-active { flex-grow: 6; }
.colors__panel:focus-visible { outline: 2px solid var(--nx-red); outline-offset: 2px; }
.colors__panel .colors__chip { opacity: 0; white-space: nowrap; font-size: 18px; transition: opacity .3s ease; pointer-events: none; }
.colors__panel.is-active .colors__chip { opacity: 1; }
.colors__caption { display: none; margin: 12px 0 0; font: 600 16px/1.3 var(--font-head); }
@media (max-width: 767.98px) {
  .colors__panels { margin-top: 20px; height: 240px; gap: 4px; }
  .colors__panel { border-radius: 10px; }
  .colors__panel .colors__chip { display: none; }
  .colors__caption { display: block; }
}
/* видео производства (клей, холсты) */
.nx-video { padding: 50px 0; }
.nx-video__sub { margin-bottom: 0; }
.nx-video__frame { position: relative; margin-top: 40px; aspect-ratio: 16 / 9; border-radius: 15px; overflow: hidden; background: #1d1d1d; box-shadow: 0 20px 50px rgba(0,0,0,.12); }
.nx-video__frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.nx-video__cover { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 30px; border: 0; width: 100%; cursor: pointer; text-align: left; color: #fff;
  background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.55) 100%); transition: background .3s ease; }
.nx-video__cover:hover { background: linear-gradient(180deg, rgba(0,0,0,.05) 35%, rgba(0,0,0,.6) 100%); }
.nx-video__btn { position: absolute; left: 50%; top: 50%; width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 50%; background: var(--nx-red); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 12px rgba(228,31,37,.25); transition: transform .3s ease, box-shadow .3s ease; }
.nx-video__btn::after { content: ""; margin-left: 6px; border-style: solid; border-width: 15px 0 15px 24px; border-color: transparent transparent transparent #fff; }
.nx-video__cover:hover .nx-video__btn { transform: scale(1.07); box-shadow: 0 0 0 18px rgba(228,31,37,.2); }
.nx-video__title { font: 600 22px/1.25 var(--font-head); max-width: 70%; }
.nx-video__time { flex: none; display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border-radius: 12px; font: 600 16px/1 var(--font-head); }
.nx-video.is-playing .nx-video__cover { opacity: 0; pointer-events: none; }
@media (max-width: 767.98px) {
  .nx-video { padding: 40px 0; }
  .nx-video__frame { margin-top: 20px; border-radius: 10px; }
  .nx-video__cover { padding: 14px; }
  .nx-video__btn { width: 64px; height: 64px; margin: -32px 0 0 -32px; box-shadow: 0 0 0 8px rgba(228,31,37,.25); }
  .nx-video__btn::after { border-width: 11px 0 11px 17px; margin-left: 4px; }
  .nx-video__title { font-size: 15px; }
  .nx-video__time { height: 32px; font-size: 13px; padding: 0 10px; }
}