/* ==========================================================================
   ООО «МЭГ» — Магистраль Энергогрупп
   Единая таблица стилей. Mobile-first, без внешних зависимостей.
   ========================================================================== */

/* --- Шрифты (самохостинг, latin + cyrillic) ------------------------------ */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/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: 400 800;
  font-display: swap;
  src: url('/assets/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: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/inter-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/inter-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;
}

/* --- Токены -------------------------------------------------------------- */
:root {
  --brand-900: #012231;
  --brand-800: #02364f;
  --brand-700: #025277;
  --brand-600: #05699a;
  --brand-500: #0b87c0;
  --accent: #f5a623;
  --accent-soft: #ffc266;

  --ink: #11222c;
  --ink-soft: #3d5563;
  --muted: #6a7f8c;
  --line: #e1e9ee;
  --bg: #ffffff;
  --bg-alt: #f4f8fa;
  --bg-deep: #041f2e;

  --header-h: 98px;
  --header-h-sm: 74px;
  --topbar-h: 50px;

  --radius: 4px;
  --radius-lg: 10px;

  --shadow-sm: 0 2px 10px rgba(2, 45, 66, .07);
  --shadow-md: 0 12px 34px rgba(2, 45, 66, .12);
  --shadow-lg: 0 26px 60px rgba(2, 45, 66, .20);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --wrap: 1440px;
  --gutter: 26px;
}

/* --- Сброс --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 10px);
}
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  font-size: 17.5px;
  line-height: 1.72;
  color: var(--ink-soft);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.is-locked { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: 'Montserrat', 'Inter', sans-serif;
  color: var(--ink);
  line-height: 1.16;
  margin: 0 0 .6em;
  letter-spacing: -.01em;
}
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
::selection { background: var(--brand-700); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* --- Утилиты -------------------------------------------------------------
   Инлайновые style-атрибуты не используются: их запрещает заголовок
   Content-Security-Policy (style-src 'self') из nginx/nginx.conf.
   -------------------------------------------------------------------------- */
.mt-s { margin-top: 12px; }
.mt-m { margin-top: 26px; }
.mt-l { margin-top: 34px; }
.d-block { display: block; }
.t-note { color: var(--muted); font-size: 13.5px; }
.t-link { color: var(--brand-600); font-weight: 600; }
.t-link:hover { text-decoration: underline; }

/* Ссылка для клавиатурной навигации: видна только при фокусе */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 20px;
  background: var(--brand-700);
  color: #fff;
  font-size: 14px;
}
.skip-link:focus { left: 0; }

/* --- Сетка --------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--alt { background: var(--bg-alt); }
.section--tight { padding: clamp(40px, 5vw, 64px) 0; }

.section-head { max-width: 900px; margin-bottom: clamp(32px, 4vw, 54px); }
.section-head--center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand-600);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--accent);
}
.section-head--center .eyebrow::before { display: none; }
.h1 { font-size: clamp(32px, 6.4vw, 70px); font-weight: 800; text-transform: uppercase; letter-spacing: .01em; }
.h2 { font-size: clamp(27px, 3.6vw, 46px); font-weight: 800; }
.h3 { font-size: clamp(19px, 2vw, 25px); font-weight: 700; }
.lead { font-size: clamp(17px, 1.55vw, 21px); color: var(--ink-soft); }

/* Короткая черта под заголовком раздела — как в оригинале */
.section-head .h2::after,
.split .h2::after,
.rule::after {
  content: '';
  display: block;
  width: 74px;
  height: 4px;
  margin-top: 22px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand-600), var(--accent));
}
.section-head--center .rule::after { margin-inline: auto; }

/* --- Кнопки -------------------------------------------------------------- */
.btn {
  --btn-bg: var(--brand-700);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 15px 30px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), color .3s var(--ease);
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--brand-600);
  transform: translateY(101%);
  transition: transform .42s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:hover::before { transform: translateY(0); }
