/* ==========================================================================
   TRIS — каталог буровых инструментов
   Дизайн-система снята с PDF «ТРИС каталог 2026.pdf» (Adobe InDesign, TT Firs Neue).
   Токены: цвета (CMYK → sRGB), типографика, сетка, элементы таблиц.
   ========================================================================== */

:root {
  /* --- Палитра (значения сняты пипеткой с рендеров PDF) ---------------- */
  --c-blue: #4485b5;          /* шапки разделов, шапки таблиц, заголовки */
  --c-blue-dark: #386f99;     /* hover / active */
  --c-blue-mid: #6fa3cc;      /* подзаголовки EN на синем фоне */
  --c-blue-soft: #a9c8e2;
  --c-blue-tint: #e4ecf7;     /* строки таблиц (светлая) */
  --c-blue-tint2: #edf2fa;    /* строки таблиц (ещё светлее) */
  --c-blue-line: #cedeef;     /* разделители */
  --c-orange: #f26f31;        /* плашки кодов, акцентные блоки */
  --c-orange-art: #ed6726;    /* оранжевый рендеров */
  --c-orange-dark: #ca4400;   /* тени рендеров, hover */
  --c-orange-tint: #fee5d6;   /* колонка D в таблицах */
  --c-orange-tint2: #feede1;
  --c-ink: #231f20;           /* основной текст */
  --c-ink-soft: #5a5658;
  --c-white: #fff;
  --c-page: #fff;

  /* --- Типографика ------------------------------------------------------ */
  /* TT Firs Neue — коммерческий (TypeType). Если файлы добавлены в
     assets/fonts — подключите их в fonts.css, стек подхватит их первыми.
     Golos Text — свободный аналог (OFL), метрически ближайший (98 % ширины). */
  --font: Roboto, "TT Firs Neue", "Golos Text", "Segoe UI", system-ui, -apple-system, sans-serif;

  --fs-xs: 11px;   /* подписи в таблицах, как 8 pt в PDF */
  --fs-sm: 13px;
  --fs-base: 15px; /* тело каталога — 9 pt в PDF */
  --fs-md: 17px;
  --fs-lg: 21px;   /* подзаголовок карточки — 13 pt в PDF */
  --fs-xl: 28px;
  --fs-band: clamp(24px, 3.2vw, 42px);  /* заголовок раздела — 30 pt */
  --fs-hero: clamp(28px, 4.6vw, 52px);  /* обложка */

  --lh-tight: 1.18;
  --lh-base: 1.5;
  --ls-caps: .015em;

  /* --- Сетка / декор ---------------------------------------------------- */
  --wrap: 1280px;
  --gap: 24px;
  --band-code-w: 190px;       /* оранжевая плашка с кодом: 177/623 pt в PDF */
  --radius: 0;                /* в каталоге прямые углы */
  --line: 1px solid var(--c-blue-line);
  --shadow: 0 1px 2px rgba(35, 31, 32, .06);
  --wm-opacity: .06;          /* водяной знак TRIS, как на страницах PDF */
}

/* --- Сброс -------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--c-ink);
  background: var(--c-page);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--c-blue); text-decoration: none; }
a:hover { color: var(--c-blue-dark); }

h1, h2, h3, h4 { margin: 0; line-height: var(--lh-tight); font-weight: 500; }

p { margin: 0 0 .8em; }

ul { margin: 0; padding: 0; list-style: none; }

button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--c-orange);
  outline-offset: 2px;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--c-blue);
  color: #fff;
  padding: 10px 16px;
}
.skip-link:focus { left: 0; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gap);
}

/* --- Шапка сайта --------------------------------------------------------
   Двухстрочная шапка: логотип + меню + реквизиты + кнопка.
   Все размеры содержимого увеличены на 15% (×1.15) от базовых значений:
   шапка крупнее, но остаётся в потоке. Раньше это делалось через
   transform: scale(1.15) — он ломал адаптив: переполнял вьюпорт на 15%
   (горизонтальный скролл) и сдвигал липкую полосу .subnav, т.к. layout-
   высота элемента от transform не меняется.
   app.js пересчитывает фактическую высоту при загрузке и на resize. */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--c-white);
}

.topbar__inner {
  display: flex;
  align-items: center;
  gap: 30.36px;
  /* Полная ширина: логотип у левого края, кнопка «Обратный звонок»
     у правого, слоган между ними. Класс .wrap ограничил бы 1280 px. */
  max-width: none;
  padding: 12.65px 24px 15.18px;
}

.topbar__logo {
  display: inline-flex;
  align-items: center;
  gap: 15.18px;
}

.topbar__logo img {
  /* Логотип — WEBP 1831×261 (иконка + «TRIS» + подпись): ограничиваем
     только высотой, ширина следует из пропорции (~554 px при 79.8 px).
     2026-10-23: срез снизу 4 px (85.8 -> 81.8), margin-bottom держит
     верх логотипа на месте.
     2026-10-24: ещё срез снизу 2 px и сверху 1 px (81.8 -> 78.8):
     верхняя грань уходит вниз на 1 px, нижняя — вверх на 2 px.
     2026-10-26: нижняя грань вниз на 1 px (78.8 -> 79.8), верхняя
     на месте — margin-bottom 5 -> 4 px держит высоту блока. */
  width: auto;
  height: 79.8px;
  margin-bottom: 4px;
}

/* Подпись компании теперь входит в саму картинку логотипа
   (assets/img/logo.webp), отдельный CSS-текст больше не нужен. */

@media (max-width: 720px) {
  /* Широкий логотип (1831×261) на мобильных уменьшаем,
     чтобы вместе с бургером влезал в узкий экран.
     2026-10-24: те же срезы, что и на десктопе (50.6 -> 47.6). */
  .topbar__logo img {
    height: 47.6px;
    margin-bottom: 1px;
  }
}

/* --- Верхнее меню в шапке (пять пунктов) ----------------------------------
   Видимо от 1200 px — там же появляется сайдбар; ниже — бургер-шторка.
   «Продукция (каталог)» — выпадающий список товарных разделов. */
.topbar__nav { display: none; }

.topbar__list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0px;
  /* Прижимает меню к логотипу, а слоган с кнопкой — к правому краю */
  margin-right: auto;
}

/* Строка пунктов меню — горизонтально, как раньше */
.topbar__menu-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5.06px;
  list-style: none;
  margin: 0;
  padding: 0;
  padding-top: 2.53px;
  transform: translateY(-7.26px);
}

.topbar__item { position: relative; }


.topbar__item > a {
  display: block;
  padding: 10.12px 12.65px;
  font-size: 15.18px;
  font-weight: 500;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--c-ink);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.topbar__item > a:hover,
.topbar__item.is-current > a {
  color: var(--c-blue);
  border-bottom-color: var(--c-orange);
}

.topbar__item--drop > a { display: inline-flex; align-items: center; gap: 6.6px; }

.topbar__caret { transition: transform .15s ease; }

.topbar__item--drop:hover .topbar__caret,
.topbar__item--drop:focus-within .topbar__caret { transform: rotate(180deg); }

/* Выпадающий список товарных разделов (по наведению и для клавиатуры) */
.topbar__drop {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 607.2px;
  margin: 0;
  padding: 12.65px 0;
  list-style: none;
  background: var(--c-white);
  border: 1px solid var(--c-blue-line);
  border-top: 3.3px solid var(--c-blue);
  box-shadow: 0 11px 33px rgba(35, 31, 32, .14);
  z-index: 60;
}

.topbar__item--drop:hover .topbar__drop,
.topbar__item--drop:focus-within .topbar__drop {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 8.8px;
}

.topbar__drop a {
  display: block;
  padding: 8.8px 20.24px;
  font-size: 15.84px;
  color: var(--c-ink-soft);
  border-left: 3.3px solid transparent;
}

.topbar__drop a:hover {
  color: var(--c-blue);
  background: var(--c-blue-tint2);
  border-left-color: var(--c-orange);
}

