/* ===========================================================
   Технекс — вёрстка по макету Figma (секция Web / Main)
   Шрифты: Onest (Google Fonts) + Onder (локальный, заголовки)
   =========================================================== */

@font-face {
  font-family: "Onder";
  src: url("../fonts/Onder-Regular.ttf") format("truetype");
  font-weight: 400 900;
  font-style: normal;
  /* ЕДИНСТВЕННАЯ наша правка внутри style.css — всё остальное вынесено в
     mobile.css (подключается следующей строкой после этого файла).
     Здесь править приходится на месте: font-display — дескриптор @font-face,
     из другого файла его надёжно не переопределить.
     2026-10-20: было swap — заголовок успевал отрисоваться запасным шрифтом,
     а после загрузки Onder перевёрстывался и утягивал контент вниз (на карточке
     услуги — примерно на 250 px). Шрифт лежит на своём же сервере и приезжает
     быстро, поэтому block: текст ждёт свой шрифт и перекомпоновки не будет. */
  font-display: block;
}

:root {
  --white: #fff;
  --black: #000;
  --grey: #f5f5f5;
  --grey-2: #e8e8e8;
  --grey-3: #989898;
  --text-primary: #303030;
  --text-secondary: #888;
  --stroke: rgba(0, 0, 0, 0.2);
  --brand: #053b81;
  --brand-50: #eff4fa;
  --brand-100: #dae6f6;
  --brand-300: #6ea7f2;
  --brand-400: #207bf1;
  --brand-600: #064aa3;
  --accent: #f69803;
  --page-bg: #e8e8e8;

  --container: 1200px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;

  --font-body: "Onest", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-head: "Onder", "Onest", system-ui, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--black);
  /* светлый градиент лежит в самом низу страницы — под картой */
  background: var(--page-bg) linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 100%) bottom / 100% 640px no-repeat;
  -webkit-font-smoothing: antialiased;
}

body.is-menu-open { overflow: hidden; }

/* страница показывается, когда шапка и футер уже подставлены —
   иначе при каждом переходе виден рывок собирающейся вёрстки */
html.js body { opacity: 0; }
html.js body.is-ready { opacity: 1; transition: opacity 0.12s ease; }

/* место под шапку и строку поиска, чтобы контент не прыгал */
[data-include$="header.html"] { display: block; min-height: 148px; }
[data-include$="footer.html"] { display: block; min-height: 978px; }
[data-include$="contacts.html"] { display: block; min-height: 344px; }

img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.container {
  width: min(var(--container), 100% - 32px);
  margin-inline: auto;
}

/* Заголовочный стиль (замена Onder) */
.h-display,
.h2,
.h3,
.h4 {
  font-family: var(--font-head);
  font-weight: 400;
  margin: 0;
}
.h-display { font-size: 28px; line-height: 48px; }
.h2 { font-size: 28px; line-height: 48px; }
.h3 { font-size: 20px; line-height: 40px; }
.h4 { font-size: 12px; line-height: 30px; }

/* ----------------------------- Кнопки ----------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 17px 24px 15px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--black);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 12px;
  line-height: 24px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.btn:hover { background: var(--brand-400); color: var(--brand-50); }
.btn--block { width: 100%; }

/* ----------------------------- Хиро ----------------------------- */
.hero {
  position: relative;
  padding: 76px 0 0;
  background: var(--page-bg);
}
.hero__lines {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: auto;
  pointer-events: none;
  user-select: none;
}
.hero__crane {
  position: absolute;
  top: 40px;
  left: 50%;
  width: 904px;
  margin-left: -140px;
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; }
.hero__title span { color: var(--brand); display: block; }
.hero__subtitle {
  margin: 16px 0 0;
  font-size: 30px;
  line-height: 37px;
  color: var(--text-primary);
}

/* Шильдик со статистикой */
.stats {
  display: flex;
  gap: 40px;
  align-items: center;
  width: max-content;
  max-width: 100%;
  margin-top: 44px;
  padding: 32px 32px 16px;
  background: var(--white);
  border-radius: 32px;
}
.stats__num { font-size: 48px; line-height: 1; }
.stats__label { font-size: 24px; color: var(--grey-3); margin-top: 6px; }

/* ----------------------------- Шапка ----------------------------- */
.panel {
  margin-top: 78px;
  background: var(--white);
  border-radius: var(--radius-lg);
  position: relative;
  z-index: 2;
}

