/* ============================================================
   ООО «СпецТехноСервис» — стили сайта
   За основу взят макет 1e «Промышленный имидж» (Сайт УЭЦН.dc.html).
   Цвета вынесены в токены; значения oklch взяты из макета как есть.
   ============================================================ */

/* ---------- Токены ---------- */

:root {
  /* Тёмные плоскости */
  --c-ink-900: oklch(0.18 0.02 250);   /* подложка героя и оверлей */
  --c-ink-800: oklch(0.21 0.02 250);   /* полосы цифр и CTA */
  --c-ink-line: oklch(0.3 0.02 250);   /* разделители на тёмном */

  /* Текст на светлом */
  --c-text-900: oklch(0.2 0.015 250);
  --c-text-700: oklch(0.45 0.015 250);
  --c-text-600: oklch(0.44 0.015 250);
  --c-text-500: oklch(0.5 0.015 250);
  --c-text-450: oklch(0.52 0.015 250);
  --c-text-300: oklch(0.3 0.015 250);

  /* Текст на тёмном */
  --c-on-dark: oklch(0.8 0.01 250);
  --c-on-dark-strong: oklch(0.9 0.01 250);
  --c-on-dark-max: oklch(0.95 0.005 250);

  /* Линии и поверхности */
  --c-line: oklch(0.89 0.008 250);
  --c-line-soft: oklch(0.88 0.008 250);
  --c-surface: oklch(0.97 0.005 250);
  --c-white: #fff;

  /* Акцент — оранжевый */
  --c-accent: oklch(0.68 0.16 55);
  --c-accent-hi: oklch(0.74 0.16 55);
  --c-accent-ink: oklch(0.18 0.03 55);
  --c-accent-bright: oklch(0.78 0.13 55);  /* цифры в полосе статистики */
  --c-accent-soft: oklch(0.85 0.06 55);    /* надзаголовок в герое */

  /* Ссылки — синий из макета */
  --c-link: oklch(0.48 0.11 250);
  --c-link-hi: oklch(0.58 0.15 250);

  --font-sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

  --container: 1280px;
  --pad-x: 44px;
  --radius: 2px;
}

/* ---------- Базовое ---------- */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--c-white);
  color: var(--c-text-900);
  font-family: var(--font-sans);
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  /* прижимает подвал к низу на коротких страницах-заготовках */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1 0 auto; }

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

a { color: var(--c-link); text-decoration: none; }
a:hover { color: var(--c-link-hi); }

h1, h2, h3, p, dl, dd { margin: 0; }

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

::selection { background: var(--c-accent-soft); color: var(--c-accent-ink); }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.mono { font-family: var(--font-mono); font-weight: 400; }

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

.skip-link {
  position: absolute;
  top: 0; left: 0;
  z-index: 100;
  transform: translateY(-120%);
  padding: 12px 20px;
  background: var(--c-ink-900);
  color: var(--c-white);
  font-size: 14px;
  font-weight: 700;
}
.skip-link:focus-visible {
  transform: none;
  color: var(--c-white);
}

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 28px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.btn--primary {
  background: var(--c-accent);
  color: var(--c-accent-ink);
}
.btn--primary:hover {
  background: var(--c-accent-hi);
  color: var(--c-accent-ink);
}
.btn--primary:focus-visible { outline-color: var(--c-ink-900); }

.btn--ghost {
  border-color: oklch(0.85 0.01 250 / 0.5);
  color: var(--c-white);
  font-weight: 600;
}
.btn--ghost:hover {
  border-color: var(--c-white);
  background: oklch(1 0 0 / 0.08);
  color: var(--c-white);
}

.btn--sm { padding: 11px 18px; font-size: 13px; }
.btn--block { width: 100%; padding: 15px; }

/* ============================================================
   ГЕРОЙ
   ============================================================ */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 520px;
  isolation: isolate;
}