/* Реквизиты под пунктом «Контакты»: ИНН/КПП и город, разделённые
   вертикальными чертами. Вторая строка внутри того же <li>, что и пункт
   меню — как на референсе. Только на широких экранах (видимо вместе с
   .topbar__nav); на узких шапка остаётся однострочной, как раньше. */
.topbar__meta {
  position: relative;
  top: -6.325px;
  display: inline-flex;
  align-items: center;
  gap: 12.65px;
  font-size: 13.915px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--c-blue);
  white-space: nowrap;
  padding: 0;
  padding-top: 5.06px;
  padding-bottom: 2.53px;
  border-top: 1.1px solid var(--c-line);
  margin-left: 0;
  margin-right: 0;
}

.topbar__meta-sep {
  width: 1.1px;
  height: 13.915px;
  background: var(--c-blue-line);
}

/* Слоган между меню и кнопкой «Обратный звонок».
   Шрифт и жирность — как в подписи логотипа «Технические Ресурсы
   Инженерного Строительства» (жирный гротеск, синий). Три строки
   растянуты на высоту блока меню: верх — по кнопкам, низ — по ИНН/КПП.
   Видим от 1600 px — ниже между левым блоком и кнопкой не остаётся места. */
.topbar__slogan {
  display: none;
  margin: 0 0 0 auto;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* 1-я строка — по центру пункта «Контакты», 3-я — по центру «г. Москва» (замеры 2026-10-22, 1920 px) */
  padding: 10.2px 0 11.1px;
  font-family: var(--font);
  font-weight: 500;
  font-size: 14px;
  line-height: 15px;
  color: var(--c-blue);
  text-align: center;
}

@media (min-width: 1600px) {
  .topbar__slogan { display: flex; }
}

/* «Обратный звонок» — действие (открывает модалку), а не страница.
   Кнопка-«пилюля»: белый фон, синяя рамка, синий текст (стиль TRIS-MSK.RU),
   отделена от меню отступом. */
.topbar__item--cta {
  align-self: flex-end;
  flex-shrink: 0;
  list-style: none;
  margin-left: 32.89px;
  margin-bottom: 11.385px;
}

.topbar__item--cta button {
  display: block;
  padding: 10.78px 32.89px;
  font-size: 16.445px;
  font-weight: 600;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--c-orange);
  background: #fff;
  border: 2.2px solid var(--c-orange);
  border-radius: 13.2px;
  white-space: nowrap;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}

.topbar__item--cta button:hover {
  background: var(--c-orange);
  color: #fff;
  transform: translateY(-1px);
}

/* Фокус кнопки — общий :focus-visible (синий контур на белой шапке
   виден, отдельное переопределение не нужно). */

.burger {
  display: none;
  margin-left: auto;
  background: none;
  border: var(--line);
  padding: 10.12px 12.65px;
  font-size: 18.975px;
  cursor: pointer;
}

/* --- Синяя плашка с заголовком (как шапка страниц каталога) ------------- */
.band {
  display: flex;
  align-items: stretch;
  background: var(--c-blue);
  color: #fff;
  position: relative;
  overflow: hidden;
}


.band__code {
  flex: 0 0 var(--band-code-w);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 18px 20px;
  background: var(--c-orange);
  position: relative;
  z-index: 1;
}

.band__code .band__logo {
  height: clamp(26px, 3vw, 40px);
  width: auto;
}

.band__code b {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 500;
  letter-spacing: var(--ls-caps);
  line-height: 1;
}

.band__code span {
  font-size: var(--fs-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* Разделительная линия нужна только под кодом: у плашек без кода
   (например, «Контакты») подпись остаётся без верхней черты. */
.band__code b + span,
.band__code svg + span {
  border-top: 1px solid rgba(255, 255, 255, .65);
  padding-top: 6px;
}

.band__titles {
  padding: 20px 26px;
  position: relative;
  z-index: 1;
}

.band__title {
  font-size: var(--fs-band);
  font-weight: 500;
}

.band__subtitle {
  font-size: var(--fs-band);
  font-weight: 500;
  color: var(--c-blue-mid);
  line-height: 1.1;
}

.band--slim .band__title,
.band--slim .band__subtitle { font-size: clamp(20px, 2.4vw, 30px); }

/* --- Обложка (hero) ---------------------------------------------------- */
.hero {
  border-bottom: 1px solid var(--c-blue-line);
}

.hero__art {
  background: #fff;
  display: flex;
  justify-content: flex-end;
  overflow: hidden;
  height: clamp(300px, 46vh, 520px);
}

.hero__art img {
  width: auto;
  height: 100%;
  object-fit: cover;
  object-position: 62% 42%;
  margin-left: auto;
}

.hero__band .band__code { background: var(--c-orange); }

/* Полосы-водяные знаки в синей плашке под слайдером убираем: 
   на широком тексте они выглядят как артефакты. */
.hero__band::after { display: none; }

/* Длинный описательный текст обложки: уменьшаем шрифт, чтобы
   аккуратно вписался в плашку (вместо крупного заголовка). */
.hero__band .band__title {
  font-size: clamp(18px, 2.2vw, 30px);
  line-height: 1.35;
  font-weight: 600;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding: 12px 26px 16px;
  background: var(--c-blue);
  color: rgba(255, 255, 255, .88);
  font-size: var(--fs-sm);
  position: relative;
  z-index: 1;
}

/* Ссылки в полосе-подписи: цвета ссылки по умолчанию (синий) совпадали
   с фоном плашки, из-за чего телефон и почта были не видны. */
.hero__meta a {
  color: #fff;
  text-decoration: underline;
}

.hero__meta a:hover { color: var(--c-blue-tint); }

/* --- Обложка главной: баннер во всю ширину окна ------------------------- */
/* Иллюстрация растягивается на всю ширину страницы (object-fit: cover),
   поверх — затемнение слева и снизу: слоган читается на штриховой графике. */
.hero--banner .hero__art {
  display: block;                 /* картинка заполняет блок, а не жмётся вправо */
  position: relative;
  height: clamp(320px, 46vw, 560px);
  background: var(--c-blue-tint2);
}

.hero--banner .hero__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;              /* заполняет всю площадь без искажений */
  object-position: 50% 6%;        /* силуэты башен остаются целиком */
  margin: 0;
}

.hero--banner .hero__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(112deg,                     /* синяя подложка под слоганом */
      rgba(56, 111, 153, .96) 0%,
      rgba(56, 111, 153, .95) 50%,
      rgba(56, 111, 153, .50) 70%,
      rgba(56, 111, 153, .12) 90%,
      rgba(56, 111, 153, 0) 100%),
    linear-gradient(0deg,                       /* низ переходит в цвет плашки раздела */
      rgba(68, 133, 181, .62) 0%,
      rgba(68, 133, 181, 0) 34%);
  pointer-events: none;
}

/* Подпись баннера. Своей подложки нет: края градиента давали видимый шов,
   контраст держит общая дымка .hero__art::after. */
.hero__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;                     /* выше градиента .hero__art::after */
  /* Блок прижат к левому краю и идёт на всю ширину слайдера: строки
     переносятся по полной ширине, подпись короче и не вылезает за верх
     баннера на 1920 px и шире. */
  max-width: none;
  padding: 22px var(--gap) 32px;
  padding-left: var(--gap);
  color: #fff;
  text-shadow: 0 1px 12px rgba(35, 31, 32, .45);   /* подстраховка на светлых участках */
}

.hero__kicker {
  margin: 0 0 10px;
  padding-left: 10px;
  border-left: 3px solid var(--c-orange);
  font-size: var(--fs-sm);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: rgba(255, 255, 255, .9);
}