.mainmenu {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 40px;
  height: 74px;
  padding: 12px 24px;
  background: var(--white);
}
.logo { width: 203px; height: 50px; position: relative; flex: none; }
.logo img { position: absolute; }
.logo img:nth-child(1) { inset: 29.85% 0 22.64% 24.67%; }
.logo img:nth-child(2) { inset: 66.13% 74.54% 0 0; }
.logo img:nth-child(3) { inset: 88.54% 3% 0 28.52%; }
.logo img:nth-child(4) { inset: 0 81.97% 18.4% 0; }
.logo img:nth-child(5) { inset: 66.13% 74.54% 0 0; }
.logo img:nth-child(6) { inset: 0 72.19% 0.06% 13.89%; }
.logo img { width: auto; height: auto; }

/* единый шрифт меню: пункты, телефон, кнопка «Меню» и подпункты — 14px, 700 */
.nav__link,
.header-phone,
.burger,
.burger__text,
.dropdown a {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  line-height: 20px;
}

.nav { display: flex; align-items: center; flex: 1; min-width: 0; }
.nav__item { position: relative; }
.nav__link {
  display: block;
  padding: 8px 12px;
  border-radius: 12px;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav__item:hover .nav__link,
.nav__item:focus-within .nav__link { background: var(--grey); color: var(--brand-400); }
/* раздел с раскрытым списком — как состояние Variant3 в макете */
.nav__item.is-open .nav__link { background: var(--brand-50); color: var(--brand-600); }

/* текущий раздел — подсвечен, как в макете */
.nav__item.is-active .nav__link { background: var(--brand-50); color: var(--brand-600); }

/* стрелка — только на узких экранах */
.nav__caret { display: none; }

/* ----------------------------- Выпадающее меню ----------------------------- */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  width: 301px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--grey);
  border-radius: 12px;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.15));
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
.nav__item:hover .dropdown,
.nav__item:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: 8px;
  border-radius: 4px;
  color: var(--black);
  transition: background 0.15s ease, color 0.15s ease;
}
.dropdown a:hover { background: var(--grey); color: var(--brand-400); }
/* открытая сейчас подстраница */
.dropdown a.is-current { background: var(--brand-50); color: var(--brand-600); }
/* у последних пунктов список открывается влево, чтобы не уезжать за край */
.nav__item:nth-last-child(-n+2) .dropdown { left: auto; right: 0; }
/* на широком экране обёртка не влияет на раскладку */
.mainmenu__actions { display: contents; }

.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.header-phone img { width: 20px; height: 20px; }
.burger { display: none; }
.burger__text { white-space: nowrap; }

/* Поисковая строка */
.searchbar {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 74px;
  padding: 0 24px;
  background: var(--grey);
  transition: background 0.15s ease;
}
.searchbar:hover { background: var(--brand-50); }
.searchbar:focus-within { background: var(--brand-100); }

.searchbar__field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  height: 56px;
  padding: 0 13px;
  background: var(--white);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: text;
  transition: border-color 0.15s ease, padding 0.15s ease;
  margin: 0;
}
.searchbar:focus-within .searchbar__field { border-color: var(--brand-300); padding: 0 21px; }

.searchbar__icon { flex: none; width: 24px; height: 24px; }
.searchbar__icon--active { display: none; }
.searchbar:hover .searchbar__icon--idle,
.searchbar:focus-within .searchbar__icon--idle { display: none; }
.searchbar:hover .searchbar__icon--active,
.searchbar:focus-within .searchbar__icon--active { display: block; }

.searchbar__field input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: none;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 20px;
  color: var(--black);
}
.searchbar__field input::-webkit-search-cancel-button { display: none; }
.searchbar__field input::placeholder { color: var(--text-secondary); opacity: 0.5; }
.searchbar:hover .searchbar__field input::placeholder { color: var(--brand-300); opacity: 1; }
.searchbar:focus-within .searchbar__field input::placeholder { color: var(--text-secondary); opacity: 0.5; }
.searchbar.is-filled .searchbar__field input { font-weight: 600; font-size: 18px; }