.btn:active { transform: translateY(0); }
.btn svg { flex: none; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: #fff;
  border: 1px solid rgba(255, 255, 255, .55);
}
.btn--ghost::before { background: #fff; }
.btn--ghost:hover { color: var(--brand-800); }
.btn--accent { --btn-bg: var(--accent); --btn-fg: #22160a; }
.btn--accent::before { background: var(--accent-soft); }
.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--brand-700);
  border: 1px solid var(--line);
}
.btn--outline::before { background: var(--brand-700); }
.btn--outline:hover { color: #fff; border-color: var(--brand-700); }
.btn--sm { padding: 12px 20px; font-size: 12px; letter-spacing: .09em; }

/* ==========================================================================
   Модальное окно и форма
   ========================================================================== */
.modal {
  width: min(460px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: #fff;
  color: var(--ink-soft);
  box-shadow: var(--shadow-lg);
  overflow: visible;
}
.modal::backdrop { background: rgba(1, 26, 38, .62); }
.modal[open] { animation: modalIn .26s var(--ease-out); }
@keyframes modalIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
.modal__box { padding: clamp(26px, 4vw, 38px); }
.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--muted);
  background: var(--bg-alt);
  border-radius: 50%;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.modal__close:hover { background: var(--line); color: var(--ink); }
.modal__title { font-size: clamp(24px, 3vw, 30px); font-weight: 800; margin-bottom: 10px; }
.modal__sub { font-size: 15.5px; color: var(--muted); margin-bottom: 26px; }

.form { display: grid; gap: 18px; }
.field { display: block; }
.field__label {
  display: block;
  margin-bottom: 8px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
}
.field__label i { font-style: normal; color: #d23b3b; }
.field__input {
  width: 100%;
  padding: 15px 17px;
  font: inherit;
  font-size: 16.5px;          /* меньше 16px — iOS увеличивает страницу при фокусе */
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field__input::placeholder { color: #9fb0bb; }
.field__input:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(11, 135, 192, .16);
}
.field__input.is-invalid { border-color: #d23b3b; box-shadow: 0 0 0 3px rgba(210, 59, 59, .13); }

/* Поле-ловушка для ботов: убрано из потока, недоступно с клавиатуры */
.field-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.check { display: flex; align-items: flex-start; gap: 11px; font-size: 14.5px; line-height: 1.5; cursor: pointer; }
.check input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--brand-700);
  cursor: pointer;
}
.check a { color: var(--brand-600); text-decoration: underline; }
.check.is-invalid span { color: #d23b3b; }

.form__submit { width: 100%; }
.form__submit[disabled] { opacity: .6; pointer-events: none; }
.form__status { margin: 0; font-size: 14.5px; text-align: center; }
.form__status:empty { display: none; }
.form__status.is-ok { color: #1f7a4d; }
.form__status.is-error { color: #d23b3b; }

/* ==========================================================================
   Шапка
   ========================================================================== */
.topbar {
  position: relative;
  z-index: 60;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  background: var(--brand-900);
  color: rgba(255, 255, 255, .78);
  font-size: 15.5px;
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topbar__note {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;                 /* иначе flex-элемент не даёт тексту сжаться */
  letter-spacing: .04em;
}
.topbar__note-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.topbar__note .dot {
  width: 6px; height: 6px; flex: none;
  border-radius: 50%;
  background: var(--accent);
}
.topbar__links { display: flex; align-items: center; gap: 24px; }
.topbar__links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: color .25s var(--ease);
}
.topbar__links a:hover { color: #fff; }
.topbar__links svg { opacity: .7; }

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background .4s var(--ease), height .4s var(--ease), box-shadow .4s var(--ease);
}
.header::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #fff;
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.header.is-stuck { height: var(--header-h-sm); box-shadow: 0 6px 26px rgba(2, 45, 66, .1); }
.header.is-stuck::after { opacity: 1; }
.header .wrap { display: flex; align-items: center; gap: 24px; }

/* Логотип: знак из фирменного лого + надпись шрифтом сайта.
   Светлый вариант знака лежит поверх фото, тёмный — на белой шапке. */
.logo { display: inline-flex; align-items: center; gap: 13px; margin-right: auto; }
.logo__mark {
  position: relative;
  flex: none;
  width: 34px;
  height: 61px;
  transition: transform .5s var(--ease-out);
}
.logo:hover .logo__mark { transform: scale(1.07); }
.logo__mark-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity .35s var(--ease);
}
.logo__mark-img--dark { opacity: 0; }
.header.is-stuck .logo__mark-img--dark { opacity: 1; }
.header.is-stuck .logo__mark-img--light { opacity: 0; }
/* Открытое мобильное меню — тёмное, знак и надпись остаются светлыми */
body.is-menu-open .logo__mark-img--dark { opacity: 0; }
body.is-menu-open .logo__mark-img--light { opacity: 1; }
body.is-menu-open .header .logo__name { color: #fff; }
body.is-menu-open .header .logo__sub { color: rgba(255, 255, 255, .68); }
/* Меню тёмное — белую подложку прокрученной шапки убираем, иначе надпись пропадает */
body.is-menu-open .header { box-shadow: none; }
body.is-menu-open .header::after { opacity: 0; }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__name {
  font-family: 'Montserrat', sans-serif;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: .16em;
  color: #fff;
  transition: color .35s var(--ease);
}
.logo__sub {
  margin-top: 6px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .145em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .68);
  transition: color .35s var(--ease);
}
.header.is-stuck .logo__name, .header--solid .logo__name { color: var(--brand-800); }
.header.is-stuck .logo__sub, .header--solid .logo__sub { color: var(--muted); }

/* Навигация */
.nav { display: flex; align-items: center; gap: 4px; }
.nav__item { position: relative; }
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 12px 17px;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .95);
  white-space: nowrap;
  transition: color .3s var(--ease);
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 17px;
  right: 17px;
  bottom: 4px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .38s var(--ease-out);
}
.nav__link:hover::after,
.nav__item.is-open > .nav__link::after,
.nav__link.is-active::after { transform: scaleX(1); }
.nav__link .caret { transition: transform .35s var(--ease); }
.nav__item.is-open > .nav__link .caret { transform: rotate(180deg); }
.header.is-stuck .nav__link, .header--solid .nav__link { color: var(--brand-800); }
.header.is-stuck .nav__link:hover, .header--solid .nav__link:hover { color: var(--brand-600); }

/* Выпадающее меню */
.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  width: 330px;
  padding: 10px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 12px);
  transition: opacity .32s var(--ease), transform .32s var(--ease-out), visibility .32s;
}
.dropdown::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: -10px;
  height: 10px;
}
.nav__item.is-open > .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dropdown a {
  position: relative;
  display: block;
  padding: 15px 16px 15px 20px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1.45;
  text-transform: uppercase;
  color: var(--brand-800);
  border-radius: 3px;
  transition: background .28s var(--ease), color .28s var(--ease), padding-left .28s var(--ease);
}
.dropdown a::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 50%;
  width: 3px;
  height: 0;
  background: var(--accent);
  transform: translateY(-50%);
  transition: height .3s var(--ease-out);
}
.dropdown a:hover, .dropdown a.is-active {
  background: var(--bg-alt);
  color: var(--brand-600);
  padding-left: 24px;
}
.dropdown a:hover::before, .dropdown a.is-active::before { height: 60%; }