.hero__slogan {
  margin: 0;
  font-size: clamp(24px, 3.4vw, 44px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.01em;
}

.hero__caption-note {
  margin: 12px 0 0;
  max-width: 52ch;
  font-size: var(--fs-base);
  line-height: 1.45;
  color: rgba(255, 255, 255, .88);
}

/* --- Слайдер обложки (видео + картинки) ---------------------------------- */
/* Заменяет статичный баннер .hero--banner: та же подпись .hero__caption,
   тот же градиент-подложка, плюс стрелки, точки и автопрокрутка (app.js). */
.hero--slider { border-bottom: 1px solid var(--c-blue-line); }

.slider {
  position: relative;
  overflow: hidden;
  height: clamp(320px, 46vw, 560px);
  background: var(--c-blue-tint2);
  outline: none;
}

.slider:focus-visible { box-shadow: inset 0 0 0 3px var(--c-orange); }

.slider__track {
  display: flex;
  height: 100%;
  transition: transform .6s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}

.slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  overflow: hidden;
}

.slide__media,
.slide__media img,
.slide__media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

/* Затемнение над блоком текста: подпись «в обнимку» с текстом
   (width: fit-content) — ровные 70 % непрозрачности до конца текста
   (::before) и плавное затухание в прозрачность за текстом (::after). */
.hero--slider .hero__caption { width: fit-content; max-width: 100%; }

.slide .hero__caption::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  background: rgba(56, 111, 153, .70);
  pointer-events: none;
}

/* Хвост затухания: от правого края текста плавно уходит в прозрачность. */
.slide .hero__caption::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 100%;
  width: 160px;
  z-index: -1;
  background: linear-gradient(90deg,
    rgba(56, 111, 153, .70) 0%,
    rgba(56, 111, 153, 0) 100%);
  pointer-events: none;
}

/* Стрелки — по бокам, по вертикальному центру (как в оригинале). */
.slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  padding: 0;
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--c-blue-line);
  color: var(--c-blue);
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.slider__arrow:hover { background: #fff; color: var(--c-blue-dark); }
.slider__arrow:active { transform: translateY(-50%) scale(.94); }
.slider__arrow svg { width: 22px; height: 22px; }
.slider__arrow--prev { left: 16px; }
.slider__arrow--next { right: 16px; }

/* Точки — в правом нижнем углу, чтобы не перекрывать подпись слева. */
.slider__dots {
  position: absolute;
  right: 20px;
  bottom: 16px;
  z-index: 2;
  display: flex;
  gap: 8px;
}

.slider__dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .85);
  background: transparent;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}

.slider__dot:hover { background: rgba(255, 255, 255, .6); }
.slider__dot.is-active { background: var(--c-orange); border-color: var(--c-orange); }

/* --- Двухколоночные тики (преимущества) --------------------------------- */
.ticks--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 34px; }

/* --- Общие блоки ------------------------------------------------------- */
.section { padding: 34px 0 10px; position: relative; overflow-x: clip; }

.section__lead {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  padding: 22px 0 6px;
}

.section__lead p { font-size: var(--fs-md); }

.section__lead .en {
  color: var(--c-ink-soft);
  font-size: var(--fs-base);
}

.section__photo {
  border: var(--line);
  object-fit: cover;
  width: 100%;
  max-height: 360px;
}

/* Водяной знак TRIS (как на страницах каталога) */
.watermark {
  position: absolute;
  right: -40px;
  bottom: 20px;
  width: min(560px, 60%);
  opacity: var(--wm-opacity);
  transform: rotate(-14deg);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.section > .wrap { position: relative; z-index: 1; }

/* --- Карточка модели --------------------------------------------------- */
.models {
  display: grid;
  /* minmax(0, 1fr): карточка может быть уже своего содержимого —
     широкие таблицы ТТХ уходят в горизонтальный скролл (см. .table-wrap),
     а не растягивают страницу на мобильных. */
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  padding: 18px 0 8px;
}

.model {
  min-width: 0;
  border: var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

.model__head {
  background: var(--c-blue);
  color: #fff;
  padding: 14px 20px;
  position: relative;
  overflow: hidden;
}

.model__code {
  display: inline-block;
  background: var(--c-orange);
  color: #fff;
  font-size: var(--fs-lg);
  font-weight: 500;
  letter-spacing: var(--ls-caps);
  padding: 2px 12px 4px;
  margin-right: 12px;
  position: relative;
  z-index: 1;
}

.model__name {
  display: inline;
  font-size: var(--fs-md);
  font-weight: 500;
  position: relative;
  z-index: 1;
}

.model__name-en { color: var(--c-blue-tint2); }

.model__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 26px;
  padding: 20px;
}

.model__body > * { min-width: 0; }

.model__figure {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.model__figure img { max-height: 260px; width: auto; }

.model__variants {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.model__variant {
  border: 1px solid var(--c-blue-line);
  background: var(--c-blue-tint2);
  padding: 3px 10px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-blue);
}

.block-title {
  color: var(--c-blue);
  font-size: var(--fs-md);
  font-weight: 500;
  margin: 12px 0 6px;
}

.block-title--en { color: var(--c-ink); }

.desc { font-size: var(--fs-base); }

.features {
  font-size: var(--fs-base);
  margin: 0 0 12px;
}

.features li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 4px;
}

.features li::before {
  content: "■";
  position: absolute;
  left: 0;
  top: -.1em;
  font-size: 8px;
  color: var(--c-blue);
}

.features--en li::before { color: var(--c-ink-soft); }

/* --- Таблицы ТТХ -------------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  margin: 10px 0 14px;
}

.spec {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-xs);
  font-variant-numeric: tabular-nums;
}

.spec caption {
  caption-side: top;
  text-align: left;
  color: var(--c-blue);
  font-size: var(--fs-md);
  font-weight: 500;
  padding-bottom: 6px;
}

.spec caption .en {
  display: block;
  color: var(--c-ink);
  font-size: var(--fs-base);
  font-weight: 400;
}

.spec th,
.spec td {
  border: 1px solid var(--c-blue-line);
  padding: 4px 8px;
  text-align: left;
  white-space: nowrap;
}

.spec thead th {
  background: var(--c-blue);
  color: #fff;
  font-weight: 500;
  text-align: center;
}

.spec tbody tr:nth-child(odd) td { background: var(--c-blue-tint2); }
.spec tbody tr:nth-child(even) td { background: var(--c-blue-tint); }

/* колонка D — оранжевая, как в каталоге */
.spec td.is-accent,
.spec th.is-accent {
  background: var(--c-orange-tint) !important;
  font-weight: 600;
}

.spec td.is-accent2 { background: var(--c-orange-tint2) !important; }

.spec th.is-label,
.spec td.is-label {
  background: #fff !important;
  font-weight: 600;
  color: var(--c-ink);
}

.spec .spec__group th {
  background: var(--c-blue);
  color: #fff;
  text-align: center;
  font-weight: 500;
}

.spec--specs td:first-child { white-space: normal; }

/* в таблицах размеров и массы значения выровнены по центру, как в каталоге */
.spec--dims td,
.spec--variants td,
.spec--dims th,
.spec--variants th { text-align: center; }

.spec--dims td.is-label,
.spec--variants td.is-label,
.spec--dims td:first-child { text-align: left; }

.spec--dims thead tr:first-child th:empty,
.spec--variants thead tr:first-child th:empty { background: var(--c-blue); }

.spec-note {
  font-size: var(--fs-xs);
  color: var(--c-ink-soft);
}

/* --- Содержание каталога ----------------------------------------------- */
.toc {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 44px;
  padding: 18px 0 10px;
}

.toc__item {
  border-bottom: 1px dotted var(--c-blue-soft);
  padding: 8px 0 10px;
}

.toc__link {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-weight: 500;
  color: var(--c-ink);
  font-size: var(--fs-md);
}

.toc__link:hover { color: var(--c-blue); }

.toc__num {
  margin-left: auto;
  color: var(--c-blue);
  font-weight: 500;
}

.toc__models {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.toc__models a {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-blue);
  background: var(--c-blue-tint2);
  border: 1px solid var(--c-blue-line);
  padding: 2px 8px;
}

.toc__models a:hover { background: var(--c-blue); color: #fff; }

/* --- Языковые переключатели (RU / EN) ----------------------------------- */
html[lang="ru"] [data-i18n="en"],
html[lang="en"] [data-i18n="ru"] { display: none; }

/* --- Панель поиска и фильтров ------------------------------------------- */
.toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr) auto;
  gap: 14px 18px;
  align-items: center;
  padding: 16px 0 6px;
  border-top: 1px solid var(--c-blue-line);
  margin-top: 6px;
}