.searchbar__clear {
  display: none;
  flex: none;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.searchbar__clear img { width: 24px; height: 24px; }
.searchbar:focus-within .searchbar__clear,
.searchbar.is-filled .searchbar__clear { display: block; }

.searchbar__submit { display: none; flex: none; }
.searchbar:focus-within .searchbar__submit,
.searchbar.is-filled .searchbar__submit { display: inline-flex; }

/* Три колонки разделов */
.cats #block-technex-kategoriiglavnaya .block__content > div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 24px;
  background: var(--white);
}
.cat__cover { border-radius: 0; }
.cat__cover img { width: 100%; height: 240px; object-fit: cover; }
.cat__title { margin: 10px 0 24px; }
.cat__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px 8px 56px;
  margin: 0;
  list-style: none;
}
.cat__list a {
  font-weight: 600;
  font-size: 18px;
  line-height: 20px;
}
.cat__list a:hover { color: var(--brand-400); text-decoration: underline; }

/* ----------------------------- Баннеры ----------------------------- */
#block-technex-bannerglavnaya .block__content > div,
#block-technex-karuselglavnaya .banner {
  position: relative;
  flex: none;
  min-height: 326px;
  padding: 60px 80px 0;
  background: var(--grey);
  border-radius: var(--radius-lg);
  transition: background-color 0.25s ease;
}
.banner .h3,
.banner .btn { transition: color 0.25s ease, background-color 0.25s ease; }
.banner__content { max-width: 620px; }
.banner__kicker { color: var(--accent); }
.banner__text {
  margin: 16px 0 50px;
  font-weight: 600;
  font-size: 24px;
  line-height: 32px;
  color: var(--text-primary);
}

/* --- баннер радиоуправления: статичный, с наведением --- */
.banner--radio { margin-top: 30px; overflow: visible; }
.banner__decors {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  pointer-events: none;
}
.banner__decor {
  position: absolute;
  top: 0;
  height: 336px;
  pointer-events: none;
  transition: transform 0.25s ease;
}
.banner__decor:nth-of-type(1) { left: 558px; }
.banner__decor:nth-of-type(2) { left: 598px; }
.banner__decor:nth-of-type(3) { left: 706px; }
/* пульт выходит за верхнюю границу баннера */
.banner__overhang {
  position: absolute;
  right: 132px;
  bottom: -58px;
  width: 212px;
  z-index: 2;
  transform-origin: 50% 50%;
  transition: transform 0.25s ease;
  pointer-events: none;
}

/* состояние наведения по макету: фон чуть темнее, заголовок светлее,
   кнопка синяя, декор смещается, картинка немного крупнее */