/* Телефон в шапке */
.header__cta { display: inline-flex; align-items: center; gap: 12px; margin-left: 8px; }
.header__phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .03em;
  color: #fff;
  white-space: nowrap;
  transition: color .3s var(--ease);
}
.header__phone svg { flex: none; }
.header__phone:hover { color: var(--accent); }
.header.is-stuck .header__phone, .header--solid .header__phone { color: var(--brand-800); }

/* Бургер */
.burger {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  flex: none;
}
.burger span {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .38s var(--ease-out), opacity .25s var(--ease), background .3s var(--ease), width .3s var(--ease);
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; width: 16px; }
.burger span:nth-child(3) { top: 27px; }
.header.is-stuck .burger span, .header--solid .burger span { background: var(--brand-800); }
body.is-menu-open .burger span { background: #fff; }
body.is-menu-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.is-menu-open .burger span:nth-child(2) { opacity: 0; transform: translateX(-10px); }
body.is-menu-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ==========================================================================
   Мобильное меню
   ========================================================================== */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h-sm) + 34px) 0 32px;
  background: linear-gradient(160deg, var(--brand-900) 0%, var(--brand-700) 100%);
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-14px);
  transition: opacity .26s var(--ease), transform .26s var(--ease-out), visibility .26s;
}
body.is-menu-open .mobile-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.mobile-menu__list { padding: 0 var(--gutter); }
.mobile-menu__item { border-bottom: 1px solid rgba(255, 255, 255, .12); }
.mobile-menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 18px 2px;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  text-align: left;
  color: #fff;
}
.mobile-menu__link .caret { transition: transform .35s var(--ease); opacity: .7; }
.mobile-menu__item.is-open .mobile-menu__link .caret { transform: rotate(180deg); }
.mobile-menu__sub {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .42s var(--ease-out);
}
.mobile-menu__item.is-open .mobile-menu__sub { grid-template-rows: 1fr; }
.mobile-menu__sub > div { overflow: hidden; }
/* Полоска у каждого пункта; янтарной она становится только у текущей страницы. */
.mobile-menu__sub a {
  display: block;
  padding: 14px 0 14px 20px;
  font-size: 15.5px;
  line-height: 1.4;
  color: rgba(255, 255, 255, .74);
  border-left: 3px solid rgba(255, 255, 255, .16);
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.mobile-menu__sub a:hover { color: #fff; border-color: rgba(255, 255, 255, .4); }
.mobile-menu__sub a.is-active { color: #fff; font-weight: 600; border-color: var(--accent); }
.mobile-menu__sub > div > :last-child { margin-bottom: 14px; }

/* На телефоне рамка фокуса после касания выглядит как случайный прямоугольник. */
@media (pointer: coarse) {
  .mobile-menu__toggle:focus-visible, .burger:focus-visible { outline: none; }
}
.mobile-menu__foot {
  margin-top: auto;
  padding: 28px var(--gutter) 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: rgba(255, 255, 255, .8);
  font-size: 14.5px;
}
.mobile-menu__foot a { display: inline-flex; align-items: center; gap: 10px; }
.mobile-menu__foot a strong { font-family: 'Montserrat', sans-serif; letter-spacing: .04em; color: #fff; }


/* ==========================================================================
   Герой (главная)
   ========================================================================== */
.hero {
  position: relative;
  margin-top: calc(-1 * var(--header-h));
  min-height: 760px;
  height: 100vh;
  height: 100svh;
  max-height: 1080px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}
.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(1, 34, 49, .74) 0%, rgba(2, 82, 119, .70) 45%, rgba(1, 26, 38, .88) 100%);
}
.hero .wrap { position: relative; width: 100%; padding-top: var(--header-h); }
.hero__inner { max-width: 1120px; }
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .82);
}
.hero__eyebrow::before {
  content: '';
  width: 40px;
  height: 2px;
  background: var(--accent);
}
.hero h1 {
  color: #fff;
  font-size: clamp(36px, 7.2vw, 88px);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -.015em;
  margin-bottom: 26px;
}
.hero h1 .accent { color: var(--accent); }
.hero__text {
  max-width: 660px;
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.7;
  color: rgba(255, 255, 255, .88);
  margin-bottom: 42px;
}