/* Подложка героя — градиентная заливка (фотографии пока нет).
   Диагональ уводит от светлого верха справа к глухому низу слева,
   мягкое пятно сверху даёт объём. Слева темнее — там лежит текст.

   Когда появится снимок, заменить весь background на:
     background: url("../img/hero.jpg") center / cover no-repeat;
   и усилить затемнение в .hero__body (см. комментарий там).      */
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(90% 75% at 74% 6%,
      oklch(0.46 0.04 250 / 0.5) 0%, transparent 62%),
    linear-gradient(155deg,
      oklch(0.34 0.03 250) 0%,
      oklch(0.245 0.025 250) 46%,
      oklch(0.165 0.018 250) 100%);
}

/* --- шапка: сплошная тёмная полоса, одинаковая на всех страницах --- */

.site-header {
  position: relative;
}

.site-header--solid { background: var(--c-ink-800); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: var(--container);
  min-height: 80px;
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.logo {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--c-white);
  white-space: nowrap;
}
.logo:hover { color: var(--c-white); }

.site-nav {
  display: flex;
  align-items: center;
}

.site-nav__list {
  display: flex;
  gap: 26px;
  font-size: 14px;
  font-weight: 500;
}
.site-nav__list a { color: var(--c-on-dark-max); }
.site-nav__list a:hover { color: var(--c-accent-soft); }

/* Текущая страница. Только цвет и насыщенность — подчёркивание сместило бы
   ссылки в мобильной раскладке, где у них своя нижняя граница. */
.site-nav__list a[aria-current="page"] {
  color: var(--c-white);
  font-weight: 700;
}

.site-nav__cta { display: none; }

/* ---------- Поиск по сайту ---------- */

.site-search {
  position: relative;
  flex: 0 1 210px;
  margin-left: auto;
}

.site-search__input {
  width: 100%;
  padding: 9px 12px 9px 32px;
  border: 1px solid oklch(1 0 0 / 0.28);
  border-radius: var(--radius);
  background: oklch(1 0 0 / 0.1) no-repeat 10px center;
  /* лупа — инлайн, чтобы не тянуть внешний файл */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23ffffff' stroke-opacity='.65' stroke-width='1.6'><circle cx='7' cy='7' r='4.5'/><path d='M10.5 10.5 14 14'/></svg>");
  background-size: 14px 14px;
  color: var(--c-white);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
}
.site-search__input::placeholder { color: oklch(1 0 0 / 0.6); }
.site-search__input:focus {
  outline: 2px solid var(--c-accent);
  outline-offset: 1px;
  background-color: oklch(1 0 0 / 0.16);
}

/* Панель шире поля и прижата к правому краю — иначе строки рвутся. */
.site-search__results {
  position: absolute;
  top: calc(100% + 6px);
  left: auto;
  right: 0;
  width: 380px;
  max-width: calc(100vw - 2 * var(--pad-x));
  z-index: 40;
  max-height: 60vh;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid var(--c-line);
  border-radius: 3px;
  background: var(--c-white);
  box-shadow: 0 12px 32px oklch(0.3 0.02 250 / 0.25);
}
.site-search__results[hidden] { display: none; }

.site-search__item {
  display: block;
  padding: 9px 10px;
  border-radius: 2px;
  color: var(--c-text-900);
}
.site-search__item:hover,
.site-search__item:focus-visible {
  background: var(--c-surface);
  color: var(--c-text-900);
}

.site-search__name { font-size: 14px; font-weight: 700; }

.site-search__where {
  display: block;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--c-text-500);
}

.site-search__snippet {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--c-text-700);
}
.site-search__snippet mark {
  background: oklch(0.9 0.11 55);
  color: var(--c-accent-ink);
}

.site-search__empty {
  padding: 12px 10px;
  font-size: 13px;
  color: var(--c-text-500);
}

.nav-toggle {
  display: none;
  padding: 10px;
  margin-right: -10px;
  background: none;
  border: 0;
  color: var(--c-white);
  cursor: pointer;
}
.nav-toggle__box {
  display: block;
  width: 22px;
  height: 14px;
  position: relative;
}
.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: transform .18s ease, opacity .18s ease;
}
.nav-toggle__bar { top: 6px; }
.nav-toggle__bar::before { content: ""; top: -6px; }
.nav-toggle__bar::after  { content: ""; top: 6px; }

