/* ==========================================================================
   ЕЗВО — Екатеринбургский завод высоковольтного оборудования
   Основная таблица стилей. Чистая семантическая вёрстка без Tilda.
   Структура файла:
     1.  Шрифты
     2.  CSS-переменные (палитра, типографика, отступы)
     3.  Сброс и базовые стили
     4.  Утилиты и сетка
     5.  Кнопки
     6.  Шапка (header)
     7.  Мобильное меню и подменю
     8.  Секции главной страницы
     9.  Карточки (каталог, товар, проект, отзыв)
     10. Таблицы характеристик
     11. Аккордеон
     12. Формы и модальные окна
     13. Подвал (footer)
     14. Адаптив
   ========================================================================== */

/* ==========================================================================
   1. ШРИФТЫ — Montserrat (переменный, локально, без CDN)
   ========================================================================== */

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/montserrat-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/montserrat-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/montserrat-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/montserrat-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ==========================================================================
   2. CSS-ПЕРЕМЕННЫЕ
   ========================================================================== */

:root {
  /* --- Палитра (снята с оригинала) --- */
  --c-navy: #002d5d;          /* основной тёмно-синий */
  --c-navy-dark: #011e3f;     /* текст на светлых кнопках */
  /* Фон шапки. У донора artboard залит #014088, но поверх него лежит
     .t396__filter с равномерным rgba(0,0,0,0.5) — глазом и пипеткой видно
     уже результат смешивания, #002044. Раньше здесь стоял неперекрытый
     #014088, и шапка была заметно светлее оригинала. */
  --c-navy-header: #002044;
  --c-orange: #ec6833;        /* акцент, основные CTA */
  --c-orange-dark: #d4551f;   /* ховер акцента */
  --c-coral: #f95d51;         /* дополнительный акцент */
  --c-green: #62c584;         /* успех / галочки */

  /* Базовый текст у донора — ЧИСТЫЙ ЧЁРНЫЙ (body: rgb(0,0,0)), а #121212 он
     использует только для заголовков секций. Здесь было наоборот: #121212
     стоял базовым и красил 62 элемента вместо 14, из-за чего весь текст на
     сайте выглядел светлее оригинала. */
  --c-text: #000000;          /* основной текст (как body донора) */
  --c-heading: #121212;       /* заголовки секций */
  --c-text-soft: rgba(0, 0, 0, 0.9); /* описания карточек проектов */
  --c-text-muted: #5c6873;    /* второстепенный текст */
  --c-text-light: #d6d6d6;    /* текст на тёмном фоне (копирайт, меню шапки) */
  --c-text-footer: #f2f2f2;   /* ссылки в списках подвала */
  --c-link-coral: #ff8562;    /* ссылки на тёмном: согласие в форме, подвал */
  --c-link-mail: #0463ce;     /* почта в верхней полосе */

  --c-white: #ffffff;
  --c-bg: #ffffff;
  --c-bg-grey: #f2f2f2;       /* серая заливка секций */
  --c-bg-grey-soft: #f8f8f8;
  --c-border: #eaeaea;
  --c-border-strong: #d9dee5;
  --c-dark: #292929;

  /* --- Типографика --- */
  --font-main: 'Montserrat', Arial, Helvetica, sans-serif;

  --fs-h1: 48px;
  --fs-h2: 48px;
  --fs-h3: 32px;
  --fs-h4: 20px;
  --fs-lead: 24px;
  --fs-base: 16px;
  --fs-sm: 14px;
  --fs-xs: 12px;

  --lh-tight: 1.2;
  --lh-base: 1.55;

  /* --- Отступы --- */
  --container: 1160px;        /* ширина контента */
  --gutter: 20px;             /* боковые поля контейнера */
  --gap: 40px;                /* шаг сетки карточек */
  --section-py: 90px;         /* вертикальные отступы секции */

  /* --- Прочее --- */
  --radius: 5px;
  --radius-lg: 10px;
  --shadow: 0 4px 20px rgba(0, 45, 93, 0.08);
  --shadow-hover: 0 10px 34px rgba(0, 45, 93, 0.16);
  --transition: 0.25s ease;
  --header-h: 120px;
}

/* ==========================================================================
   3. СБРОС И БАЗОВЫЕ СТИЛИ
   ========================================================================== */

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

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

body {
  margin: 0;
  font-family: var(--font-main);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Блокировка прокрутки при открытой модалке/меню */
body.is-locked {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

a:hover {
  color: var(--c-orange);
}

h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
  margin: 0 0 0.5em;
  font-weight: 700;
  line-height: var(--lh-tight);
  color: var(--c-text);
}

h1 { font-size: var(--fs-h1); text-transform: uppercase; letter-spacing: 1px; }
h2 { font-size: var(--fs-h2); font-weight: 600; text-transform: uppercase; }
h3 { font-size: var(--fs-h3); font-weight: 600; }
h4 { font-size: var(--fs-h4); font-weight: 700; text-transform: uppercase; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1em; padding-left: 1.2em; }

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}

/* Скрытый текст для скринридеров */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Ссылка «к основному контенту» */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 10px 18px;
  background: var(--c-navy);
  color: var(--c-white);
}
.skip-link:focus { left: 0; }

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

/* ==========================================================================
   4. УТИЛИТЫ И СЕТКА
   ========================================================================== */

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section {
  padding-top: var(--section-py);
  padding-bottom: var(--section-py);
}

.section--grey { background: var(--c-bg-grey); }
.section--white { background: var(--c-white); }
.section--navy { background: var(--c-navy); color: var(--c-white); }
.section--navy h2,
.section--navy h3 { color: var(--c-white); }

/* Вертикальные отступы секций — как в оригинале (t-rec_pt_* / t-rec_pb_*) */
.section--pt-0 { padding-top: 0; }
.section--pt-30 { padding-top: 30px; }
.section--pt-45 { padding-top: 45px; }
.section--pt-60 { padding-top: 60px; }
.section--pb-0 { padding-bottom: 0; }
.section--pb-30 { padding-bottom: 30px; }
.section--pb-45 { padding-bottom: 45px; }
.section--pb-60 { padding-bottom: 60px; }
.section--pb-120 { padding-bottom: 120px; }
.section--pb-135 { padding-bottom: 135px; }
.section--pb-150 { padding-bottom: 150px; }
.section--tight { padding-top: 48px; padding-bottom: 48px; }

/* Заголовок секции */
.section__head { margin-bottom: 90px; }
.section__head--tight { margin-bottom: 60px; }
.section__head--center { text-align: center; }

.section__title {
  margin: 0;
  overflow-wrap: break-word;
  font-size: var(--fs-h2);
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.23;
  color: var(--c-heading);
}

.section__title--plain { text-transform: none; max-width: 960px; }

.section__subtitle {
  margin: 40px 0 0;
  max-width: 900px;
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--c-text);
}

.section__head--center .section__subtitle {
  margin-left: auto;
  margin-right: auto;
  font-size: 20px;
}

.section--navy .section__subtitle { color: var(--c-text-light); }


