/* ==========================================================================
   МАКС СПЕЦТЕХ — основная таблица стилей
   Структура: 1. Токены  2. База  3. Раскладка  4. Компоненты
              5. Шапка/подвал  6. Секции  7. Утилиты
   Классы — BEM. Меню использует классы wp_nav_menu (menu-item, sub-menu…).
   ========================================================================== */

/* 1. Токены
   ========================================================================== */
:root {
  --c-ink: #0B1524;
  --c-ink-2: #13233A;
  --c-ink-3: #1F3352;
  --c-yellow: #FFC20E;
  --c-yellow-hover: #FFD447;
  --c-paper: #F2F4F7;
  --c-white: #FFFFFF;
  --c-text: #16202E;
  --c-muted: #5B6878;
  --c-on-dark: #FFFFFF;
  --c-on-dark-muted: #AEB9C7;
  --c-line: #DDE2E9;
  --c-line-dark: #253A5A;
  --c-error: #C62828;

  --f-display: "Russo One", "Arial Black", sans-serif;
  --f-body: "Onest", "Segoe UI", Arial, sans-serif;

  --fs-h1: clamp(1.875rem, 1.2rem + 3vw, 4.25rem);
  --fs-h2: clamp(1.625rem, 1.1rem + 2.1vw, 3.25rem);
  --fs-h3: clamp(1.125rem, 1rem + .4vw, 1.375rem);
  --fs-lead: clamp(1rem, .95rem + .3vw, 1.25rem);
  --fs-body: 1rem;
  --fs-small: .875rem;
  --fs-xs: .75rem;

  --container: 1600px;
  --gutter: clamp(16px, 3.2vw, 40px);
  --gap: clamp(16px, 1.6vw, 24px);
  --section-y: clamp(56px, 6.5vw, 112px);
  --header-h: 76px;

  --chamfer: 14px;
  --chamfer-lg: 28px;
  --radius: 2px;

  --focus: var(--c-ink);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: .25s;
}

@media (min-width: 1200px) {
  :root { --header-h: 88px; }
}

/* 2. База
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }

/* Russo One используется только заглавными */
h1, h2, .h1, .h2, .display {
  font-family: var(--f-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -.01em;
  line-height: 1.08;
  overflow-wrap: break-word;
  hyphens: manual;
}
h1, .h1 { font-size: var(--fs-h1); }
h2, .h2 { font-size: var(--fs-h2); }
h3, .h3 { font-family: var(--f-body); font-size: var(--fs-h3); font-weight: 600; line-height: 1.3; }

.accent { color: var(--c-yellow); }
.section--light .accent, .section--paper .accent { color: inherit; box-shadow: inset 0 -.32em 0 var(--c-yellow); }
.section .cta .accent, .section .is-dark .accent { color: var(--c-yellow); box-shadow: none; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.is-dark, .section--dark, .site-header, .site-footer, .hero, .page-hero, .banner, .mobile-nav {
  --focus: var(--c-yellow);
}
.is-dark { color: var(--c-on-dark); }

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--c-yellow);
  color: var(--c-ink);
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* 3. Раскладка
   ========================================================================== */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--tight { padding-block: calc(var(--section-y) * .6); }
.section--light { background: var(--c-white); }
.section--paper { background: var(--c-paper); }
.section--dark { background: var(--c-ink); color: var(--c-on-dark); }
.section--light + .section--light, .section--paper + .section--paper { padding-top: 0; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 32px;
  margin-bottom: clamp(24px, 3vw, 48px);
}
.section-head__text { max-width: 760px; }
.section-head__text p:not(.eyebrow) { margin-top: 12px; color: var(--c-muted); font-size: var(--fs-lead); }
.section--dark .section-head__text p:not(.eyebrow) { color: var(--c-on-dark-muted); }

.grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(var(--cols-xs, 1), minmax(0, 1fr));
}
@media (min-width: 576px) { .grid { grid-template-columns: repeat(var(--cols-sm, var(--cols-xs, 1)), minmax(0, 1fr)); } }
@media (min-width: 768px) { .grid { grid-template-columns: repeat(var(--cols-md, var(--cols-sm, 2)), minmax(0, 1fr)); } }
@media (min-width: 992px) { .grid { grid-template-columns: repeat(var(--cols-lg, var(--cols-md, 3)), minmax(0, 1fr)); } }
@media (min-width: 1200px) { .grid { grid-template-columns: repeat(var(--cols-xl, var(--cols-lg, 4)), minmax(0, 1fr)); } }

/* 4. Компоненты
   ========================================================================== */

/* --- Надзаголовок ---------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--c-yellow); }
.is-dark .eyebrow, .section--dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow, .banner .eyebrow { color: var(--c-yellow); }

/* --- Шильдик (фирменная табличка с заклёпками) ----------------------- */
.plate {
  --plate-c: var(--c-yellow);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border: 1px solid var(--plate-c);
  color: var(--plate-c);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1.4;
  white-space: nowrap;
}
.plate::before, .plate::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 4px; height: 4px;
  margin-top: -2px;
  border-radius: 50%;
  background: var(--plate-c);
}
.plate::before { left: 6px; }
.plate::after { right: 6px; }
.plate--dark { --plate-c: var(--c-text); }
@media (max-width: 575.98px) { .plate { max-width: 100%; white-space: normal; } }