.banner--radio:hover { background-color: #f0f0f0; }
.banner--radio:hover .banner__kicker { color: #ffad2c; }
.banner--radio:hover .btn { background: var(--brand-400); color: var(--brand-50); }
.banner--radio:hover .banner__overhang { transform: scale(1.04); }
.banner--radio:hover .banner__decor:nth-of-type(1) { transform: translateX(-60px); }
.banner--radio:hover .banner__decor:nth-of-type(2) { transform: translateX(20px); }
.banner--radio:hover .banner__decor:nth-of-type(3) { transform: translateX(50px); }

/* --- листалка с кранами --- */
#block-technex-karuselglavnaya .block__content > div { position: relative; margin-top: 40px; padding-bottom: 96px; }
.cranes__viewport { overflow: hidden; border-radius: var(--radius-lg); }
.cranes__track { display: flex; transition: transform 0.4s ease; }

.banner--crane { width: 100%; overflow: hidden; }
.banner--crane .h3 { margin-bottom: 86px; }
.banner--crane .banner__content { padding-top: 20px; }
.banner__img {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%) scale(1);
  transform-origin: 50% 50%;
  max-width: 68%;
  transition: transform 0.25s ease;
  pointer-events: none;
}
.banner--crane:hover { background-color: #f0f0f0; }
.banner--crane:hover .h3 { color: #ffad2c; }
.banner--crane:hover .btn { background: var(--brand-400); color: var(--brand-50); }
.banner--crane:hover .banner__img { transform: translateY(-50%) scale(1.04); }

.cranes__btn {
  position: absolute;
  bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  padding: 8px 16px;
  background: var(--grey);
  border: 0;
  border-radius: 51px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.cranes__btn:hover { background: var(--brand-50); }
.cranes__btn img { width: 32px; height: 32px; }
.cranes__btn--prev { left: 0; }
.cranes__btn--next { right: 0; }


/* ----------------------------- Новости ----------------------------- */
.news {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-top: 63px;
}
.news__card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 8px 8px 24px;
  background: var(--grey-2);
  transition: background 0.15s ease, padding 0.15s ease;
}
.news__card p { transition: color 0.15s ease; }
/* hover по макету: фон светлеет, отступ сжимается (картинка растёт), заголовок синий */
.news__card:hover { background: var(--grey); padding: 4px 4px 24px; }
.news__card:hover p { color: var(--brand-400); }
.news__card:first-child { border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
.news__card:last-child { border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
.news__card img { width: 100%; height: 160px; object-fit: cover; border-radius: var(--radius-md); }
.news__card p {
  margin: 0;
  padding: 0 16px;
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
}
.news-cta { margin-top: 28px; }

/* ----------------------------- SEO-блок ----------------------------- */
.seo {
  margin-top: 80px;
  padding: 64px 40px 80px;
  background: var(--grey);
  border-radius: var(--radius-lg);
  text-align: center;
}
.seo .h3 { max-width: 820px; margin-inline: auto; }
.seo p {
  max-width: 820px;
  margin: 32px auto 0;
  font-size: 16px;
  line-height: 20px;
  color: var(--text-primary);
  text-align: left;
}

/* ----------------------------- 5 шагов ----------------------------- */
.steps {
  margin-top: 80px;
  padding: 80px 150px 110px;
  background: var(--white);
  border-radius: var(--radius-lg);
}
.steps__list {
  max-width: 820px;
  margin: 40px 0 0;
}
.step {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  border-bottom: 1px solid var(--stroke);
}
.step__title { margin: 0; }
.step__desc {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 18px;
  color: var(--text-secondary);
}
.step__num {
  flex: none;
  width: 64px;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 31px;
  line-height: 54px;
  text-align: center;
}
.step:nth-child(1) .step__num { opacity: 0.6; }
.step:nth-child(2) .step__num { opacity: 0.7; }
.step:nth-child(3) .step__num { opacity: 0.8; }
.step:nth-child(4) .step__num { opacity: 0.9; }

/* ----------------------------- Футер ----------------------------- */
.footer {
  position: relative;
  margin-top: 102px;
  padding: 56px 56px 40px;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.footer__lines {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: auto;
  transform: translateY(-50%) rotate(180deg) scaleY(-1);
  pointer-events: none;
}
.footer > *:not(.footer__lines) { position: relative; z-index: 1; }
.footer__phone { margin: 0; }
.footer__hours { margin: 8px 0 0; font-weight: 600; font-size: 18px; line-height: 20px; color: var(--grey-3); }
.footer__divider { height: 1px; margin: 40px 0; background: rgba(0, 0, 0, 0.12); }
.footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.footer__col h3 {
  margin: 0 0 14px;
  font-weight: 600;
  font-size: 14px;
  line-height: 18px;
  letter-spacing: 0.6px;
}
.footer__col ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.footer__col li, .footer__col p { font-size: 15px; line-height: 20px; margin: 0; }
.footer__group + .footer__group { margin-top: 21px; }
.footer__muted { color: var(--text-secondary); }
.footer__req p { font-size: 13px; line-height: 18px; color: var(--text-secondary); margin-bottom: 4px; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 13px;
  line-height: 18px;
  color: rgba(33, 33, 33, 0.55);
}

/* на внутренних страницах отступ до футера 80, как в макете */
.page .footer { margin-top: 80px; }

.map {
  margin: 24px 0 80px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.map img,
.map iframe { display: block; width: 100%; height: 371px; border: 0; object-fit: cover; }

/* ===========================================================
   Внутренние страницы: поиск, новости, каталог, карточка
   =========================================================== */

.hero--inner { padding-top: 40px; }
.hero--inner .panel { margin-top: 0; }
.hero--inner .panel + .panel { margin-top: 80px; }

/* Активное поле поиска */
.searchbar__field--active { cursor: text; }
.searchbar__field input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: none;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 20px;
  color: var(--black);
}
.searchbar__field input::placeholder { color: var(--text-secondary); opacity: 0.5; }

/* Заголовок раздела внутри панели */
.searchhead { padding: 24px; }
.searchhead--sub { padding-bottom: 0; }
.searchhead .h2 { margin: 0; }

/* Теги-фильтры */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag {
  cursor: pointer;
  font-family: var(--font-body);
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: var(--white);
  border: 1px solid var(--stroke);
  border-radius: 51px;
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.tag:hover { color: var(--brand-400); }
.tag.is-active {
  background: var(--brand-400);
  border-color: var(--brand-400);
  color: var(--brand-50);
}

/* Результаты поиска */
.rows { display: block; }
.row {
  display: block;
  padding: 16px 24px;
  border-bottom: 1px solid var(--stroke);
}
.row__title { transition: color 0.15s ease; }
.row { transition: background 0.15s ease; }
.row:hover { background: var(--grey); }
.row:hover .row__title { color: var(--brand-400); }
.row__title { margin: 0; }
.row__desc {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 18px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rows__empty { margin: 0; padding: 24px; font-size: 15px; color: var(--text-secondary); }
.search-cta { margin-top: 40px; }

/* Лента новостей */
/* в макете лента шириной 900 по центру панели */
.newslist { display: flex; flex-direction: column; gap: 12px; padding: 24px 150px; }
.newsitem > div {
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 8px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  transition: border-color 0.15s ease;
}
.newsitem:hover { border-color: var(--brand-300); }
.newsitem__title { transition: color 0.15s ease; }
.newsitem:hover .newsitem__title { color: var(--brand-400); }
.newsitem img {
  flex: none;
  width: 275px;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-md);
}
.newsitem__body {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 24px;
}
.newsitem__title { margin: 0; }
.newsitem__lead {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 18px;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.newsitem__date {
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 18px;
  color: var(--text-primary);
  opacity: 0.5;
}
/* карточка без картинки — текст на всю ширину */
.newsitem--text .newsitem__body { padding: 16px; }

/* Сетка товаров */
.items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding: 0;
  background: var(--stroke);
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
}
.item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 24px;
  background: var(--white);
  transition: background 0.15s ease;
}
.item:hover { background: var(--grey); }
.item__name { transition: color 0.15s ease; }
.item:hover .item__name { color: var(--brand-400); }
.item__img { width: 240px; max-width: 100%; }
.item__img img { width: 100%; height: 240px; object-fit: contain; }
.item__name {
  margin: 0;
  width: 100%;
  font-weight: 600;
  font-size: 18px;
  line-height: 20px;
  text-align: center;
}

/* Документы */
.docs { padding: 24px 24px 8px; }
.doc {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  border-bottom: 1px solid var(--stroke);
  transition: background 0.15s ease;
}
.doc:hover { background: var(--grey); }
.doc__name { transition: color 0.15s ease; }
.doc:hover .doc__name { color: var(--brand-400); }
.doc__thumb { flex: none; width: 57px; height: 80px; object-fit: cover; }
.doc__name { flex: 1; font-weight: 600; font-size: 18px; line-height: 20px; }
.doc__chevron { flex: none; width: 16px; height: 9px; transform: rotate(-90deg); }

/* Блок контактов */
.contacts { padding-bottom: 0; }
/* в макете шапка блока 88, сетка 256 */
.contacts .searchhead { padding: 24px; }
/* заголовок блока — H3 по макету */
.contacts .searchhead .h4 { font-size: 20px; line-height: 40px; }
.contacts__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: start;
  padding: 64px 40px 80px;
}
.contacts__col { display: flex; flex-direction: column; gap: 16px; }
/* подпись колонки — Onest SemiBold 18 по макету */
.contacts__label {
  margin: 0;
  font-weight: 600;
  font-size: 18px;
  line-height: 20px;
  color: var(--text-primary);
}
/* телефоны и почта — Onder 12/30, одной строкой */
.contacts__value {
  display: block;
  margin: 0;
  font-family: var(--font-head);
  font-size: 12px;
  line-height: 30px;
  color: var(--text-primary);
  white-space: nowrap;
  transition: color 0.15s ease;
}
.contacts__value:hover { color: #207bf1; }

/* Хлебные крошки */
.crumbs { padding: 0 24px 0; }
.crumbs a { font-weight: 400; font-size: 14px; line-height: 20px; color: var(--text-secondary); }
.crumbs a:hover { color: var(--black); }
.crumbs > * + *::before {
  content: "●";
  display: inline-block;
  margin: 0.4em 0.8em 0.4em 0.4em ;
  color: currentColor;
  opacity: 0.6;
}

/* Текстовые блоки карточки */
.prose { padding: 24px 24px 24px 48px; }
.prose p, .prose li {
  font-size: 16px;
  line-height: 24px;
  color: var(--text-primary);
}
.prose h2 { margin: 0 0 16px; color: var(--black); }
.prose ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }

/* Галерея карточки */
.gallery { display: grid; gap: 24px; padding: 0 40px 24px; }
.gallery--two { grid-template-columns: repeat(2, 1fr); align-items: start; }
.gallery--narrow img { max-width: 560px; }
.gallery img { width: 100%; border-radius: var(--radius-md); object-fit: cover; }


/* ===========================================================
   Шапка, когда меню перестаёт помещаться по ширине.
   Классы is-compact / is-burger выставляет JS по замеру,
   а не по фиксированной ширине экрана.
   =========================================================== */

/* шаг 1: номер сворачивается в иконку-трубку */
.mainmenu.is-compact .header-phone {
  gap: 0;
  width: 40px;
  height: 40px;
  justify-content: center;
  background: var(--grey);
  border-radius: 50%;
  transition: background 0.15s ease;
}
.mainmenu.is-compact .header-phone:hover { background: var(--brand-50); }
.mainmenu.is-compact .header-phone__text { display: none; }

/* шаг 2: меню уезжает под бургер */
.mainmenu.is-burger .burger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  padding: 8px 14px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: none;
  cursor: pointer;
  transition: background 0.15s ease;
}
.mainmenu.is-burger .burger:hover { background: var(--grey); }
.burger__icon {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: var(--black);
}
.burger__icon::before,
.burger__icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--black);
}
.burger__icon::before { top: -6px; }
.burger__icon::after { top: 6px; }
/* в свёрнутом режиме: логотип слева, телефон по центру, кнопка меню справа */
.mainmenu.is-burger { justify-content: space-between; gap: 12px; }
/* в свёрнутом режиме справа: телефон номером и кнопка «Меню» */
.mainmenu.is-burger {
  flex-wrap: wrap;
  height: auto;
  padding: 12px 16px;
  gap: 8px 12px;
}
.mainmenu.is-burger .mainmenu__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.mainmenu.is-burger .header-phone { display: flex; }
.mainmenu.is-burger .header-phone img { display: none; }

/* меню выезжает справа отдельной панелью */
.mainmenu.is-burger .nav {
  display: flex;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  z-index: 60;
  width: min(360px, 85vw);
  max-height: none;
  overflow-y: auto;
  flex-direction: column;
  align-items: stretch;
  padding: 72px 8px 24px;
  background: var(--white);
  border: 0;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.18);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.3s ease, visibility 0.3s;
}
.mainmenu.is-burger .nav.is-open { transform: translateX(0); visibility: visible; }

/* затемнение остальной области */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}
body.is-menu-open .nav-overlay { opacity: 1; visibility: visible; }