/* Сетки карточек: 3 и 2 колонки */
.grid {
  display: grid;
  gap: var(--gap);
}

.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Хлебные крошки */
.breadcrumbs {
  padding: 20px 0;
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs__item::after {
  content: '/';
  margin-left: 8px;
  color: var(--c-border-strong);
}

.breadcrumbs__item:last-child::after { content: none; }
.breadcrumbs__item[aria-current] { color: var(--c-text); }

/* ==========================================================================
   5. КНОПКИ
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 30px;
  border-radius: var(--radius);
  font-size: var(--fs-base);
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  transition: background var(--transition), color var(--transition),
    box-shadow var(--transition), transform var(--transition);
}

.btn:hover { color: var(--c-white); }

/* Основная — оранжевая */
.btn--primary {
  background: var(--c-orange);
  color: var(--c-white);
}
.btn--primary:hover {
  background: var(--c-orange-dark);
  color: var(--c-white);
}

/* Вторичная — светло-серая с тёмно-синим текстом */
.btn--secondary {
  background: var(--c-border);
  color: var(--c-navy-dark);
}
.btn--secondary:hover {
  background: #dcdcdc;
  color: var(--c-navy-dark);
}

/* Тёмно-синяя */
.btn--navy {
  background: var(--c-navy);
  color: var(--c-white);
  min-height: 60px;
  padding: 18px 60px;
}
.btn--navy:hover { background: #003a76; color: var(--c-white); }

/* Контурная */
.btn--outline {
  background: transparent;
  color: var(--c-white);
  box-shadow: inset 0 0 0 1px currentColor;
}
.btn--outline:hover {
  background: var(--c-white);
  color: var(--c-navy);
}

.btn--block { width: 100%; }
.btn--sm { min-height: 40px; padding: 8px 20px; font-size: var(--fs-sm); }

/* ==========================================================================
   6. ШАПКА
   ========================================================================== */

/* --- Плавающее меню (оригинал: T228, fixed, всплывает после 400 px) --- */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: 60px;
  background: var(--c-bg-grey-soft);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

.topbar.is-visible { transform: none; }

.topbar__inner {
  display: flex;
  align-items: center;
  height: 60px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 40px;
}

.topbar__logo { flex: 0 0 auto; display: block; margin-right: 44px; }
.topbar__logo img { display: block; width: 80px; height: auto; }

.topbar__list {
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-sm);
  font-weight: 600;
}

.topbar__nav a { color: var(--c-navy-dark); white-space: nowrap; }
.topbar__nav a:hover { color: var(--c-orange); }

.topbar__descr {
  margin-left: auto;
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.3;
  color: #070707;
  white-space: nowrap;
}

.topbar__descr a { color: var(--c-text); }
.topbar__descr .topbar__mail { color: var(--c-link-mail); }

.topbar__socials { display: flex; gap: 14px; margin-left: 24px; }
.soc, .soc svg { display: block; width: 30px; height: 30px; }

.btn--topbar {
  flex: 0 0 auto;
  width: 181px;
  min-height: 40px;
  margin-left: 24px;
  padding: 9px 16px;
  font-size: var(--fs-sm);
  font-weight: 500;
}

/* --- Основная шапка: фон #002044, высота 120, оранжевая линия на y=70 --- */
.header {
  position: relative;
  background: var(--c-navy-header);
}

.header__grid {
  position: relative;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto auto;
  grid-template-rows: 70px 50px;
  align-items: center;
  column-gap: 20px;
  width: var(--container);
  max-width: calc(100% - var(--gutter) * 2);
  height: var(--header-h);
  margin: 0 auto;
}

.header__logo { grid-row: 1; grid-column: 1; width: 170px; }
.header__logo img { display: block; width: 170px; height: auto; }

.header__request { grid-row: 1; grid-column: 2; }
.header__request-label { display: block; font-size: var(--fs-sm); line-height: 22px; color: #acacac; }
.header__request-mail { display: block; font-size: var(--fs-base); line-height: 1.55; color: var(--c-white); }
.header__request-mail:hover { color: var(--c-orange); }

.header__phone {
  grid-row: 1;
  grid-column: 3;
  justify-self: end;
  font-size: var(--fs-base);
  font-weight: 600;
}

.header__phone a { color: var(--c-white); }
.header__phone a:hover { color: var(--c-orange); }

.header__callback { grid-row: 1; grid-column: 4; }

.header__callback a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 117px;
  height: 38px;
  border-radius: 30px;
  font-size: var(--fs-xs);
  color: #c4c4c4;
  text-align: center;
}
.header__callback a:hover { color: var(--c-orange); }

.header__cta { grid-row: 1; grid-column: 5; width: 170px; height: 40px; }

.header__cta .btn {
  width: 100%;
  height: 40px;
  min-height: 40px;
  padding: 9px 14px;
  font-size: var(--fs-sm);
  font-weight: 400;
}

.header__divider {
  position: absolute;
  left: 0;
  right: 0;
  top: 70px;
  height: 1px;
  background: var(--c-orange);
}

.header__catalog {
  position: relative;
  grid-row: 2;
  grid-column: 1;
  justify-self: start;
  z-index: 56;
  width: 24px;
  height: 24px;
}

.header__catalog-btn {
  display: block;
  width: 24px;
  height: 24px;
  padding: 0;
}
.header__catalog-btn img { display: block; width: 24px; height: 24px; }

.header__nav { grid-row: 2; grid-column: 2 / -1; }

.header__nav-list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.header__nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  border-radius: 30px;
  font-size: var(--fs-base);
  color: var(--c-text-light);
  white-space: nowrap;
}
.header__nav-link:hover { color: var(--c-orange); }

/* Точные координаты элементов шапки — как в оригинале (сетка 1160 px).
   Ниже 1240 px шапка переходит на гибкую раскладку выше. */
@media (min-width: 1240px) {
  .header__grid { display: block; }
  .header__logo { position: absolute; left: 0; top: 10px; }
  .header__request { position: absolute; left: 200px; top: 19px; }
  .header__phone { position: absolute; left: 636px; top: 29px; }
  .header__callback { position: absolute; left: 840px; top: 23px; }
  .header__cta { position: absolute; left: 990px; top: 22px; }
  .header__catalog { position: absolute; left: 0; top: 85px; }
  .header__nav { position: absolute; left: 31px; right: 0; top: 84px; }
  .header__nav-list { display: block; }
  .header__nav-item { position: absolute; top: 0; }
  .header__nav-link { width: 100%; }
  .header__nav-item:nth-child(1) { left: 0;      width: 77px; }
  .header__nav-item:nth-child(2) { left: 104px;  width: 53px; }
  .header__nav-item:nth-child(3) { left: 188px;  width: 164px; }
  .header__nav-item:nth-child(4) { left: 391px;  width: 146px; }
  .header__nav-item:nth-child(5) { left: 591px;  width: 146px; }
  .header__nav-item:nth-child(6) { left: 780px;  width: 89px; }
  .header__nav-item:nth-child(7) { left: 910px;  width: 89px; }
  .header__nav-item:nth-child(8) { left: 1029px; width: 100px; }
}