[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
[aria-expanded="true"] .nav-toggle__bar::before { transform: translateY(6px) rotate(45deg); }
[aria-expanded="true"] .nav-toggle__bar::after  { transform: translateY(-6px) rotate(-45deg); }

/* --- контент героя --- */

/* Затемнение под текстом. Для заливки хватает мягкого — иначе левый край
   становится глухим пятном. С фотографией вернуть плотности 0.82 / 0.55 / 0.15. */
.hero__body {
  flex: 1;
  display: flex;
  align-items: center;
  padding-block: 48px;
  background: linear-gradient(90deg,
    oklch(0.14 0.02 250 / 0.5) 0%,
    oklch(0.14 0.02 250 / 0.22) 55%,
    transparent 100%);
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
.hero__content > * { max-width: 640px; }

.hero__title {
  font-size: clamp(34px, 4.2vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--c-white);
  text-wrap: pretty;
}

.hero__lead {
  font-size: 17px;
  line-height: 1.55;
  font-weight: 500;
  color: var(--c-on-dark-strong);
  text-wrap: pretty;
}

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

/* ============================================================
   РАЗДЕЛИТЕЛЬ
   Отбивает герой от каталога. Раньше здесь была полоса с цифрами.
   ============================================================ */

.divider {
  height: 8px;
  margin: 0;
  border: 0;
  background: var(--c-ink-800);
}

/* ============================================================
   СЕКЦИИ
   ============================================================ */

.section { padding-block: 56px; }

.section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section__title {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--c-text-900);
}
.section__title--sm { font-size: 28px; }

.section--surface { background: var(--c-surface); }

.section__lead {
  max-width: 760px;
  margin: -10px 0 26px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--c-text-700);
  text-wrap: pretty;
}

.link-arrow {
  font-size: 14px;
  font-weight: 700;
  color: var(--c-link);
  white-space: nowrap;
}
.link-arrow:hover { color: var(--c-link-hi); }

/* ---------- Блок «О компании» на главной ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-text p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--c-text-700);
  text-wrap: pretty;
}
.about-text p + p { margin-top: 12px; }
.about-text .link-arrow { display: inline-block; margin-top: 16px; }

.facts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 24px;
  border: 1px solid var(--c-line);
  border-radius: 3px;
  background: var(--c-white);
  font-size: 14px;
  color: var(--c-text-300);
}

.facts__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--c-line);
}
.facts__row:last-child { padding-bottom: 0; border-bottom: 0; }

.facts__term { font-weight: 500; color: var(--c-text-500); }

.facts__value {
  font-family: var(--font-mono);
  font-weight: 400;
  color: var(--c-text-900);
  text-align: right;
}

/* ---------- Блоки на внутренних страницах ---------- */

.block { margin-block: 40px; }
.block:first-of-type { margin-top: 28px; }

.block__title {
  margin-bottom: 16px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--c-text-900);
}

/* Заголовок-ссылка не должен выглядеть как обычная ссылка в тексте */
.block__title a { color: inherit; }
.block__title a:hover { color: var(--c-link-hi); }

.block__text p {
  max-width: 780px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--c-text-700);
  text-wrap: pretty;
}
.block__text p + p { margin-top: 12px; }

/* Руководство и ответственные лица */
.people {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.person {
  padding: 20px 22px;
  border: 1px solid var(--c-line);
  border-left: 3px solid var(--c-accent);
  border-radius: 3px;
  background: var(--c-white);
}

.person__role {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-text-500);
}

.person__name {
  margin-top: 6px;
  font-size: 17px;
  font-weight: 700;
  color: var(--c-text-900);
}

.person__contact {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 14px;
}

/* Высота задана в пикселях намеренно: с aspect-ratio виджет Яндекса
   инициализируется раньше, чем посчитается высота, и остаётся пустым. */
.map {
  height: 460px;
  border: 1px solid var(--c-line);
  border-radius: 3px;
  overflow: hidden;
  background: var(--c-surface);
}

.map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Таблица запасных частей ---------- */

.block__note {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--c-text-700);
  text-wrap: pretty;
}

.parts__filter {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.field--light {
  max-width: 380px;
  border-color: var(--c-line);
  background: var(--c-white);
  color: var(--c-text-900);
}
.field--light::placeholder { color: var(--c-text-500); }

.parts__count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--c-text-500);
  white-space: nowrap;
}