/* 4 кнопки-перехода */
/* Плитки держат свою ширину независимо от количества: две кнопки не
   растягиваются на весь экран, четыре — становятся в ряд. */
.hero__links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 320px));
  gap: 16px;
}
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  min-height: 152px;
  padding: 20px 22px 22px;
  background: rgba(1, 26, 38, .42);
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: var(--radius);
  transition: background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.tile:hover {
  transform: translateY(-4px);
  background: rgba(1, 26, 38, .62);
  border-color: var(--accent);
}
.tile__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tile__num {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .2em;
  color: var(--accent);
}
.tile__body { display: block; }
.tile__name {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #fff;
  text-wrap: balance;
}
.tile__desc {
  display: block;
  margin-top: 7px;
  font-size: 14.5px;
  line-height: 1.4;
  color: rgba(255, 255, 255, .66);
}
.tile__desc:empty { display: none; }
.tile__arrow {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  color: #fff;
  transition: transform .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.tile:hover .tile__arrow { transform: translate(2px, -2px); color: var(--accent); border-color: var(--accent); }

.hero__scroll { display: none; }

/* Появление содержимого героя */
.hero .reveal-hero { opacity: 0; transform: translateY(26px); animation: heroIn .9s var(--ease-out) forwards; }
.hero .reveal-hero:nth-child(1) { animation-delay: .12s; }
.hero .reveal-hero:nth-child(2) { animation-delay: .24s; }
.hero .reveal-hero:nth-child(3) { animation-delay: .36s; }
.hero .reveal-hero:nth-child(4) { animation-delay: .48s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }

/* ==========================================================================
   Внутренний баннер
   ========================================================================== */
.page-hero {
  position: relative;
  margin-top: calc(-1 * var(--header-h));
  padding: calc(var(--header-h) + 74px) 0 74px;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
}
.page-hero__media { position: absolute; inset: 0; z-index: -1; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(1, 34, 49, .84) 0%, rgba(2, 82, 119, .72) 60%, rgba(1, 26, 38, .88) 100%);
}
.page-hero h1 { color: #fff; margin-bottom: 0; }
.page-hero__sub { margin-top: 16px; max-width: 640px; color: rgba(255, 255, 255, .84); }
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  font-size: 14.5px;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .7);
}
.crumbs a { transition: color .25s var(--ease); }
.crumbs a:hover { color: var(--accent); }
.crumbs span { opacity: .5; }