/* Узкий десктоп 980…1239 px — компактнее */
@media (max-width: 1239px) {
  .header__nav-list { gap: 8px; }
  .header__nav-link { font-size: var(--fs-sm); }

  .features__list { gap: 20px; }
  .feature { min-width: 0; }
  .feature__title { font-size: 20px; }

  .topbar__inner { padding: 0 20px; }
  .topbar__logo { margin-right: 20px; }
  .topbar__list { gap: 16px; }
  .topbar__socials { margin-left: 14px; }
  .btn--topbar { width: auto; min-width: 150px; margin-left: 14px; }
}

/* --- Подменю каталога (оригинал: T966) ---
   Это НЕ полоса во всю ширину, а узкая белая карточка-тултип под иконкой
   каталога: у донора .t966__content залит #fff и скруглён на 5 px, а сам
   .t966__tooltip-menu ограничен max-width:400px. Пункт — короткая подпись
   (#011e3f, 16/600) и описание под ней (#6d6d6d, 14). Наведение красит
   ТОЛЬКО подпись в #ec6833, подложка пункта не меняется.
   Раньше здесь была тёмно-синяя панель на всю ширину шапки с одними
   заголовками — другой тип элемента, а не другой оттенок. */
.submenu {
  position: absolute;
  left: 0;
  top: 100%;
  z-index: 55;
  width: 400px;
  max-width: min(400px, calc(100vw - var(--gutter) * 2));
  margin: 0;
  background: var(--c-white);
  border-radius: 5px;
  box-shadow: 0 10px 30px rgba(0, 20, 43, 0.18);
}

/* Невидимый мост от иконки к карточке: без него курсор проваливается
   в щель над меню и mouseleave закрывает его на полпути. */
.submenu::before {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  bottom: 100%;
  height: 16px;
}

.submenu__inner { display: block; padding: 10px 0; }

.submenu__item {
  display: block;
  padding: 11px 24px;
}

.submenu__title {
  display: block;
  font-size: var(--fs-base);
  font-weight: 600;
  line-height: 1.35;
  color: #011e3f;
  transition: color var(--transition);
}
.submenu__item:hover .submenu__title { color: var(--c-orange); }

.submenu__desc {
  display: block;
  margin-top: 2px;
  font-size: var(--fs-sm);
  line-height: 1.4;
  color: #6d6d6d;
}

/* Пункты выдвижного меню (тёмный фон) — свои классы. Пока они делили разметку
   с подменю каталога, любая правка одного тянула за собой другое: тёмный текст
   карточки оказался бы на тёмно-синем полотне. */
.mobile-menu__item { display: block; padding: 12px 14px; border-radius: var(--radius); }
.mobile-menu__item:hover { background: rgba(255, 255, 255, 0.08); }

.mobile-menu__title {
  display: block;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--c-text-light);
}
.mobile-menu__item:hover .mobile-menu__title { color: var(--c-orange); }

.mobile-menu__desc {
  display: block;
  margin-top: 4px;
  font-size: var(--fs-sm);
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.55);
}

/* --- Планшетная полоса 480…979 px (оригинал: tmenu-mobile блока T228) --- */
.tabbar {
  display: none;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 20px;
  background: var(--c-bg-grey);
}

.tabbar__logo img { display: block; width: 80px; height: auto; }

.burger {
  position: relative;
  width: 28px;
  height: 20px;
  padding: 0;
  background: none;
}

.burger span {
  position: absolute;
  left: 0;
  display: block;
  width: 100%;
  height: 3px;
  background: var(--c-navy);
  transition: 0.25s ease-in-out;
}

.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2),
.burger span:nth-child(3) { top: 8px; }
.burger span:nth-child(4) { top: 16px; }

.burger.is-open span:nth-child(1),
.burger.is-open span:nth-child(4) { top: 8px; width: 0; left: 50%; }
.burger.is-open span:nth-child(2) { transform: rotate(45deg); }
.burger.is-open span:nth-child(3) { transform: rotate(-45deg); }

/* --- Мобильная шапка <= 479 px (оригинал: zero-block, фон #002044, h 60) --- */
.mheader {
  display: none;
  align-items: center;
  gap: 10px;
  height: 60px;
  padding: 0 16px;
  background: var(--c-navy-header);
}

.mheader__logo img { display: block; width: 90px; height: auto; }

.mheader__contacts { margin-left: auto; text-align: right; }
.mheader__mail { display: block; font-size: 10px; line-height: 1.5; color: var(--c-white); }
.mheader__phone { display: block; font-size: var(--fs-sm); font-weight: 600; line-height: 1.5; color: var(--c-white); }

.mheader__btn { width: 29px; height: 29px; padding: 0; }
.mheader__btn img { display: block; width: 29px; height: 29px; }

/* ==========================================================================
   7. ВЫДВИЖНОЕ МЕНЮ
   ========================================================================== */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  padding: 16px 16px 32px;
  background: var(--c-navy-header);
  color: var(--c-white);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
}

.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; }

.mobile-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
}

.mobile-menu__logo img { display: block; width: 120px; height: auto; }

.mobile-menu__close {
  width: 44px;
  height: 44px;
  font-size: 32px;
  line-height: 1;
  color: var(--c-white);
}

.mobile-menu__list { display: grid; gap: 2px; }

.mobile-menu__footer {
  display: grid;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  justify-items: start;
}

.mobile-menu__footer a { color: var(--c-text-light); }
.mobile-menu__phone { font-size: 20px; font-weight: 700; color: var(--c-white); }
.mobile-menu__footer .btn { width: 100%; color: var(--c-white); }


/* ==========================================================================
   8. СЕКЦИИ ГЛАВНОЙ
   ========================================================================== */

/* --- Первый экран (оригинал: zero-block, 100vh, min 700, фото + градиент) --- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 700px;
  height: 100vh;
  max-height: 1000px;
  overflow: hidden;
  background: #011226;
  color: var(--c-white);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: url('../img/hero-bg.jpg') center center / cover no-repeat;
  background-image: image-set(
    url('../img/hero-bg.webp') type('image/webp'),
    url('../img/hero-bg.jpg') type('image/jpeg')
  );
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(2, 22, 43, 0.05), rgba(2, 22, 43, 0.1));
}

.hero__watermark {
  position: absolute;
  left: -180px;
  top: -300px;
  width: 585px;
  height: 1294px;
  opacity: 0.1;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding-top: 52px;
  padding-bottom: 148px;
}

.hero__uptitle {
  margin: 0;
  max-width: 790px;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.5px;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--c-text-light);
}

.hero__title {
  margin: auto 0 0;
  max-width: 619px;
  font-size: var(--fs-h1);
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--c-white);
}

.hero__subtitle {
  margin: 40px 0 auto 100px;
  max-width: 600px;
  font-size: var(--fs-lead);
  font-weight: 500;
  line-height: 1.2;
  color: var(--c-text-light);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 20px; }
.hero__actions > div { display: flex; }

.btn--hero { width: 240px; height: 60px; min-height: 60px; }
.hero__actions > div:last-child .btn--hero { width: 215px; }

/* --- Полоса преимуществ (оригинал: T491, фон #dfe6ee, padding 90/90) --- */
.features {
  padding: 90px 0;
  background: #dfe6ee;
}