/* Длинный перечень — прокручиваем его, а не всю страницу */
.parts__wrap {
  max-height: 620px;
  overflow: auto;
  border: 1px solid var(--c-line);
  border-radius: 3px;
  background: var(--c-white);
}

.parts {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.parts thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 11px 16px;
  border-bottom: 1px solid var(--c-line);
  background: var(--c-surface);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
  color: var(--c-text-500);
}

.parts td {
  padding: 10px 16px;
  border-bottom: 1px solid oklch(0.94 0.006 250);
  color: var(--c-text-300);
  vertical-align: top;
}

.parts tbody tr:last-child td { border-bottom: 0; }
.parts tbody tr:hover td { background: var(--c-surface); }

.parts__code {
  width: 34%;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--c-text-500);
}

.parts__group th {
  padding: 14px 16px 8px;
  border-bottom: 2px solid var(--c-accent);
  background: var(--c-white);
  font-size: 15px;
  font-weight: 700;
  text-align: left;
  color: var(--c-text-900);
}

.parts tr[hidden] { display: none; }

@media (max-width: 620px) {
  .parts__filter { flex-direction: column; align-items: stretch; gap: 8px; }
  .field--light { max-width: none; }
  .parts__wrap { max-height: 460px; }
  .parts td, .parts thead th { padding-inline: 12px; }
  .parts__code { width: 40%; }
}

/* ---------- Галерея на странице группы ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.gallery__item {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  overflow: hidden;
  background: var(--c-surface);
  box-shadow: 0 1px 2px oklch(0.5 0.02 250 / 0.12);
  transition: transform .2s ease, box-shadow .2s ease;
}

.gallery__item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px oklch(0.4 0.02 250 / 0.2);
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.gallery__item:hover img { transform: scale(1.06); }

/* Затемнение и значок лупы поверх плитки */
.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round'><circle cx='10.5' cy='10.5' r='6.5'/><path d='M15.5 15.5 21 21M10.5 7.5v6M7.5 10.5h6'/></svg>")
      center / 34px 34px no-repeat,
    linear-gradient(oklch(0.2 0.02 250 / 0.35), oklch(0.2 0.02 250 / 0.35));
  transition: opacity .2s ease;
}
.gallery__item:hover::after,
.gallery__item:focus-visible::after { opacity: 1; }

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

/* ---------- Просмотр фото поверх страницы ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 72px;
  background: oklch(0.14 0.02 250 / 0.94);
}
.lightbox[hidden] { display: none; }

.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 3px;
  box-shadow: 0 20px 60px oklch(0 0 0 / 0.5);
}

.lightbox__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid oklch(1 0 0 / 0.25);
  border-radius: 50%;
  background: oklch(1 0 0 / 0.08);
  color: var(--c-white);
  font-family: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.lightbox__btn:hover {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: var(--c-accent-ink);
}
.lightbox__btn:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }

.lightbox__btn--close { top: 18px; right: 20px; }
.lightbox__btn--prev  { left: 16px;  top: 50%; transform: translateY(-50%); }
.lightbox__btn--next  { right: 16px; top: 50%; transform: translateY(-50%); }

.lightbox__counter {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: oklch(1 0 0 / 0.75);
}

@media (max-width: 620px) {
  .lightbox { padding: 56px 12px 64px; }
  .lightbox__btn--prev  { left: 8px; }
  .lightbox__btn--next  { right: 8px; }
}

/* ---------- Контакты в тёмном блоке ---------- */

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
}

.contact-list__row {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.contact-list__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: oklch(0.72 0.015 250);
}

.contact-list__value {
  font-size: 16px;
  font-weight: 600;
  color: var(--c-white);
}
a.contact-list__value:hover { color: var(--c-accent); }

/* Ответственные лица и мессенджеры в тёмном блоке */

.contacts-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 0 1 420px;
}

.person-dark {
  padding: 15px 18px;
  border: 1px solid var(--c-ink-line);
  border-left: 3px solid var(--c-accent);
  border-radius: 3px;
  background: oklch(1 0 0 / 0.04);
}

.person-dark__role {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: oklch(0.72 0.015 250);
}

.person-dark__name {
  margin-top: 5px;
  font-size: 16px;
  font-weight: 600;
  color: var(--c-white);
}