.toolbar__search input {
  width: 100%;
  font: inherit;
  font-size: var(--fs-base);
  color: var(--c-ink);
  padding: 9px 12px;
  border: 1px solid var(--c-blue);
  border-radius: var(--radius);
  background: #fff;
}

.toolbar__search input::placeholder { color: #8a9aa8; }

.toolbar__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  font-size: var(--fs-sm);
  font-weight: 600;
  padding: 6px 12px;
  border: 1px solid var(--c-blue-line);
  background: var(--c-blue-tint2);
  color: var(--c-blue);
  cursor: pointer;
  border-radius: var(--radius);
}

.chip:hover { border-color: var(--c-blue); }

.chip[aria-pressed="true"] {
  background: var(--c-blue);
  border-color: var(--c-blue);
  color: #fff;
}

.toolbar__counter {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--c-ink-soft);
  white-space: nowrap;
}

.toolbar__counter span { font-weight: 500; color: var(--c-blue); }

.empty {
  margin: 18px 0 6px;
  padding: 18px;
  border: 1px dashed var(--c-blue-line);
  background: var(--c-blue-tint2);
  font-weight: 500;
}

/* --- Блок «О компании» -------------------------------------------------- */
.section--about { padding-top: 28px; }

.about {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
  padding: 24px 0;
  border-bottom: 1px solid var(--c-blue-line);
}

.about__title {
  font-size: var(--fs-xl);
  color: var(--c-blue);
  margin-bottom: 8px;
}

.section--about p { font-size: var(--fs-md); }

.section__lead-en { color: var(--c-ink-soft); font-size: var(--fs-base) !important; }

.section__top {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 34px;
  align-items: start;
  padding: 22px 0 4px;
}

.section__top .section__lead { padding: 0; gap: 30px; }

.section__photo-wrap { margin: 0; }

.section__photo {
  border: var(--line);
  width: 100%;
  height: 320px;
  object-fit: cover;
}

/* --- Запасные части ----------------------------------------------------- */
.parts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
  padding: 20px 0 10px;
}

.part {
  border: var(--line);
  background: #fff;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

.part__figure {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  padding: 10px;
}

.part__figure img { max-height: 130px; width: auto; }

.part__info {
  border-top: 1px solid var(--c-blue-line);
  background: var(--c-blue-tint2);
  padding: 8px 12px;
  font-size: var(--fs-sm);
}

.part__code {
  display: block;
  color: var(--c-blue);
  font-size: var(--fs-md);
}

.part__name { color: var(--c-ink-soft); }

/* --- Контакты ------------------------------------------------------------ */
.contacts {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) minmax(0, 1fr);
  gap: 26px;
  align-items: center;
  background: var(--c-blue);
  color: #fff;
  padding: 26px;
  margin: 22px 0 0;
  position: relative;
  overflow: hidden;
}

.contacts > * { position: relative; z-index: 1; }

.contacts__head {
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--c-blue-tint2);
  margin-bottom: 8px;
}

.contacts a { color: #fff; text-decoration: underline; }

.contacts p { margin: 0 0 6px; font-size: var(--fs-base); }

.disclaimer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding: 16px 0 10px;
  font-size: var(--fs-xs);
  color: var(--c-ink-soft);
}

/* --- Подвал ------------------------------------------------------------- */
.footer {
  border-top: 3px solid var(--c-blue);
  margin-top: 26px;
}

.footer__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--c-blue);
}

.footer__note {
  margin: 0 auto;
  color: var(--c-ink-soft);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}

.footer__page {
  background: var(--c-blue);
  color: #fff;
  padding: 4px 10px;
}

/* --- Адаптив ------------------------------------------------------------ */
/* До 1280 px подпись занимает до 60 % ширины — подложку тянем следом,
   иначе хвост строк выходит на светлую часть иллюстрации. */
@media (max-width: 1280px) {
  .hero--banner .hero__art::after {
    background:
      linear-gradient(112deg,
        rgba(56, 111, 153, .96) 0%,
        rgba(56, 111, 153, .95) 62%,
        rgba(56, 111, 153, .50) 84%,
        rgba(56, 111, 153, .12) 96%,
        rgba(56, 111, 153, 0) 100%),
      linear-gradient(0deg, rgba(68, 133, 181, .62) 0%, rgba(68, 133, 181, 0) 34%);
  }
}

@media (max-width: 1080px) {
  .model__body { grid-template-columns: minmax(0, 1fr); }
  .toolbar { grid-template-columns: minmax(0, 1fr) auto; }
  .toolbar__chips { grid-column: 1 / -1; }
  .section__top { grid-template-columns: minmax(0, 1fr); }
  .section__photo { height: 260px; }

  /* Верхнее меню скрыто до 1200 px (видимо вместе с сайдбаром) —
     на узких экранах меню открывает бургер-шторка. */
  .burger { display: inline-block; }
}