.features__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature { display: flex; align-items: center; gap: 16px; }

.feature__icon { flex: 0 0 100px; width: 100px; height: 100px; }

.feature__title {
  margin: 0;
  font-size: var(--fs-lead);
  font-weight: 600;
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--c-text);
}

/* --- Блок «О заводе» (оригинал: T814, белая панель заходит на фото) --- */
.about {
  display: grid;
  grid-template-columns: 552px minmax(0, 1fr);
  align-items: start;
}

.about__panel {
  position: relative;
  z-index: 2;
  margin-top: 46px;
  padding: 60px;
  background: var(--c-white);
  border-radius: var(--radius);
}

/* Заголовок панели. У донора это ДВА разных набора настроек одного и того же
   блока T814, и путать их нельзя:
     главная  (rec1666071841) — 48/32/32 px, 600, #121212;
     /o-zavode (rec1867738341) — 32/24/24 px, 700, #002d5d.
   Здесь базовый вариант главной, вариант страницы — в .about--page ниже. */
.about__title {
  margin: 0;
  overflow-wrap: break-word;
  font-size: var(--fs-h2);
  font-weight: 600;
  line-height: 1.23;
  text-transform: uppercase;
  color: var(--c-heading);
}

/* Отдельного мобильного правила для главной не нужно: у донора 48 -> 32 px на
   900 px, и токен --fs-h2 уже переключается ровно на 32 px. */

/* Панель на обычной странице (page.tpl): у донора кегль вдвое мельче
   главной и заголовок синий, а не почти чёрный. */
.about--page .about__title {
  font-size: 32px;
  font-weight: 700;
  color: var(--c-navy);
}

@media (max-width: 900px) {
  .about--page .about__title { font-size: 24px; }
}

.about__line {
  display: block;
  width: 150px;
  height: 3px;
  margin: 16px 0 28px;
  background: var(--c-orange);
}

.about__text {
  margin: 0 0 60px;
  font-size: 20px;
  line-height: 1.55;
  color: var(--c-text);
}

/* Донорский t814__descr: 20 px, на узких — 16 px. */
@media (max-width: 480px) {
  .about__text { font-size: var(--fs-base); }
}

/* Кнопка «Подробнее» у донора 145x60 — уже, чем даёт общий padding кнопки
   (получалось 218). Ширину задаём явно, а не подгоняем padding: текст в ней
   не меняется. */
.about__panel .btn {
  min-width: 145px;
  padding-left: 20px;
  padding-right: 20px;
}

.about__media { margin-left: -52px; }

.about__media picture,
.industry__media picture,
.project-card__media picture {
  display: block;
  width: 100%;
}

.about__media img {
  display: block;
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: var(--radius);
}

/* --- Отраслевые решения (оригинал: T509, 4 строки, фото 560x360) --- */
.industries { display: grid; gap: 60px; }

.industry {
  display: grid;
  grid-template-columns: 560px minmax(0, 1fr);
  gap: var(--gap);
  align-items: center;
}

.industry--reverse { grid-template-columns: minmax(0, 1fr) 560px; }
.industry--reverse .industry__media { order: 2; }

.industry__media img {
  display: block;
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: var(--radius);
}

.industry__body { max-width: 500px; }

.industry__title {
  margin: 0 0 24px;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.23;
  text-transform: none;
  color: var(--c-text);
}

.industry__text {
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
  color: var(--c-text);
}

/* --- CTA «Рассчитаем КП за 1 день» (оригинал: zero-block, фон #002d5d) --- */
.cta {
  position: relative;
  padding: 56px 0 61px;
  background: var(--c-navy);
  color: var(--c-white);
  overflow: hidden;
}

/* декоративное фото слева и водяной знак — как в оригинале */
.cta::before {
  content: '';
  position: absolute;
  left: 50%;
  margin-left: -1087px;
  top: 7px;
  width: 1228px;
  height: 819px;
  background: url('../img/cta-bg.png') center center / contain no-repeat;
  pointer-events: none;
}

.cta::after {
  content: '';
  position: absolute;
  left: 50%;
  margin-left: -792px;
  top: -286px;
  width: 585px;
  height: 1294px;
  background: url('../img/pattern.svg') 0 0 / contain no-repeat;
  opacity: 0.1;
  pointer-events: none;
}

.cta__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 500px;
  gap: var(--gap);
  align-items: stretch;
  width: var(--container);
  max-width: calc(100% - var(--gutter) * 2);
  margin: 0 auto;
}

.cta__body { display: flex; flex-direction: column; }

.cta__title {
  margin: 35px 0 44px;
  max-width: 400px;
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1;
  text-transform: none;
  color: var(--c-white);
}

.cta__text {
  margin: 0;
  max-width: 544px;
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--c-white);
}

.cta__body .cta__note {
  margin: auto 0 84px;
  max-width: 452px;
  font-size: 20px;
  line-height: 1.55;
  color: var(--c-white);
}

.cta__panel {
  padding: 37px 50px;
  background: var(--c-white);
  border-radius: var(--radius-lg);
}

/* --- SEO-текст внизу страницы --- */
.seo-text {
  font-size: 18px;
  line-height: 1.55;
  color: var(--c-text);
}

.seo-text p { margin: 0 0 28px; }
.seo-text p:last-child { margin-bottom: 0; }
.seo-text strong { font-weight: 600; color: var(--c-text); }
.seo-text a { color: var(--c-navy); text-decoration: underline; }

.seo-text ul { margin: 0 0 18px; padding-left: 22px; }
.seo-text li { margin-bottom: 6px; }


/* ==========================================================================
   9. КАРТОЧКИ
   ========================================================================== */

/* --- Карточка каталога (оригинал: T858 — иконка 150x150 + заголовок, без описаний и кнопок) --- */
.cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px;
  background: var(--c-white);
  border-radius: var(--radius);
  text-align: center;
  transition: box-shadow var(--transition);
}

.cat-card:hover { box-shadow: var(--shadow); }

.cat-card__media { width: 150px; height: 150px; margin-bottom: 40px; }
.cat-card__media img { width: 150px; height: 150px; object-fit: contain; }

.cat-card__title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
}

.cat-card__title a { color: var(--c-text); }
.cat-card__title a:hover { color: var(--c-orange); }

/* --- Карточка каталога с описанием (оригинал: T859 — фото слева, текст справа) --- */
.cat-row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 30px;
  align-items: center;
  padding: 30px;
  background: var(--c-white);
  border-radius: var(--radius);
  transition: box-shadow var(--transition);
}

.cat-row:hover { box-shadow: var(--shadow); }

.cat-row__media img { display: block; width: 150px; height: 150px; object-fit: contain; }

.cat-row__title {
  margin: 0 0 12px;
  overflow-wrap: break-word;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
}

.cat-row__title a { color: var(--c-text); }
.cat-row__title a:hover { color: var(--c-orange); }