/* --- Иконки ---------------------------------------------------------- */
.icon {
  width: 24px; height: 24px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--sm { width: 18px; height: 18px; }
.icon--lg { width: 32px; height: 32px; stroke-width: 1.75; }

.icon-box {
  display: grid;
  place-items: center;
  flex: none;
  width: 56px; height: 56px;
  background: var(--c-yellow);
  color: var(--c-ink);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}
.icon-box--outline { background: transparent; color: var(--c-yellow); border: 1.5px solid var(--c-yellow); clip-path: none; }

/* --- Кнопки ---------------------------------------------------------- */
/* Скос рисуется псевдоэлементом, чтобы clip-path не срезал фокус-рамку */
.btn {
  --btn-bg: var(--c-yellow);
  --btn-bg-hover: var(--c-yellow-hover);
  --btn-c: var(--c-ink);
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 28px;
  border: 0;
  background: none;
  color: var(--btn-c);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--dur) var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--btn-bg);
  clip-path: polygon(0 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer), 100% 100%, 0 100%);
  transition: background-color var(--dur) var(--ease);
}
.btn:hover::before { background: var(--btn-bg-hover); }
.btn .icon { transition: transform var(--dur) var(--ease); }
.btn:hover .icon--arrow { transform: translateX(4px); }

.btn--dark { --btn-bg: var(--c-ink); --btn-bg-hover: var(--c-ink-3); --btn-c: var(--c-white); }
.btn--outline { --btn-bg: transparent; --btn-bg-hover: rgba(255, 255, 255, .08); --btn-c: var(--c-white); }
.btn--outline::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: currentColor;
  clip-path: polygon(0 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer), 100% 100%, 0 100%,
    0 0, 1.5px 1.5px, 1.5px calc(100% - 1.5px), calc(100% - 1.5px) calc(100% - 1.5px),
    calc(100% - 1.5px) calc(var(--chamfer) + .6px), calc(100% - var(--chamfer) - .6px) 1.5px, 1.5px 1.5px);
}
.btn--outline-dark { --btn-bg: transparent; --btn-bg-hover: rgba(11, 21, 36, .06); --btn-c: var(--c-ink); }
.btn--outline-dark::before { clip-path: none; }
.btn--outline-dark::after { content: ""; position: absolute; inset: 0; z-index: -1; border: 1.5px solid currentColor; pointer-events: none; }
.btn--sm { min-height: 44px; padding: 10px 20px; font-size: .9375rem; --chamfer: 10px; }
.btn--lg { min-height: 60px; padding: 16px 36px; font-size: 1.0625rem; }
.btn--block { width: 100%; }
@media (max-width: 575.98px) { .btn { white-space: normal; } }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px 16px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.link-arrow .icon { width: 20px; height: 20px; color: var(--c-yellow); transition: transform var(--dur) var(--ease); }
.section--light .link-arrow .icon, .section--paper .link-arrow .icon { color: var(--c-ink); }
.link-arrow:hover .icon { transform: translateX(4px); }
.link-arrow:hover { text-decoration: underline; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--c-line-dark);
  color: var(--c-white);
  font-size: var(--fs-small);
  font-weight: 600;
  text-decoration: none;
  transition: border-color var(--dur), color var(--dur);
}
.icon-btn:hover { border-color: var(--c-yellow); color: var(--c-yellow); }

/* --- Хлебные крошки (совместимо с woocommerce-breadcrumb / Rank Math) -- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-bottom: clamp(16px, 2.4vw, 32px);
  font-size: var(--fs-small);
  color: var(--c-on-dark-muted);
}
.breadcrumbs a { color: var(--c-on-dark-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--c-white); text-decoration: underline; }
.breadcrumbs__sep { color: var(--c-yellow); }
.breadcrumbs [aria-current] { color: var(--c-white); }

/* --- Чек-лист -------------------------------------------------------- */
.checklist { display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .icon {
  width: 22px; height: 22px;
  padding: 3px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--c-yellow);
  color: var(--c-ink);
  stroke-width: 3;
}
.checklist--cols { gap: 12px 32px; }
@media (min-width: 768px) { .checklist--cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* --- Медиа со скосом ------------------------------------------------- */
.media {
  position: relative;
  overflow: hidden;
  background: var(--c-ink-2);
  clip-path: polygon(0 0, calc(100% - var(--chamfer-lg)) 0, 100% var(--chamfer-lg), 100% 100%, 0 100%);
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--16x10 { aspect-ratio: 16 / 10; }
.media--wide { aspect-ratio: 16 / 9; }
.media__plate { position: absolute; left: 16px; bottom: 16px; background: rgba(11, 21, 36, .82); }

/* --- Фича (иконка + заголовок + текст) ------------------------------- */
.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature__title { font-size: 1.0625rem; font-weight: 600; line-height: 1.3; }
.feature__text { margin-top: 6px; color: var(--c-muted); font-size: .9375rem; }
.is-dark .feature__text, .section--dark .feature__text { color: var(--c-on-dark-muted); }

.feature-card {
  height: 100%;
  padding: clamp(20px, 2vw, 32px);
  background: var(--c-white);
  border: 1px solid var(--c-line);
  flex-direction: column;
}
.section--light .feature-card { background: var(--c-paper); border-color: transparent; }

/* Полоса преимуществ под hero */
.perks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--c-line);
  background: var(--c-white);
}
.perks__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px clamp(14px, 1.4vw, 24px);
  font-size: .9375rem;
  font-weight: 500;
  line-height: 1.35;
  border-right: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}