/* ==========================================================================
   Карточки направлений
   ========================================================================== */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.dcard {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 28px 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease), border-color .35s var(--ease);
}
.dcard::after {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-600), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease-out);
}
.dcard:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: transparent; }
.dcard:hover::after { transform: scaleX(1); }
.dcard__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 22px;
  color: var(--brand-700);
  background: #eef4f8;
  border-radius: 3px;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.dcard:hover .dcard__icon { background: var(--brand-700); color: #fff; }
.dcard h3 { font-size: 20px; font-weight: 700; letter-spacing: .01em; margin-bottom: 12px; }
.dcard p { font-size: 16.5px; color: var(--muted); }
.dcard__more {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  /* auto прижимает ссылку к низу карточки: заголовки и описания разной
     длины, но «Подробнее» во всех карточках оказывается на одной линии */
  margin-top: auto;
  padding-top: 22px;
  align-self: flex-start;
  font-family: 'Montserrat', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--brand-600);
}
.dcard__more svg { transition: transform .35s var(--ease); }
.dcard:hover .dcard__more svg { transform: translateX(5px); }
.dcard__link { position: absolute; inset: 0; }

/* ==========================================================================
   Двухколоночный блок «О компании»
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(30px, 5vw, 68px);
  align-items: center;
}
.split--rev > :first-child { order: 2; }
.split__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.split__media img { width: 100%; transition: transform 1.2s var(--ease-out); }
.split__media:hover img { transform: scale(1.05); }
/* Список с маркерами */
.ticks { display: grid; gap: 14px; margin: 26px 0 0; }
.ticks li {
  position: relative;
  padding-left: 36px;
  font-size: 17.5px;
  color: var(--ink-soft);
}
.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand-700) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ==========================================================================
   Принципы / плитки
   ========================================================================== */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.fact { padding: 34px 28px; background: #fff; transition: background .4s var(--ease); }
.fact:hover { background: var(--bg-alt); }
.fact__k {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  color: var(--brand-700);
  line-height: 1.1;
  margin-bottom: 10px;
}
.fact__v { font-size: 16px; color: var(--muted); }

/* ==========================================================================
   Проекты / направления работ
   ========================================================================== */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.tab {
  padding: 11px 20px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--brand-800);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 100px;
  transition: color .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.tab:hover { transform: translateY(-2px); border-color: var(--brand-500); }
.tab.is-active { color: #fff; background: var(--brand-700); border-color: var(--brand-700); }

.pcard {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--brand-900);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease);
}
.pcard.is-hidden { display: none; }
.pcard__img { position: relative; display: block; aspect-ratio: 4 / 3; }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out), opacity .4s var(--ease); }
.pcard::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(1, 34, 49, 0) 32%, rgba(1, 26, 38, .9) 100%);
  pointer-events: none;
}
.pcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.pcard:hover img { transform: scale(1.07); }
.pcard__body {
  position: absolute;
  z-index: 2;
  left: 0; right: 0; bottom: 0;
  padding: 24px 24px 22px;
  color: #fff;
}
.pcard__tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 11px;
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #20140a;
  background: var(--accent);
  border-radius: 100px;
}
.pcard__title { display: block; font-family: 'Montserrat', sans-serif; font-size: 20px; font-weight: 700; line-height: 1.3; margin-bottom: 7px; }
.pcard__desc { display: block; font-size: 15px; color: rgba(255, 255, 255, .78); line-height: 1.5; }

/* ==========================================================================
   Плитки разделов («Наши проекты»)
   ========================================================================== */
.hub { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.hub__item {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--brand-900);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease);
}
.hub__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease-out), opacity .4s var(--ease);
  opacity: .55;
}
.hub__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(1, 34, 49, .35) 0%, rgba(2, 82, 119, .55) 100%);
  transition: opacity .4s var(--ease);
}
.hub__item:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.hub__item:hover img { transform: scale(1.06); opacity: .42; }
.hub__caption {
  position: absolute;
  z-index: 2;
  inset: auto 0 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 28px;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(15px, 1.5vw, 20px);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.25;
  color: #fff;
}
.hub__caption svg { flex: none; transition: transform .4s var(--ease); }
.hub__item:hover .hub__caption svg { transform: translateX(6px); }