/* кнопка закрытия внутри панели */
.nav__close { display: none; }
.mainmenu.is-burger .nav__close {
  display: block;
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: var(--white);
  font-size: 24px;
  line-height: 1;
  color: var(--black);
  cursor: pointer;
  transition: background 0.15s ease;
}
.mainmenu.is-burger .nav__close:hover { background: var(--grey); }

/* раздел и стрелка в строку, подкатегории раскрываются под ними */
.mainmenu.is-burger .nav__item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  border-bottom: 1px solid var(--grey);
}
.mainmenu.is-burger .nav__item:last-child { border-bottom: 0; }
.mainmenu.is-burger .nav__link { padding: 14px 12px; white-space: normal; }
.mainmenu.is-burger .nav__item:hover .nav__link { background: none; color: inherit; }

.mainmenu.is-burger .nav__caret {
  display: block;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.mainmenu.is-burger .nav__caret::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  margin: -6px 0 0 -5px;
  border-right: 2px solid var(--black);
  border-bottom: 2px solid var(--black);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}
.mainmenu.is-burger .nav__item.is-open .nav__caret::before { transform: rotate(-135deg); margin-top: -2px; }
.mainmenu.is-burger .nav__item.is-open .nav__link { background: none; color: var(--brand-600); }

/* список подкатегорий — обычный блок в потоке */
.mainmenu.is-burger .dropdown {
  grid-column: 1 / -1;
  position: static;
  display: none;
  width: auto;
  padding: 0 12px 12px;
  border: 0;
  border-radius: 0;
  filter: none;
  opacity: 1;
  visibility: visible;
  transform: none;
}
.mainmenu.is-burger .nav__item:hover .dropdown,
.mainmenu.is-burger .nav__item:focus-within .dropdown { display: none; }
.mainmenu.is-burger .nav__item.is-open .dropdown { display: flex; }
.mainmenu.is-burger .dropdown a {
  font-size: 14px;
  padding: 10px 8px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--grey);
  border-radius: 0;
}
.mainmenu.is-burger .dropdown li:last-child a { border-bottom: 0; }
.mainmenu.is-burger .nav__item:nth-last-child(-n+2) .dropdown { right: auto; }