.cat-row__text { margin: 0; font-size: var(--fs-base); line-height: 1.55; color: var(--c-text); }

.cat-row__download {
  display: inline-block;
  margin-top: 14px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-navy);
  text-decoration: underline;
}

.cat-row__download:hover { color: var(--c-orange); }

/* --- Карточка товара (оригинал: T774 — фото 360x280, название, цена-ссылка, описание) --- */
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--c-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.product-card:hover { box-shadow: var(--shadow); }

.product-card__media { position: relative; aspect-ratio: 360 / 280; overflow: hidden; }

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.product-card:hover .product-card__media img { transform: scale(1.04); }

.product-card__body { padding: 27px 30px; }

.product-card__name {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.7;
  color: var(--c-heading);
}

.product-card__price { margin: 0 0 8px; font-size: 20px; font-weight: 600; line-height: 1.35; }
.product-card__price a { color: var(--c-navy); }
.product-card__price a:hover { color: var(--c-orange); }

.product-card__text { margin: 0; font-size: var(--fs-sm); line-height: 1.4; color: var(--c-text); }

/* --- Карточка проекта (оригинал: лента T915) --- */
.project-card {
  display: flex;
  flex-direction: column;
  background: var(--c-white);
  border-radius: var(--radius);
  overflow: hidden;
}

.project-card__media { aspect-ratio: 3 / 2; overflow: hidden; }

.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.project-card:hover .project-card__media img { transform: scale(1.04); }

.project-card__body { padding: 24px 0 0; }

.project-card__title {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
  text-transform: none;
  color: var(--c-text);
}

.project-card__text { margin: 0; font-size: var(--fs-sm); line-height: 1.5; color: var(--c-text-soft); }

/* --- Карточка отзыва (оригинал: T528 — скан 300 px + название по центру) --- */
.review-card { text-align: center; }

.review-card__scan {
  width: 100%;
  max-width: 300px;
  /* Пропорции скана как у донора (300x426). Место под картинку резервируем ЗАРАНЕЕ:
     сканы грузятся lazy, и без aspect-ratio блок отзывов до их загрузки схлопывался
     с ~2000 px до 611 — верстка «прыгала», а замеры высот расходились с оригиналом
     в три раза. */
  aspect-ratio: 300 / 426;
  margin: 0 auto 18px;
  cursor: zoom-in;
}

.review-card__scan img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius);
}

.review-card__company {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
  text-transform: none;
  color: var(--c-text);
}

.review-card__text { margin: 0; font-size: var(--fs-sm); color: var(--c-text-muted); }

/* --- Плитка фотогалереи --- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery__item {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: zoom-in;
  background: var(--c-bg-grey-soft);
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

/* ==========================================================================
   9b. ПЕРВЫЙ ЭКРАН КАРТОЧКИ ТОВАРА
   ========================================================================== */

.product-hero__uptitle {
  margin: 0 0 6px;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-orange);
}

.product-hero__title {
  margin: 0 0 32px;
  font-size: 40px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.product-hero__media {
  padding: 24px;
  background: var(--c-bg-grey-soft);
  border-radius: var(--radius-lg);
}

.product-hero__media img {
  width: 100%;
  object-fit: contain;
}

.product-hero__descr {
  margin: 0 0 24px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--c-text-muted);
}

.product-hero__price {
  margin: 0 0 8px;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--c-navy);
}

.product-hero__note {
  margin: 0 0 6px;
  font-size: var(--fs-xs);
  line-height: 1.5;
  color: var(--c-text-muted);
}

.product-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* Сноски под таблицей */
.table-note {
  margin: 12px 0 0;
  font-size: var(--fs-xs);
  line-height: 1.5;
  color: var(--c-text-muted);
}

@media (max-width: 900px) {
  .product-hero { grid-template-columns: 1fr; gap: 28px; }
  .product-hero__title { font-size: 30px; }
}

@media (max-width: 640px) {
  .product-hero__title { font-size: 24px; margin-bottom: 20px; }
  .product-hero__price { font-size: 26px; }
  .product-hero__actions .btn { width: 100%; }
}

/* ==========================================================================
   9c. КОНТАКТЫ
   ========================================================================== */

.contact-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--c-border);
}

.contact-item:first-child { padding-top: 0; }

.contact-item__label {
  margin: 0 0 4px;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-text-muted);
}

.contact-item__value {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--c-navy);
}

/* Адрес выводится тегом <address> — снимаем курсив */
address.contact-item__value { font-style: normal; font-size: 18px; }

.contacts__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.contacts__social {
  padding: 10px 20px;
  border-radius: var(--radius);
  background: var(--c-white);
  border: 1px solid var(--c-border-strong);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-navy);
}

.contacts__social:hover {
  background: var(--c-navy);
  border-color: var(--c-navy);
  color: var(--c-white);
}

@media (max-width: 639px) {
  .contact-item__value { font-size: 18px; }
}


/* Контакты: слева белая карточка с реквизитами, справа форма (оригинал: T718) */
.contacts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap); align-items: start; }

.contacts__info { padding: 30px; background: var(--c-white); border-radius: var(--radius); }

.contacts__form .field__control { min-height: 60px; }
.contacts__form textarea.field__control { min-height: 102px; }
.contacts__form .field__label { font-size: 20px; }
.btn--contacts { width: 273px; min-height: 60px; }

@media (max-width: 979px) {
  .contacts { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 639px) {
  .contacts__info { padding: 20px; }
  .btn--contacts { width: 100%; }
}

/* ==========================================================================
   9d. СТАТЬЯ (текстовая страница)
   ========================================================================== */

.article {
  max-width: 860px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--c-text-muted);
}

.article h2 {
  margin: 36px 0 16px;
  font-size: 26px;
  font-weight: 600;
  text-transform: none;
  color: var(--c-text);
}

.article h3 {
  margin: 28px 0 12px;
  font-size: 20px;
  color: var(--c-text);
}

.article p { margin-bottom: 18px; }
.article strong { color: var(--c-text); }

.article__list {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.article__list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
}

.article__list li::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-orange);
}

/* Кнопка «Загрузить ещё» под сеткой */
.section__more {
  margin: 36px 0 0;
  text-align: center;
}

/* ==========================================================================
   9e. СТРАНИЦА 404
   ========================================================================== */

.error-page { padding: 100px 0; }

.error-page__inner {
  max-width: 640px;
  text-align: center;
}

.error-page__code {
  margin: 0;
  font-size: 110px;
  font-weight: 700;
  line-height: 1;
  color: var(--c-orange);
}

.error-page__title {
  margin: 12px 0 16px;
  font-size: 32px;
  text-transform: none;
  letter-spacing: 0;
}

.error-page__text {
  margin: 0 0 32px;
  font-size: 17px;
  color: var(--c-text-muted);
}

.error-page__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.error-page__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin: 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--c-border);
  list-style: none;
  font-size: var(--fs-sm);
}

.error-page__links a { color: var(--c-navy); text-decoration: underline; }