/* ==========================================================================
   Галерея документов («Лицензии»)
   ========================================================================== */
.docs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.docs__item {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease);
}
.docs__item:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.docs__sheet {
  position: relative;
  aspect-ratio: 724 / 1024;
  display: grid;
  place-items: center;
  background: #eef4f8;
  color: var(--brand-600);
}
.docs__cap {
  padding: 16px 18px 18px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
  border-top: 1px solid var(--line);
  overflow-wrap: anywhere;   /* длинные слова не должны распирать колонку */
}
.docs__cap span { display: block; margin-top: 5px; font-size: 12.5px; color: var(--muted); }

/* ==========================================================================
   Наши клиенты
   ========================================================================== */
.clients { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.clients__slot {
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 2;
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ==========================================================================
   Цветная полоса с контактами (как в оригинале, но крупнее)
   ========================================================================== */
.band {
  position: relative;
  padding: clamp(50px, 6vw, 92px) 0;
  background: linear-gradient(125deg, var(--brand-700) 0%, var(--brand-600) 55%, var(--brand-500) 100%);
  color: rgba(255, 255, 255, .88);
  overflow: hidden;
}
.band .wrap { position: relative; }
.band__grid {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(34px, 5vw, 76px);
}
.band h2, .band h3 { color: #fff; }
.band__list { display: grid; gap: clamp(24px, 3vw, 38px); }
.band__item { display: flex; align-items: flex-start; gap: 18px; }
.band__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: #fff;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 13px;
}
.band__label {
  display: block;
  margin-bottom: 7px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .62);
}
.band__value { font-size: clamp(18px, 1.7vw, 22px); font-weight: 600; color: #fff; line-height: 1.45; }
.band__value a { transition: color .25s var(--ease); word-break: break-word; }
.band__value a:hover { color: var(--accent-soft); }
.band__note { display: block; margin-top: 5px; font-size: 14.5px; color: rgba(255, 255, 255, .6); }

.band__req {
  padding: clamp(26px, 3vw, 38px);
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius-lg);
}
.band__req dl { margin: 0; display: grid; gap: 15px; }
.band__req div { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 18px; }
.band__req dt { font-size: 15.5px; color: rgba(255, 255, 255, .62); }
.band__req dd { margin: 0; font-size: 16.5px; font-weight: 600; color: #fff; word-break: break-word; }

/* Документы / лицензии */
.doc {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease);
}
.doc:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.doc__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  color: var(--brand-600);
  background: var(--bg-alt);
  border-radius: 10px;
}
.doc h3 { font-size: 16px; margin-bottom: 8px; }
.doc p { font-size: 14.5px; color: var(--muted); }
.doc__status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--brand-700);
}
.doc__status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* Инфо-плашка */
.note {
  display: flex;
  gap: 16px;
  padding: 22px 24px;
  background: var(--bg-alt);
  border-left: 3px solid var(--brand-600);
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--ink-soft);
}
.note svg { flex: none; color: var(--brand-600); margin-top: 2px; }

/* ==========================================================================
   CTA
   ========================================================================== */
.cta {
  position: relative;
  padding: clamp(50px, 7vw, 88px) 0;
  background: linear-gradient(125deg, var(--brand-900) 0%, var(--brand-700) 55%, var(--brand-600) 100%);
  color: #fff;
  overflow: hidden;
}
.cta .wrap { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 34px; flex-wrap: wrap; }
.cta h2 { color: #fff; margin-bottom: 12px; }
.cta p { color: rgba(255, 255, 255, .82); max-width: 560px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ==========================================================================
   Подвал
   ========================================================================== */
.footer { background: var(--bg-deep); color: rgba(255, 255, 255, .64); padding: clamp(48px, 6vw, 72px) 0 0; font-size: 16px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 46px; }
.footer h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 20px;
}
.footer a { transition: color .25s var(--ease); }
.footer a:hover { color: var(--accent); }
.footer__lockup { width: 250px; max-width: 100%; height: auto; margin-bottom: 22px; }
.footer__about { max-width: 330px; line-height: 1.65; }
.footer__list { display: grid; gap: 12px; }
.footer__list a { display: inline-flex; align-items: center; gap: 9px; }
.footer__contact { display: grid; gap: 14px; }
.footer__contact a, .footer__contact span { display: flex; gap: 11px; align-items: flex-start; word-break: break-word; }
.footer__contact svg { flex: none; margin-top: 3px; opacity: .55; }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 22px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 13px;
  color: rgba(255, 255, 255, .45);
}
.footer__req { padding: 18px 0 0; font-size: 12.5px; line-height: 1.7; color: rgba(255, 255, 255, .38); }