.person-dark__tel {
  display: inline-block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--c-accent);
}
.person-dark__tel:hover { color: var(--c-accent-hi); }

.msg-row {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.btn-msg {
  display: inline-flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  transition: filter .15s ease;
}
.btn-msg:hover { filter: brightness(1.08); }

.btn-msg svg { width: 20px; height: 20px; flex: none; }

.btn-msg--tg { background: #229ED9; color: #fff; }
.btn-msg--tg:hover { color: #fff; }

.btn-msg--wa { background: #25D366; color: #08331b; }
.btn-msg--wa:hover { color: #08331b; }

@media (max-width: 620px) {
  .msg-row { flex-direction: column; }
}

/* ============================================================
   БЛОК ЗАПРОСА КП
   ============================================================ */

.cta {
  background: var(--c-ink-800);
  padding-block: 48px;
}

.cta__grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta__text {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--c-white);
}

.cta__title {
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: pretty;
}

.cta__lead {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--c-on-dark);
  text-wrap: pretty;
}

/* Поле ввода — осталось у фильтра таблиц запчастей */
.field {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--c-white);
  color: var(--c-text-900);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
}
.field::placeholder { color: var(--c-text-500); opacity: 1; }
.field:focus-visible { outline-offset: 0; border-color: var(--c-accent); }

/* ============================================================
   ПОДВАЛ
   ============================================================ */

.site-footer {
  padding-block: 26px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--c-text-500);
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer__contacts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.site-footer a { color: inherit; }
.site-footer a:hover { color: var(--c-link-hi); }

/* ============================================================
   ВНУТРЕННЯЯ СТРАНИЦА (заготовка)
   ============================================================ */

.page-head {
  padding-block: 26px 22px;
  border-bottom: 1px solid var(--c-line);
}

.breadcrumbs {
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--c-text-500);
}
.breadcrumbs a { color: inherit; }
.breadcrumbs a:hover { color: var(--c-link-hi); }

.page-title {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--c-text-900);
}

/* Пустая контентная зона — видимое место под будущее наполнение. */
.page-empty {
  display: grid;
  place-items: center;
  min-height: 320px;
  margin-block: 40px 56px;
  padding: 32px 20px;
  border: 1px dashed oklch(0.82 0.01 250);
  border-radius: 3px;
  background: var(--c-surface);
  text-align: center;
}

.page-empty__text {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-text-500);
}

/* ---------- Карточки групп оборудования (страница «Услуги») ---------- */

.svc-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-block: 32px 56px;
}

/* Карточка-ссылка: ведёт на страницу группы. Высота одинаковая —
   растягивается по строке сетки, min-height держит нижнюю границу.
   Блок .svc-card__media необязателен: карточка работает и без фото. */
.svc-card {
  display: flex;
  flex-direction: column;
  min-height: 152px;
  border: 1px solid var(--c-line);
  border-radius: 3px;
  overflow: hidden;
  background: var(--c-white);
  color: var(--c-text-900);
  transition: border-color .15s ease, box-shadow .15s ease;
}

.svc-card__media {
  display: block;
  height: 170px;
  border-bottom: 1px solid var(--c-line);
  background: var(--c-surface);
}

/* Компактный ряд — обзорные блоки на главной, где важна высота */
.svc-cards--compact {
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.svc-cards--compact .svc-card { min-height: 0; }
.svc-cards--compact .svc-card__media { height: 124px; }
.svc-cards--compact .svc-card__body { gap: 12px; padding: 14px 16px 15px; }
.svc-cards--compact .svc-card__title { font-size: 15px; line-height: 1.35; }
.svc-cards--compact .svc-card__meta { padding-top: 11px; font-size: 11px; }

/* Пара карточек услуг — на всю ширину, без пустой колонки справа */
.svc-cards--pair { grid-template-columns: repeat(2, 1fr); }

.svc-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.svc-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px 22px;
}

a.svc-card:hover {
  border-color: var(--c-accent);
  box-shadow: 0 6px 20px oklch(0.5 0.02 250 / 0.1);
  color: var(--c-text-900);
}

.svc-card__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: inherit;
  text-wrap: pretty;
}