.perks__item .icon { width: 30px; height: 30px; color: var(--c-ink); stroke-width: 1.6; }
.perks__item .icon-wrap { display: grid; place-items: center; width: 48px; height: 48px; flex: none; background: var(--c-paper); }
@media (max-width: 575.98px) {
  .perks { grid-template-columns: 1fr; }
  .perks__item { border-right: 0; }
}
@media (min-width: 576px) { .perks__item:nth-child(2n) { border-right: 0; } }
@media (min-width: 992px) {
  .perks { grid-template-columns: repeat(var(--perks, 5), minmax(0, 1fr)); }
  .perks__item { border-bottom: 0; }
  .perks__item:nth-child(2n) { border-right: 1px solid var(--c-line); }
  .perks__item:last-child { border-right: 0; }
}
.perks-wrap { position: relative; z-index: 2; margin-top: calc(clamp(32px, 4vw, 56px) * -1); }

/* --- Карточка услуги ------------------------------------------------- */
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--c-ink);
  color: var(--c-white);
  text-decoration: none;
  clip-path: polygon(0 0, calc(100% - var(--chamfer-lg)) 0, 100% var(--chamfer-lg), 100% 100%, 0 100%);
}
.service-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--c-ink-2); }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.service-card:hover .service-card__media img { transform: scale(1.05); }
.service-card__body {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 8px 16px;
  flex: 1;
  padding: 20px clamp(18px, 1.6vw, 24px) 22px;
  border-top: 3px solid var(--c-yellow);
}
.service-card__title { font-size: 1.125rem; font-weight: 600; line-height: 1.3; }
.service-card__text { grid-column: 1; margin-top: 6px; font-size: .9375rem; color: var(--c-on-dark-muted); line-height: 1.45; }
.service-card__arrow {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  background: var(--c-yellow);
  color: var(--c-ink);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  transition: background-color var(--dur);
}
.service-card:hover .service-card__arrow { background: var(--c-yellow-hover); }
.service-card:focus-visible { outline-offset: -4px; }

/* Компактная карточка (фото + подпись на фото) */
.tile {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 240px;
  height: 100%;
  overflow: hidden;
  background: var(--c-ink);
  color: var(--c-white);
  text-decoration: none;
  clip-path: polygon(0 0, calc(100% - var(--chamfer-lg)) 0, 100% var(--chamfer-lg), 100% 100%, 0 100%);
}
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 21, 36, 0) 30%, rgba(11, 21, 36, .92) 100%); }
.tile__body { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; width: 100%; padding: 20px; }
.tile__title { font-size: 1.0625rem; font-weight: 600; line-height: 1.3; hyphens: auto; overflow-wrap: break-word; min-width: 0; }
.tile__arrow { flex: none; display: grid; place-items: center; width: 40px; height: 40px; background: var(--c-yellow); color: var(--c-ink); }
a.tile:hover img { transform: scale(1.05); }
.tile:focus-visible { outline-offset: -4px; }