/* ссылка на сам раздел — последним пунктом списка, только в свёрнутом меню */
.dropdown__all { display: none; }
.mainmenu.is-burger .dropdown__all { display: block; }
.dropdown__all a {
  font-weight: 600;
  color: var(--brand-400) !important;
}
.dropdown__all a::after { content: " →"; }

/* ===========================================================
   Мобильная раскладка: всё, что выше меню, убирается, боковые
   поля не занимают место — страница начинается сразу с шапки
   =========================================================== */
body.is-mobile .hero { padding-top: 0; background: none; }
body.is-mobile .hero__lines,
body.is-mobile .hero__crane,
body.is-mobile .hero__title,
body.is-mobile .hero__subtitle,
body.is-mobile .stats { display: none; }
body.is-mobile .hero__inner { width: 100%; }
body.is-mobile .panel { margin-top: 0; border-radius: 0; }
body.is-mobile .hero--inner .panel + .panel { margin-top: 24px; }
body.is-mobile main.container { width: min(var(--container), 100% - 24px); }
body.is-mobile .map { margin-bottom: 40px; }

/* ----------------------------- Адаптив ----------------------------- */
@media (max-width: 1100px) {
  .hero__crane { width: 620px; margin-left: -60px; opacity: 0.9; }
  /* промежуточного варианта нет: либо три колонки, либо одна */
  .cats { grid-template-columns: 1fr; }
  .news { grid-template-columns: repeat(2, 1fr); }
  .news__card { border-radius: var(--radius-md) !important; }
  .steps { padding: 56px 32px; }
  .footer__cols { grid-template-columns: repeat(2, 1fr); }
  .banner__img { max-width: 50%; }
  .banner__overhang { width: 160px; right: 40px; }
  .items { grid-template-columns: repeat(2, 1fr); }
  .contacts__grid { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .contacts__col { padding: 0 24px; }
  .contacts__col:nth-child(odd) { border-left: 0; }
}

@media (max-width: 820px) {
  .hero { padding-top: 40px; }
  .hero__crane { display: none; }
  /* Onder слишком широкий для узкого экрана — крупный заголовок идёт на Onest */
  .h-display {
    font-family: var(--font-body);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    font-size: 26px;
    line-height: 32px;
  }
  .hero__subtitle { font-size: 20px; line-height: 26px; }
  .stats { width: 100%; gap: 12px; padding: 20px 16px 12px; justify-content: space-between; }
  .stats__num { font-size: 26px; white-space: nowrap; }
  .stats__label { font-size: 14px; margin-top: 2px; }

  .mainmenu { gap: 12px; }
  .header-phone { display: none; }

  .cats { grid-template-columns: 1fr; }
  .news { grid-template-columns: 1fr; }
  .banner { min-height: 0; height: auto; padding: 32px 24px; }
  .banner__decor { display: none; }
  .banner--crane .h3 { margin-bottom: 24px; }
  .banner__text { margin-bottom: 24px; }
  /* фиксированная область под картинку — слайды не скачут по высоте */
  .banner--crane { display: flex; flex-direction: column; justify-content: flex-start; }
  .banner__img {
    position: static;
    order: 1;
    transform: none;
    width: 100%;
    max-width: 100%;
    height: 150px;
    object-fit: contain;
    margin: 0 0 24px;
  }
  .banner--crane .banner__content { order: 2; }
  .banner--crane .h3 { margin-bottom: 16px; }
  /* на телефоне пульт стоит над надписью */
  .banner--radio { display: flex; flex-direction: column; }
  .banner--radio .banner__content { order: 2; }
  .banner__overhang { position: static; order: 1; width: 150px; margin: 0 auto 24px; }
  .cranes { padding-bottom: 76px; }
  .cranes__btn { width: 48px; height: 48px; padding: 6px 10px; }
  .cranes__btn img { width: 24px; height: 24px; }
  .footer { padding: 32px 20px; }
  .footer__cols { grid-template-columns: 1fr; }
  .seo, .steps { padding: 32px 20px; }

  .h2 { font-size: 19px; line-height: 28px; }
  .h3 { font-size: 17px; line-height: 28px; }
  .h4 { font-size: 11px; line-height: 22px; }
  .h2, .h3, .h4 { overflow-wrap: anywhere; }
  .searchhead { padding: 16px; }
  .newslist { padding: 16px; gap: 16px; }
  .newsitem { flex-direction: column; }
  .newsitem > img { width: 100%; height: 180px; }
  .newsitem__body { padding: 16px 8px 8px; }
  .items { grid-template-columns: 1fr; padding: 0 16px 16px; }
  .item__img { width: 100%; }
  .docs { padding: 16px; }
  .doc { padding: 16px 8px; gap: 12px; }
  .doc__name { font-size: 15px; }
  .contacts__grid { grid-template-columns: 1fr; padding: 24px 0 0; row-gap: 0; }
  .contacts__col { padding: 16px; }
  .contacts__col + .contacts__col { border-left: 0; border-top: 1px solid var(--stroke); }
  .contacts__value { font-size: 20px; }
  .crumbs { padding: 0 16px 16px; }
  .prose { padding: 16px; }
  .gallery { padding: 0 16px 16px; gap: 16px; }
  .gallery--two { grid-template-columns: 1fr; }
  .row { padding: 16px; }
  .tags { gap: 6px; }
  .tag { padding: 6px 12px; font-size: 13px; }
}

.feed-icon {
  display: none;
}

#block-technex-content img[align="right"], #block-technex-content img.alignImageRight {
  float: right;
  margin: 0 0 0.5em 1em;
}