.svc-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 2px solid var(--c-accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--c-text-500);
}

.svc-card__arrow {
  font-size: 15px;
  color: var(--c-accent);
}

/* --- страница отдельной группы --- */

.detail {
  margin-block: 28px 56px;
  padding: 8px 28px 12px;
  border: 1px solid var(--c-line);
  border-radius: 3px;
  background: var(--c-white);
  counter-reset: item;
}

/* Позиция группы — заголовок h2, чтобы обозначения попадали
   в структуру документа и лучше индексировались поисковиками. */
.item {
  position: relative;
  margin: 0;
  padding: 16px 0 16px 26px;
  border-bottom: 1px solid var(--c-line);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--c-text-900);
  text-wrap: pretty;
}
.item:last-of-type { border-bottom: 0; }

.item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 24px;
  width: 7px;
  height: 7px;
  background: var(--c-accent);
}

/* Нумерованный вариант — перечень работ на страницах услуг. */
.detail--num .item { padding-left: 34px; }

.detail--num .item::before {
  counter-increment: item;
  content: counter(item, decimal-leading-zero);
  top: 17px;
  width: auto;
  height: auto;
  background: none;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--c-accent);
}

.svc-card__list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.svc-card__list li {
  position: relative;
  padding-left: 17px;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
  color: var(--c-text-700);
  text-wrap: pretty;
}

.svc-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--c-accent);
}

/* Нумерованный вариант — для перечня работ на странице «Услуги». */
.svc-card__list--num { counter-reset: svc; }

.svc-card__list--num > li { padding-left: 32px; }

.svc-card__list--num > li::before {
  counter-increment: svc;
  content: counter(svc, decimal-leading-zero);
  top: 1px;
  width: auto;
  height: auto;
  background: none;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--c-accent);
}

/* ============================================================
   АДАПТИВ
   ============================================================ */

@media (max-width: 1100px) {
  :root { --pad-x: 32px; }
}

@media (max-width: 900px) {
  /* Шапка сворачивается в бургер */
  .nav-toggle { display: block; order: 3; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 20;
    flex-direction: column;
    align-items: stretch; /* сбрасываем центрирование из десктопной раскладки */
    gap: 4px;
    padding: 16px var(--pad-x) 24px;
    background: var(--c-ink-900); /* непрозрачно: под панелью лежит текст героя */
    border-top: 1px solid var(--c-ink-line);
  }
  .site-nav.is-open { display: flex; }

  .site-nav__list {
    flex-direction: column;
    gap: 0;
    font-size: 16px;
  }
  .site-nav__list a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--c-ink-line);
  }

  .site-nav__cta {
    display: inline-flex;
    align-self: flex-start;
    margin-top: 16px;
  }

  .site-header__cta { display: none; }

  /* Поиск переезжает внутрь раскрывающегося меню */
  .site-search {
    order: -1;
    flex: none;
    margin-left: 0;
    margin-bottom: 6px;
  }
  .site-search__results { width: auto; left: 0; right: 0; }

  /* Затемнение равномернее — на узком экране текст занимает всю ширину */
  .hero__body {
    background: linear-gradient(90deg,
      oklch(0.14 0.02 250 / 0.5) 0%,
      oklch(0.14 0.02 250 / 0.38) 100%);
    padding-block: 56px;
  }

  .svc-cards { grid-template-columns: repeat(2, 1fr); }
  .svc-cards--compact { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .people { grid-template-columns: 1fr; }
  .map { height: 380px; }

  .cta__grid { flex-direction: column; align-items: stretch; }
  .contacts-side { flex: none; }
}

@media (max-width: 620px) {
  :root { --pad-x: 20px; }

  .hero { min-height: 0; }
  .hero__body { padding-block: 44px 56px; }
  .hero__actions .btn { flex: 1 1 100%; }

  .section { padding-block: 40px; }
  .svc-cards { grid-template-columns: 1fr; }
  .svc-cards--compact { grid-template-columns: repeat(2, 1fr); }
  .svc-cards--pair { grid-template-columns: 1fr; }
  .detail { padding: 20px; }

  .section__head { flex-direction: column; align-items: flex-start; gap: 10px; }

  .site-footer__inner { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