@media (max-width: 640px) {
  .error-page { padding: 56px 0; }
  .error-page__code { font-size: 72px; }
  .error-page__title { font-size: 24px; }
  .error-page__actions .btn { width: 100%; }
}

/* Центрирование одиночного контейнера на 404 */
.error-page__inner { margin-inline: auto; }

/* ==========================================================================
   10. ТАБЛИЦЫ ХАРАКТЕРИСТИК
   ========================================================================== */

.table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
  background: var(--c-white);
}

.spec-table caption {
  padding-bottom: 14px;
  font-size: var(--fs-h4);
  font-weight: 700;
  text-align: left;
  text-transform: uppercase;
}

.spec-table th,
.spec-table td {
  padding: 13px 18px;
  border: 1px solid var(--c-border);
  text-align: left;
  vertical-align: top;
}

.spec-table thead th {
  background: var(--c-navy);
  color: var(--c-white);
  font-weight: 600;
  white-space: nowrap;
}

/* Таблица «параметр → значение» */
.spec-table--kv th {
  width: 55%;
  font-weight: 500;
  background: var(--c-bg-grey-soft);
  color: var(--c-text-muted);
}

.spec-table--kv td { font-weight: 600; }

.spec-table tbody tr:hover { background: rgba(0, 45, 93, 0.03); }

/* ==========================================================================
   12. ФОРМЫ И МОДАЛЬНЫЕ ОКНА
   ========================================================================== */

.form { display: grid; gap: 14px; }

.form__row { display: grid; gap: 14px; }
.form__row--2 { grid-template-columns: 1fr 1fr; }

.field { display: block; }

.field__label {
  display: block;
  margin-bottom: 6px;
  font-size: var(--fs-sm);
  font-weight: 500;
}

.field__control {
  width: 100%;
  min-height: 50px;
  padding: 13px 16px;
  font-family: inherit;
  font-size: var(--fs-base);
  color: var(--c-text);
  background: var(--c-white);
  border: 1px solid var(--c-border-strong);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.field__control::placeholder { color: #9aa5b1; }

.field__control:focus {
  outline: none;
  border-color: var(--c-orange);
  box-shadow: 0 0 0 3px rgba(236, 104, 51, 0.15);
}

textarea.field__control {
  min-height: 96px;
  resize: vertical;
}

.field__control[aria-invalid='true'] {
  border-color: var(--c-coral);
  box-shadow: 0 0 0 3px rgba(249, 93, 81, 0.14);
}

.field__error {
  display: none;
  margin-top: 5px;
  font-size: var(--fs-xs);
  color: var(--c-coral);
}

.field__control[aria-invalid='true'] ~ .field__error { display: block; }

/* Загрузка файла */
.field-file {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px dashed var(--c-border-strong);
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
}

.field-file:hover { border-color: var(--c-orange); color: var(--c-orange); }
.field-file input[type='file'] { display: none; }

.field-file__btn {
  padding: 7px 16px;
  border-radius: var(--radius);
  background: var(--c-bg-grey);
  color: var(--c-navy-dark);
  font-weight: 600;
  white-space: nowrap;
}

/* Чекбокс согласия */
.field-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  /* У донора подпись согласия — 14px цветом #121212 (форма лежит на белой
     панели), а не 12px серым: замер на блоке «Рассчитаем КП за 1 день». */
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--c-heading);
  cursor: pointer;
}

.field-check input {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--c-orange);
}

/* Ссылка «персональных данных» у донора коралловая (#ff8562), не цвета текста. */
.field-check a { color: var(--c-link-coral); text-decoration: underline; }

/* Сообщение об отправке */
.form__result {
  display: none;
  padding: 16px 18px;
  border-radius: var(--radius);
  font-size: var(--fs-sm);
}

.form__result.is-visible { display: block; }
.form__result--ok { background: rgba(98, 197, 132, 0.14); color: #1e7c43; }
.form__result--error { background: rgba(249, 93, 81, 0.12); color: #b03024; }

/* --- Модальное окно --- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 20, 43, 0.72);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.modal.is-open { opacity: 1; visibility: visible; }

.modal__dialog {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px;
  background: var(--c-white);
  border-radius: var(--radius-lg);
  transform: translateY(20px);
  transition: transform var(--transition);
}

.modal.is-open .modal__dialog { transform: translateY(0); }

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  font-size: 26px;
  line-height: 1;
  color: var(--c-text-muted);
  transition: color var(--transition);
}

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

.modal__title {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 700;
  text-transform: none;
}

.modal__subtitle {
  margin: 0 0 24px;
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
}

/* --- Лайтбокс для галереи и сканов отзывов --- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: rgba(0, 12, 26, 0.9);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.lightbox.is-open { opacity: 1; visibility: visible; }

.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: var(--c-white);
  font-size: 26px;
  line-height: 1;
  transition: background var(--transition);
}

.lightbox__close:hover,
.lightbox__nav:hover { background: rgba(255, 255, 255, 0.3); }

.lightbox__close { top: 24px; right: 24px; }
.lightbox__nav--prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 24px; top: 50%; transform: translateY(-50%); }

/* ==========================================================================
   12c. ПЛАВАЮЩАЯ ПАНЕЛЬ БЫСТРОЙ СВЯЗИ (оригинал: T898)
   Ровно 4 ссылки: Email, Телефон, Max, Telegram. WhatsApp/Viber в оригинале нет.
   ========================================================================== */

.quick-contact {
  position: fixed;
  right: 20px;
  bottom: 60px;
  z-index: 50;
}

.quick-contact__toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.quick-contact__btn {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--c-orange);
  box-shadow: 0 6px 20px rgba(0, 20, 43, 0.3);
  cursor: pointer;
}

.quick-contact__btn::before {
  content: '';
  width: 28px;
  height: 28px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform var(--transition);
}

.quick-contact__toggle:checked ~ .quick-contact__btn::before { transform: rotate(90deg); }

.quick-contact__items {
  position: absolute;
  right: 5px;
  bottom: 72px;
  display: grid;
  gap: 12px;
  justify-items: end;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
}

.quick-contact__toggle:checked ~ .quick-contact__items {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.quick-contact__item { display: flex; align-items: center; gap: 10px; }

.quick-contact__label {
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--c-white);
  box-shadow: 0 2px 8px rgba(0, 20, 43, 0.16);
  font-size: var(--fs-xs);
  white-space: nowrap;
  color: var(--c-text);
}

/* Иконки — донорские пути блока T898 один в один: 50x50, кружок рисует сам
   path, цвет у каждого свой (почта и телефон #000, Max #4db7ff, Telegram
   #1d98dc). Раньше здесь были самодельные белые глифы на тёмно-синих кружках —
   ни формой, ни цветом с оригиналом не совпадали.
   Белая подложка нужна ровно за тем же, зачем донору .t898__svg__bg: в
   конверте и трубке есть вырезы, сквозь них просвечивала бы страница. */
.quick-contact__icon {
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--c-white);
  transition: transform var(--transition);
}

.quick-contact__item:hover .quick-contact__icon { transform: scale(1.06); }