#block-technex-content table {
  width: 100% !important;
  border-collapse: collapse;
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
}

#block-technex-content table td {
  vertical-align: top;
  padding: 0;
  width: 33.333%;
  vertical-align: top;
  height: auto !important;
}

#block-technex-content table td a.item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: var(--white);
  transition: background 0.15s ease;
  height: 100%;
  box-sizing: border-box;
}

#block-technex-content table td a.item:hover {
  background: var(--grey);
}

@media (max-width: 820px) {
  #block-technex-content table td {
    display: block;
    width: 100% !important;
  }
}

#block-technex-content ul {
  display: block;
}

#block-technex-content {
  padding: 24px;
}

.more-link {
  margin-top: 1em;
  font-size: 14px;
}

#block-technex-content img.align-left {
  margin-right: 12px;
}

#block-technex-content img.align-right {
  margin-left: 12px;
}

.node-81 #block-technex-content p img,
.node-128 #block-technex-content p img {
  float: none;
}

.field--name-field-image {
  margin-left: 12px;
  float: right;
}

.series-section {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;

  background: #ffffff;
  padding: 2rem 1.5rem 2.2rem;
}

.series-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 1.8rem 2rem;
  margin: 0;
}

.series-card {
  flex: 1 1 0;
  min-width: 200px;
  max-width: 340px;

  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.card-title {
  font-weight: 700;
  font-size: 1.15rem;
  color: #0b2a4a;
  letter-spacing: 0.2px;
  margin-bottom: 0.2rem;
  line-height: 1.3;
}

.card-subtitle {
  font-size: 0.95rem;
  color: #3b5a7a;
  margin-bottom: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: #8da6c0;
  font-weight: 500;
}

.card-image {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
  flex: 1 0 auto;
}

.card-image img {
  display: block;
  width: 100%;
  max-width: 240px;
  height: auto;
  border-radius: 1.2rem;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
  object-fit: contain;
  background: #ffffff;
}

@media (max-width: 780px) {
  .series-section {
    padding: 1.6rem 1rem 1.8rem;
    border-radius: 2rem;
  }
  .series-row {
    gap: 1.5rem;
  }
  .series-card {
    flex: 1 1 100%;
    max-width: 340px;
    min-width: 0;
  }
  .card-image img {
    max-width: 220px;
  }
}

@media (max-width: 420px) {
  .card-title {
    font-size: 1.05rem;
  }
  .card-subtitle {
    font-size: 0.85rem;
  }
  .series-card {
    padding: 1.2rem 0.8rem 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .series-card {
    transition: none;
  }
  .series-card:hover {
    transform: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
  }
  .card-link {
    transition: none;
  }
}

#search-form {
  display: none;
}