@media (max-width: 860px) {
  .band { flex-direction: column; }

  .band__code {
    flex: none;
    width: 100%;
    flex-direction: row;
    justify-content: space-between; transform: translateY(-7px);
    align-items: center;
    padding: 12px 20px;
  }

  .band__code span { border: 0; padding: 0; }

  .toc { grid-template-columns: minmax(0, 1fr); }
  .about { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .about__logo { max-width: 120px; }
  .contacts { grid-template-columns: minmax(0, 1fr); }
  .contacts__logo { max-width: 110px; }
  .disclaimer { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .hero__art img { width: 100%; }
  .hero--banner .hero__art { height: clamp(300px, 54vw, 440px); }
  /* Подпись занимает почти всю ширину — подложку тянем следом, иначе хвост
     строк выходит на светлую часть иллюстрации, а строку держим короче. */
  .hero--banner .hero__art::after {
    background:
      linear-gradient(112deg,
        rgba(56, 111, 153, .96) 0%,
        rgba(56, 111, 153, .95) 78%,
        rgba(56, 111, 153, .60) 92%,
        rgba(56, 111, 153, .25) 100%),
      linear-gradient(0deg, rgba(68, 133, 181, .62) 0%, rgba(68, 133, 181, 0) 34%);
  }
  .hero__caption { max-width: none; }
  .hero__caption-note { max-width: 46ch; }
  .hero__kicker { max-width: 74%; }   /* строки остаются над плотной подложкой */
  .section__lead { grid-template-columns: minmax(0, 1fr); }

  /* Слайдер: ниже, стрелки меньше, тики в одну колонку */
  .slider { height: clamp(280px, 54vw, 440px); }
  .slider__arrow { width: 44px; height: 44px; }
  .slider__arrow--prev { left: 10px; }
  .slider__arrow--next { right: 10px; }
  .ticks--2 { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  :root { --gap: 16px; --band-code-w: 100%; }

  .model__body { padding: 14px; gap: 16px; }
  .tables, .model__tables { padding: 0 2px; }
  .spec { font-size: 10px; }
  .spec th, .spec td { padding: 3px 5px; }
  .hero__meta { flex-direction: column; gap: 4px; }
  .hero--banner .hero__art { height: 300px; }
  .hero__caption { padding: 16px var(--gap) 18px; }
  .hero__kicker { margin-bottom: 8px; font-size: var(--fs-xs); }
  .hero__caption-note { display: none; }   /* пояснение не влезает в узкий баннер */
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__note { margin: 0; }

  /* Слайдер на узком экране */
  .slider { height: 300px; }
  .slider__arrow { width: 38px; height: 38px; }
  .slider__arrow svg { width: 18px; height: 18px; }
  .slider__dots { right: 14px; bottom: 12px; }
}

/* --- Печать -------------------------------------------------------------- */
@media print {
  .topbar, .toolbar, .burger, .skip-link, .watermark { display: none !important; }
  .model, .part { break-inside: avoid; box-shadow: none; }
  .band, .contacts { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

  /* Баннер главной: затемнение — фон, в печати оно не выводится, поэтому
     подпись переносим под картинку и перекрашиваем в тёмный. */
  .hero--banner .hero__art { height: auto; }
  .hero--banner .hero__art::after { display: none; }
  .hero__caption {
    position: static;
    max-width: none;
    padding: 12px 0 0;
    color: var(--c-ink);
    text-shadow: none;
  }

  .hero__kicker,
  .hero__caption-note { color: var(--c-ink-soft); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slider__track { transition: none; }
}

/* ==========================================================================
   Корпоративные страницы: общие блоки сайта
   Токены, плашки и сетка — те же, что в каталоге. Здесь — липкая полоса
   разделов, обложка внутренних страниц, карточки, списки, документы,
   призыв к действию, кнопки, плашки черновиков.
   ========================================================================== */

:root {
  /* Высоты липких панелей. app.js пересчитывает их при загрузке и на resize:
     от них зависят и подлипающая полоса разделов, и отступ якорей.
     Fallback — десктопная высота шапки (~97 px после ×1.15, ещё ×1.10); на мобильных
     app.js подставит фактическую. */
  --topbar-h: 96.8px;
  --subnav-h: 0px;
  --sticky-offset: calc(var(--topbar-h) + var(--subnav-h));
}

/* Якоря не уезжают под липкие панели (шапка + полоса разделов).
   --sticky-offset считает app.js. */
.section[id],
.model[id] { scroll-margin-top: calc(var(--sticky-offset) + 8px); }

/* --- Липкая полоса разделов каталога ----------------------------------- */
.subnav {
  position: sticky;
  top: var(--topbar-h);
  z-index: 40;
  background: var(--c-blue-tint);
  border-bottom: 1px solid var(--c-blue-line);
}

.subnav__inner { display: flex; align-items: center; }

.subnav__list {
  display: flex;
  gap: 4px;
  width: 100%;
  padding: 8px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.subnav__list a {
  display: block;
  white-space: nowrap;
  padding: 6px 12px;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--c-blue-dark);
  background: #fff;
  border: 1px solid var(--c-blue-line);
}

.subnav__list a:hover { border-color: var(--c-blue); }

.subnav__list a[aria-current] {
  background: var(--c-blue);
  border-color: var(--c-blue);
  color: #fff;
}

/* --- Обложка внутренней страницы --------------------------------------- */
.page-hero {
  position: relative;
  overflow-x: clip;
  background: #fff;
  border-bottom: 1px solid var(--c-blue-line);
}

.page-hero .band__code { background: var(--c-orange); }

.page-hero__lead {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  padding: 24px 0 30px;
}

.page-hero__lead p { font-size: var(--fs-md); }

.page-hero__lead p[lang="en"] { color: var(--c-ink-soft); font-size: var(--fs-base); }

.page-hero .watermark { bottom: -40px; opacity: .05; }

/* --- Карточки ----------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 22px 0 6px;
}

.cards--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card {
  display: block;
  min-width: 0;
  padding: 18px 20px 20px;
  background: #fff;
  border: var(--line);
  box-shadow: var(--shadow);
}

a.card { color: var(--c-ink); }

a.card:hover {
  border-color: var(--c-blue-soft);
  box-shadow: 0 2px 10px rgba(35, 31, 32, .1);
  color: var(--c-ink);
}

.card__num {
  display: inline-block;
  margin-bottom: 10px;
  padding: 2px 8px 3px;
  background: var(--c-orange);
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: var(--ls-caps);
}

.card__title { font-size: var(--fs-lg); font-weight: 500; color: var(--c-blue); margin-bottom: 6px; }

a.card:hover .card__title { color: var(--c-blue-dark); }

.card__sub { color: var(--c-ink-soft); font-size: var(--fs-base); margin-bottom: .4em; }

.card__meta { margin: 0; color: var(--c-ink-soft); font-size: var(--fs-sm); }

.card p { font-size: var(--fs-base); }

/* --- Списки-перечисления ------------------------------------------------ */
.ticks {
  display: grid;
  gap: 12px;
  padding: 18px 0 6px;
}

.ticks p,
.ticks li { position: relative; margin: 0; padding-left: 26px; font-size: var(--fs-base); }

.ticks p::before,
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .45em;
  width: 10px;
  height: 10px;
  background: var(--c-orange);
}

/* Кнопки в абзацах и карточках */
.section__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0 4px;
}

.card .section__actions { margin-bottom: 0; }
/* --- Кнопки ------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 10px 18px;
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--c-blue);
  background: #fff;
  border: 1px solid var(--c-blue);
}

.btn:hover { background: var(--c-blue-tint); color: var(--c-blue-dark); }

.btn--primary {
  background: var(--c-blue);
  border-color: var(--c-blue);
  color: #fff;
}

.btn--primary:hover {
  background: var(--c-blue-dark);
  border-color: var(--c-blue-dark);
  color: #fff;
}

/* --- Призыв к действию -------------------------------------------------- */
.section--cta { padding-bottom: 34px; }

.cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 26px;
  align-items: center;
  padding: 26px 30px;
  background: var(--c-blue);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta > * { position: relative; z-index: 1; }

.cta__title { font-size: clamp(20px, 2.4vw, 30px); }

.cta__sub {
  color: var(--c-blue-mid);
  font-size: clamp(17px, 2vw, 24px);
  font-weight: 500;
  margin-bottom: .3em;
}

.cta__text p { margin-bottom: .4em; }

.cta__note { color: rgba(255, 255, 255, .75); font-size: var(--fs-sm); }

.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.cta__actions .btn {
  background: transparent;
  border-color: rgba(255, 255, 255, .7);
  color: #fff;
}

.cta__actions .btn:hover { background: rgba(255, 255, 255, .14); color: #fff; }

.cta__actions .btn--primary {
  background: var(--c-orange);
  border-color: var(--c-orange);
}

.cta__actions .btn--primary:hover {
  background: var(--c-orange-dark);
  border-color: var(--c-orange-dark);
}

/* --- Документы ---------------------------------------------------------- */
.docs { padding: 22px 0 6px; }

.docs__item {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  min-width: 0;
  padding: 20px;
  background: #fff;
  border: var(--line);
  box-shadow: var(--shadow);
}

.docs__icon { flex: 0 0 auto; width: 72px; opacity: .9; }

.docs__body { min-width: 0; }

.docs__title { font-size: var(--fs-lg); color: var(--c-blue); margin-bottom: 6px; }

.docs__note { font-size: var(--fs-base); margin-bottom: .4em; }

.docs__note[lang="en"] { color: var(--c-ink-soft); font-size: var(--fs-sm); }

.docs__disclaimer {
  margin: 16px 0 0;
  padding: 14px 18px;
  background: var(--c-blue-tint2);
  border-left: 3px solid var(--c-blue-line);
  color: var(--c-ink-soft);
  font-size: var(--fs-sm);
}

/* --- Контактные блоки --------------------------------------------------- */
.contact-line { font-size: var(--fs-md); font-weight: 500; margin-bottom: .2em; }

.contact-line a { white-space: nowrap; }

.company-card {
  margin-top: 20px;
  padding: 20px 24px;
  background: var(--c-blue-tint2);
  border: var(--line);
}

.company-card__title { font-size: var(--fs-md); color: var(--c-blue); margin-bottom: 8px; }

.company-card p { margin-bottom: .3em; }

.company-card__en { color: var(--c-ink-soft); font-size: var(--fs-sm); }

/* --- Плашка черновика --------------------------------------------------- */
.draft-block {
  margin: 20px 0 8px;
  padding: 14px 18px 18px;
  background: var(--c-orange-tint2);
  border-left: 3px solid var(--c-orange);
}

.draft-block::before {
  content: "Черновик — данные требуют подтверждения / Draft — to be confirmed";
  display: block;
  margin-bottom: 4px;
  color: var(--c-orange-dark);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.draft-block .cards,
.draft-block .ticks { padding-top: 12px; }

.draft-block .card { background: #fff; }

/* --- Подвал: ссылки, контакты, копирайт --------------------------------- */
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  align-items: baseline;
  justify-content: space-between; transform: translateY(-7px);
  padding: 12px 0 16px;
  margin-top: 12px;
  border-top: 1px solid var(--c-blue-line);
  font-size: var(--fs-sm);
  color: var(--c-ink-soft);
}

.footer__nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }

.footer__contacts { margin: 0; }

.footer__legal { margin: 0; font-size: var(--fs-xs); }

/* --- Адаптив (корпоративные блоки) -------------------------------------- */
@media (max-width: 1080px) {
  .cta { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}

@media (max-width: 860px) {
  .page-hero__lead { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 18px 0 22px; }
  .docs__item { flex-direction: column; gap: 14px; }
}

@media (max-width: 560px) {
  .cta { padding: 20px; }
  .card { padding: 14px 16px 16px; }
  .footer__links { flex-direction: column; align-items: flex-start; }
}

@media print {
  .subnav, .cta__actions, .section__actions, .draft-block::before { display: none !important; }
}

/* ==========================================================================
   Боковое меню (список разделов, как на tris-msk.ru) — в стиле сайта:
   синяя плашка-акцент, оранжевая отметка активного пункта, прямые углы.
   ========================================================================== */

/* --- Каркас: сайдбар + контент ------------------------------------------- */
@media (min-width: 1200px) {
  /* Верхнее меню видимо от 1200 px (база скрывает его на узких экранах) */
  .topbar__nav { display: flex; justify-content: flex-start; align-items: center; flex: 1; }

  .layout { display: flex; align-items: flex-start; }

  .sidebar {
    flex: 0 0 264px;
    width: 264px;
    position: sticky;
    top: var(--topbar-h);
    max-height: calc(100vh - var(--topbar-h));
    overflow-y: auto;
    background: var(--c-white);
    border-right: var(--line);
    scrollbar-width: thin;
  }

  .layout > main { flex: 1 1 auto; min-width: 0; }
}

/* --- Само меню ------------------------------------------------------------- */
.sidebar__nav { padding: 6px 0 28px; }

.sidebar__list,
.sidebar__sub { margin: 0; padding: 0; list-style: none; }

.sidebar__item {
  position: relative;
  border-bottom: 1px solid var(--c-blue-tint2);
}

.sidebar__link {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .02em;
  line-height: 1.3;
  color: var(--c-ink);
  border-left: 3px solid transparent;
}

.sidebar__link:hover {
  color: var(--c-blue);
  background: var(--c-blue-tint2);
}

/* Текущая страница и её разделы-предки */
.sidebar__item.is-current > .sidebar__link,
.sidebar__item.is-current > .sidebar__row > .sidebar__link {
  color: var(--c-blue);
  background: var(--c-blue-tint2);
}

/* Сам активный пункт — с оранжевой отметкой */
.sidebar__link[aria-current="page"] {
  border-left-color: var(--c-orange);
}

/* Кнопка-стрелка подменю.
   Стрелка позиционируется относительно строки .sidebar__row (ссылка +
   кнопка), а не всего пункта: иначе при раскрытии подменю пункт
   вырастает, и стрелка уезжает в середину раскрытого блока. */
.sidebar__row { position: relative; }

.sidebar__row > .sidebar__link { padding-right: 40px; }

.sidebar__toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--c-blue);
  cursor: pointer;
}

.sidebar__toggle svg { transition: transform .15s ease; }

.sidebar__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

/* Подменю — аккордеон */
.sidebar__sub { display: none; }

.sidebar__item.is-open > .sidebar__sub { display: block; }

.sidebar__sub .sidebar__link {
  padding: 8px 16px 8px 26px;
  font-size: 13px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--c-ink-soft);
  background: var(--c-blue-tint2);
}

.sidebar__sub .sidebar__link:hover,
.sidebar__sub .sidebar__link[aria-current="page"] {
  color: var(--c-blue);
  background: var(--c-blue-tint);
}

/* Третий и четвёртый уровни — глубже отступ */
.sidebar__sub .sidebar__sub .sidebar__link {
  padding-left: 42px;
  font-size: 12.5px;
}

.sidebar__sub .sidebar__sub .sidebar__sub .sidebar__link {
  padding-left: 56px;
  font-size: 12px;
}

/* Подменю раскрывается ТОЛЬКО по клику на стрелку (data-sub-toggle).
   Наведение больше не раскрывает — иначе при прокрутке курсором
   открывались все разделы подряд. */

/* --- Мобильный режим: меню-шторка ----------------------------------------- */
@media (max-width: 1199.98px) {
  .burger { display: inline-block; }

  .sidebar {
    position: fixed;
    top: var(--topbar-h);
    left: 0;
    bottom: 0;
    z-index: 60;
    width: min(340px, 88vw);
    overflow-y: auto;
    background: var(--c-white);
    border-right: 3px solid var(--c-blue);
    transform: translateX(-103%);
    transition: transform .2s ease;
  }

  html.nav-open { overflow: hidden; }

  html.nav-open .sidebar { transform: none; }

  /* Затемнение под шторкой; ниже шапки (z-index 50), чтобы бургер
     оставался кликабельным и служил кнопкой закрытия. */
  html.nav-open body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 45;
    background: rgba(35, 31, 32, .45);
  }

  .sidebar__nav { padding-top: 14px; }
}

/* --- Перенесённый контент (tris-msk.ru) ----------------------------------- */
.legacy { max-width: 920px; }

.legacy h3,
.legacy h4 {
  margin: 1.5em 0 .6em;
  font-size: var(--fs-lg);
  color: var(--c-blue);
}

.legacy h3:first-child,
.legacy h4:first-child { margin-top: 0; }

.legacy p { margin: 0 0 .9em; }

.legacy img {
  max-width: 100%;
  height: auto;
  margin: 14px auto;
  border: var(--line);
}

.legacy a { color: var(--c-blue); }

.legacy a:hover { color: var(--c-blue-dark); }

.legacy table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 20px;
  font-size: var(--fs-sm);
}