/* ==========================================================================
   13. ПОДВАЛ (оригинал: zero-block, фон #13375b, высота 410, сетка 1160)
   ========================================================================== */

.footer {
  background: #13375b;
  color: var(--c-white);
}

.footer__grid {
  display: grid;
  width: var(--container);
  max-width: calc(100% - var(--gutter) * 2);
  margin: 0 auto;
  padding: 26px 0 21px;
  grid-template-columns: 400px 260px 285px minmax(0, 1fr);
  grid-template-areas:
    'brand    rule  rule    aside'
    'brand    info  catalog aside'
    'contacts info  catalog aside'
    'legal    legal dev     dev'
    'ruleb    ruleb ruleb   ruleb'
    'copy     copy  offer   offer';
}

/* Разделители подвала. У донора это два прямоугольника 1px цвета #405c7a:
   520x1 над колонками меню и 1160x1 перед нижней строкой. В вёрстке их не было
   вовсе — подвал выглядел «плоским» по сравнению с оригиналом. */
.footer__rule {
  display: block;
  height: 1px;
  background: #405c7a;
}
/* Геометрия по донору: верхняя линия 520x1 (не на всю ширину двух колонок),
   нижняя 1160x1. Отступы подобраны так, чтобы подвал остался 410-416 px, как
   у оригинала: сами линии высоту почти не добавляют, добавляли их margin. */
/* Отступ сверху держит линию на донорской высоте: у оригинала она на y=46 при
   логотипе на y=26, а заголовки колонок начинаются на y=71 — то есть 25 px под
   линией (их даёт padding-top у .footer__title). */
.footer__rule--cols {
  grid-area: rule;
  align-self: end;
  width: 520px;
  max-width: 100%;
  margin-top: 20px;
}
.footer__rule--bottom { grid-area: ruleb; margin: 6px 0 2px; }

.footer__brand { grid-area: brand; }
.footer__contacts { grid-area: contacts; padding-top: 24px; }
.footer__col--info { grid-area: info; }
.footer__col--catalog { grid-area: catalog; }
.footer__aside { grid-area: aside; }
.footer__legal { grid-area: legal; }
.footer__dev { grid-area: dev; }
.footer__copy { grid-area: copy; }
.footer__offer { grid-area: offer; }

.footer__logo { display: block; width: 200px; margin-bottom: 8px; }
.footer__logo img { display: block; width: 200px; height: auto; }

.footer__company {
  display: block;
  max-width: 261px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--c-white);
}

.footer__label { margin: 0 0 4px; font-size: var(--fs-sm); color: var(--c-text-light); }

.footer__phones { margin: 0 0 22px; font-size: var(--fs-base); font-weight: 600; line-height: 1.55; }
.footer__phones a { color: var(--c-white); }
.footer__phones a:hover { color: var(--c-orange); }

.footer__addr { margin: 0; font-style: normal; font-size: var(--fs-xs); line-height: 1.55; color: var(--c-white); }

/* border-top здесь НЕ ставим: линию над колонками рисует .footer__rule--cols.
   Пока было и то и другое, над меню шли две линии подряд. */
.footer__col { margin-top: 0; }

.footer__title {
  margin: 0 0 14px;
  padding-top: 25px;
  font-size: var(--fs-base);
  font-weight: 400;
  text-transform: uppercase;
  color: var(--c-white);
}

.footer__title a { color: var(--c-white); }
.footer__title a:hover { color: var(--c-orange); }

.footer__list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-sm);
}

.footer__list a { color: var(--c-text-footer); font-size: var(--fs-sm); }
.footer__list a:hover { color: var(--c-orange); }

.footer__aside { display: flex; flex-direction: column; align-items: flex-end; padding-top: 7px; }

.footer__mail { display: block; margin-bottom: 20px; font-size: var(--fs-base); color: var(--c-bg-grey-soft); }
.footer__mail:hover { color: var(--c-orange); }

.footer__actions { display: grid; gap: 11px; justify-items: end; }
.footer__actions .btn { display: inline-flex; }
.btn--footer { width: 192px; height: 50px; min-height: 50px; padding: 12px 16px; font-size: var(--fs-sm); }

.footer__legal { display: flex; flex-wrap: wrap; gap: 18px; padding-top: 24px; font-size: var(--fs-xs); }
.footer__legal a { color: #668aae; }
.footer__legal a:hover { color: var(--c-orange); }

.footer__dev { justify-self: end; align-self: end; padding-top: 24px; font-size: var(--fs-sm); color: var(--c-white); }
.footer__dev:hover { color: var(--c-orange); }

/* Аналогично: линию перед копирайтом рисует .footer__rule--bottom. */
.footer__copy,
.footer__offer {
  margin: 8px 0 0;
  padding-top: 12px;
  font-size: var(--fs-xs);
  color: var(--c-text-light);
}

.footer__offer { text-align: right; }


/* ==========================================================================
   12d. ФОРМА С ПОДПИСЯМИ НАД ПОЛЯМИ (оригинал: zero-форма блока «Рассчитаем КП»)
   Поля 50 px, radius 10, рамка #819bb6, подпись 18px, шаг 20 px.
   ========================================================================== */

.form--light { gap: 20px; }

.form--light .field__control {
  min-height: 50px;
  border-radius: var(--radius-lg);
  border-color: #819bb6;
  color: var(--c-navy);
}

.form--light textarea.field__control { min-height: 85px; }

.field__label {
  display: block;
  margin-bottom: 5px;
  font-size: 18px;
  line-height: 22px;
  font-weight: 400;
  /* У донора подписи полей и подпись согласия — #121212, не чистый чёрный. */
  color: var(--c-heading);
}

.field__subtitle {
  display: block;
  margin-bottom: 6px;
  font-size: var(--fs-sm);
  line-height: 1.4;
  color: var(--c-text);
}

.field__phone { position: relative; display: flex; align-items: center; }

.field__prefix {
  position: absolute;
  left: 16px;
  font-size: var(--fs-base);
  color: var(--c-navy);
  pointer-events: none;
}

.field__phone .field__control { padding-left: 42px; }

.btn--lg { min-height: 60px; font-size: 20px; font-weight: 600; border-radius: var(--radius-lg); }

.section__more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 60px;
}



/* Примечание под формой (страница контактов) */
.form__note {
  margin: 0;
  font-size: var(--fs-xs);
  line-height: 1.5;
  color: var(--c-text-muted);
}

.form__note a { color: var(--c-navy); text-decoration: underline; }

.contacts__social { width: 40px; height: 40px; padding: 0; background: none; box-shadow: none; }
.contacts__social svg { display: block; width: 40px; height: 40px; }
.contacts__social:hover { transform: translateY(-2px); }

/* ==========================================================================
   14. АДАПТИВ
   Точки перелома повторяют оригинал: 1199 / 979 / 639 / 479 px.
   ========================================================================== */