/* --- Марки техники --------------------------------------------------- */
.brands {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--c-line);
  border: 1px solid var(--c-line);
}
.brands__item {
  display: grid;
  place-items: center;
  min-height: 96px;
  padding: 16px;
  background: var(--c-white);
  text-align: center;
}
.brands__name {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(.875rem, .75rem + .5vw, 1.25rem);
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--c-text);
}
.brands__item--more { color: var(--c-muted); font-size: var(--fs-small); line-height: 1.35; }
.section--paper .brands__item { background: var(--c-paper); }
.is-dark .brands, .section--dark .brands { background: var(--c-line-dark); border-color: var(--c-line-dark); }
.is-dark .brands__item, .section--dark .brands__item { background: var(--c-ink); }
.is-dark .brands__name, .section--dark .brands__name { color: var(--c-white); }
.is-dark .brands__item--more, .section--dark .brands__item--more { color: var(--c-on-dark-muted); }
@media (min-width: 576px) { .brands { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 768px) { .brands { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .brands { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
@media (max-width: 767.98px) { .brands__item--more { grid-column: 1 / -1; min-height: 56px; } }
@media (min-width: 768px) and (max-width: 1199.98px) { .brands__item--more { grid-column: span 2; } }

/* --- Этапы ----------------------------------------------------------- */
.steps {
  display: grid;
  gap: var(--gap);
  counter-reset: step;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 576px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .steps { grid-template-columns: repeat(var(--steps, 4), minmax(0, 1fr)); } }
.step {
  position: relative;
  padding: 24px clamp(20px, 1.8vw, 28px) 28px;
  background: var(--c-white);
  border: 1px solid var(--c-line);
}
.section--light .step { background: var(--c-paper); border-color: transparent; }
.is-dark .step, .section--dark .step { background: var(--c-ink-2); border-color: var(--c-line-dark); }
.step__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.step__num { font-family: var(--f-display); font-weight: 400; font-size: clamp(2rem, 1.6rem + 1.4vw, 3rem); line-height: 1; color: var(--c-yellow); -webkit-text-stroke: 0; }
.section--light .step__num, .section--paper .step__num { color: var(--c-ink); -webkit-text-stroke: 0; text-shadow: 3px 3px 0 var(--c-yellow); }
.is-dark .step__num, .section--dark .step__num { color: var(--c-yellow); text-shadow: none; }
.step__head .icon { width: 30px; height: 30px; stroke-width: 1.6; color: var(--c-muted); }
.is-dark .step__head .icon, .section--dark .step__head .icon { color: var(--c-yellow); }
.step__title { font-size: 1.0625rem; font-weight: 600; line-height: 1.3; }
.step__text { margin-top: 6px; color: var(--c-muted); font-size: .9375rem; }
.is-dark .step__text, .section--dark .step__text { color: var(--c-on-dark-muted); }
.step::after {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 18px; height: 18px;
  background: linear-gradient(225deg, var(--c-yellow) 50%, transparent 50%);
}

/* --- FAQ (details/summary) ------------------------------------------ */
.faq { display: grid; gap: 12px; align-items: start; }
@media (min-width: 992px) { .faq { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px var(--gap); } }
.faq__col { display: grid; gap: 12px; }
.faq__item { background: var(--c-white); border: 1px solid var(--c-line); }
.section--light .faq__item { background: var(--c-paper); border-color: transparent; }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q .icon { transition: transform var(--dur) var(--ease); }
.faq__item[open] .faq__q .icon { transform: rotate(45deg); }
.faq__item[open] { border-color: var(--c-ink); }
.faq__q:focus-visible { outline-offset: -3px; }
.faq__a { padding: 0 20px 20px; color: var(--c-muted); }

/* --- Формы (стили подходят и для разметки Contact Form 7) ------------ */
.form { display: grid; gap: 16px; }
.form__row { display: grid; gap: 16px; }
@media (min-width: 576px) { .form__row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; gap: 6px; }
.field label, .field__label { font-size: var(--fs-small); font-weight: 600; }
.form input[type="text"], .form input[type="tel"], .form input[type="email"], .form textarea, .form select,
.input {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 1.5px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-white);
  color: var(--c-text);
  font-size: 1rem;
  transition: border-color var(--dur);
}
.form textarea { min-height: 112px; resize: vertical; }
.form input::placeholder, .form textarea::placeholder { color: #7A8696; }
.form input:hover, .form textarea:hover { border-color: #B7C0CC; }
.form input:focus, .form textarea:focus, .form select:focus { border-color: var(--c-ink); outline: 3px solid var(--c-yellow); outline-offset: 0; }
.form [aria-invalid="true"] { border-color: var(--c-error); }
.field__error { color: var(--c-error); font-size: var(--fs-small); }
.form__note { font-size: var(--fs-xs); color: var(--c-muted); }

.checkbox { display: flex; gap: 12px; align-items: flex-start; font-size: var(--fs-small); line-height: 1.45; cursor: pointer; }
.checkbox input {
  appearance: none;
  flex: none;
  width: 22px; height: 22px;
  margin: 0;
  border: 1.5px solid #8C97A6;
  border-radius: var(--radius);
  background: var(--c-white) center / 14px no-repeat;
  cursor: pointer;
}
.checkbox input:checked {
  border-color: var(--c-ink);
  background-color: var(--c-yellow);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B1524' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
.checkbox input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.checkbox a { color: inherit; }

.is-dark .form input, .is-dark .form textarea { background: var(--c-ink-2); border-color: var(--c-line-dark); color: var(--c-white); }
.is-dark .form input::placeholder, .is-dark .form textarea::placeholder { color: #8796AA; }
.is-dark .form input:focus, .is-dark .form textarea:focus { border-color: var(--c-yellow); }
.is-dark .checkbox input { background-color: var(--c-ink-2); border-color: #7D8DA3; }
.is-dark .checkbox input:checked { background-color: var(--c-yellow); border-color: var(--c-yellow); }
.is-dark .form__note { color: var(--c-on-dark-muted); }

/* --- Модальное окно (<dialog>) --------------------------------------- */
.modal {
  width: min(560px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  background: var(--c-white);
  color: var(--c-text);
  overflow: auto;
}
.modal::backdrop { background: rgba(6, 12, 22, .78); }
.modal[open] { animation: modal-in .3s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px); } }
.modal__head { position: relative; padding: 28px clamp(20px, 4vw, 40px) 20px; background: var(--c-ink); color: var(--c-white); }
.modal__head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--c-yellow); }
.modal__title { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); text-transform: uppercase; line-height: 1.15; padding-right: 48px; }
.modal__subtitle { margin-top: 8px; color: var(--c-on-dark-muted); font-size: .9375rem; }
.modal__close {
  position: absolute;
  top: 16px; right: 16px;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 0;
  background: transparent;
  color: var(--c-white);
  --focus: var(--c-yellow);
}
.modal__close:hover { color: var(--c-yellow); }
.modal__body { padding: 24px clamp(20px, 4vw, 40px) 32px; }
.modal__phone { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--c-line); font-size: var(--fs-small); color: var(--c-muted); }
.modal__phone a { color: var(--c-text); font-weight: 600; }

/* 5. Шапка и подвал
   ========================================================================== */
.site-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--c-white); text-decoration: none; flex: none; }
.site-logo__mark { width: 44px; height: 44px; }
.site-logo__text { display: grid; font-family: var(--f-display); font-weight: 400; font-size: 1.0625rem; line-height: 1; text-transform: uppercase; letter-spacing: .01em; }
.site-logo__text span + span { color: var(--c-yellow); margin-top: 2px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-ink);
  color: var(--c-white);
  border-bottom: 1px solid var(--c-line-dark);
  transition: box-shadow var(--dur);
}
.site-header.is-scrolled { box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
.site-header__inner { display: flex; align-items: center; gap: clamp(16px, 2vw, 40px); height: var(--header-h); }

.main-nav { display: none; margin-right: auto; }
.main-nav > .menu { display: flex; align-items: center; gap: clamp(4px, 1vw, 16px); }
.main-nav .menu-item { position: relative; }
.main-nav > .menu > .menu-item { display: flex; align-items: center; }
.main-nav > .menu > .menu-item > a {
  display: flex;
  align-items: center;
  height: var(--header-h);
  padding: 0 10px;
  font-weight: 500;
  text-decoration: none;
  position: relative;
}
.main-nav > .menu > .menu-item > a::after {
  content: "";
  position: absolute;
  left: 10px; right: 10px; bottom: 22px;
  height: 2px;
  background: var(--c-yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.main-nav > .menu > .menu-item:hover > a::after,
.main-nav > .menu > .current-menu-item > a::after,
.main-nav > .menu > .current-menu-ancestor > a::after { transform: scaleX(1); }
.submenu-toggle {
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  margin-left: -6px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--c-on-dark-muted);
}
.submenu-toggle .icon { width: 16px; height: 16px; transition: transform var(--dur); }
.menu-item.is-open > .submenu-toggle .icon { transform: rotate(180deg); }
.main-nav .sub-menu {
  position: absolute;
  top: calc(100% - 8px);
  left: 0;
  min-width: 300px;
  padding: 10px;
  background: var(--c-white);
  color: var(--c-text);
  box-shadow: 0 20px 48px rgba(6, 12, 22, .3);
  border-top: 4px solid var(--c-yellow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--dur), transform var(--dur), visibility var(--dur);
  --focus: var(--c-ink);
}
.main-nav .menu-item-has-children:hover > .sub-menu,
.main-nav .menu-item-has-children.is-open > .sub-menu,
.main-nav .menu-item-has-children:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.main-nav .sub-menu a { display: block; padding: 10px 14px; font-size: .9375rem; font-weight: 500; text-decoration: none; }
.main-nav .sub-menu a:hover, .main-nav .sub-menu .current-menu-item > a { background: var(--c-paper); box-shadow: inset 3px 0 0 var(--c-yellow); }

.header-contacts { display: none; align-items: center; gap: 12px; margin-left: auto; }
.header-phone { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.header-phone .icon { color: var(--c-yellow); }
.header-phone span { line-height: 1.15; }
.header-phone b { display: block; font-size: 1.0625rem; font-weight: 600; white-space: nowrap; }
.header-phone small { display: block; margin-top: 2px; font-size: var(--fs-xs); color: var(--c-on-dark-muted); }
.site-header__cta { display: none; }

.burger {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  margin-left: auto;
  border: 1px solid var(--c-line-dark);
  background: transparent;
  color: var(--c-white);
}
.burger-phone { display: grid; place-items: center; width: 48px; height: 48px; margin-left: auto; color: var(--c-yellow); border: 1px solid var(--c-line-dark); }
.burger-phone + .burger { margin-left: 8px; }

@media (min-width: 768px) {
  .header-contacts { display: flex; }
  .burger-phone { display: none; }
  .burger { margin-left: 0; }
}
@media (min-width: 1200px) {
  .main-nav { display: block; }
  .header-contacts { margin-left: 0; }
  .site-header__cta { display: inline-flex; }
  .burger { display: none; }
}
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .header-phone small { display: none; }
  .site-logo__text { font-size: .9375rem; }
}

/* Мобильное меню */
.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px var(--gutter) 32px;
  background: var(--c-ink);
  color: var(--c-white);
  overflow-y: auto;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .35s var(--ease), visibility .35s;
}
.mobile-nav.is-open { transform: none; visibility: visible; }
.mobile-nav .menu { display: grid; }
.mobile-nav .menu > .menu-item { display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--c-line-dark); }
.mobile-nav .menu > .menu-item > a { flex: 1; padding: 16px 0; font-size: 1.25rem; font-weight: 600; text-decoration: none; }
.mobile-nav .submenu-toggle { width: 48px; height: 48px; margin: 0; border: 1px solid var(--c-line-dark); color: var(--c-white); }
.mobile-nav .submenu-toggle .icon { width: 20px; height: 20px; }
.mobile-nav .sub-menu { display: none; width: 100%; padding: 0 0 16px 16px; border-left: 2px solid var(--c-yellow); }
.mobile-nav .menu-item.is-open > .sub-menu { display: grid; }
.mobile-nav .sub-menu a { display: block; padding: 10px 0; color: var(--c-on-dark-muted); text-decoration: none; }
.mobile-nav .sub-menu a:hover { color: var(--c-white); }
.mobile-nav .current-menu-item > a { color: var(--c-yellow) !important; }
.mobile-nav__contacts { display: grid; gap: 14px; margin-top: auto; }
.mobile-nav__contacts a { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.mobile-nav__contacts .icon { color: var(--c-yellow); }
@media (min-width: 1200px) { .mobile-nav { display: none; } }

/* Подвал */
.site-footer { position: relative; background: #08101C; color: var(--c-on-dark-muted); font-size: .9375rem; }
.site-footer::before { content: ""; display: block; height: 6px; background: repeating-linear-gradient(-45deg, var(--c-yellow) 0 14px, #08101C 14px 28px); }
.site-footer__top {
  display: grid;
  gap: 32px 24px;
  padding-block: clamp(40px, 5vw, 72px);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 576px) { .site-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) { .site-footer__top { grid-template-columns: 1.4fr repeat(3, 1fr) 1.4fr; } }
.site-footer__about p { margin-top: 16px; max-width: 300px; }
.site-footer__about .btn { margin-top: 24px; }
.site-footer__title { margin-bottom: 14px; color: var(--c-white); font-weight: 600; font-size: 1rem; }
.site-footer .menu { display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--c-white); text-decoration: underline; }
.site-footer__contacts { display: grid; gap: 12px; }
.site-footer__contacts li { display: flex; gap: 12px; align-items: flex-start; }
.site-footer__contacts .icon { width: 20px; height: 20px; margin-top: 2px; color: var(--c-yellow); }
.site-footer__contacts .is-strong { color: var(--c-white); font-weight: 600; font-size: 1.0625rem; }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 20px;
  border-top: 1px solid var(--c-line-dark);
  font-size: var(--fs-small);
}
@media (min-width: 576px) and (max-width: 991.98px) { .site-footer__about { grid-column: 1 / -1; } }

/* 6. Секции
   ========================================================================== */

/* --- Hero главной ---------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(600px, calc(100svh - var(--header-h)), 900px);
  padding-block: clamp(48px, 6vw, 96px) clamp(96px, 9vw, 140px);
  background: var(--c-ink);
  color: var(--c-white);
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; }
.hero__bg img, .hero__bg video { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 21, 36, .96) 0%, rgba(11, 21, 36, .88) 38%, rgba(11, 21, 36, .35) 75%, rgba(11, 21, 36, .2) 100%),
    linear-gradient(0deg, rgba(11, 21, 36, .9) 0%, rgba(11, 21, 36, 0) 40%);
}
@media (max-width: 767.98px) {
  .hero { min-height: 0; padding-block: 48px 56px; }
  .hero__features { margin: 28px 0 32px; }
}
@media (max-width: 575.98px) {
  .hero .btn-row .btn, .page-hero .btn-row .btn { flex: 1 1 100%; justify-content: center; }
}
@media (max-width: 767.98px) {
  .hero__bg::after { background: linear-gradient(180deg, rgba(11, 21, 36, .72) 0%, rgba(11, 21, 36, .9) 55%, rgba(11, 21, 36, .98) 100%); }
}
.hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: end; width: 100%; }
@media (min-width: 1200px) { .hero__inner { grid-template-columns: minmax(0, 1fr) auto; } }
.hero__content { max-width: 1040px; }
.hero__title { font-size: clamp(1.875rem, 1rem + 3.2vw, 4.25rem); }
.hero__title .accent { display: block; }
.hero__lead { max-width: 620px; margin-top: 24px; font-size: var(--fs-lead); color: #D5DDE7; }
.hero__features { display: flex; flex-wrap: wrap; gap: 16px 32px; margin: 32px 0 40px; }
.hero__feature { display: flex; align-items: center; gap: 12px; font-size: .9375rem; font-weight: 500; line-height: 1.3; }
.hero__feature .icon { width: 28px; height: 28px; color: var(--c-yellow); stroke-width: 1.75; }
.hero__aside { display: none; }
@media (min-width: 1200px) { .hero__aside { display: block; } }

.region-card {
  position: relative;
  width: 300px;
  padding: 24px;
  background: rgba(11, 21, 36, .82);
  border: 1px solid var(--c-line-dark);
  backdrop-filter: blur(6px);
}
.region-card::before { content: ""; position: absolute; top: -1px; left: -1px; width: 48px; height: 4px; background: var(--c-yellow); }
.region-card__title { display: flex; align-items: center; gap: 10px; font-size: var(--fs-small); color: var(--c-on-dark-muted); }
.region-card__title .icon { color: var(--c-yellow); }
.region-card__list { display: flex; gap: 8px; margin-top: 16px; }
.region-card__list li { font-family: var(--f-display); font-weight: 400; font-size: 1.25rem; text-transform: uppercase; }
.region-card__list li + li::before { content: "/"; margin-right: 8px; color: var(--c-yellow); }
.region-card p { margin-top: 12px; font-size: var(--fs-small); color: var(--c-on-dark-muted); }

/* --- Hero внутренних страниц ----------------------------------------- */
.page-hero {
  position: relative;
  padding-block: clamp(32px, 4vw, 56px) clamp(80px, 8vw, 120px);
  background: var(--c-ink);
  color: var(--c-white);
  overflow: hidden;
}
.page-hero--plain { padding-bottom: clamp(48px, 6vw, 80px); }
.page-hero__bg { position: absolute; inset: 0; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; }
.page-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 21, 36, .97) 0%, rgba(11, 21, 36, .9) 40%, rgba(11, 21, 36, .3) 80%, rgba(11, 21, 36, .15) 100%); }
@media (max-width: 767.98px) {
  .page-hero__bg::after { background: linear-gradient(180deg, rgba(11, 21, 36, .8), rgba(11, 21, 36, .95)); }
}
.page-hero__inner { position: relative; max-width: 860px; }
.page-hero__title--fit { font-size: min(var(--fs-h1), calc(min(100vw - 2 * var(--gutter), 860px) / 13.4)); }
.page-hero__title .accent { display: block; }
.page-hero__subtitle { margin-top: 20px; font-size: clamp(1.125rem, 1rem + .6vw, 1.625rem); font-weight: 500; line-height: 1.3; }
.page-hero__lead { max-width: 640px; margin-top: 16px; color: #D5DDE7; font-size: var(--fs-lead); }
.page-hero .btn-row { margin-top: 32px; }

/* --- Сплит: фото + текст --------------------------------------------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4vw, 72px); align-items: center; }
@media (min-width: 992px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split--reverse .split__media { order: 2; }
  .split--wide-text { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
}
.split__text > * + * { margin-top: 20px; }
.split__text p:not(.eyebrow) { color: var(--c-muted); font-size: var(--fs-lead); }
.section--dark .split__text p, .is-dark .split__text p { color: var(--c-on-dark-muted); }
.split__text .btn-row, .split__text .btn { margin-top: 32px; }

/* --- Баннер: фото на всю ширину -------------------------------------- */
.banner {
  position: relative;
  padding-block: clamp(56px, 7vw, 120px);
  background: var(--c-ink);
  color: var(--c-white);
  overflow: hidden;
}
.banner__bg { position: absolute; inset: 0; }
.banner__bg img { width: 100%; height: 100%; object-fit: cover; }
.banner__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 21, 36, .97) 0%, rgba(11, 21, 36, .88) 45%, rgba(11, 21, 36, .25) 100%); }
.banner--right .banner__bg::after { background: linear-gradient(270deg, rgba(11, 21, 36, .97) 0%, rgba(11, 21, 36, .88) 45%, rgba(11, 21, 36, .25) 100%); }
@media (max-width: 991.98px) {
  .banner__bg::after, .banner--right .banner__bg::after { background: rgba(11, 21, 36, .86); }
}
.banner__inner { position: relative; display: flex; }
.banner--right .banner__inner { justify-content: flex-end; }
.banner__content { max-width: 680px; }
.banner__content > * + * { margin-top: 20px; }
.banner__content p:not(.eyebrow) { color: #D5DDE7; font-size: var(--fs-lead); }
.banner__content .checklist { margin-top: 28px; }
.banner__content .btn, .banner__content .btn-row { margin-top: 36px; }

/* --- CTA-полоса ------------------------------------------------------ */
.cta {
  position: relative;
  display: grid;
  gap: 24px;
  align-items: center;
  padding: clamp(28px, 4vw, 56px);
  background: var(--c-ink);
  color: var(--c-white);
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 40px, 100% 100%, 0 100%);
}
.cta::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: repeating-linear-gradient(-45deg, var(--c-yellow) 0 10px, var(--c-ink) 10px 20px); }
.cta__bg { position: absolute; inset: 0; opacity: .28; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--c-ink) 30%, transparent); }
.cta > :not(.cta__bg) { position: relative; }
.cta__title { font-size: clamp(1.375rem, 1rem + 1.4vw, 2.5rem); }
.cta__text { margin-top: 12px; max-width: 640px; color: var(--c-on-dark-muted); font-size: var(--fs-lead); }
.cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.cta__phone { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.125rem; text-decoration: none; white-space: nowrap; }
.cta__phone .icon { color: var(--c-yellow); }
@media (min-width: 992px) { .cta { grid-template-columns: minmax(0, 1fr) auto; } }