.legacy th,
.legacy td {
  border: var(--line);
  padding: 6px 10px;
  text-align: left;
  vertical-align: top;
}

.legacy th { background: var(--c-blue-tint); }

.legacy ul,
.legacy ol { margin: 0 0 .9em; padding-left: 1.4em; }

.legacy ul { list-style: disc; }

.legacy ol { list-style: decimal; }

.legacy li { margin-bottom: .35em; }

.legacy iframe.legacy-video {
  display: block;
  width: 100%;
  max-width: 640px;
  aspect-ratio: 16 / 9;
  height: auto;
  margin: 14px auto;
  border: var(--line);
}

@media print {
  .sidebar, .sidebar__cta, .modal, html.nav-open body::after { display: none !important; }
}

/* ==========================================================================
   Модалка «Обратный звонок» (открывается из верхнего меню и мобильной шторки).
   Статический сайт без обработчика писем: отправка формы собирает письмо
   и открывает почтовый клиент (mailto:), см. app.js.
   ========================================================================== */

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 10vh 16px 16px;
  overflow-y: auto;
}

.modal[hidden] { display: none; }

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(35, 31, 32, .55);
}

.modal__card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--c-white);
  border-top: 4px solid var(--c-blue);
  box-shadow: 0 16px 48px rgba(35, 31, 32, .25);
  padding: 24px;
}