/* --- Узкий десктоп (<= 1199px) --- */
@media (max-width: 1199px) {
  :root { --section-py: 70px; }

  .hero { min-height: 590px; }

  .about { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .about__panel { padding: 40px; }
  .about__media { margin-left: 0; }

  .industry,
  .industry--reverse { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

  .cta__inner { grid-template-columns: minmax(0, 1fr) 440px; }
  .cta__panel { padding: 30px; }

  .footer__grid { grid-template-columns: 1fr 220px 240px minmax(0, 1fr); }
}

/* --- Планшет (<= 979px): вместо синей шапки — полоса с бургером --- */
@media (max-width: 979px) {
  :root {
    --fs-h1: 32px;
    --fs-h2: 32px;
    --fs-h3: 26px;
    --fs-lead: 20px;
    --section-py: 60px;
    --gap: 30px;
  }

  .header,
  .topbar { display: none; }

  .tabbar { display: flex; }

  .grid--2 { grid-template-columns: minmax(0, 1fr); }
  .grid--3,
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .section__head,
  .section__head--tight { margin-bottom: 50px; }
  .section__subtitle { margin-top: 24px; font-size: 18px; }

  .hero { min-height: 450px; }
  .hero__inner { padding-top: 40px; padding-bottom: 56px; }
  .hero__uptitle { font-size: 16px; }
  .hero__subtitle { margin: 24px 0 auto; font-size: 20px; }
  .hero__watermark { left: -195px; top: -345px; }

  .features { padding: 60px 0; }
  .features__list { grid-template-columns: 1fr; gap: 40px; }
  .feature__title { font-size: 20px; }

  .about { grid-template-columns: minmax(0, 1fr); }
  .about__panel { margin-top: 0; padding: 30px; }
  .about__media { margin: 20px 0 0; }
  .about__media img { height: auto; }

  .industries { gap: 40px; }
  .industry,
  .industry--reverse { grid-template-columns: 1fr; gap: 24px; }
  .industry--reverse .industry__media { order: 0; }
  .industry__body { max-width: none; }
  .industry__title { font-size: 22px; margin-bottom: 14px; }
  .industry__text { font-size: 16px; }

  .cta { padding: 60px 0; }
  .cta::before,
  .cta::after { display: none; }
  .cta__inner { grid-template-columns: 1fr; gap: 30px; }
  .cta__title { margin: 0 0 24px; }
  .cta__note { margin: 24px 0 0; font-size: 16px; }
  .cta__panel { max-width: 460px; padding: 24px; }

  .cat-row { grid-template-columns: 120px minmax(0, 1fr); gap: 20px; padding: 20px; }
  .cat-row__media img { width: 120px; height: 120px; }

  .footer__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      'brand    aside'
      'contacts aside'
      'rule     rule'
      'info     catalog'
      'legal    dev'
      'ruleb    ruleb'
      'copy     offer';
    row-gap: 10px;
  }
  .footer__aside { padding-top: 0; }

  /* Разделители тянутся во всю ширину: фиксированные 520 px донора относятся
     только к десктопной сетке. Области rule/ruleb заведены в мобильных
     grid-template-areas выше — без них спаны уходили в неявную строку в самый
     низ подвала и давали горизонтальный скролл. */
  .footer__rule--cols { grid-area: rule; width: auto; margin: 8px 0; }
  .footer__rule--bottom { grid-area: ruleb; width: auto; margin: 8px 0; }
}

/* --- Мобильный (<= 639px) --- */
@media (max-width: 639px) {
  :root {
    --fs-h1: 24px;
    --fs-h2: 32px;
    --fs-h3: 20px;
    --fs-lead: 16px;
    --section-py: 40px;
    --gap: 20px;
    --gutter: 20px;
  }

  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: minmax(0, 1fr); }

  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .section__head,
  .section__head--tight { margin-bottom: 34px; }

  .hero { min-height: 460px; }
  .hero__bg { background-image: none; background-color: #011226; }
  .hero__inner { padding-top: 36px; padding-bottom: 40px; }
  .hero__uptitle { font-size: var(--fs-sm); }
  .hero__title { font-size: 20px; letter-spacing: 0.5px; }
  .hero__subtitle { margin: 20px 0 auto; font-size: var(--fs-sm); }
  .hero__actions { flex-direction: column; gap: 16px; }
  .btn--hero,
  .btn--hero + .btn--hero { width: 200px; min-height: 50px; font-size: var(--fs-sm); }
  .hero__watermark { left: -50px; top: -109px; width: 316px; height: 699px; }

  .cat-card { padding: 20px; }
  .cat-card__title { font-size: 18px; }
  .cat-card__media { margin-bottom: 30px; }

  .cat-row { grid-template-columns: 1fr; text-align: left; }
  .cat-row__media img { margin: 0 auto; }

  .product-card__body { padding: 20px; }
  .product-card__name { font-size: 20px; line-height: 1.4; }
  .product-card__price { font-size: 16px; }

  .review-card__company { font-size: var(--fs-sm); }

  .seo-text { font-size: var(--fs-sm); line-height: 1.45; }
  .seo-text p { margin-bottom: 20px; }

  .cta__panel { max-width: none; }

  .section__more { display: flex; flex-direction: column; align-items: center; gap: 12px; }
  .section__more .btn { width: 100%; max-width: 300px; }

  .modal__dialog { padding: 28px 20px; }

  .btn--navy { padding: 16px 24px; min-height: 54px; }

  .footer__grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      'brand'
      'aside'
      'contacts'
      'rule'
      'catalog'
      'info'
      'dev'
      'legal'
      'ruleb'
      'offer'
      'copy';
    row-gap: 6px;
  }
  .footer__aside { align-items: flex-start; }

  /* Разделители тянутся во всю ширину: фиксированные 520 px донора относятся
     только к десктопной сетке. Области rule/ruleb заведены в мобильных
     grid-template-areas выше — без них спаны уходили в неявную строку в самый
     низ подвала и давали горизонтальный скролл. */
  .footer__rule--cols { grid-area: rule; width: auto; margin: 8px 0; }
  .footer__rule--bottom { grid-area: ruleb; width: auto; margin: 8px 0; }

  .footer__actions { justify-items: start; }
  .btn--footer { width: 200px; }
  .footer__offer { text-align: left; }
  .footer__legal { flex-direction: column; gap: 10px; padding-top: 24px; }
  .footer__dev { justify-self: start; padding-top: 30px; }
  .footer__col { margin-top: 24px; }

  .quick-contact { right: 12px; bottom: 20px; }
  .quick-contact__btn { width: 52px; height: 52px; }
  .quick-contact__icon { flex-basis: 44px; width: 44px; height: 44px; }

  /* Таблицы: подсказка о горизонтальной прокрутке */
  .table-wrap { margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
}

/* --- Узкий мобильный (<= 479px): синяя мини-шапка вместо полосы с бургером --- */
@media (max-width: 479px) {
  :root { --gutter: 20px; }

  .tabbar { display: none; }
  .mheader { display: flex; }

  .gallery { grid-template-columns: minmax(0, 1fr); }
}

/* --- Печать --- */
@media print {
  .header, .topbar, .tabbar, .mheader, .footer, .modal,
  .mobile-menu, .cta, .quick-contact { display: none !important; }
  body { color: #000; }
}