/* --- Блок «что включает» -------------------------------------------- */
.includes { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 3vw, 48px); align-items: start; }
@media (min-width: 992px) { .includes { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); } }
@media (min-width: 1440px) { .includes { grid-template-columns: minmax(0, 5fr) minmax(0, 5fr) minmax(0, 2.4fr); } }
.includes__text > * + * { margin-top: 20px; }
.includes__text p { color: var(--c-muted); font-size: var(--fs-lead); }
.includes__aside { display: grid; gap: 1px; background: var(--c-line); border: 1px solid var(--c-line); }
@media (min-width: 576px) and (max-width: 1439.98px) {
  .includes__aside { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 992px) and (max-width: 1439.98px) {
  .includes__aside { grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.includes__benefit { display: flex; gap: 14px; align-items: center; padding: 20px; background: var(--c-paper); font-size: .9375rem; font-weight: 500; line-height: 1.35; }
.includes__benefit .icon { width: 30px; height: 30px; color: var(--c-ink); stroke-width: 1.6; }

/* --- Регионы (карта-созвездие) --------------------------------------- */
.regions { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); align-items: center; }
@media (min-width: 992px) { .regions { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
@media (min-width: 1440px) { .regions { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) minmax(0, 3fr); } }
.regions__text > * + * { margin-top: 20px; }
.regions__text p:not(.eyebrow) { color: var(--c-on-dark-muted); font-size: var(--fs-lead); }
.regions__list { display: flex; flex-wrap: wrap; gap: 10px; }
.regions__map { position: relative; }
.regions__map svg { width: 100%; height: auto; overflow: visible; }
.map-grid { fill: url(#map-dots); }
.map-line { stroke: var(--c-yellow); stroke-width: 1.2; stroke-dasharray: 4 6; opacity: .55; }
.map-city { fill: var(--c-white); }
.map-label { fill: var(--c-on-dark-muted); font: 500 13px var(--f-body); }
.map-label--hq { fill: var(--c-white); font-weight: 700; font-size: 15px; }
.map-sea { fill: #5E7393; font: italic 500 13px var(--f-body); letter-spacing: .08em; }
.map-region { fill: var(--c-yellow); font: 400 14px var(--f-display); letter-spacing: .06em; }
.map-hq { fill: var(--c-yellow); }
.map-pulse { fill: none; stroke: var(--c-yellow); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: pulse 2.4s var(--ease) infinite; }
@media (max-width: 575.98px) {
  .map-label { font-size: 20px; }
  .map-label--hq { font-size: 22px; }
  .map-region { font-size: 22px; }
  .map-sea { display: none; }
}
@keyframes pulse { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(2.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .map-pulse { animation: none; opacity: .5; } }
@media (min-width: 992px) and (max-width: 1439.98px) { .regions__card { grid-column: 1 / -1; } }

.consult-card { padding: clamp(24px, 2.4vw, 36px); background: var(--c-white); color: var(--c-text); clip-path: polygon(0 0, calc(100% - var(--chamfer-lg)) 0, 100% var(--chamfer-lg), 100% 100%, 0 100%); --focus: var(--c-ink); }
.consult-card__title { font-size: 1.25rem; font-weight: 700; line-height: 1.3; }
.consult-card p { margin-top: 10px; color: var(--c-muted); }
.consult-card .btn { margin-top: 24px; }
.consult-card__phone { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-weight: 600; text-decoration: none; }
.consult-card__phone .icon { width: 20px; height: 20px; }
@media (min-width: 992px) and (max-width: 1439.98px) {
  .consult-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 32px; align-items: center; }
  .consult-card > :not(.consult-card__actions) { grid-column: 1; }
  .consult-card__actions { grid-column: 2; grid-row: 1 / span 2; }
  .consult-card .btn { margin-top: 0; }
}

/* --- О компании (тизер на главной) ----------------------------------- */
.about-teaser { position: relative; display: grid; background: var(--c-ink); color: var(--c-white); overflow: hidden; }
@media (min-width: 992px) { .about-teaser { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 560px; } }
.about-teaser__media { position: relative; min-height: 300px; }
.about-teaser__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about-teaser__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 60%, var(--c-ink)); }
@media (max-width: 991.98px) { .about-teaser__media::after { background: linear-gradient(180deg, transparent 60%, var(--c-ink)); } }
.about-teaser__body { display: flex; flex-direction: column; justify-content: center; padding: clamp(40px, 5vw, 96px) var(--gutter); max-width: 820px; }
.about-teaser__body > * + * { margin-top: 20px; }
.about-teaser__body p:not(.eyebrow) { color: var(--c-on-dark-muted); font-size: var(--fs-lead); }
.about-teaser__body .btn { align-self: flex-start; margin-top: 36px; }

/* --- Партнёр: этапы рядом с фото ------------------------------------- */
.partner { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); }
@media (min-width: 1200px) { .partner { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: stretch; } }
.partner__media { min-height: 320px; }
.partner__body { display: flex; flex-direction: column; gap: 28px; padding: clamp(24px, 3vw, 48px); background: var(--c-ink-2); }
.partner__body .steps { --steps: 2; }
@media (min-width: 576px) { .partner__body .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.partner__body .step { background: var(--c-ink); }

/* --- Контакты -------------------------------------------------------- */
.contacts { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); }
@media (min-width: 992px) { .contacts { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.contact-list { display: grid; gap: 1px; background: var(--c-line); border: 1px solid var(--c-line); }
.contact-item { display: flex; gap: 16px; padding: 22px 24px; background: var(--c-white); }
.contact-item__label { font-size: var(--fs-small); color: var(--c-muted); }
.contact-item__value { margin-top: 2px; font-size: 1.125rem; font-weight: 600; line-height: 1.4; }
.contact-item__value a { text-decoration: none; }
.contact-item__value a:hover { text-decoration: underline; }
.contact-item__value a[href^="tel:"] { white-space: nowrap; }
@media (max-width: 399.98px) {
  .contact-item { gap: 12px; padding: 18px 16px; }
  .contact-item .icon-box { width: 44px; height: 44px; }
  .contact-item__value { font-size: 1rem; }
}
.contact-map { position: relative; min-height: 420px; background: var(--c-paper); }
.contact-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.6); }
.form-card { padding: clamp(24px, 3vw, 48px); background: var(--c-ink); color: var(--c-white); }
.form-card__title { margin-bottom: 8px; }
.form-card__text { margin-bottom: 28px; color: var(--c-on-dark-muted); }

/* --- Текстовые страницы ---------------------------------------------- */
.prose { max-width: 880px; font-size: 1.0625rem; }
.prose--wide { max-width: none; }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 2em; font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); }
.prose ul { padding-left: 1.4em; }
.prose li + li { margin-top: .4em; }

/* --- Служебные (404, спасибо) ---------------------------------------- */
.state { position: relative; display: grid; place-items: center; min-height: calc(100svh - var(--header-h)); padding-block: 80px; background: var(--c-ink); color: var(--c-white); text-align: center; overflow: hidden; }
.state__bg { position: absolute; inset: 0; opacity: .22; }
.state__bg img { width: 100%; height: 100%; object-fit: cover; }
.state__inner { position: relative; max-width: 720px; }
.state__code { font-family: var(--f-display); font-weight: 400; font-size: clamp(5rem, 3rem + 10vw, 12rem); line-height: 1; color: var(--c-yellow); }
.state__icon { display: inline-grid; place-items: center; width: 88px; height: 88px; margin-bottom: 28px; background: var(--c-yellow); color: var(--c-ink); clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%); }
.state__icon .icon { width: 44px; height: 44px; stroke-width: 2.4; }
.state p { margin-top: 16px; color: var(--c-on-dark-muted); font-size: var(--fs-lead); }
.state .btn-row { justify-content: center; margin-top: 36px; }

/* 7. Утилиты
   ========================================================================== */
.mt-0 { margin-top: 0 !important; }
.text-muted { color: var(--c-muted); }
.nowrap { white-space: nowrap; }