.modal__close {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 34px;
  height: 34px;
  padding: 0;
  background: none;
  border: 0;
  font-size: 24px;
  line-height: 1;
  color: var(--c-ink-soft);
  cursor: pointer;
}

.modal__close:hover { color: var(--c-ink); }

.modal__title { font-size: var(--fs-lg); margin-bottom: 8px; }

.modal__text { font-size: var(--fs-sm); color: var(--c-ink-soft); }

.modal__label {
  display: block;
  margin-top: 14px;
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--c-ink-soft);
}

.modal__input {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  font: inherit;
  color: var(--c-ink);
  background: var(--c-white);
  border: 1px solid var(--c-blue-line);
}

.modal__input:focus {
  outline: 2px solid var(--c-orange);
  outline-offset: 0;
  border-color: var(--c-blue);
}

.modal__submit { margin-top: 14px; width: 100%; }

.modal__note { margin-top: 10px; font-size: var(--fs-xs); color: var(--c-blue); }

.modal__alt { margin-top: 14px; font-size: var(--fs-sm); color: var(--c-ink-soft); }

/* Кнопка «Обратный звонок» в мобильной шторке (на десктопе в верхнем меню) */
.sidebar__cta {
  display: none;
  margin: 10px 12px 0;
  padding: 11px 16px;
  background: #fff;
  color: var(--c-blue);
  border: 2px solid var(--c-blue);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}

.sidebar__cta:hover { background: var(--c-blue); color: #fff; }

@media (max-width: 1199.98px) {
  .sidebar__cta { display: block; }
}

/* ==========================================================================
   Карусель «Детали инвентарных обсадных труб» (под блоком «Преимущества»)
   По макету: контейнер со скруглением и отступами, внутри — стрелка,
   рамка с картинкой, рамка с заголовком/описанием, стрелка.
   Навигация: стрелки, точки, клавиатура, свайп (app.js → initPartsSlider).
   ========================================================================== */

.section--parts { padding-top: 6px; }

/* Блок «Детали труб» — на всю ширину контентной области, до горизонтальных границ */
.section--parts > .wrap { max-width: none; padding: 0; }

.parts {
  position: relative;
  margin-top: 20px;
  padding: 22px;
  border: 2.2px solid var(--c-blue-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
  outline: none;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px 14px;
  align-items: center;
}

.parts:focus-visible { box-shadow: inset 0 0 0 3px var(--c-orange); }

/* Стрелки — в боковых колонках сетки, не перекрывают контент (как на макете) */
.parts__arrow {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  padding: 0;
  background: none;
  border: 0;
  color: var(--c-blue);
  cursor: pointer;
  transition: color .2s ease, transform .2s ease;
}

.parts__arrow:hover { color: var(--c-blue-dark); }
.parts__arrow:active { transform: scale(.92); }
.parts__arrow svg { width: 30px; height: 30px; }

/* Видеопластинка закреплена и обрезает слайды; трек движется внутри неё
   (тот же паттерн, что у hero-слайдера). Если бы overflow был на самом
   треке, обрезка ехала бы вместе с transform, и во время перехода
   контент вылезал бы за край контейнера. */
.parts__viewport {
  min-width: 0;
  overflow: hidden;
}

.parts__track {
  display: flex;
  transition: transform .6s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}

.parts__slide {
  flex: 0 0 100%;
  min-width: 0;
  display: grid;
  /* Фото — колонка по формату кадра, текст — оставшаяся ширина */
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
}

/* Картинка — отдельная рамка со скруглением (внутри скруглённого контейнера).
   Ширина рамки — по формату фото (колонка auto в сетке слайда). */
.parts__media {
  margin: 0;
  min-height: 300px;
  padding: 14px;
  background: var(--c-blue-tint2);
  border: var(--line);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Высота фиксированная, ширина — из соотношения сторон: блок с фото
   меняется по формату кадра, текстовая колонка занимает остаток.
   min(100%, 900px) — защита от сверхшироких панорам. */
.parts__media img {
  height: 320px;
  width: auto;
  max-width: min(100%, 900px);
  object-fit: cover;
}

/* Рендеры деталей — на белом фоне, без обрезки */
.parts__media--part { background: #fff; }
.parts__media--part img { object-fit: contain; }

/* Текст — отдельная рамка, как на макете */
.parts__body {
  padding: 26px 30px;
  border: var(--line);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.parts__title {
  font-size: var(--fs-xl);
  color: var(--c-blue);
  margin-bottom: 10px;
}

.parts__text { margin: 0; font-size: var(--fs-md); }

/* Точки — правый нижний угол, в палитре сайта (фон белый, не как в hero) */
.parts__dots {
  position: absolute;
  right: 24px;
  bottom: 8px;
  z-index: 2;
  display: flex;
  gap: 8px;
}

.parts__dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 1px solid var(--c-blue-soft);
  background: transparent;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}

.parts__dot:hover { background: var(--c-blue-tint); }
.parts__dot.is-active { background: var(--c-orange); border-color: var(--c-orange); }

@media (max-width: 860px) {
  /* Узкий экран: слайд в колонку, стрелки — под ним (слева/справа) */
  .parts {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "track"
      "arrows";
    padding: 16px;
    gap: 10px;
  }
  .parts__viewport { grid-area: track; }
  .parts__arrow { width: 40px; height: 50px; }
  .parts__arrow svg { width: 26px; height: 26px; }
  .parts__arrow--prev { grid-area: arrows; justify-self: start; }
  .parts__arrow--next { grid-area: arrows; justify-self: end; }
  .parts__slide { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .parts__media { min-height: 0; padding: 10px; }
  .parts__media img { width: 100%; height: auto; max-height: 240px; }
  .parts__media--part img { width: 100%; height: auto; max-height: 200px; }
  .parts__body { padding: 18px 20px; }
  .parts__dots { right: 18px; bottom: 4px; }
}

@media (max-width: 560px) {
  .parts { padding: 12px; }
  .parts__body { padding: 14px 16px; }
  .parts__title { font-size: var(--fs-lg); }
  .parts__text { font-size: var(--fs-base); }
}

/* --- Инфографика: достижения компании (5 иконок в ряд, по макету) -------- */
.section--stats { padding: 26px 0 8px; }

.stats {
  border: var(--line);
  padding: 26px 28px 30px;
}

.stats__caption {
  margin: 0 0 22px;
  text-align: center;
  font-size: var(--fs-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--c-ink-soft);
}

.stats__list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.stats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.stats__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border: 1px solid var(--c-blue-line);
  color: var(--c-blue);
  transition: border-color .15s ease, background .15s ease;
}

.stats__icon svg { width: 44px; height: 44px; }

.stats__item:hover .stats__icon {
  border-color: var(--c-blue);
  background: var(--c-blue-tint2);
}

.stats__num {
  font-size: var(--fs-xl);
  font-weight: 500;
  line-height: 1;
  color: var(--c-blue);
}

.stats__label {
  font-size: var(--fs-sm);
  color: var(--c-ink-soft);
  line-height: 1.3;
}

/* Адаптив: 5 колонок → 3 → 2 */
@media (max-width: 1080px) {
  .stats__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .stats { padding: 18px 16px 22px; }
  .stats__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .stats__icon { width: 70px; height: 70px; }
  .stats__icon svg { width: 36px; height: 36px; }
  .stats__num { font-size: var(--fs-lg); }
}

/* --- Видео с RUTUBE: галерея роликов (по макету: рамка + 6 карточек) ---- */
.section--videos { padding: 26px 0 8px; }

.videos {
  border: var(--line);
  padding: 26px 28px 30px;
}

.videos__caption {
  margin: 0 0 22px;
  text-align: center;
  font-size: var(--fs-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--c-ink-soft);
}

.videos__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.videos__item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  color: inherit;
  cursor: pointer;
  font: inherit;
}

.videos__item:hover { color: inherit; }

.videos__thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--c-blue-line);
  background: var(--c-blue-tint2);
  transition: border-color .15s ease;
}

.videos__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .25s ease;
}