/* Кнопка «наверх» */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: #fff;
  background: var(--brand-700);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity .35s var(--ease), transform .35s var(--ease-out), visibility .35s, background .3s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--accent); color: #20140a; }

/* ==========================================================================
   Анимация появления при скролле
   ========================================================================== */
/* Прячем только если скрипты работают: класс js ставит assets/js/boot.js.
   Иначе содержимое видно сразу — страница не зависит от JavaScript. */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .09s; }
.reveal[data-delay="2"] { transition-delay: .18s; }
.reveal[data-delay="3"] { transition-delay: .27s; }
.reveal[data-delay="4"] { transition-delay: .36s; }
.reveal[data-delay="5"] { transition-delay: .45s; }

/* ==========================================================================
   Адаптив
   ========================================================================== */
@media (max-width: 1320px) {
  :root { --header-h: 86px; }
  .nav__link { padding: 12px 12px; font-size: 13.5px; }
  .header__phone { font-size: 16px; }
  .topbar { font-size: 14px; }
}

@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .docs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .clients { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px; }
  .contact-cards { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; --header-h-sm: 60px; }
  .nav, .header__cta { display: none; }
  .burger { display: block; }
  .split { grid-template-columns: 1fr; }
  .split--rev > :first-child { order: 0; }
  .band__grid { grid-template-columns: 1fr; }
  .band__req div { grid-template-columns: 1fr; gap: 4px; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topbar { font-size: 12px; }
  .topbar__links { gap: 16px; }
  .topbar__note { display: none; }
  .topbar .wrap { justify-content: center; }
  .hero { min-height: 640px; }
  .page-hero { min-height: 320px; padding: calc(var(--header-h) + 56px) 0 52px; }
}

@media (max-width: 720px) {
  :root { --gutter: 18px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .dcard { padding: 26px 22px 24px; }
  .hub { grid-template-columns: 1fr; gap: 16px; }
  .docs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .clients { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hub__caption { padding: 18px 20px; }
  .hero { min-height: 620px; height: 100svh; }
  .hero__links { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tile { min-height: 108px; padding: 15px; gap: 16px; }
  .tile__name { font-size: 14px; }
  .tile__arrow { width: 30px; height: 30px; }
  .hero__scroll { display: none; }
  .facts { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .cta .wrap { flex-direction: column; align-items: flex-start; }
  .req th, .req td { padding: 12px 14px; font-size: 14px; }
  .req th { width: 42%; }
}

@media (max-width: 600px) {
  /* Длинный адрес почты не помещается рядом с телефоном — он есть в подвале */
  .topbar__links a.topbar__mail { display: none; }

  /* Документы в один столбец: лист слева, подпись справа — иначе колонки
     становятся уже слов и текст обрезается. */
  .docs { grid-template-columns: 1fr; gap: 12px; }
  .docs__item { flex-direction: row; align-items: stretch; }
  .docs__sheet { flex: none; width: 104px; }
  .docs__cap {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-top: 0;
    border-left: 1px solid var(--line);
  }
}

@media (max-width: 480px) {
  .logo__mark { width: 24px; height: 43px; }
  .logo__name { font-size: 18px; }
  .logo__sub { font-size: 8.5px; letter-spacing: .13em; }
  .btn { width: 100%; padding: 14px 22px; }
  .cta__actions { width: 100%; }
  .hero__eyebrow { font-size: 10px; padding: 7px 13px 7px 10px; }
  .doc { flex-direction: column; gap: 14px; }
}

/* --- Уважение к настройкам пользователя ---------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .reveal, .hero .reveal-hero { opacity: 1 !important; transform: none !important; }
}

@media print {
  .header, .topbar, .mobile-menu, .to-top, .hero__scroll, .cta { display: none !important; }
  body { color: #000; }
}