.videos__item:hover .videos__thumb { border-color: var(--c-blue); }
.videos__item:hover .videos__thumb img { transform: scale(1.05); }

/* Кнопка «воспроизвести» поверх постера */
.videos__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(56, 111, 153, .25);
  color: #fff;
  transition: background .2s ease;
}

.videos__play svg { width: 52px; height: 52px; opacity: .9; filter: drop-shadow(0 2px 8px rgba(35, 31, 32, .5)); }

.videos__item:hover .videos__play { background: rgba(56, 111, 153, .5); }
.videos__item:hover .videos__play svg { opacity: 1; }

.videos__title {
  font-size: var(--fs-sm);
  line-height: 1.35;
  color: var(--c-ink-soft);
  transition: color .15s ease;
}

.videos__item:hover .videos__title { color: var(--c-blue-dark); }

.videos__more {
  margin: 20px 0 0;
  text-align: center;
  font-size: var(--fs-sm);
}

.videos__more a {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* Адаптив: 3 колонки → 2 → 1 */
@media (max-width: 1080px) {
  .videos__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .videos { padding: 18px 16px 22px; }
  .videos__grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .videos__play svg { width: 40px; height: 50px; }
}

/* --- Галерея фото: «Результат нашей работы» (по макету: заголовок + ссылка «Все проекты»,
   большое фото слева на два ряда, справа 3 фото сверху и 2 снизу, подписи поверх фото) --- */
.section--gallery { padding: 26px 0 8px; }

.gallery {
  padding: 26px 28px 30px;
}

.gallery__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between; transform: translateY(-7px);
  flex-wrap: wrap;
  gap: 8px 16px;
}

.gallery__title {
  margin: 0;
  font-size: 25px;
  font-weight: 400;
  line-height: 1.2;
  color: #6b6b6b;
}

.gallery__all {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: var(--fs-sm);
  color: #767676;
  white-space: nowrap;
}

.gallery__all svg { width: 13px; height: 13px; transition: transform .2s ease; }

.gallery__all:hover { color: var(--c-blue-dark); }
.gallery__all:hover svg { transform: translateX(3px); }

.gallery__lead {
  margin: 8px 0 22px;
  max-width: 640px;
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: #767676;
}

/* Мозаика: 4 колонки × 3 ряда. Высокое фото занимает 2 ряда
   (gallery__item--tall), широкое — 2 колонки (gallery__item--wide),
   остальные — обычные. Порядок элементов в HTML задаёт раскладку
   (grid auto-placement + dense). Ячейки фиксированного размера,
   фото обрезаются под ячейку (object-fit: cover) — без пустот. */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  grid-auto-flow: row dense;
  gap: 16px;
  aspect-ratio: 1.4;
}

.gallery__item {
  margin: 0;
  position: relative;
  min-width: 0;
  min-height: 0;
}

.gallery__item--tall { grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }

.gallery__link {
  position: relative;
  display: block;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--c-blue-line);
  background: var(--c-blue-tint2);
}

.gallery__link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .25s ease;
}

.gallery__link:hover img { transform: scale(1.05); }

.gallery__zoom {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(68, 133, 181, 0);
  color: #fff;
  transition: background .2s ease;
}

.gallery__zoom svg { width: 30px; height: 30px; opacity: 0; transition: opacity .2s ease; }

.gallery__link:hover .gallery__zoom { background: rgba(56, 111, 153, .45); }
.gallery__link:hover .gallery__zoom svg { opacity: 1; }

/* Подпись поверх фото: тёмный градиент снизу, как в макете */
.gallery__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 30px 14px 12px;
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
  background: linear-gradient(to top, rgba(15, 18, 22, .68), rgba(15, 18, 22, 0));
  pointer-events: none;
}

/* Адаптив: до 900px — 2 колонки (мозаика перестраивается в 6 рядов),
   до 560px — одна колонка */
@media (max-width: 900px) {
  .gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(6, minmax(0, 1fr));
    aspect-ratio: 0.34;
  }
}

@media (max-width: 560px) {
  .gallery { padding: 18px 16px 22px; }
  .gallery__grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-auto-rows: 240px;
    aspect-ratio: auto;
  }
  .gallery__item--wide { grid-column: auto; }
}

/* --- Лайтбокс: просмотр фото в полном размере --------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(35, 31, 32, .88);
}

.lightbox[hidden] { display: none; }

.lightbox__figure {
  margin: 0;
  max-width: min(1100px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.lightbox__img {
  max-width: 100%;
  max-height: calc(100vh - 120px);
  width: auto;
  border: 1px solid rgba(255, 255, 255, .25);
  background: #fff;
}

.lightbox__title {
  color: #fff;
  font-size: var(--fs-sm);
  text-align: center;
}

.lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .5);
  background: rgba(35, 31, 32, .4);
  color: #fff;
  cursor: pointer;
  transition: background .15s ease;
}

.lightbox__close:hover { background: var(--c-orange); border-color: var(--c-orange); }
.lightbox__close svg { width: 22px; height: 22px; }

/* Лайтбокс: переключение фото — стрелки, счётчик, плавная смена */
.lightbox__img {
  transition: opacity .18s ease;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .5);
  background: rgba(35, 31, 32, .4);
  color: #fff;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
  z-index: 1;
}

.lightbox__nav:hover { background: var(--c-orange); border-color: var(--c-orange); }
.lightbox__nav svg { width: 26px; height: 26px; }

.lightbox__nav--prev { left: 18px; }
.lightbox__nav--next { right: 18px; }

.lightbox__counter {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: var(--fs-sm);
  letter-spacing: .08em;
  background: rgba(35, 31, 32, .4);
  border: 1px solid rgba(255, 255, 255, .35);
  padding: 4px 12px;
}

@media (max-width: 560px) {
  .lightbox { padding: 12px; }
  .lightbox__nav { width: 42px; height: 42px; }
  .lightbox__nav svg { width: 20px; height: 20px; }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
  .lightbox__counter { top: 12px; font-size: var(--fs-xs); }
}

/* --- Видео-модал: RUTUBE-плеер прямо на сайте ---------------------------- */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.video-modal[hidden] { display: none; }

.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(35, 31, 32, .88);
}

.video-modal__dialog {
  position: relative;
  width: min(1000px, 100%);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.video-modal__player {
  aspect-ratio: 16 / 9;
  width: 100%;
  background: #000;
  border: 1px solid rgba(255, 255, 255, .25);
}

.video-modal__player iframe { display: block; }

.video-modal__title {
  margin: 0;
  color: #fff;
  font-size: var(--fs-sm);
  text-align: center;
  line-height: 1.4;
}

.video-modal__close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .5);
  background: rgba(35, 31, 32, .7);
  color: #fff;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
  z-index: 1;
}

.video-modal__close:hover { background: var(--c-orange); border-color: var(--c-orange); }
.video-modal__close svg { width: 22px; height: 22px; }

@media (max-width: 560px) {
  .video-modal { padding: 12px; }
  .video-modal__close { top: -10px; right: -6px; width: 38px; height: 38px; }
  .video-modal__close svg { width: 18px; height: 18px; }
  .video-modal__title { font-size: var(--fs-xs); }
}

/* ==========================================================================
   Шапка: логотип в полный размер (≥1440px).
   Логотип сжимался flexbox\u2019ом (естественная ширина 602px, рендерилось 450px).
   Исправление: логотип выходит в левый отступ контейнера, навигация
   слегка сжата, чтобы освободить место. Зазор между логотипом и меню
   (30.36px) сохранён.
   ========================================================================== */
@media (min-width: 1440px) {
  .topbar__logo {
    flex-shrink: 0;
  }

  /* Лёгкое сжатие навигации (~72px) под полный размер логотипа */
  .topbar__item--cta { margin-left: 20px; }
  .topbar__item--cta button { padding: 10.78px 20px; }
  .topbar__menu-row { gap: 0; }
  .topbar__item > a { padding: 10.12px 10px; }
}
