:root {
  --space-1: 6px;
  --space-2: 12px;
  --space-3: 20px;
  --space-4: 32px;
  --bg: #0c0c0d;
  --bg-deep: #050506;
  --surface: #121417;
  --red: #e90408;
  --red-bright: #ff1a1f;
  --red-dark: #970203;
  --text: #f5f7fa;
  --muted: #9b9d9f;
  --border: rgba(255, 255, 255, 0.08);
  --radius-lg: 28px;
  --radius-xl: 32px;
  --radius-sm: 18px;
  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
  --ease-smooth-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  /* Появления в потоке: чуть дольше opacity, резче «посадка» по transform */
  --ease-spring-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-reveal-opacity: cubic-bezier(0.33, 0.01, 0.24, 1);
  --dur-reveal: 1.22s;
  --dur-reveal-opacity: 1.02s;
  --dur-soft: 0.5s;
  --dur-micro: 0.36s;
  --font-head: 'Manrope', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-brand: 'Lexend', system-ui, sans-serif;
  --gutter: max(14px, env(safe-area-inset-left));
  --gutter-r: max(14px, env(safe-area-inset-right));
  --touch-min: 48px;
  /* Отступ под липкую шапку при якоре: только через scroll-padding на html (см. коммент у html) */
  --header-scroll-offset: max(92px, calc(env(safe-area-inset-top) + 76px));
  /* Единая ширина контентной колонки (hero, .wrap, geo и др.) */
  --site-max: 1180px;
}

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

html {
  /* Меньше сдвига макета при появлении вертикального скролла (в т.ч. во время анимаций) */
  scrollbar-gutter: stable;
  /* Smooth scroll на root ломает восстановление позиции при reload в части браузеров; плавность — см. якор в main.js */
  scroll-behavior: auto;
  /**
   * Одна точка отступа для якорей (scrollIntoView, #hash). Не дублировать scroll-margin на секциях —
   * иначе отступ под шапкой суммируется и получается пустая полоса на весь экран.
   */
  scroll-padding-top: var(--header-scroll-offset);
  scroll-padding-inline: max(14px, env(safe-area-inset-left));
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body.nav-open {
  overflow: hidden;
  touch-action: none;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: var(--space-2);
  z-index: 200;
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  background: rgba(12, 12, 13, 0.95);
  border: 1px solid rgba(233, 4, 8, 0.35);
  border-radius: 10px;
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
}

.skip-link:focus {
  clip-path: none;
  width: auto;
  height: auto;
  overflow: visible;
  outline: 2px solid var(--red-bright);
  outline-offset: 2px;
}

.page-shell {
  min-height: 100vh;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  letter-spacing: -0.03em;
  line-height: 1.06;
}

p {
  margin: 0;
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

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

.wrap {
  width: 100%;
  max-width: var(--site-max);
  margin-inline: auto;
  padding-inline: var(--gutter) var(--gutter-r);
  box-sizing: border-box;
}

.section {
  position: relative;
  padding-block: clamp(40px, 9vw, 140px);
}

main section.section[id],
#contact.section,
#faq.section {
  scroll-margin-top: 0;
}

.section__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(10px, 2.4vw, 12px);
  font-weight: 600;
  letter-spacing: clamp(0.08em, 0.06em + 0.2vw, 0.22em);
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
  max-width: 100%;
}

.section__label::before {
  content: '';
  width: clamp(34px, 6vw, 44px);
  height: 1px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 26, 31, 0.45), var(--red-bright));
  box-shadow: 0 0 12px rgba(233, 4, 8, 0.25);
}

#faq .section__label::before {
  display: none;
}

#faq .section__title.section__title--faq {
  margin-bottom: clamp(8px, 1.8vw, 12px);
}

#faq .faq-intro {
  margin: 0 0 clamp(12px, 2.5vw, 18px);
  max-width: 70ch;
  font-size: clamp(13px, 1.35vw, 14.5px);
  line-height: 1.55;
}

#faq .faq-intro strong {
  font-weight: 600;
  color: rgba(245, 247, 250, 0.92);
}

.section__title {
  margin: 0 0 16px;
  font-size: clamp(22px, 5.2vw + 6px, 44px);
  font-weight: 800;
  color: var(--text);
  text-wrap: balance;
  text-shadow: 0 16px 60px rgba(0, 0, 0, 0.4);
}

.section__subtitle {
  max-width: 62ch;
  font-size: clamp(15px, 1.03rem, 1.06rem);
  margin-bottom: clamp(28px, 6vw, 48px);
  line-height: 1.65;
}

.page-bg {
  position: relative;
  background: var(--bg);
}

.page-bg::before {
  content: '';
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 55% at 50% -20%, rgba(233, 4, 8, 0.18), transparent 55%),
    radial-gradient(ellipse 55% 40% at 100% 0%, rgba(255, 26, 31, 0.06), transparent 50%),
    radial-gradient(ellipse 45% 35% at 0% 20%, rgba(151, 2, 3, 0.12), transparent 45%);
}

.grid-overlay {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 1;
  background-color: transparent;
  /* Крупная сетка чуть заметнее — визуальная опора к колонкам контента */
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.078) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.078) 1px, transparent 1px);
  background-size:
    40px 40px,
    40px 40px,
    200px 200px,
    200px 200px;
  background-position: center top;
}

.page-content {
  position: relative;
  z-index: 1;
}

.glass-panel {
  position: relative;
  background: linear-gradient(
    145deg,
    rgba(18, 20, 23, 0.78) 0%,
    rgba(18, 20, 23, 0.55) 55%,
    rgba(12, 12, 13, 0.55) 100%
  );
  backdrop-filter: blur(22px);
  border: 1px solid var(--border);
  border-radius: clamp(18px, 4vw, var(--radius-lg));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 6px 28px rgba(0, 0, 0, 0.32);
  transition:
    transform var(--dur-soft) var(--ease-out),
    border-color var(--dur-soft) var(--ease-out),
    box-shadow var(--dur-soft) var(--ease-out);
}

.glass-panel:hover {
  transform: translate3d(0, -2px, 0);
  border-color: rgba(255, 26, 31, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 18px 56px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(233, 4, 8, 0.1),
    0 0 48px rgba(233, 4, 8, 0.08);
}

.glass-panel--static {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 8px 36px rgba(0, 0, 0, 0.34);
}

.glass-panel--static:hover {
  transform: none;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 40px rgba(0, 0, 0, 0.34);
  transition: border-color var(--dur-soft) var(--ease-out), box-shadow var(--dur-soft) var(--ease-out);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px clamp(22px, 5vw, 28px);
  min-height: var(--touch-min);
  border-radius: 14px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(14px, 3.8vw, 15px);
  letter-spacing: -0.01em;
  transition:
    transform var(--dur-micro) var(--ease-out),
    box-shadow var(--dur-micro) var(--ease-out),
    border-color var(--dur-micro) var(--ease-out);
  flex: 1 1 auto;
}

@media (min-width: 480px) {
  .btn-row {
    align-items: center;
  }

  .btn {
    flex: 0 1 auto;
  }
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
  box-shadow: none;
}

.btn--primary {
  color: var(--text);
  background: linear-gradient(132deg, var(--red-bright) 0%, var(--red) 48%, var(--red-dark) 100%);
  box-shadow:
    0 12px 40px rgba(233, 4, 8, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.btn--primary:hover {
  transform: translate3d(0, -1px, 0);
  box-shadow:
    0 14px 44px rgba(233, 4, 8, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn--ghost {
  color: var(--text);
  background: rgba(245, 247, 250, 0.04);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  border-color: rgba(233, 4, 8, 0.32);
  box-shadow: 0 8px 28px rgba(233, 4, 8, 0.08);
}

.reveal {
  opacity: 0;
  /* Только px: vw в transform пересчитывается при смене ширины вьюпорта/скроллбара и даёт микродрожание */
  transform: translate3d(0, 18px, 0);
  backface-visibility: hidden;
  transition:
    opacity var(--dur-reveal-opacity) var(--ease-reveal-opacity),
    transform var(--dur-reveal) var(--ease-spring-out);
  transition-delay: var(--d, 0ms);
}

.reveal[data-visible='true'] {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--border);
  background: rgba(5, 5, 6, 0.55);
}

.badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 12px rgba(233, 4, 8, 0.75);
}

.chip-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin-top: clamp(18px, 5vw, 28px);
  font-family: var(--font-body);
  font-size: clamp(11px, 3vw, 12px);
  max-width: 100%;
}

.chip-flow__pill {
  display: inline-flex;
  align-items: center;
  padding: max(8px, 6px + 1vw) 12px;
  min-height: 36px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: rgba(18, 20, 23, 0.65);
}

.chip-flow__sep {
  color: rgba(233, 4, 8, 0.85);
  font-weight: 700;
}

.stat-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(26px, 7vw + 6px, 52px);
  letter-spacing: -0.04em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  word-break: keep-all;
}

/* Счётчик не меняет ширину строки на каждом кадре — без «тряски» сетки */
.js-count {
  display: inline-block;
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
  min-width: 3.25ch;
  text-align: right;
}

.stat-num .suffix {
  color: var(--red-bright);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: none;
  padding-top: env(safe-area-inset-top);
  /* Плотнее заливка — при якоре на длинной секции контент сверху не «просвечивает» через шапку */
  background-color: rgba(10, 11, 13, 0.94);
  background-image: linear-gradient(
    180deg,
    rgba(16, 17, 20, 0.97) 0%,
    rgba(11, 12, 14, 0.95) 45%,
    rgba(9, 9, 11, 0.93) 100%
  );
  backdrop-filter: blur(20px) saturate(1.12);
  -webkit-backdrop-filter: blur(20px) saturate(1.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 4px 24px rgba(0, 0, 0, 0.45),
    0 20px 48px rgba(0, 0, 0, 0.18);
  transition:
    box-shadow var(--dur-soft) var(--ease-smooth-in-out),
    background 0.45s var(--ease-smooth-in-out);
}

.site-header::before {
  content: '';
  pointer-events: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.12) 22%,
    rgba(255, 255, 255, 0.04) 50%,
    rgba(255, 255, 255, 0.12) 78%,
    transparent 100%
  );
  opacity: 0.65;
}

.site-header::after {
  content: '';
  pointer-events: none;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(233, 4, 8, 0.22) 18%,
    rgba(255, 255, 255, 0.09) 50%,
    rgba(233, 4, 8, 0.22) 82%,
    transparent 100%
  );
  opacity: 0.95;
}

.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto;
  align-items: center;
  gap: 10px;
  row-gap: 12px;
  padding-block: 12px 14px;
  /* Выше фиксированного .site-header__sheet (97), иначе бургер «пропадает» под оверлеем */
  position: relative;
  z-index: 102;
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: clamp(12px, 2.8vw, 18px);
  min-width: 0;
  text-decoration: none;
  color: inherit;
  border-radius: 14px;
  padding: 6px 10px 6px 6px;
  margin: -6px 0 -6px -6px;
  transition:
    background-color var(--dur-soft) var(--ease-out),
    box-shadow var(--dur-soft) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .site-header__brand:hover {
    background: rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  }
}

.brand-wordmark {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  column-gap: 0;
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: clamp(17px, 2vw + 10px, 22px);
  line-height: 1;
  white-space: nowrap;
  text-transform: uppercase;
  font-feature-settings: 'kern' 1, 'liga' 1;
}

.brand-wordmark__redit {
  display: inline-flex;
  align-items: baseline;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.brand-wordmark__light {
  color: var(--text);
}

.brand-wordmark__accent {
  color: var(--red-bright);
}

.brand-wordmark--sheet {
  font-size: clamp(17px, 4.5vw, 21px);
}

.brand-wordmark--footer {
  font-size: clamp(17px, 2.8vw + 6px, 20px);
}

.site-header__logo {
  display: block;
  height: clamp(34px, 5.8vw, 44px);
  width: auto;
  max-width: min(52px, 14vw);
  flex-shrink: 0;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 2px 10px rgba(233, 4, 8, 0.18));
  transition: filter var(--dur-soft) var(--ease-out), transform var(--dur-micro) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .site-header__brand:hover .site-header__logo {
    filter: drop-shadow(0 4px 16px rgba(233, 4, 8, 0.32));
  }
}

.site-header__nav--desktop {
  display: none;
  align-items: center;
  gap: 3px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: rgba(218, 222, 228, 0.97);
}

.site-header__nav--desktop a {
  position: relative;
  padding: 8px 12px;
  border-radius: 999px;
  color: inherit;
  transition:
    color var(--dur-micro) var(--ease-out),
    background-color var(--dur-soft) var(--ease-out),
    box-shadow var(--dur-soft) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .site-header__nav--desktop a:hover:not(.is-active) {
    color: var(--text);
    font-weight: 700;
    background: linear-gradient(
      145deg,
      rgba(233, 4, 8, 0.36) 0%,
      rgba(233, 4, 8, 0.18) 42%,
      rgba(36, 14, 16, 0.82) 100%
    );
    box-shadow:
      inset 0 1px 0 rgba(255, 230, 232, 0.2),
      0 0 28px rgba(233, 4, 8, 0.24),
      0 0 0 1px rgba(255, 94, 98, 0.42);
  }
}

.site-header__nav--desktop a:focus-visible {
  color: var(--text);
  outline: 2px solid rgba(255, 26, 31, 0.78);
  outline-offset: 2px;
}

.site-header__sheet-tg {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--touch-min);
  margin-top: 12px;
  margin-bottom: 8px;
  padding: 0 16px;
  border-radius: 14px;
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  color: rgba(190, 229, 255, 0.98);
  border: 1px solid rgba(74, 161, 218, 0.32);
  background: linear-gradient(125deg, rgba(32, 82, 118, 0.35) 0%, rgba(10, 11, 13, 0.55) 100%);
  overflow: hidden;
  isolation: isolate;
  transition:
    background-color var(--dur-soft) var(--ease-out),
    border-color var(--dur-soft) var(--ease-out);
}

.site-header__sheet-tg::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(
    130deg,
    rgba(56, 168, 242, 0) 0%,
    rgba(168, 232, 255, 0.12) 40%,
    rgba(56, 168, 242, 0.06) 55%,
    transparent 100%
  );
  background-size: 220% 220%;
  mix-blend-mode: soft-light;
  animation: site-header-tg-aurora 11s ease-in-out infinite;
}

.site-header__sheet-tg::after {
  content: '';
  position: absolute;
  top: -40%;
  bottom: -40%;
  left: 0;
  width: 52%;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(255, 255, 255, 0.05) 40%,
    rgba(168, 232, 255, 0.2) 50%,
    rgba(255, 255, 255, 0.06) 60%,
    transparent 100%
  );
  mix-blend-mode: soft-light;
  animation: site-header-tg-shine 4.8s cubic-bezier(0.32, 0.72, 0.25, 1) infinite;
}

.site-header__sheet-tg .icon {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  transform-origin: 40% 55%;
  animation:
    site-header-tg-plane 3s ease-in-out infinite,
    site-header-tg-ico-pulse 3.5s ease-in-out infinite;
}

.site-header__sheet-tg-label {
  position: relative;
  z-index: 1;
  letter-spacing: -0.02em;
}

@media (hover: hover) and (pointer: fine) {
  .site-header__sheet-tg:hover {
    border-color: rgba(120, 204, 252, 0.45);
    background: linear-gradient(
      125deg,
      rgba(42, 110, 160, 0.42) 0%,
      rgba(14, 20, 28, 0.62) 100%
    );
  }

  .site-header__sheet-tg:hover .icon {
    animation-duration: 1.5s, 2.2s;
  }

  .site-header__sheet-tg:hover::before {
    animation-duration: 7s;
  }

  .site-header__sheet-tg:hover::after {
    animation-duration: 2.9s;
  }
}

.site-header__nav--desktop a.is-active {
  color: var(--text);
  font-weight: 700;
  background: linear-gradient(
    145deg,
    rgba(233, 4, 8, 0.28) 0%,
    rgba(233, 4, 8, 0.14) 45%,
    rgba(36, 14, 16, 0.65) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 230, 232, 0.18),
    0 0 32px rgba(233, 4, 8, 0.2),
    0 0 0 1px rgba(255, 94, 98, 0.35);
}

/* Скользящая «капля» — только десктоп; подложка переносится в .site-header__nav-pill */
.site-header__nav-pill {
  display: none;
}

.site-header__sheet-nav a.is-active {
  color: var(--text);
  background: rgba(233, 4, 8, 0.1);
  border: 1px solid rgba(233, 4, 8, 0.28);
}

/* Telegram CTA: редкий «блик» + микродвижение иконки (пауза между циклами — меньше отвлекает) */
@keyframes site-header-tg-shine {
  0% {
    transform: translate3d(-125%, 0, 0) skewX(-13deg);
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  22% {
    transform: translate3d(235%, 0, 0) skewX(-13deg);
    opacity: 0.88;
  }
  28% {
    transform: translate3d(235%, 0, 0) skewX(-13deg);
    opacity: 0;
  }
  58%,
  100% {
    transform: translate3d(235%, 0, 0) skewX(-13deg);
    opacity: 0;
  }
  62% {
    opacity: 0.42;
  }
  70% {
    transform: translate3d(-55%, 0, 0) skewX(-9deg);
    opacity: 0.38;
  }
  78% {
    transform: translate3d(165%, 0, 0) skewX(-9deg);
    opacity: 0.22;
  }
  84% {
    opacity: 0;
  }
}

@keyframes site-header-tg-aurora {
  0%,
  100% {
    background-position: 0% 45%;
    opacity: 0.46;
  }
  28% {
    background-position: 72% 38%;
    opacity: 0.74;
  }
  52% {
    background-position: 38% 72%;
    opacity: 0.56;
  }
  76% {
    background-position: 88% 55%;
    opacity: 0.68;
  }
}

@keyframes site-header-tg-plane {
  0%,
  62%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  8% {
    transform: translate3d(1.5px, -2px, 0) rotate(-7deg);
  }
  18% {
    transform: translate3d(3.5px, -3px, 0) rotate(-3deg);
  }
  30% {
    transform: translate3d(4.5px, -1px, 0) rotate(4deg);
  }
  42% {
    transform: translate3d(2px, 0, 0) rotate(0deg);
  }
  72% {
    transform: translate3d(0.5px, -1.2px, 0) rotate(-1.5deg);
  }
  88% {
    transform: translate3d(0, -0.6px, 0) rotate(0.8deg);
  }
}

@keyframes site-header-tg-ico-pulse {
  0%,
  100% {
    filter: drop-shadow(0 0 7px rgba(120, 206, 255, 0.38)) drop-shadow(0 0 16px rgba(56, 168, 242, 0.16));
  }
  45% {
    filter: drop-shadow(0 0 14px rgba(186, 232, 255, 0.62)) drop-shadow(0 0 26px rgba(72, 178, 255, 0.32));
  }
}

@keyframes site-header-split-halo {
  0%,
  100% {
    box-shadow:
      0 6px 30px rgba(0, 0, 0, 0.45),
      0 0 0 1px rgba(0, 0, 0, 0.38),
      0 0 44px rgba(233, 4, 8, 0.1),
      0 0 38px rgba(56, 168, 242, 0.12),
      -6px 0 28px rgba(48, 156, 240, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }
  50% {
    box-shadow:
      0 6px 34px rgba(0, 0, 0, 0.48),
      0 0 0 1px rgba(0, 0, 0, 0.38),
      0 0 58px rgba(233, 4, 8, 0.16),
      0 0 52px rgba(56, 168, 242, 0.2),
      -8px 0 36px rgba(72, 178, 255, 0.16),
      inset 0 1px 0 rgba(255, 255, 255, 0.09);
  }
}

@keyframes site-header-diag-sweep {
  0%,
  62%,
  100% {
    background-position: 120% 50%;
    opacity: 0;
  }
  68% {
    opacity: 0.55;
  }
  78% {
    background-position: -20% 50%;
    opacity: 0.35;
  }
  85%,
  100% {
    opacity: 0;
  }
}

.site-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  justify-self: end;
}

.site-header__cta {
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  min-height: var(--touch-min);
  flex: 0 0 auto;
  border-radius: 999px;
}

.site-header__cta-split {
  display: inline-flex;
  align-items: stretch;
  flex: 0 0 auto;
  max-width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: linear-gradient(180deg, rgba(22, 24, 28, 0.94) 0%, rgba(7, 8, 10, 0.98) 100%);
  box-shadow:
    0 6px 30px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(0, 0, 0, 0.38),
    0 0 44px rgba(233, 4, 8, 0.1),
    0 0 32px rgba(56, 168, 242, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
  isolation: isolate;
  animation: site-header-split-halo 7s ease-in-out infinite;
}

.site-header__cta-split-tg {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 11px 0 13px;
  margin: 0;
  min-width: 0;
  min-height: var(--touch-min);
  border: none;
  font-family: var(--font-head);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: rgba(232, 248, 255, 1);
  text-decoration: none;
  text-shadow: 0 0 18px rgba(56, 168, 242, 0.22);
  background: linear-gradient(
    128deg,
    rgba(96, 200, 255, 0.38) 0%,
    rgba(48, 152, 228, 0.42) 26%,
    rgba(22, 72, 118, 0.72) 52%,
    rgba(10, 20, 34, 0.94) 82%,
    rgba(8, 12, 18, 0.98) 100%
  );
  border-right: 1px solid rgba(120, 200, 255, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(220, 244, 255, 0.16),
    inset 0 -1px 0 rgba(0, 36, 64, 0.42),
    0 0 22px rgba(56, 168, 242, 0.26),
    -3px 0 22px rgba(48, 156, 240, 0.18);
  overflow: hidden;
  isolation: isolate;
  transition:
    color var(--dur-micro) var(--ease-out),
    background var(--dur-soft) var(--ease-out),
    filter var(--dur-micro) var(--ease-out),
    box-shadow var(--dur-soft) var(--ease-out);
}

.site-header__cta-split-tg::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(
    130deg,
    rgba(56, 168, 242, 0) 0%,
    rgba(200, 244, 255, 0.2) 34%,
    rgba(96, 196, 255, 0.14) 50%,
    rgba(140, 220, 255, 0.16) 66%,
    transparent 100%
  );
  background-size: 240% 240%;
  mix-blend-mode: soft-light;
  animation: site-header-tg-aurora 10.5s ease-in-out infinite;
}

.site-header__cta-split-tg::after {
  content: '';
  position: absolute;
  top: -40%;
  bottom: -40%;
  left: 0;
  width: 52%;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(255, 255, 255, 0.05) 40%,
    rgba(168, 232, 255, 0.22) 50%,
    rgba(255, 255, 255, 0.07) 60%,
    transparent 100%
  );
  mix-blend-mode: soft-light;
  animation: site-header-tg-shine 4.4s cubic-bezier(0.32, 0.72, 0.25, 1) infinite;
}

.site-header__cta-split-ico {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  color: rgba(168, 228, 255, 1);
  transform-origin: 40% 55%;
  animation:
    site-header-tg-plane 2.75s ease-in-out infinite,
    site-header-tg-ico-pulse 3.4s ease-in-out infinite;
}

.site-header__cta-split-label--short,
.site-header__cta-split-label--long {
  position: relative;
  z-index: 1;
}

.site-header__cta-split-label--long {
  display: none;
  white-space: nowrap;
}

.site-header__cta-split-label--short {
  white-space: nowrap;
}

@media (min-width: 480px) {
  .site-header__cta-split-label--long {
    display: inline;
  }

  .site-header__cta-split-label--short {
    display: none;
  }

  .site-header__cta-split-tg {
    gap: 8px;
    padding: 0 15px 0 17px;
    font-size: 13px;
  }
}

@media (hover: hover) and (pointer: fine) {
  .site-header__cta-split-tg:hover {
    color: rgba(255, 255, 255, 1);
    text-shadow: 0 0 22px rgba(96, 190, 255, 0.35);
    background: linear-gradient(
      128deg,
      rgba(120, 214, 255, 0.48) 0%,
      rgba(58, 168, 236, 0.5) 28%,
      rgba(28, 88, 138, 0.78) 52%,
      rgba(12, 24, 40, 0.96) 100%
    );
    box-shadow:
      inset 0 1px 0 rgba(240, 252, 255, 0.22),
      inset 0 -1px 0 rgba(0, 44, 78, 0.38),
      0 0 28px rgba(72, 184, 255, 0.38),
      -4px 0 28px rgba(56, 168, 242, 0.26);
    filter: brightness(1.04);
  }

  .site-header__cta-split-tg:hover .site-header__cta-split-ico {
    animation-duration: 1.45s, 2.1s;
  }

  .site-header__cta-split-tg:hover::before {
    animation-duration: 6.5s;
    opacity: 0.85;
  }

  .site-header__cta-split-tg:hover::after {
    animation-duration: 2.85s;
  }

  .site-header__cta-split:hover {
    animation-duration: 4.5s;
  }
}

.site-header__cta-split-tg:focus-visible {
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  .site-header__cta-split {
    animation: none !important;
    box-shadow:
      0 6px 30px rgba(0, 0, 0, 0.45),
      0 0 0 1px rgba(0, 0, 0, 0.38),
      0 0 44px rgba(233, 4, 8, 0.1),
      0 0 36px rgba(56, 168, 242, 0.12),
      -6px 0 24px rgba(48, 156, 240, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }

  .site-header__cta-split-tg::before,
  .site-header__cta-split-tg::after,
  .site-header__sheet-tg::before,
  .site-header__sheet-tg::after {
    animation: none !important;
    opacity: 0 !important;
    transform: none !important;
  }

  .site-header__cta-split-go.btn--primary::before {
    animation: none !important;
    opacity: 0 !important;
  }

  .site-header__cta-split-ico,
  .site-header__sheet-tg .icon {
    animation: none !important;
    filter: none;
  }

  .site-header__cta-split-tg:hover .site-header__cta-split-ico,
  .site-header__sheet-tg:hover .icon {
    filter: none;
  }
}

.site-header__cta-split-go.btn--primary {
  position: relative;
  flex: 1 1 auto;
  justify-content: center;
  min-height: var(--touch-min);
  margin: 0 !important;
  padding: 9px 16px !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  white-space: nowrap;
  overflow: hidden;
  transition:
    filter var(--dur-micro) var(--ease-out),
    box-shadow var(--dur-soft) var(--ease-out);
}

.site-header__cta-split-go.btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  left: -35%;
  right: -35%;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 240, 240, 0.07) 55%,
    transparent 65%
  );
  background-size: 200% 100%;
  mix-blend-mode: soft-light;
  animation: site-header-diag-sweep 8s cubic-bezier(0.45, 0.05, 0.2, 1) infinite;
}

.site-header__cta-split-go.btn--primary::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity var(--dur-soft) var(--ease-out);
  box-shadow:
    inset 1px 0 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35);
}

@media (hover: hover) and (pointer: fine) {
  .site-header__cta-split-go.btn--primary:hover {
    transform: none;
    filter: brightness(1.09) saturate(1.06);
    z-index: 1;
  }

  .site-header__cta-split-go.btn--primary:hover::after {
    opacity: 1;
  }
}

.site-header__cta-split-go.btn--primary:focus-visible {
  transform: none;
  outline: 2px solid rgba(255, 212, 214, 0.55);
  outline-offset: -2px;
  z-index: 2;
}

.site-header__cta-split-go.btn--primary:active {
  transform: none;
  filter: brightness(1.02);
}

.site-header__burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: var(--touch-min);
  height: var(--touch-min);
  padding: 0;
  margin: 0;
  flex-shrink: 0;
  background: linear-gradient(165deg, rgba(30, 32, 36, 0.95) 0%, rgba(12, 13, 15, 0.88) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 6px 20px rgba(0, 0, 0, 0.35);
  transition:
    border-color var(--dur-micro) var(--ease-out),
    box-shadow var(--dur-soft) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .site-header__burger:hover {
    border-color: rgba(233, 4, 8, 0.35);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 8px 26px rgba(0, 0, 0, 0.4),
      0 0 24px rgba(233, 4, 8, 0.12);
  }
}

.site-header__burger-bar {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.25s var(--ease-out), opacity 0.2s;
}

.site-header__burger[aria-expanded='true'] .site-header__burger-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.site-header__burger[aria-expanded='true'] .site-header__burger-bar:nth-child(2) {
  opacity: 0;
}

.site-header__burger[aria-expanded='true'] .site-header__burger-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Мобильная шапка: одна строка — лого | компактные CTA + бургер (без второй полосы на всю ширину) */
@media (max-width: 899px) {
  .site-header__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto;
    column-gap: 10px;
    row-gap: 0;
    align-items: center;
    padding-block: 8px 10px;
    padding-inline: max(14px, var(--gutter)) max(14px, var(--gutter-r));
  }

  .site-header__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-shrink: 0;
    min-width: 0;
  }

  .site-header__brand {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    margin: 0;
    padding: 4px 8px 4px 4px;
    gap: clamp(8px, 2vw, 14px);
  }

  .site-header__cta-split {
    flex: 1 1 auto;
    min-width: 0;
    max-width: min(54vw, 300px);
    width: auto;
    align-self: center;
    height: var(--touch-min);
    /* Единый «корпус» вместо двух склеенных разных по стилю половинок (iPhone и узкие Android) */
    border-radius: 14px;
    animation: none;
    border: 1px solid rgba(255, 255, 255, 0.11);
    background: linear-gradient(180deg, rgba(18, 19, 22, 0.96) 0%, rgba(8, 9, 11, 0.99) 100%);
    box-shadow:
      0 4px 22px rgba(0, 0, 0, 0.48),
      inset 0 1px 0 rgba(255, 255, 255, 0.06),
      0 0 0 1px rgba(0, 0, 0, 0.32);
  }

  /* На планшете в портрете не раздуваем «Написать в Telegram» */
  .site-header__cta-split-label--long {
    display: none !important;
  }

  .site-header__cta-split-label--short {
    display: inline !important;
  }

  .site-header__cta-split-tg {
    flex: 1 1 0;
    min-width: 0;
    justify-content: center;
    gap: 5px;
    padding: 0 8px;
    min-height: 0;
    height: 100%;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: rgba(232, 244, 255, 0.96);
    text-shadow: none;
    background: linear-gradient(180deg, rgba(24, 28, 36, 0.98) 0%, rgba(12, 14, 20, 1) 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.05),
      inset 0 2px 0 rgba(72, 156, 230, 0.22);
  }

  .site-header__cta-split-tg::before,
  .site-header__cta-split-tg::after {
    animation: none !important;
    opacity: 0 !important;
  }

  .site-header__cta-split-ico {
    animation: none !important;
    color: #6eb6ea;
    filter: none;
    flex-shrink: 0;
  }

  .site-header__cta-split-go.btn--primary {
    flex: 1 1 0;
    min-width: 0;
    justify-content: center;
    min-height: 0;
    height: 100%;
    padding: 8px 8px !important;
    font-size: 11.5px !important;
    letter-spacing: -0.02em;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.16),
      inset 0 2px 0 rgba(255, 160, 164, 0.18);
  }

  .site-header__cta-split-go.btn--primary::before {
    animation: none !important;
    opacity: 0 !important;
  }

  .site-header__cta-split-tg,
  .site-header__cta-split-go.btn--primary {
    -webkit-tap-highlight-color: transparent;
  }

  .site-header__burger {
    flex-shrink: 0;
  }
}

@media (max-width: 420px) {
  .site-header__cta-split {
    max-width: min(62vw, 280px);
  }

  .site-header .site-header__cta-split-label--short {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }

  .site-header__cta-split-tg {
    flex: 0 0 var(--touch-min);
    min-width: var(--touch-min);
    padding: 0 !important;
    justify-content: center;
  }
}


@media (max-width: 440px) {
  .site-header__brand .brand-wordmark {
    display: none;
  }

  .site-header__logo {
    max-width: min(44px, 13vw);
  }
}

@media (max-width: 360px) {
  .site-header__cta-split-tg,
  .site-header__cta-split-go.btn--primary {
    font-size: 11.5px !important;
    padding-inline: 6px !important;
  }

  .site-header__cta-split-ico {
    width: 18px;
    height: 18px;
  }
}

.site-header__backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(5, 5, 6, 0.62);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.site-header__backdrop.is-visible {
  display: block;
}

.site-header__sheet {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 97;
  padding-top: calc(env(safe-area-inset-top) + 64px);
  padding-bottom: max(20px, env(safe-area-inset-bottom));
  padding-inline: var(--gutter) var(--gutter-r);
  background: linear-gradient(180deg, rgba(12, 12, 13, 0.98) 0%, rgba(5, 5, 6, 0.99) 100%);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  max-height: min(85vh, 100dvh);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.site-header__sheet.is-open {
  display: block;
}

.site-header__sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  min-width: 0;
}

.site-header__sheet-brand {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
  padding: 0 0 4px 16px;
  min-width: 0;
  flex: 1 1 auto;
  text-decoration: none;
  color: inherit;
}

.site-header__sheet-close {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--touch-min);
  height: var(--touch-min);
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: linear-gradient(165deg, rgba(30, 32, 36, 0.95) 0%, rgba(12, 13, 15, 0.88) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 6px 20px rgba(0, 0, 0, 0.35);
  color: var(--text);
  cursor: pointer;
  transition:
    border-color var(--dur-micro) var(--ease-out),
    box-shadow var(--dur-soft) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .site-header__sheet-close:hover {
    border-color: rgba(233, 4, 8, 0.35);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 8px 26px rgba(0, 0, 0, 0.4),
      0 0 24px rgba(233, 4, 8, 0.12);
  }
}

.site-header__sheet-close-x {
  display: block;
  font-size: 26px;
  font-weight: 300;
  line-height: 1;
  margin-top: -2px;
}

.site-header__sheet-logo {
  display: block;
  height: 38px;
  width: auto;
  max-width: min(48px, 18vw);
  object-fit: contain;
  object-position: left center;
}

.site-header__sheet-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.site-header__sheet-nav a {
  display: flex;
  align-items: center;
  min-height: var(--touch-min);
  padding: 0 16px;
  border-radius: 14px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
  border: 1px solid transparent;
  transition:
    background-color var(--dur-soft) var(--ease-out),
    border-color var(--dur-soft) var(--ease-out),
    color var(--dur-micro) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .site-header__sheet-nav a:hover:not(.is-active) {
    background: rgba(233, 4, 8, 0.1);
    border-color: rgba(233, 4, 8, 0.24);
    color: rgba(252, 252, 253, 0.98);
  }

  .site-header__sheet-nav a.is-active:hover {
    background: rgba(233, 4, 8, 0.14);
    border-color: rgba(233, 4, 8, 0.34);
    box-shadow: 0 0 28px rgba(233, 4, 8, 0.12);
  }
}

.site-header__sheet-nav a:active {
  background: rgba(233, 4, 8, 0.12);
  border-color: rgba(233, 4, 8, 0.25);
}

@media (min-width: 900px) {
  /**
   * Шапка: сетка auto | minmax(0,1fr) | auto — средняя колонка может сжиматься ниже
   * суммарной ширины ссылок (иначе flex min-width:auto даёт наезд на CTA).
   */
  .site-header__inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    column-gap: clamp(12px, 2vw, 24px);
    row-gap: 10px;
    padding-block: 14px 16px;
  }

  .site-header__brand {
    justify-self: start;
    min-width: 0;
  }

  .site-header__actions {
    justify-self: end;
    min-width: 0;
    position: relative;
    z-index: 2;
  }

  .site-header__nav--desktop {
    display: block;
    justify-self: stretch;
    width: 100%;
    min-width: 0;
    max-width: none;
    margin-inline: 0;
    padding: 6px 7px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(26, 28, 32, 0.94) 0%, rgba(12, 14, 17, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.1),
      inset 0 -1px 0 rgba(0, 0, 0, 0.28),
      0 8px 36px rgba(0, 0, 0, 0.28),
      0 0 0 1px rgba(0, 0, 0, 0.35),
      0 0 40px rgba(233, 4, 8, 0.05);
  }

  .site-header__nav-track {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    justify-content: safe center;
    align-items: center;
    gap: 2px;
    min-width: 0;
    width: 100%;
    padding-block: 4px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .site-header__nav-track::-webkit-scrollbar {
    display: none;
  }

  .site-header__nav-pill {
    display: block;
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 0;
    width: 2.75rem;
    border-radius: 999px;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    background: linear-gradient(
      145deg,
      rgba(233, 4, 8, 0.34) 0%,
      rgba(233, 4, 8, 0.16) 42%,
      rgba(36, 14, 16, 0.78) 100%
    );
    box-shadow:
      inset 0 1px 0 rgba(255, 230, 232, 0.2),
      0 0 18px rgba(233, 4, 8, 0.18),
      0 0 0 1px rgba(255, 94, 98, 0.34);
    transform: translate3d(0, 0, 0);
    transition:
      transform 0.52s cubic-bezier(0.22, 0.95, 0.28, 1),
      width 0.52s cubic-bezier(0.22, 0.95, 0.28, 1),
      opacity 0.22s ease;
    will-change: transform, width;
  }

  @media (prefers-reduced-motion: reduce) {
    .site-header__nav-pill {
      transition-duration: 0.12s;
    }
  }

  .site-header__nav--desktop a {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    padding: 9px 12px;
    white-space: nowrap;
  }

  .site-header__nav--desktop a.is-active {
    background: transparent;
    box-shadow: none;
  }

  .site-header__burger {
    display: none;
  }

  .site-header__cta {
    padding: 12px 20px;
    font-size: 14px;
    min-height: var(--touch-min);
  }

  .site-header__cta-split-go.btn--primary {
    padding-left: 22px !important;
    padding-right: 22px !important;
    font-size: 14px !important;
  }

  .site-header__cta-split-tg {
    padding-left: 18px !important;
    padding-right: 17px !important;
    font-size: 13.5px !important;
  }

  .site-header__backdrop,
  .site-header__sheet {
    display: none !important;
  }
}

/* Средние десктопы: короче подписи и отступы — одна строка меню без переноса */
@media (min-width: 900px) and (max-width: 1280px) {
  .site-header__nav--desktop a {
    padding: 8px 9px;
    font-size: 13px;
  }

  .site-header__cta-split-label--long {
    display: none !important;
  }

  .site-header__cta-split-label--short {
    display: inline !important;
  }

  .site-header__cta-split-tg {
    padding-left: 12px !important;
    padding-right: 11px !important;
    font-size: 12.5px !important;
  }

  .site-header__cta-split-go.btn--primary {
    padding-left: 16px !important;
    padding-right: 16px !important;
    font-size: 13px !important;
  }
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.hero.section {
  padding-block: clamp(36px, 5.2vw, 72px);
}

.hero-intro .hero__depth {
  opacity: 0;
  animation: hero-intro-depth 1.38s var(--ease-smooth-in-out) forwards;
}

.hero-intro .hero-enter--badge {
  animation: hero-in-badge 1.2s var(--ease-spring-out) both;
}

.hero-intro .hero-enter--title {
  animation: hero-in-title 1.32s var(--ease-spring-out) both;
  animation-delay: 0.08s;
}

.hero-intro .hero-enter--lead {
  animation: hero-in-lead 1.24s var(--ease-spring-out) both;
  animation-delay: 0.18s;
}

.hero-intro .hero-enter--cta {
  animation: hero-in-cta 1.2s var(--ease-spring-out) both;
  animation-delay: 0.26s;
}

.hero-intro .hero-enter--meta {
  animation: hero-in-meta 1.22s var(--ease-spring-out) both;
  animation-delay: 0.34s;
}

.hero-intro .hero-enter--vis {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  animation: hero-in-vis 1.34s var(--ease-spring-out) both;
  animation-delay: 0.12s;
}

.hero-intro .hero-enter--cap {
  animation: hero-in-cap 1.12s var(--ease-spring-out) both;
  animation-delay: 0.42s;
}

.hero-intro .hero-enter--accent {
  position: relative;
  display: inline-block;
  padding-bottom: 0.06em;
  /* Не даём text-wrap: balance на h1 разорвать «под ключ» в «подключ» */
  white-space: nowrap;
  opacity: 0;
  transform: translate3d(0, 0.22em, 0);
  animation: hero-accent-word 0.84s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.38s;
}

.hero-intro .hero-enter--accent::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: max(2px, 0.07em);
  border-radius: 2px;
  background: linear-gradient(90deg, var(--red-bright) 0%, rgba(233, 4, 8, 0.5) 42%, transparent 100%);
  transform: scaleX(0);
  transform-origin: 0 50%;
  opacity: 0.92;
  pointer-events: none;
  animation: hero-accent-line 0.92s cubic-bezier(0.22, 1, 0.36, 1) 0.56s forwards;
}

.hero-intro .hero-enter--portrait-media {
  animation: hero-in-portrait-media 1.15s var(--ease-spring-out) both;
  animation-delay: 0.06s;
  transform-origin: 50% 50%;
}

@keyframes hero-intro-depth {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes hero-in-badge {
  from {
    opacity: 0;
    transform: translate3d(0, -12px, 0) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes hero-in-title {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes hero-in-lead {
  from {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
  }
}

@keyframes hero-in-cta {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
  }
}

@keyframes hero-in-meta {
  from {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
  }
}

@keyframes hero-in-vis {
  from {
    opacity: 0;
    transform: translate3d(20px, 12px, 0) scale(0.965);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}

@keyframes hero-in-cap {
  from {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
    filter: blur(5px);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
  }
}

@keyframes hero-accent-word {
  from {
    opacity: 0;
    transform: translate3d(0, 0.28em, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes hero-accent-line {
  0% {
    transform: scaleX(0);
    box-shadow: 0 0 0 rgba(255, 26, 31, 0);
  }
  72% {
    transform: scaleX(1);
    box-shadow: 0 0 14px rgba(255, 26, 31, 0.4);
  }
  100% {
    transform: scaleX(1);
    box-shadow: 0 0 6px rgba(255, 26, 31, 0.12);
  }
}

@keyframes hero-in-portrait-media {
  0% {
    opacity: 0;
    transform: scale(0.78) rotate(-11deg);
    filter: blur(14px);
  }
  58% {
    opacity: 1;
    filter: blur(0);
    transform: scale(1.04) rotate(2deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    filter: blur(0);
  }
}

.hero__depth {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__bloom {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  mix-blend-mode: screen;
  opacity: 0.38;
}

.hero__bloom--tl {
  width: min(520px, 78vw);
  height: min(420px, 48vh);
  top: -16%;
  left: -22%;
  background: radial-gradient(
    ellipse at 40% 40%,
    rgba(233, 4, 8, 0.52) 0%,
    rgba(233, 4, 8, 0.12) 45%,
    transparent 72%
  );
  animation: hero-bloom-a 38s var(--ease-smooth-in-out) infinite alternate;
}

.hero__bloom--mid {
  width: min(560px, 88vw);
  height: min(380px, 42vh);
  top: -8%;
  right: min(-8vw, -40px);
  background: radial-gradient(
    circle at 50% 48%,
    rgba(151, 2, 3, 0.35) 0%,
    rgba(233, 4, 8, 0.14) 40%,
    transparent 62%
  );
  animation: hero-bloom-b 48s var(--ease-smooth-in-out) infinite alternate;
}

.hero__bloom--br {
  width: min(480px, 70vw);
  height: min(440px, 50vh);
  bottom: -28%;
  right: -14%;
  background: radial-gradient(
    ellipse at 60% 50%,
    rgba(233, 4, 8, 0.28) 0%,
    rgba(96, 2, 3, 0.12) 48%,
    transparent 72%
  );
  animation: hero-bloom-a 56s var(--ease-smooth-in-out) infinite alternate-reverse;
}

.hero__grain {
  position: absolute;
  inset: -2px;
  opacity: 0.055;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='a'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23a)'/%3E%3C/svg%3E");
}

.hero__streak {
  pointer-events: none;
  position: absolute;
  z-index: 0;
  width: min(860px, 96vw);
  height: 1px;
  top: clamp(92px, 15vh, 150px);
  left: clamp(4%, calc(50% - 420px), 10%);
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 26, 31, 0.42) 22%,
    rgba(245, 247, 250, 0.18) 50%,
    rgba(233, 4, 8, 0.25) 78%,
    transparent 100%
  );
  filter: blur(0.6px);
  opacity: 0.52;
  animation: hero-streak-pulse 16s var(--ease-smooth-in-out) infinite alternate;
}

.hero__fog {
  pointer-events: none;
  position: absolute;
  inset: auto -14% -32%;
  z-index: 0;
  height: min(580px, 72vh);
  background: radial-gradient(ellipse at 52% -8%, rgba(12, 12, 13, 0.9) 15%, transparent 72%);
  animation: hero-fog-shift 32s var(--ease-smooth-in-out) infinite alternate;
}

.hero__particles {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__particles i {
  position: absolute;
  bottom: -6px;
  width: 2px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 240, 242, 0.95);
  box-shadow:
    0 0 5px rgba(233, 4, 8, 0.28),
    0 0 12px rgba(233, 4, 8, 0.1);
  animation: hero-particle-rise 22s linear infinite;
  opacity: 0;
}

.hero__particles i:nth-child(1) {
  left: 11%;
  animation-duration: 21s;
  animation-delay: -2s;
}

.hero__particles i:nth-child(2) {
  left: 24%;
  animation-duration: 26s;
  animation-delay: -6s;
}

.hero__particles i:nth-child(3) {
  left: 43%;
  animation-duration: 19s;
  animation-delay: -1s;
}

.hero__particles i:nth-child(4) {
  left: 61%;
  animation-duration: 24s;
  animation-delay: -9s;
}

.hero__particles i:nth-child(5) {
  left: 73%;
  animation-duration: 16s;
  animation-delay: -4s;
}

.hero__particles i:nth-child(6) {
  left: 87%;
  animation-duration: 27s;
  animation-delay: -11s;
}

.hero__particles i:nth-child(7) {
  left: 52%;
  animation-duration: 21s;
  animation-delay: -7s;
}

.hero__particles i:nth-child(8) {
  left: 34%;
  animation-duration: 20s;
  animation-delay: -12s;
}

.hero__rail {
  display: none;
}

.hero__copy {
  position: relative;
  z-index: 2;
  max-width: min(528px, 100%);
}

.hero__copy::before {
  content: '';
  position: absolute;
  left: max(-36px, -4vw);
  top: clamp(72px, 12vh, 120px);
  bottom: clamp(140px, 22vh, 220px);
  width: 1px;
  background: linear-gradient(
    185deg,
    transparent,
    rgba(233, 4, 8, 0.45) 32%,
    rgba(245, 247, 250, 0.1) 58%,
    transparent
  );
  opacity: 0.55;
  pointer-events: none;
}

.hero__title {
  margin: 10px 0 12px;
  font-size: clamp(25px, 3.5vw + 9px, 42px);
  font-weight: 800;
  letter-spacing: -0.048em;
  color: var(--text);
  line-height: 1.05;
  text-wrap: balance;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.45),
    0 20px 70px rgba(0, 0, 0, 0.35);
}

.hero__accent {
  color: var(--red-bright);
  text-shadow:
    0 0 28px rgba(233, 4, 8, 0.45),
    0 0 52px rgba(233, 4, 8, 0.18),
    0 1px 0 rgba(0, 0, 0, 0.35);
}

.badge--hero {
  gap: 10px;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: clamp(12px, 2.6vw, 13.5px);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(252, 252, 253, 0.98);
  border: 1px solid rgba(233, 4, 8, 0.38);
  background: linear-gradient(
    158deg,
    rgba(255, 64, 70, 0.08) 0%,
    rgba(22, 22, 26, 0.88) 38%,
    rgba(14, 14, 17, 0.92) 100%
  );
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.5),
    0 0 24px rgba(233, 4, 8, 0.22),
    0 0 1px rgba(255, 40, 45, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  max-width: 100%;
}

.badge__label {
  line-height: 1.35;
}

.badge--hero .badge__dot {
  width: 8px;
  height: 8px;
}

.badge__dot--live {
  flex-shrink: 0;
  box-shadow:
    0 0 0 2px rgba(233, 4, 8, 0.25),
    0 0 10px rgba(233, 4, 8, 0.95),
    0 0 20px rgba(233, 4, 8, 0.45);
  animation: hero-badge-live 2s ease-in-out infinite;
}

.hero .btn--primary {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: none;
  background-image: linear-gradient(
    105deg,
    #5e0104 0%,
    var(--red-dark) 14%,
    #ff1f24 38%,
    #ffb3b5 48%,
    var(--red-bright) 55%,
    #e90408 72%,
    #ff5860 88%,
    var(--red-dark) 100%
  );
  background-size: 340% 100%;
  background-position: 50% 50%;
  box-shadow:
    0 0 0 1px rgba(255, 160, 162, 0.42),
    0 0 18px rgba(233, 4, 8, 0.44),
    0 0 40px rgba(233, 4, 8, 0.22),
    0 10px 32px rgba(233, 4, 8, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    inset 0 -8px 20px rgba(80, 0, 4, 0.32);
  animation:
    hero-cta-bg-flow 7.5s ease-in-out infinite alternate,
    hero-cta-pulse-glow 2.75s ease-in-out infinite alternate;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.45),
    0 0 12px rgba(0, 0, 0, 0.25);
}

.hero .btn--primary::before {
  content: '';
  position: absolute;
  inset: -40%;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    ellipse 62% 88% at 32% -2%,
    rgba(255, 255, 255, 0.78) 0%,
    rgba(255, 255, 255, 0.22) 25%,
    transparent 56%
  );
  mix-blend-mode: overlay;
  opacity: 0.42;
  animation: hero-cta-light-drift 4.6s ease-in-out infinite alternate;
}

.hero .btn--primary::after {
  content: '';
  position: absolute;
  inset: -2px -48%;
  top: -60%;
  bottom: -60%;
  z-index: 1;
  background: linear-gradient(
    99deg,
    transparent 34%,
    rgba(255, 255, 255, 0.12) 44%,
    rgba(255, 255, 255, 0.95) 50%,
    rgba(255, 255, 255, 0.14) 56%,
    transparent 67%
  );
  transform: translateX(-138%) skewX(-16deg);
  animation: hero-cta-shine 1.85s cubic-bezier(0.33, 0.06, 0.2, 1) infinite;
  pointer-events: none;
  mix-blend-mode: color-dodge;
  opacity: 0.88;
}

.hero .btn--primary:hover {
  transform: translate3d(0, -2px, 0);
  box-shadow:
    0 0 0 1px rgba(255, 210, 211, 0.55),
    0 0 26px rgba(255, 120, 123, 0.52),
    0 0 52px rgba(233, 4, 8, 0.3),
    0 15px 40px rgba(233, 4, 8, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -8px 20px rgba(60, 0, 6, 0.3);
}

.hero .btn--primary:active {
  transform: translate3d(0, 1px, 0);
}

@keyframes hero-cta-bg-flow {
  0% {
    background-position: 4% 50%;
  }
  100% {
    background-position: 96% 50%;
  }
}

@keyframes hero-cta-pulse-glow {
  0% {
    filter:
      brightness(1.01)
      drop-shadow(0 0 8px rgba(255, 56, 60, 0.6))
      drop-shadow(0 0 22px rgba(233, 4, 8, 0.38));
  }
  100% {
    filter:
      brightness(1.07)
      drop-shadow(0 0 14px rgba(255, 120, 122, 0.68))
      drop-shadow(0 0 35px rgba(233, 4, 8, 0.5))
      drop-shadow(0 0 60px rgba(233, 4, 8, 0.18));
  }
}

@keyframes hero-cta-light-drift {
  0% {
    transform: translate(-14%, 22%) rotate(-5deg) scale(1.02);
    opacity: 0.22;
  }
  50% {
    transform: translate(10%, -12%) rotate(3deg) scale(1);
    opacity: 0.48;
  }
  100% {
    transform: translate(20%, 14%) rotate(6deg) scale(1.06);
    opacity: 0.26;
  }
}

@keyframes hero-bloom-a {
  0% {
    opacity: 0.32;
    transform: translate(-1%, 0) scale(1);
  }
  100% {
    opacity: 0.48;
    transform: translate(1.8%, -1.2%) scale(1.03);
  }
}

@keyframes hero-bloom-b {
  0% {
    opacity: 0.28;
    transform: translate(0, 1.5%) scale(1.012);
  }
  100% {
    opacity: 0.42;
    transform: translate(-2.2%, -1.2%) scale(1);
  }
}

@keyframes hero-streak-pulse {
  0% {
    opacity: 0.35;
    transform: translateY(0) scaleX(0.98);
    filter: blur(0.5px);
  }
  100% {
    opacity: 0.48;
    transform: translateY(1px) scaleX(1);
    filter: blur(0.75px);
  }
}

@keyframes hero-fog-shift {
  0% {
    opacity: 0.88;
    transform: translateY(0);
  }
  100% {
    opacity: 0.94;
    transform: translateY(-10px);
  }
}

@keyframes hero-particle-rise {
  0% {
    opacity: 0;
    transform: translateY(0) translateX(0);
  }
  8% {
    opacity: 0.42;
  }
  90% {
    opacity: 0.12;
  }
  100% {
    opacity: 0;
    transform: translateY(-105vh) translateX(min(28px, 6vw));
  }
}

@keyframes hero-badge-live {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.94);
    filter: brightness(0.7);
    box-shadow:
      0 0 0 1px rgba(233, 4, 8, 0.14),
      0 0 4px rgba(233, 4, 8, 0.28),
      0 0 10px rgba(233, 4, 8, 0.22);
  }
  50% {
    opacity: 1;
    transform: scale(1.02);
    filter: brightness(1.12);
    box-shadow:
      0 0 0 2px rgba(233, 4, 8, 0.32),
      0 0 12px rgba(233, 4, 8, 0.98),
      0 0 22px rgba(233, 4, 8, 0.52);
  }
}

@keyframes hero-cta-shine {
  0% {
    transform: translateX(-138%) skewX(-16deg);
  }
  100% {
    transform: translateX(138%) skewX(-16deg);
  }
}

@keyframes hero-hud-spin {
  to {
    transform: rotate(360deg);
  }
}

.hero__lead {
  margin: 0;
  font-size: clamp(13.5px, 0.3vw + 12.6px, 1rem);
  max-width: 44ch;
  line-height: 1.52;
}

.hero__cta-block {
  margin-top: 16px;
}

.hero__btn-row {
  gap: 11px;
  flex-wrap: wrap;
}

.hero__micro {
  margin-top: 10px;
  max-width: 48ch;
  font-size: 12.5px;
  line-height: 1.42;
}

.hero__meta {
  position: relative;
  z-index: 2;
  margin-top: 16px;
  padding: clamp(10px, 2.4vw, 14px) clamp(10px, 2.4vw, 14px);
  border-radius: 18px;
  background:
    linear-gradient(154deg, rgba(16, 18, 22, 0.92) 0%, rgba(8, 9, 12, 0.66) 48%, rgba(6, 6, 10, 0.82) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 0 0 1px rgba(233, 4, 8, 0.12),
    0 -1px 0 rgba(233, 4, 8, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 20px 56px rgba(0, 0, 0, 0.52),
    0 0 44px -18px rgba(233, 4, 8, 0.14);
  backdrop-filter: blur(22px);
}

.hero__facts {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(8px, 2.2vw, 12px);
}

.hero__facts li {
  margin: 0;
  padding: clamp(9px, 2vw, 11px);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    radial-gradient(120% 80% at 18% -20%, rgba(233, 4, 8, 0.14), transparent 55%),
    rgba(4, 4, 6, 0.62);
  font-size: 12.2px;
  line-height: 1.32;
  color: rgba(188, 192, 200, 0.98);
  transition:
    border-color var(--dur-soft) var(--ease-out),
    box-shadow var(--dur-soft) var(--ease-out);
}

.hero__facts li:hover {
  border-color: rgba(233, 4, 8, 0.22);
  box-shadow: inset 0 0 22px rgba(233, 4, 8, 0.06);
}

.hero__pipeline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  row-gap: 7px;
  margin: 10px 0 0;
  padding: 9px 12px 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 26, 31, 0.16);
  background: linear-gradient(165deg, rgba(233, 4, 8, 0.06) 0%, rgba(5, 5, 7, 0.55) 42%, rgba(4, 4, 6, 0.72) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  font-family: var(--font-head);
  font-size: 10.3px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(160, 165, 175, 0.98);
}

.hero__pipeline span:not(.hero__pipeline-sep) {
  color: rgba(215, 218, 226, 0.94);
}

.hero__pipeline [data-step] {
  animation: hero-flow-seq 14s ease-in-out infinite;
}

.hero__pipeline [data-step]:nth-child(3) {
  animation-delay: -2.85s;
}

.hero__pipeline [data-step]:nth-child(5) {
  animation-delay: -5.7s;
}

.hero__pipeline [data-step]:nth-child(7) {
  animation-delay: -8.55s;
}

.hero__pipeline [data-step]:nth-child(9) {
  animation-delay: -11.4s;
}

@keyframes hero-flow-seq {
  0%,
  100% {
    color: rgba(198, 202, 212, 0.88);
    text-shadow: none;
    transform: translateY(0);
  }
  50% {
    color: rgba(252, 253, 255, 0.98);
    text-shadow:
      0 0 14px rgba(233, 4, 8, 0.28),
      0 0 26px rgba(233, 4, 8, 0.12);
    transform: translateY(-1px);
  }
}

.hero__pipeline-sep {
  color: rgba(233, 4, 8, 0.48);
  font-weight: 800;
  opacity: 0.88;
  animation: hero-sep-twinkle 4.5s ease-in-out infinite alternate;
}

@keyframes hero-sep-twinkle {
  0% {
    opacity: 0.7;
    color: rgba(233, 4, 8, 0.42);
  }
  100% {
    opacity: 1;
    color: rgba(255, 45, 50, 0.85);
  }
}

.hero-vis {
  position: relative;
  z-index: 2;
  width: min(400px, 100%);
  margin-inline: auto;
  /* Без transition: transform — иначе при возврате наверх параллакс «догоняет» scrollY
     и блок визуально «падает» с большого смещения. Сдвиг задаётся только из JS (rAF). */
  will-change: transform;
}

@media (max-width: 900px) {
  .hero__copy::before {
    display: none;
  }

  .hero__facts {
    grid-template-columns: 1fr;
  }

  .hero__pipeline {
    justify-content: flex-start;
  }
}

@media (min-width: 901px) and (max-width: 1024px) {
  .hero__facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.hero-portrait {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(14px, 3.2vw, 22px);
  margin: 0;
  padding: 0;
}

.hero-portrait__media {
  position: relative;
  width: min(304px, 78vw);
  aspect-ratio: 1;
}

.hero-portrait__glow {
  pointer-events: none;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 124%;
  height: 124%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233, 4, 8, 0.24) 0%, rgba(151, 2, 3, 0.09) 42%, transparent 68%);
  filter: blur(5px);
  z-index: 0;
  animation: hero-portrait-glow 5s ease-in-out infinite alternate;
}

.hero-portrait__orbit--counter {
  pointer-events: none;
  position: absolute;
  inset: -13px;
  z-index: 0;
  border-radius: 50%;
  transform-origin: 50% 50%;
  opacity: 0.78;
  background: conic-gradient(
    from 55deg,
    transparent 48%,
    rgba(233, 4, 8, 0.26),
    rgba(255, 74, 78, 0.48),
    rgba(233, 4, 8, 0.18),
    transparent 94%
  );
  -webkit-mask: radial-gradient(closest-side, transparent calc(80% - 1px), #000 calc(80% + 3px));
  mask: radial-gradient(closest-side, transparent calc(80% - 1px), #000 calc(80% + 3px));
  animation: hero-portrait-orbit 36s linear infinite reverse;
}

.hero-portrait__orbit {
  pointer-events: none;
  position: absolute;
  inset: -8px;
  z-index: 0;
  border-radius: 50%;
  transform-origin: 50% 50%;
  opacity: 0.98;
  background: conic-gradient(
    from 0deg,
    transparent,
    transparent 52%,
    rgba(233, 4, 8, 0.34),
    rgba(255, 62, 66, 0.58),
    rgba(255, 120, 124, 0.32),
    rgba(233, 4, 8, 0.22),
    transparent 94%
  );
  -webkit-mask: radial-gradient(closest-side, transparent calc(86% - 2px), #000 calc(86% + 2px));
  mask: radial-gradient(closest-side, transparent calc(86% - 2px), #000 calc(86% + 2px));
  animation: hero-portrait-orbit 21s linear infinite;
}

.hero-portrait__sweep {
  pointer-events: none;
  position: absolute;
  inset: -8px;
  z-index: 2;
  border-radius: 50%;
  transform-origin: 50% 50%;
  background: conic-gradient(
    from 238deg,
    transparent 0deg,
    transparent 258deg,
    rgba(255, 94, 98, 1) 295deg,
    rgba(255, 210, 212, 0.65) 322deg,
    rgba(233, 4, 8, 0.5) 360deg
  );
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 3.8px), #000 calc(100% - 3.8px));
  mask: radial-gradient(closest-side, transparent calc(100% - 3.8px), #000 calc(100% - 3.8px));
  opacity: 0.94;
  filter: blur(0.35px);
  animation: hero-portrait-sweep 4.8s linear infinite;
}

.hero-portrait__frame {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 62, 66, 0.78);
  box-shadow:
    0 0 0 1px rgba(255, 210, 212, 0.14),
    0 0 40px rgba(233, 4, 8, 0.38),
    0 0 84px rgba(233, 4, 8, 0.22),
    0 24px 48px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(0, 0, 0, 0.4),
    inset 0 -38px 64px rgba(5, 2, 3, 0.35);
  background: rgba(5, 5, 6, 0.64);
  animation: hero-portrait-frame 12s var(--ease-smooth-in-out) infinite alternate;
}

.hero-portrait__hud {
  pointer-events: none;
  position: absolute;
  inset: -10%;
  z-index: 4;
  width: auto;
  height: auto;
  overflow: visible;
  color: rgba(233, 4, 8, 0.55);
  transform-origin: 50% 50%;
  animation: hero-hud-spin 96s linear infinite;
}

.hero-portrait__hud-ring {
  transform-origin: 50px 50px;
  stroke: rgba(255, 88, 92, 0.88);
  stroke-width: 0.62;
  filter: drop-shadow(0 0 5px rgba(233, 4, 8, 0.45));
  animation: hero-hud-wobble 12s var(--ease-smooth-in-out) infinite alternate;
}

@keyframes hero-hud-wobble {
  0% {
    opacity: 0.38;
  }
  100% {
    opacity: 0.62;
  }
}

@keyframes hero-portrait-glow {
  0% {
    opacity: 0.65;
    transform: translate(-50%, -50%) scale(1);
    filter: blur(5px);
  }
  100% {
    opacity: 0.88;
    transform: translate(-50%, -50%) scale(1.04);
    filter: blur(6px);
  }
}

@keyframes hero-portrait-frame {
  0% {
    transform: translateY(0);
    border-color: rgba(255, 56, 60, 0.62);
    box-shadow:
      0 0 0 1px rgba(255, 220, 222, 0.1),
      0 0 36px rgba(233, 4, 8, 0.28),
      0 0 68px rgba(233, 4, 8, 0.14),
      0 20px 40px rgba(0, 0, 0, 0.42),
      inset 0 0 0 1px rgba(0, 0, 0, 0.35);
  }
  100% {
    transform: translateY(-2px);
    border-color: rgba(255, 88, 92, 0.88);
    box-shadow:
      0 0 0 1px rgba(255, 230, 232, 0.16),
      0 0 52px rgba(233, 4, 8, 0.42),
      0 0 96px rgba(233, 4, 8, 0.2),
      0 24px 48px rgba(0, 0, 0, 0.5),
      inset 0 0 0 1px rgba(0, 0, 0, 0.36);
  }
}

@keyframes hero-portrait-orbit {
  to {
    transform: rotate(360deg);
  }
}

@keyframes hero-portrait-sweep {
  to {
    transform: rotate(360deg);
  }
}

.hero-portrait__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 46% 32%;
  display: block;
}

.hero-portrait__cap {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-top: 4px;
  text-align: center;
  max-width: 22em;
}

.hero-portrait__name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(18px, 3.6vw, 23px);
  letter-spacing: -0.03em;
  color: var(--text);
}

.hero-portrait__role {
  font-size: clamp(12.5px, 2.6vw, 14.75px);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(155, 157, 159, 0.95);
}

.hero-portrait__co {
  color: rgba(245, 247, 250, 0.88);
  font-weight: 700;
}

.hero-portrait__co-it {
  color: var(--red-bright);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 3.6vw, 28px);
  width: 100%;
}

.hero-shell {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2.8vh, 28px);
  width: 100%;
}

.hero-clients {
  width: 100%;
  min-width: 0;
}

.hero-clients__label {
  margin: 0 0 clamp(6px, 1.2vw, 10px);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(245, 247, 250, 0.38);
}

.hero-clients__link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition:
    color var(--dur-soft) var(--ease-out),
    border-color var(--dur-soft) var(--ease-out);
}

.hero-clients__link:hover {
  color: rgba(245, 247, 250, 0.58);
  border-bottom-color: rgba(233, 4, 8, 0.35);
}

.hero-clients__link:focus-visible {
  outline: 2px solid rgba(255, 26, 31, 0.85);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (min-width: 900px) {
  .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 1fr);
    gap: clamp(14px, 2.2vw, 28px);
    align-items: center;
  }

  .hero__copy {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }

  .hero__rail {
    display: block;
    grid-column: 1 / -1;
    grid-row: 1;
    position: absolute;
    top: clamp(72px, 11vh, 128px);
    bottom: clamp(48px, 10vh, 96px);
    left: calc(50% + clamp(10px, 1.5vw, 20px));
    width: 1px;
    margin-left: 0;
    background: linear-gradient(
      180deg,
      transparent 0%,
      rgba(233, 4, 8, 0.52) 16%,
      rgba(245, 247, 250, 0.12) 48%,
      rgba(233, 4, 8, 0.35) 78%,
      transparent 100%
    );
    box-shadow:
      0 0 18px rgba(233, 4, 8, 0.22),
      0 0 44px rgba(233, 4, 8, 0.08);
    opacity: 0.65;
    pointer-events: none;
    animation: hero-rail-breathe 11s var(--ease-smooth-in-out) infinite alternate;
  }

  .hero-vis {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    margin-inline: 0;
    width: 100%;
    max-width: min(360px, 34vw);
    justify-self: end;
    align-self: center;
  }

  .hero-portrait__media {
    width: min(316px, 30vw);
  }
}

@media (min-width: 900px) and (max-height: 860px) {
  .hero.section {
    padding-block: clamp(22px, 3.8vh, 44px);
  }

  .hero__title {
    font-size: clamp(24px, 2.8vw + 8px, 38px);
    line-height: 1.03;
  }

  .hero__lead {
    font-size: clamp(13px, 0.22vw + 12.3px, 15.5px);
  }

  .hero__meta {
    margin-top: 12px;
  }

  .hero-vis {
    max-width: min(330px, 30vw);
  }

  .hero-portrait__media {
    width: min(286px, 27vw);
  }
}

@keyframes hero-rail-breathe {
  0% {
    opacity: 0.45;
    filter: brightness(0.97);
    transform: scaleY(0.992);
    transform-origin: center top;
  }
  100% {
    opacity: 0.62;
    filter: brightness(1.03);
    transform: scaleY(1);
    transform-origin: center top;
  }
}

@media (max-width: 540px) {
  .hero .hero-vis {
    max-width: min(312px, 92vw);
  }

  .hero-portrait__media {
    width: min(276px, 82vw);
  }
}

/* —— «Как мы работаем»: шаговая дорожка, орбиты у иконок, акценты —— */
.pillar-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.pillar-section__ambient {
  pointer-events: none;
  position: absolute;
  inset: auto;
  left: max(-80px, -12vw);
  top: clamp(52px, 12vh, 120px);
  width: min(520px, 85vw);
  height: min(640px, 85vh);
  background: radial-gradient(
    ellipse 72% 64% at 28% 40%,
    rgba(233, 4, 8, 0.11) 0%,
    rgba(233, 4, 8, 0.04) 42%,
    transparent 72%
  );
  opacity: 0.95;
}

.pillar-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(16px, 3.8vw, 28px);
  margin-top: clamp(10px, 2vw, 18px);
}

@media (min-width: 992px) {
  .pillar-card:not(:first-child) .pillar-card__visual::before {
    content: '';
    position: absolute;
    right: 100%;
    top: 50%;
    translate: 0 -50%;
    margin-right: clamp(12px, 2vw, 22px);
    width: clamp(20px, 2.8vw, 38px);
    height: 2px;
    background: linear-gradient(90deg, rgba(233, 4, 8, 0.12), rgba(255, 62, 66, 0.68));
    box-shadow:
      0 0 10px rgba(233, 4, 8, 0.28),
      0 0 22px rgba(233, 4, 8, 0.08);
    border-radius: 2px;
    z-index: 0;
    pointer-events: none;
  }

}

.pillar-card {
  padding: clamp(20px, 5vw, 28px);
  min-height: 0;
  isolation: isolate;
  background:
    radial-gradient(ellipse 85% 90% at 8% -8%, rgba(233, 4, 8, 0.1), transparent 52%),
    linear-gradient(152deg, rgba(20, 22, 26, 0.92) 0%, rgba(12, 13, 16, 0.88) 48%, rgba(8, 9, 11, 0.9) 100%);
  transition:
    transform var(--dur-soft) var(--ease-out),
    border-color var(--dur-soft) var(--ease-out),
    box-shadow var(--dur-soft) var(--ease-out);
}

.glass-panel.pillar-card:hover {
  transform: translate3d(0, -4px, 0);
  border-color: rgba(255, 72, 76, 0.32);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 20px 64px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(233, 4, 8, 0.12),
    0 0 56px rgba(233, 4, 8, 0.1);
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 6%;
  right: 6%;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 74, 78, 0.35) 24%,
    rgba(233, 4, 8, 0.85) 50%,
    rgba(255, 74, 78, 0.35) 76%,
    transparent 100%
  );
  box-shadow:
    0 0 18px rgba(233, 4, 8, 0.35),
    0 0 36px rgba(233, 4, 8, 0.08);
  opacity: 0.95;
  pointer-events: none;
  animation: pillar-top-accent 14s ease-in-out infinite alternate;
}

.pillar-accent {
  color: var(--red-bright);
  text-shadow: 0 0 26px rgba(233, 4, 8, 0.32);
}

.pillar-card__mast {
  margin: 0;
  padding: 0;
  display: flex;
  gap: clamp(14px, 3.2vw, 20px);
  align-items: flex-start;
  border: none;
}

.pillar-card__visual {
  position: relative;
  flex: 0 0 auto;
  width: clamp(62px, 14vw, 72px);
  height: clamp(62px, 14vw, 72px);
  isolation: isolate;
}

.pillar-card__orbit {
  pointer-events: none;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 128%;
  height: 128%;
  border-radius: 50%;
  transform-origin: 50% 50%;
  background: conic-gradient(
    from 48deg,
    transparent 56%,
    rgba(233, 4, 8, 0.22),
    rgba(255, 96, 100, 0.62),
    rgba(255, 210, 212, 0.38),
    rgba(233, 4, 8, 0.24),
    transparent 93%
  );
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 3.4px), #000 calc(100% - 3.4px + 0.8px));
  mask: radial-gradient(closest-side, transparent calc(100% - 3.4px), #000 calc(100% - 3.4px + 0.8px));
  opacity: 0.93;
  z-index: 0;
  animation: pillar-orbit-spin-cw 17s linear infinite;
}

.pillar-card__orbit--ccw {
  width: 150%;
  height: 150%;
  opacity: 0.48;
  background: conic-gradient(
    from 120deg,
    transparent 62%,
    rgba(233, 4, 8, 0.12),
    rgba(255, 72, 76, 0.38),
    rgba(233, 4, 8, 0.1),
    transparent 93%
  );
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 4.5px), #000 calc(100% - 4.5px + 1px));
  mask: radial-gradient(closest-side, transparent calc(100% - 4.5px), #000 calc(100% - 4.5px + 1px));
  animation: pillar-orbit-spin-ccw 28s linear infinite;
}

.pillar-card .illus-slot--pillar {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 18px;
  border-width: 1px;
  border-color: rgba(255, 86, 90, 0.42);
  background:
    radial-gradient(circle at 32% 18%, rgba(255, 108, 112, 0.28), rgba(8, 9, 11, 0.94)),
    linear-gradient(160deg, rgba(22, 24, 28, 0.95), rgba(6, 7, 9, 0.98));
  color: rgba(255, 48, 52, 0.98);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 32px rgba(233, 4, 8, 0.22),
    0 10px 32px rgba(0, 0, 0, 0.45);
}

.glass-panel.pillar-card:hover .illus-slot--pillar {
  border-color: rgba(255, 110, 114, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 0 40px rgba(233, 4, 8, 0.32),
    0 12px 36px rgba(0, 0, 0, 0.48);
}

.pillar-card__mast-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.pillar-card__mast-copy h3 {
  margin: 0;
  font-size: clamp(17px, 3.9vw + 4px, 21px);
  font-weight: 800;
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.pillar-card__idx {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 5px 12px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 74, 78, 0.98);
  border: 1px solid rgba(233, 4, 8, 0.38);
  background: rgba(233, 4, 8, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 20px rgba(233, 4, 8, 0.08);
}

.pillar-card__divider {
  height: 1px;
  margin: clamp(14px, 3vw, 18px) 0 clamp(14px, 3vw, 18px);
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    rgba(233, 4, 8, 0.22) 0%,
    rgba(255, 255, 255, 0.06) 45%,
    rgba(233, 4, 8, 0.12) 100%
  );
  opacity: 0.95;
}

.pillar-card__body {
  margin: 0;
  font-size: 15px;
  line-height: 1.62;
  color: rgba(245, 247, 250, 0.74);
}

.pillar-card__gain {
  margin-top: clamp(16px, 3.2vw, 22px);
  padding: 14px 16px 14px;
  border-radius: 14px;
  border: 1px solid rgba(233, 4, 8, 0.14);
  background:
    radial-gradient(ellipse 120% 100% at 0% 0%, rgba(233, 4, 8, 0.1), transparent 55%),
    rgba(11, 12, 14, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 10px 28px rgba(0, 0, 0, 0.25);
  font-size: 14px !important;
  line-height: 1.52;
  color: rgba(245, 247, 250, 0.72);
}

.pillar-card__gain span {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

@keyframes pillar-top-accent {
  0% {
    opacity: 0.75;
    filter: saturate(1);
  }
  100% {
    opacity: 1;
    filter: saturate(1.15);
    box-shadow:
      0 0 22px rgba(233, 4, 8, 0.42),
      0 0 42px rgba(233, 4, 8, 0.12);
  }
}

@keyframes pillar-orbit-spin-cw {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes pillar-orbit-spin-ccw {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(-360deg);
  }
}

/* Утечки: компактная матрица — все 7 пунктов в одной панели */
.problem-section {
  position: relative;
}

.problem-section__glow {
  pointer-events: none;
  position: absolute;
  right: max(-72px, -10vw);
  top: clamp(40px, 10vh, 120px);
  width: min(480px, 70vw);
  height: min(560px, 75vh);
  background: radial-gradient(
    ellipse 70% 64% at 62% 35%,
    rgba(233, 4, 8, 0.09) 0%,
    rgba(233, 4, 8, 0.03) 48%,
    transparent 74%
  );
}

.problem-matrix {
  position: relative;
  z-index: 1;
  margin-top: clamp(12px, 2.4vw, 20px);
  max-width: min(1200px, 100%);
  margin-inline: auto;
}

.problem-matrix__panel {
  position: relative;
  border-radius: clamp(14px, 2.4vw, 20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 2px solid rgba(233, 4, 8, 0.52);
  background: linear-gradient(
    180deg,
    rgba(12, 14, 20, 0.98) 0%,
    rgba(8, 10, 14, 0.98) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 14px 40px rgba(0, 0, 0, 0.36);
  overflow: hidden;
}

.problem-matrix__panel::before {
  content: none;
}

.problem-matrix__list {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 1;
}

.problem-matrix__row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(12px, 3vw, 20px);
  align-items: start;
  padding: clamp(12px, 2.8vw, 16px) clamp(14px, 3.5vw, 22px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition:
    background-color var(--dur-soft) var(--ease-out),
    box-shadow var(--dur-soft) var(--ease-out),
    border-color var(--dur-soft) var(--ease-out);
}

.problem-matrix__row:hover {
  background: rgba(255, 255, 255, 0.015);
}

.problem-matrix__row--last {
  border-bottom: none;
}

.problem-matrix__meta {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  padding-top: 0;
}

.problem-matrix__idx {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.15em;
  color: rgba(255, 132, 136, 0.72);
  line-height: 1;
}

.problem-matrix__ico {
  display: none;
}

.problem-matrix__ico .icon {
  width: 14px;
  height: 14px;
}

.problem-matrix__copy {
  min-width: 0;
}

.problem-matrix__title {
  margin: 0 0 6px;
  font-size: clamp(16px, 1.35vw + 11px, 20px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.22;
  color: var(--text);
}

.problem-matrix__detail {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
  align-items: start;
  font-size: clamp(12.5px, 1.1vw + 10px, 14px);
  line-height: 1.46;
  color: rgba(245, 247, 250, 0.68);
}

.problem-matrix__pain {
  display: block;
  color: rgba(245, 247, 250, 0.72);
}

.problem-matrix__gap {
  display: none;
}

.problem-matrix__need {
  display: block;
  color: rgba(245, 247, 250, 0.86);
  border-left: none;
  padding-left: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 6px;
}

.problem-matrix__need-k {
  display: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.72em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 140, 144, 0.88);
  margin-right: 0.35em;
  padding: 0;
  border: 0;
  background: none;
}

@media (max-width: 719px) {
  #problems.section {
    padding-block: clamp(26px, 6.5vw, 52px);
  }

  #problems .section__label {
    margin-bottom: 10px;
  }

  #problems .section__title {
    margin-bottom: 10px;
    font-size: clamp(17px, 4.6vw + 5px, 24px);
    line-height: 1.14;
  }

  #problems .section__subtitle {
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.48;
  }

  .problem-matrix {
    margin-top: 4px;
  }

  .problem-matrix__panel {
    border-radius: 12px;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.05),
      0 10px 32px rgba(0, 0, 0, 0.38),
      0 0 0 1px rgba(0, 0, 0, 0.45);
  }

  .problem-matrix__row {
    gap: 9px;
    padding: 9px 10px;
    align-items: center;
  }

  /* Одна линия: номер + иконка — меньше высоты левой колонки, чем столбик */
  .problem-matrix__meta {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    padding-top: 0;
  }

  .problem-matrix__idx {
    font-size: 10px;
    letter-spacing: 0.1em;
  }

  .problem-matrix__ico {
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
  }

  .problem-matrix__ico .icon {
    width: 15px;
    height: 15px;
  }

  .problem-matrix__title {
    margin: 0 0 4px;
    font-size: clamp(13.5px, 3.5vw, 16px);
    line-height: 1.2;
  }

  .problem-matrix__detail {
    grid-template-columns: 1fr;
    gap: 5px;
    font-size: 12px;
    line-height: 1.38;
  }

  .problem-matrix__need {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-left: 0;
    padding-top: 5px;
  }

  .problem-matrix__need-k {
    font-size: 0.7em;
    letter-spacing: 0.06em;
  }
}

@media (max-width: 520px) {
  .problem-matrix__row {
    padding: 6px 8px;
    gap: 8px;
  }

  .problem-matrix__detail {
    gap: 4px;
  }

  .problem-matrix__gap {
    display: none;
  }

  .problem-matrix__pain {
    display: block;
  }

  .problem-matrix__need {
    display: block;
  }

  .problem-matrix__need-k {
    display: inline;
    margin-right: 0.25em;
  }
}

@media (min-width: 720px) {
  .problem-matrix__row {
    grid-template-columns: minmax(72px, 88px) minmax(0, 1fr);
    padding-block: clamp(14px, 1.8vw, 17px);
  }

  .problem-matrix__meta {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding-top: 4px;
  }

  .problem-matrix__detail {
    line-height: 1.52;
  }
}

/* Desktop compact mode: fit section into one screen */
@media (min-width: 1100px) {
  #problems.section {
    padding-block: clamp(36px, 4.4vw, 64px);
  }

  #problems .section__label {
    margin-bottom: 8px;
  }

  #problems .section__title {
    margin-bottom: 8px;
    font-size: clamp(34px, 3vw, 52px);
    line-height: 1.06;
    max-width: 20ch;
  }

  #problems .section__subtitle {
    margin-bottom: 10px;
    max-width: 66ch;
    font-size: clamp(14px, 1.05vw, 18px);
    line-height: 1.38;
  }

  .problem-matrix {
    margin-top: 8px;
    max-width: 1200px;
  }

  .problem-matrix__panel {
    border-radius: 16px;
  }

  .problem-matrix__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 8px;
  }

  .problem-matrix__row,
  .problem-matrix__row--last {
    border-bottom: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 10px 11px;
    gap: 10px;
    grid-template-columns: minmax(58px, 70px) minmax(0, 1fr);
    background: rgba(10, 12, 17, 0.82);
  }

  .problem-matrix__meta {
    gap: 7px;
    padding-top: 0;
  }

  .problem-matrix__idx {
    font-size: 9px;
    letter-spacing: 0.12em;
  }

  .problem-matrix__ico {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
  }

  .problem-matrix__ico .icon {
    width: 15px;
    height: 15px;
  }

  .problem-matrix__title {
    margin-bottom: 4px;
    font-size: clamp(14px, 1.2vw, 18px);
    line-height: 1.15;
  }

  .problem-matrix__detail {
    gap: 4px;
    font-size: clamp(11.5px, 0.84vw, 13px);
    line-height: 1.33;
  }

  .problem-matrix__pain,
  .problem-matrix__need {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .problem-matrix__need {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    padding-left: 0;
    padding-top: 4px;
  }

  .problem-matrix__need-k {
    font-size: 0.66em;
    letter-spacing: 0.06em;
  }
}

.bg-deep .illus-slot--problem {
  border-color: rgba(255, 92, 96, 0.28);
  background: radial-gradient(circle at 30% 20%, rgba(233, 4, 8, 0.16), rgba(9, 9, 11, 0.95));
  color: rgba(255, 70, 74, 0.95);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 0 18px rgba(233, 4, 8, 0.12);
}

/* Problems block: card-grid format */
.problem-matrix--cards .problem-matrix__panel {
  border-left-width: 0;
  border-color: rgba(255, 255, 255, 0.14);
  border-radius: clamp(16px, 2.2vw, 22px);
  padding: clamp(8px, 1vw, 12px);
  background:
    radial-gradient(ellipse 120% 80% at 50% -18%, rgba(233, 4, 8, 0.14), transparent 58%),
    linear-gradient(180deg, rgba(12, 14, 20, 0.98), rgba(8, 10, 14, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 20px 56px rgba(0, 0, 0, 0.42);
}

.problem-matrix--cards .problem-matrix__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(7px, 0.85vw, 10px);
}

.problem-matrix--cards .problem-matrix__row,
.problem-matrix--cards .problem-matrix__row--last {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: linear-gradient(170deg, rgba(14, 17, 24, 0.96), rgba(9, 11, 16, 0.96));
  padding: clamp(10px, 1vw, 14px);
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 9px;
  min-height: 142px;
  transition:
    transform var(--dur-soft) var(--ease-out),
    border-color var(--dur-soft) var(--ease-out),
    box-shadow var(--dur-soft) var(--ease-out);
}

.problem-matrix--cards .problem-matrix__row::before,
.problem-matrix--cards .problem-matrix__row--last::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  border-radius: 14px 14px 0 0;
  background: linear-gradient(90deg, rgba(255, 90, 94, 0), rgba(255, 90, 94, 0.75), rgba(255, 90, 94, 0));
  opacity: 0.7;
}

@media (hover: hover) and (pointer: fine) {
  .problem-matrix--cards .problem-matrix__row:hover,
  .problem-matrix--cards .problem-matrix__row--last:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 106, 110, 0.4);
    box-shadow:
      0 18px 36px rgba(0, 0, 0, 0.34),
      0 0 28px rgba(233, 4, 8, 0.08);
  }
}

.problem-matrix--cards .problem-matrix__meta {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.problem-matrix--cards .problem-matrix__idx {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(255, 128, 132, 0.95);
}

.problem-matrix--cards .problem-matrix__ico {
  display: inline-grid;
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  opacity: 1;
  border-radius: 0;
  clip-path: polygon(25% 5%, 75% 5%, 95% 50%, 75% 95%, 25% 95%, 5% 50%);
  border: 1px solid rgba(255, 98, 102, 0.35);
  background: linear-gradient(145deg, rgba(36, 16, 20, 0.95), rgba(10, 11, 15, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.problem-matrix--cards .problem-matrix__ico .icon {
  width: 15px;
  height: 15px;
}

.problem-matrix--cards .problem-matrix__copy {
  display: grid;
  gap: 6px;
}

.problem-matrix--cards .problem-matrix__title {
  margin-bottom: 0;
  font-size: clamp(15px, 0.3vw + 11px, 18px);
  line-height: 1.12;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.problem-matrix--cards .problem-matrix__detail {
  gap: 4px;
  font-size: clamp(11.5px, 0.15vw + 9px, 12.5px);
  line-height: 1.3;
}

.problem-matrix--cards .problem-matrix__pain {
  color: rgba(235, 239, 246, 0.82);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.problem-matrix--cards .problem-matrix__need {
  color: rgba(248, 192, 194, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 5px;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.problem-matrix--cards .problem-matrix__arrow {
  justify-self: end;
  align-self: end;
  color: rgba(255, 84, 88, 0.95);
  font-size: 17px;
  line-height: 1;
  margin-top: -2px;
  opacity: 0.92;
}

.problem-matrix--cards #leak-step-01,
.problem-matrix--cards #leak-step-02,
.problem-matrix--cards #leak-step-03,
.problem-matrix--cards #leak-step-04 {
  grid-column: span 1;
}

.problem-matrix--cards #leak-step-05,
.problem-matrix--cards #leak-step-06,
.problem-matrix--cards #leak-step-07 {
  grid-column: span 1;
}

@media (max-width: 1200px) {
  .problem-matrix--cards .problem-matrix__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .problem-matrix--cards .problem-matrix__row,
  .problem-matrix--cards .problem-matrix__row--last {
    min-height: 0;
  }
}

@media (max-width: 760px) {
  .problem-matrix--cards .problem-matrix__panel {
    padding: 8px;
  }

  .problem-matrix--cards .problem-matrix__list {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .problem-matrix--cards .problem-matrix__row,
  .problem-matrix--cards .problem-matrix__row--last {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 8px;
    padding: 10px;
    min-height: 0;
  }

  .problem-matrix--cards .problem-matrix__ico {
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
  }

  .problem-matrix--cards .problem-matrix__title {
    font-size: 16px;
    -webkit-line-clamp: unset;
  }

  .problem-matrix--cards .problem-matrix__detail {
    font-size: 12.5px;
  }

  .problem-matrix--cards .problem-matrix__pain,
  .problem-matrix--cards .problem-matrix__need {
    -webkit-line-clamp: unset;
  }
}

/* Problems block: бенто-сетка, стекло, акцентная полоса */
.problem-matrix--clean .problem-matrix__panel,
.problem-matrix__panel--rift {
  border-left-width: 0;
  position: relative;
  padding: clamp(14px, 2vw, 22px);
  border-radius: clamp(18px, 2.6vw, 26px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    radial-gradient(ellipse 88% 52% at 50% -8%, rgba(233, 4, 8, 0.14), transparent 56%),
    linear-gradient(168deg, rgba(18, 20, 28, 0.52) 0%, rgba(7, 9, 13, 0.88) 100%);
  backdrop-filter: blur(20px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 28px 72px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(0, 0, 0, 0.38);
}

.problem-matrix__panel--rift::before {
  content: '';
  pointer-events: none;
  position: absolute;
  z-index: 0;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(ellipse 55% 42% at 12% 92%, rgba(233, 4, 8, 0.07), transparent 58%),
    radial-gradient(ellipse 48% 38% at 94% 8%, rgba(255, 45, 52, 0.06), transparent 52%);
  mix-blend-mode: screen;
  opacity: 0.9;
}

.problem-clean-grid--bento {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
}

.problem-clean-card--n1 {
  grid-column: span 4;
}

.problem-clean-card--n2 {
  grid-column: span 4;
}

.problem-clean-card--n3 {
  grid-column: span 4;
}

.problem-clean-card--n4 {
  grid-column: span 6;
}

.problem-clean-card--n5 {
  grid-column: span 6;
}

.problem-clean-card--n6 {
  grid-column: span 4;
}

.problem-clean-card--n7 {
  grid-column: span 8;
}

.problem-clean-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.4vw, 14px);
  min-height: 0;
  padding: clamp(16px, 2vw, 22px);
  border-radius: clamp(16px, 2.2vw, 22px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    radial-gradient(130% 85% at 10% -15%, rgba(233, 4, 8, 0.12), transparent 46%),
    linear-gradient(168deg, rgba(14, 16, 22, 0.82) 0%, rgba(8, 10, 14, 0.94) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 14px 44px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  transition:
    transform var(--dur-soft) var(--ease-out),
    border-color var(--dur-soft) var(--ease-out),
    box-shadow var(--dur-soft) var(--ease-out);
}

.problem-clean-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 22px 22px 0 0;
  background: linear-gradient(
    90deg,
    rgba(233, 4, 8, 0.15) 0%,
    rgba(255, 72, 78, 0.95) 42%,
    rgba(233, 4, 8, 0.35) 100%
  );
  opacity: 0.92;
}

.problem-clean-card::after {
  content: '';
  pointer-events: none;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  z-index: 0;
  background: radial-gradient(ellipse 90% 55% at 92% 8%, rgba(233, 4, 8, 0.14), transparent 52%);
  transition: opacity var(--dur-soft) var(--ease-out);
}

.problem-clean-card > * {
  position: relative;
  z-index: 1;
}

@media (hover: hover) and (pointer: fine) {
  .problem-clean-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 110, 114, 0.38);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.09),
      0 22px 56px rgba(0, 0, 0, 0.42),
      0 0 36px rgba(233, 4, 8, 0.1);
  }

  .problem-clean-card:hover::after {
    opacity: 1;
  }
}

.problem-clean-card--capstone {
  border-color: rgba(233, 4, 8, 0.22);
  background:
    radial-gradient(120% 70% at 18% -10%, rgba(233, 4, 8, 0.18), transparent 48%),
    radial-gradient(90% 50% at 100% 50%, rgba(233, 4, 8, 0.08), transparent 55%),
    linear-gradient(168deg, rgba(18, 12, 16, 0.88) 0%, rgba(8, 9, 13, 0.96) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 56px rgba(0, 0, 0, 0.45),
    0 0 48px rgba(233, 4, 8, 0.12);
}

.problem-clean-card--capstone::before {
  height: 4px;
  background: linear-gradient(
    90deg,
    rgba(233, 4, 8, 0.45) 0%,
    rgba(255, 90, 96, 1) 38%,
    rgba(233, 4, 8, 0.55) 100%
  );
  box-shadow: 0 0 24px rgba(233, 4, 8, 0.45);
}

.problem-clean-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.problem-clean-card__num {
  margin: 0;
  flex-shrink: 0;
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: rgba(255, 176, 180, 0.98);
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(233, 4, 8, 0.35);
  background: rgba(233, 4, 8, 0.14);
  line-height: 1;
}

.problem-clean-card__icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: linear-gradient(148deg, rgba(233, 4, 8, 0.22), rgba(10, 11, 15, 0.92));
  color: rgba(255, 140, 144, 0.98);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 8px 22px rgba(0, 0, 0, 0.28);
}

.problem-clean-card__icon .icon {
  display: block;
}

.problem-clean-card h3 {
  margin: 0;
  font-size: clamp(17px, 0.38vw + 14px, 22px);
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: #fff;
}

.problem-clean-card__pain {
  margin: 0;
  color: rgba(228, 234, 244, 0.86);
  font-size: clamp(13px, 0.28vw + 11px, 15px);
  line-height: 1.45;
}

.problem-clean-card__system {
  margin-top: auto;
  padding-top: clamp(10px, 1.5vw, 14px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 6px;
}

.problem-clean-card__system-label {
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 112, 118, 0.88);
}

.problem-clean-card__need {
  margin: 0;
  color: rgba(240, 244, 252, 0.94);
  font-size: clamp(12.5px, 0.22vw + 11px, 14.5px);
  line-height: 1.42;
}

@media (max-width: 1099px) {
  .problem-clean-grid--bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .problem-clean-card--n1,
  .problem-clean-card--n2,
  .problem-clean-card--n3,
  .problem-clean-card--n4,
  .problem-clean-card--n5,
  .problem-clean-card--n6,
  .problem-clean-card--n7 {
    grid-column: span 1;
  }

  .problem-clean-card--n7 {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .problem-clean-grid--bento {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .problem-clean-card--n1,
  .problem-clean-card--n2,
  .problem-clean-card--n3,
  .problem-clean-card--n4,
  .problem-clean-card--n5,
  .problem-clean-card--n6,
  .problem-clean-card--n7 {
    grid-column: 1 / -1;
  }

  .problem-clean-card__icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }
}

/* Узкие экраны: карточки отдельно, без «одной простыни» внешней панели */
@media (max-width: 699px) {
  #problems.section {
    padding-block: clamp(30px, 8vw, 52px);
  }

  #problems .section__title {
    margin-bottom: 12px;
    font-size: clamp(18px, 5vw + 5px, 24px);
    line-height: 1.12;
  }

  #problems .section__subtitle {
    margin-bottom: 18px;
    font-size: 15px;
    line-height: 1.55;
  }

  .problem-matrix--clean {
    margin-top: 6px;
  }

  .problem-matrix--clean .problem-matrix__panel,
  .problem-matrix__panel--rift {
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .problem-matrix__panel--rift::before {
    display: none;
  }

  .problem-clean-card {
    padding: 18px 16px 17px;
    gap: 12px;
    border-radius: 18px;
    border-color: rgba(255, 255, 255, 0.11);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.06),
      0 12px 40px rgba(0, 0, 0, 0.44);
  }

  .problem-clean-card__head {
    gap: 10px;
  }

  .problem-clean-card__num {
    font-size: 11px;
    letter-spacing: 0.12em;
    padding: 7px 12px;
  }

  .problem-clean-card h3 {
    font-size: clamp(16px, 4.1vw, 18px);
    line-height: 1.24;
  }

  .problem-clean-card__pain {
    font-size: 14px;
    line-height: 1.52;
    color: rgba(232, 238, 248, 0.9);
  }

  .problem-clean-card__system {
    margin-top: 8px;
    padding: 13px 14px 14px;
    border-radius: 14px;
    border: 1px solid rgba(233, 4, 8, 0.26);
    background: linear-gradient(165deg, rgba(233, 4, 8, 0.1) 0%, rgba(10, 11, 15, 0.92) 100%);
    gap: 7px;
  }

  .problem-clean-card__system-label {
    font-size: 9px;
    letter-spacing: 0.12em;
  }

  .problem-clean-card__need {
    font-size: 13.5px;
    line-height: 1.5;
    padding-left: 12px;
    border-left: 3px solid rgba(233, 4, 8, 0.5);
  }
}

@media (prefers-reduced-motion: reduce) {
  .problem-clean-card,
  .problem-clean-card::after {
    transition: none;
  }

  .problem-clean-card:hover {
    transform: none;
  }
}

.bg-deep {
  position: relative;
  background: var(--bg-deep);
  overflow: hidden;
}

.bg-deep::before {
  content: '';
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 55% 42% at 92% -8%, rgba(233, 4, 8, 0.1), transparent 52%),
    radial-gradient(ellipse 48% 38% at 4% 102%, rgba(151, 2, 3, 0.09), transparent 48%),
    linear-gradient(180deg, rgba(255, 26, 31, 0.03) 0%, transparent 22%, transparent 78%, rgba(0, 0, 0, 0.22) 100%);
  opacity: 0.95;
}

.bg-deep > .wrap {
  position: relative;
  z-index: 1;
}

.rec {
  display: grid;
  gap: 28px;
  align-items: start;
}

.rec__copy {
  min-width: 0;
}

@media (max-width: 979px) {
  .rec__panel {
    order: -1;
  }
}

@media (min-width: 980px) {
  .rec {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr);
    gap: clamp(32px, 4vw, 52px);
    align-items: stretch;
  }
}

.rec__panel {
  padding: clamp(22px, 6vw, 28px);
  border-radius: clamp(18px, 4vw, var(--radius-xl));
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.rec__panel-eyebrow {
  margin-bottom: 14px;
  color: rgba(245, 247, 250, 0.55);
}

.rec__panel h3 {
  margin: clamp(20px, 4vw, 28px) 0 12px;
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
}

.rec__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 0.2em;
  vertical-align: baseline;
}

.rec__brand-logo {
  display: block;
  width: 22px;
  height: auto;
  max-height: 26px;
  aspect-ratio: 819 / 925;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
  transform: translateY(1px);
  filter: drop-shadow(0 2px 8px rgba(233, 4, 8, 0.22));
}

.rec__brand-wordmark {
  font-size: clamp(20px, 1.4vw, 24px);
  line-height: 0.95;
}

.rec__checks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.rec__checks li {
  position: relative;
  padding-left: 36px;
  color: rgba(245, 247, 250, 0.86);
  font-size: 15px;
  line-height: 1.55;
}

.rec__checks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 20px;
  height: 2px;
  background: linear-gradient(90deg, var(--red), rgba(245, 247, 250, 0.12));
  border-radius: 99px;
}

.rec__ribbon {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 247, 250, 0.68);
}

.rec__panel > .rec__ribbon {
  margin-top: auto;
}

/* Департамент: тезис и сравнение «рынок / REDIT» (акцентный блок команды — секция #mdir ниже) */
.dept-hub {
  margin-bottom: clamp(28px, 5vw, 52px);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(
    156deg,
    rgba(26, 28, 32, 0.97) 0%,
    rgba(13, 14, 17, 0.98) 48%,
    rgba(8, 9, 11, 0.99) 100%
  );
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.5),
    0 22px 64px rgba(0, 0, 0, 0.44),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.dept-hub__mast {
  padding: clamp(28px, 5vw, 40px) clamp(26px, 5vw, 42px) clamp(22px, 4vw, 30px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.065);
  background:
    radial-gradient(ellipse 88% 120% at 12% -20%, rgba(233, 4, 8, 0.08), transparent 52%),
    linear-gradient(180deg, rgba(18, 20, 24, 0.35), transparent 96%);
}

.dept-hub__mast-top {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 18px);
  margin-bottom: clamp(12px, 2.8vw, 18px);
}

.dept-hub__mast-ico {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: clamp(46px, 12vw, 54px);
  height: clamp(46px, 12vw, 54px);
  border-radius: 16px;
  border: 1px solid rgba(233, 4, 8, 0.32);
  background:
    radial-gradient(circle at 32% 22%, rgba(233, 4, 8, 0.28) 0%, transparent 62%),
    linear-gradient(155deg, rgba(28, 30, 34, 0.98) 0%, rgba(10, 11, 14, 0.96) 100%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.45),
    0 10px 36px rgba(233, 4, 8, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  color: rgba(252, 252, 253, 0.94);
}

.dept-hub__mast-top .dept-hub__label {
  margin-bottom: 0;
}

.dept-hub__mast-cta {
  margin-top: clamp(18px, 4vw, 24px);
  justify-content: flex-start;
}

.dept-hub__mast-cta .btn {
  min-height: var(--touch-min);
}

.dept-hub__label {
  margin-bottom: 14px;
}

.dept-hub__hero-title {
  margin-bottom: clamp(14px, 3vw, 18px);
  text-wrap: balance;
}

.dept-hub__pitch {
  margin: 0 0 clamp(20px, 3.8vw, 28px);
  max-width: 66ch;
  font-size: clamp(15px, 0.55rem + 1vw, 17px);
  line-height: 1.58;
  color: rgba(245, 247, 250, 0.78);
}

.dept-hub__pitch strong {
  color: rgba(245, 247, 250, 0.96);
  font-weight: 700;
}

.dept-hub__bridge {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(12px, 3.2vw, 16px);
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.dept-hub__bridge-col {
  min-width: 0;
}

/* Мобилка: две отдельные «карточки» + явный VS — без коробки в коробке */
.dept-hub__bridge-col--market {
  padding: clamp(16px, 4vw, 20px) clamp(16px, 4.2vw, 22px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(160deg, rgba(32, 34, 40, 0.55) 0%, rgba(12, 13, 16, 0.92) 100%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 14px 40px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.dept-hub__bridge-stat {
  margin: 0 0 10px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(30px, 9.2vw, 44px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  color: rgba(252, 252, 253, 0.98);
}

.dept-hub__bridge-stat strong {
  font-weight: 800;
  color: inherit;
}

.dept-hub__bridge-stat-unit {
  margin-left: 0.12em;
  font-size: 0.38em;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(245, 247, 250, 0.45);
  vertical-align: super;
}

.dept-hub__bridge-t--muted {
  font-size: clamp(13.5px, 0.42rem + 0.95vw, 15px);
  line-height: 1.5;
  color: rgba(245, 247, 250, 0.62);
}

.dept-hub__bridge-gap {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 2px 0;
}

.dept-hub__bridge-gap-ln {
  flex: 1 1 auto;
  height: 1px;
  min-height: 1px;
  border-radius: 99px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 22%,
    rgba(233, 4, 8, 0.35) 50%,
    rgba(255, 255, 255, 0.08) 78%,
    transparent 100%
  );
}

.dept-hub__bridge-gap-txt {
  flex-shrink: 0;
  padding: 7px 14px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 180, 182, 0.98);
  border: 1px solid rgba(233, 4, 8, 0.45);
  background: linear-gradient(165deg, rgba(26, 8, 10, 0.95) 0%, rgba(8, 6, 7, 0.92) 100%);
  box-shadow:
    0 0 24px rgba(233, 4, 8, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.dept-hub__bridge-col--redit {
  position: relative;
  padding: clamp(16px, 4vw, 20px) clamp(16px, 4.2vw, 22px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(233, 4, 8, 0.28);
  background: linear-gradient(
    135deg,
    rgba(233, 4, 8, 0.12) 0%,
    rgba(14, 15, 18, 0.94) 42%,
    rgba(8, 9, 11, 0.98) 100%
  );
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.42),
    0 16px 48px rgba(233, 4, 8, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.dept-hub__brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  padding: 6px 10px 6px 6px;
  border-radius: 12px;
  border: 1px solid rgba(233, 4, 8, 0.24);
  background: linear-gradient(150deg, rgba(14, 15, 19, 0.9) 0%, rgba(7, 8, 11, 0.92) 100%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 8px 22px rgba(233, 4, 8, 0.12);
}

.dept-hub__brand-logo {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(233, 4, 8, 0.22));
}

.dept-hub__brand-wordmark {
  font-size: clamp(18px, 0.8rem + 0.9vw, 22px);
  letter-spacing: 0;
}

@media (min-width: 720px) {
  .dept-hub__bridge {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: stretch;
    gap: clamp(18px, 3vw, 26px);
    padding: clamp(16px, 3.8vw, 22px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: linear-gradient(145deg, rgba(10, 11, 14, 0.92), rgba(5, 6, 8, 0.96));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  }

  .dept-hub__bridge-col--market {
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .dept-hub__bridge-stat {
    font-size: clamp(26px, 2.2vw + 1rem, 38px);
    margin-bottom: clamp(8px, 1.5vw, 12px);
  }

  .dept-hub__bridge-t--muted {
    font-size: clamp(13.75px, 0.41rem + 1vw, 15px);
    line-height: 1.56;
    color: rgba(245, 247, 250, 0.82);
  }

  .dept-hub__bridge-gap {
    flex-direction: column;
    justify-content: center;
    width: 28px;
    flex-shrink: 0;
    padding: 6px 0;
    gap: 0;
    align-self: stretch;
  }

  .dept-hub__bridge-gap-ln {
    flex: 1 1 auto;
    width: 1px;
    height: auto;
    min-height: 28px;
    margin: 0 auto;
    background: linear-gradient(
      180deg,
      transparent 0%,
      rgba(233, 4, 8, 0.42) 24%,
      rgba(245, 247, 250, 0.12) 50%,
      rgba(233, 4, 8, 0.38) 76%,
      transparent 100%
    );
  }

  .dept-hub__bridge-col--redit {
    padding: clamp(14px, 3.2vw, 18px) clamp(14px, 3.5vw, 20px);
    border-radius: calc(var(--radius-lg) - 4px);
    background: linear-gradient(
      125deg,
      rgba(233, 4, 8, 0.09) 0%,
      rgba(15, 16, 19, 0.25) 48%,
      rgba(233, 4, 8, 0.05) 100%
    );
    box-shadow: inset 0 0 0 1px rgba(233, 4, 8, 0.12);
    border: none;
  }

  .dept-hub__brand-mark {
    margin-bottom: 12px;
  }
}

.dept-hub__bridge-k {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: rgba(245, 247, 250, 0.42);
}

.dept-hub__bridge-k--accent {
  color: rgba(245, 100, 102, 0.95);
}

.dept-hub__bridge-t {
  margin: 0;
  font-size: clamp(13.75px, 0.41rem + 1vw, 15px);
  line-height: 1.56;
  color: rgba(245, 247, 250, 0.82);
}

.dept-hub__bridge-t strong {
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--text);
}

.dept-hub__fineprint {
  margin: clamp(12px, 2.6vw, 16px) 0 0;
  max-width: 72ch;
  font-size: clamp(11.75px, 2.4vw, 13px);
  line-height: 1.52;
}

.dept-map {
  position: relative;
  overflow: hidden;
}

.dept-map::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(56% 44% at 50% 0%, rgba(80, 132, 255, 0.12) 0%, transparent 70%),
    radial-gradient(38% 28% at 50% 100%, rgba(233, 4, 8, 0.12) 0%, transparent 78%);
}

.dept-map .wrap {
  position: relative;
  z-index: 1;
}

.dept-map .section__title {
  margin-bottom: 8px;
}

.dept-map__hub {
  margin-top: 10px;
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(128, 168, 255, 0.35);
  background: linear-gradient(160deg, rgba(21, 34, 62, 0.84), rgba(8, 11, 18, 0.92));
  box-shadow: 0 0 30px rgba(80, 132, 255, 0.16);
}

.dept-map__hub-ico {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  color: rgba(236, 242, 255, 0.95);
}

.dept-map__hub-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.dept-map__hub-copy strong {
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dept-map__hub-copy span {
  font-size: 12px;
  color: rgba(206, 218, 240, 0.85);
}

.dept-map__lane {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}

.dept-map__card {
  position: relative;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(120% 84% at 100% -16%, rgba(70, 114, 255, 0.16), transparent 58%),
    linear-gradient(155deg, rgba(18, 22, 32, 0.98), rgba(9, 11, 18, 0.98));
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 12px 26px rgba(0, 0, 0, 0.35);
}

.dept-map__card:not(:last-child)::after {
  content: '→';
  position: absolute;
  right: -13px;
  top: 50%;
  translate: 50% -50%;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 12px;
  color: rgba(206, 222, 255, 0.95);
  background: rgba(38, 64, 116, 0.9);
  border: 1px solid rgba(128, 168, 255, 0.42);
  z-index: 2;
}

.dept-map__card--focus {
  background:
    radial-gradient(120% 84% at 100% -16%, rgba(170, 118, 255, 0.16), transparent 58%),
    linear-gradient(155deg, rgba(23, 22, 39, 0.98), rgba(11, 10, 20, 0.98));
}

.dept-map__card--gold {
  background:
    radial-gradient(120% 84% at 100% -16%, rgba(255, 186, 85, 0.2), transparent 58%),
    linear-gradient(155deg, rgba(33, 26, 18, 0.98), rgba(19, 13, 9, 0.98));
}

.dept-map__card--wide {
  grid-column: 2 / span 3;
  margin-top: 6px;
}

.dept-map__card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
}

.dept-map__idx {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(80, 132, 255, 0.46);
  background: rgba(80, 132, 255, 0.18);
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.dept-map__ico {
  width: 30px;
  height: 30px;
  border-radius: 10px;
}

.dept-map__card h3 {
  margin: 0 0 5px;
  font-size: 29px;
  font-size: clamp(17px, 0.7rem + 0.58vw, 20px);
  line-height: 1.14;
}

.dept-map__card p {
  margin: 0;
  font-size: clamp(13px, 0.34rem + 0.48vw, 14px);
  line-height: 1.36;
  color: rgba(226, 231, 241, 0.88);
}

.dept-map__result {
  margin-top: 8px !important;
  padding: 8px 9px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(6, 8, 14, 0.65);
  font-size: 12.5px !important;
}

.dept-map__result span {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-head);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 151, 155, 0.98);
}

.dept-map__footer {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.dept-map__footer-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(10, 12, 18, 0.74);
  font-size: 13px;
  color: rgba(220, 227, 240, 0.9);
}

.dept-map-image {
  position: relative;
}

.dept-map-image__figure {
  margin: 0;
  border-radius: clamp(14px, 2.2vw, 22px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(165deg, rgba(12, 14, 20, 0.96), rgba(8, 9, 12, 0.98));
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 20px 48px rgba(0, 0, 0, 0.42);
  overflow: hidden;
}

.dept-map-image__img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

/* Инфографика «Как работает команда» (замена team-system-block.png) */

.team-flow-section {
  position: relative;
}

.team-flow__intro {
  text-align: center;
  margin-bottom: clamp(18px, 3vw, 28px);
}

.team-flow__title {
  margin-bottom: clamp(8px, 1.5vw, 12px);
}

.team-flow__subtitle {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: clamp(16px, 2.5vw, 22px);
  max-width: 52ch;
}

.team-flow__badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(233, 4, 8, 0.42);
  background: linear-gradient(155deg, rgba(26, 8, 10, 0.92), rgba(12, 12, 14, 0.94));
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 0 36px rgba(233, 4, 8, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.team-flow__badge-ico {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: rgba(245, 247, 250, 0.95);
  background: rgba(233, 4, 8, 0.18);
  border: 1px solid rgba(255, 26, 31, 0.35);
}

.team-flow__badge-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.team-flow__badge-copy strong {
  font-family: var(--font-head);
  font-size: clamp(11px, 2vw, 12px);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}

.team-flow__badge-copy span {
  font-size: clamp(11px, 2vw, 12px);
  color: var(--muted);
}

.team-flow {
  padding: clamp(18px, 3vw, 26px) clamp(14px, 2vw, 22px) clamp(16px, 2.5vw, 22px);
}

.team-flow__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(10px, 1.6vw, 16px);
  align-items: stretch;
}

.team-flow__step {
  position: relative;
  margin: 0;
  padding: 0;
}

.team-flow__card {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: clamp(12px, 2vw, 14px);
  border-radius: clamp(14px, 2vw, 18px);
  border: 1px solid rgba(233, 4, 8, 0.38);
  background:
    radial-gradient(130% 90% at 100% -20%, rgba(233, 4, 8, 0.14), transparent 55%),
    linear-gradient(165deg, rgba(16, 17, 21, 0.98), rgba(8, 9, 11, 0.99));
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 12px 32px rgba(0, 0, 0, 0.38),
    0 0 28px rgba(233, 4, 8, 0.06);
  transition:
    border-color var(--dur-soft) var(--ease-out),
    box-shadow var(--dur-soft) var(--ease-out),
    transform var(--dur-micro) var(--ease-out);
}

.team-flow__card:hover {
  border-color: rgba(255, 26, 31, 0.48);
  box-shadow:
    0 0 0 1px rgba(233, 4, 8, 0.15),
    0 16px 42px rgba(0, 0, 0, 0.42),
    0 0 40px rgba(233, 4, 8, 0.12);
  transform: translate3d(0, -2px, 0);
}

.team-flow__card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.team-flow__card-num {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  border: 1px solid rgba(255, 132, 136, 0.45);
  background: linear-gradient(145deg, rgba(233, 4, 8, 0.75), rgba(109, 2, 5, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 4px 14px rgba(233, 4, 8, 0.22);
}

.team-flow__illus {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
}

.team-flow__illus svg {
  width: 100%;
  max-width: 132px;
  height: auto;
}

.team-flow__card-title {
  margin: 0 0 6px;
  font-size: clamp(14px, 1.25vw, 16px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.18;
  color: var(--text);
}

.team-flow__card-desc {
  margin: 0 0 10px;
  font-size: clamp(12.5px, 1.05vw, 13.5px);
  line-height: 1.45;
  color: rgba(228, 233, 241, 0.88);
  flex-grow: 1;
}

.team-flow__card-foot {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: auto;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(5, 6, 8, 0.72);
}

.team-flow__card-foot-ico {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  margin-top: 1px;
  color: var(--red-bright);
}

.team-flow__card-foot-ico svg {
  display: block;
}

.team-flow__card-foot-txt {
  font-size: clamp(11.5px, 1vw, 12.5px);
  line-height: 1.38;
  color: rgba(245, 247, 250, 0.9);
}

.team-flow__step:not(:last-child)::after {
  content: '→';
  position: absolute;
  right: calc(-0.5 * clamp(10px, 1.6vw, 16px) - 11px);
  top: 50%;
  translate: 50% -50%;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  color: rgba(245, 247, 250, 0.95);
  background: rgba(26, 12, 14, 0.95);
  border: 1px solid rgba(233, 4, 8, 0.45);
  box-shadow: 0 0 18px rgba(233, 4, 8, 0.15);
  z-index: 2;
  pointer-events: none;
}

.team-flow__summary {
  position: relative;
  margin-top: clamp(22px, 3.5vw, 32px);
  padding-top: clamp(20px, 3vw, 28px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2vw, 18px);
}

.team-flow__summary::before {
  content: '';
  position: absolute;
  left: 8%;
  right: 8%;
  top: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(233, 4, 8, 0.35) 15%,
    rgba(233, 4, 8, 0.55) 50%,
    rgba(233, 4, 8, 0.35) 85%,
    transparent
  );
  pointer-events: none;
}

.team-flow__summary-side {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 9, 12, 0.72);
  min-width: min(160px, 42vw);
  flex: 1 1 140px;
  justify-content: center;
}

.team-flow__summary-ico {
  display: grid;
  place-items: center;
  color: rgba(245, 247, 250, 0.88);
}

.team-flow__summary-ico svg {
  display: block;
}

.team-flow__summary-txt {
  font-size: clamp(12px, 1.05vw, 13px);
  font-weight: 600;
  color: rgba(228, 233, 241, 0.92);
  text-align: center;
}

.team-flow__summary-center {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(64px, 12vw, 84px);
  height: clamp(64px, 12vw, 84px);
  flex: 0 0 auto;
}

.team-flow__summary-glow {
  position: absolute;
  inset: -18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233, 4, 8, 0.45) 0%, rgba(233, 4, 8, 0) 68%);
  filter: blur(8px);
  opacity: 0.9;
  pointer-events: none;
}

.team-flow__summary-core {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, rgba(233, 4, 8, 0.95), rgba(130, 3, 6, 0.98));
  border: 1px solid rgba(255, 132, 136, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 12px 36px rgba(233, 4, 8, 0.35),
    0 0 48px rgba(233, 4, 8, 0.22);
}

.team-flow__note {
  margin: clamp(14px, 2.2vw, 20px) 0 0;
  text-align: center;
  font-size: clamp(12.5px, 1.05vw, 13.5px);
  max-width: 62ch;
  margin-inline: auto;
  line-height: 1.55;
}

@media (max-width: 1100px) {
  .team-flow__steps {
    grid-template-columns: 1fr;
    gap: clamp(14px, 3vw, 20px);
  }

  .team-flow__step:not(:last-child)::after {
    content: '↓';
    left: 50%;
    right: auto;
    top: auto;
    bottom: calc(-0.5 * clamp(14px, 3vw, 20px) - 13px);
    translate: -50% 50%;
  }

  .team-flow__card:hover {
    transform: none;
  }
}

@media (max-width: 640px) {
  .team-flow__badge {
    flex-direction: column;
    text-align: center;
    padding: 14px 16px;
  }

  .team-flow__badge-copy {
    text-align: center;
  }

  .team-flow__summary-side {
    flex: 1 1 calc(50% - 8px);
    min-width: unset;
  }

  .team-flow__summary-center {
    order: -1;
    width: 72px;
    height: 72px;
    margin-bottom: 4px;
  }
}

@media (max-width: 900px) {
  .team-flow-section,
  .dept-map-image {
    padding-inline: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .team-flow__card {
    transition: none;
  }

  .team-flow__card:hover {
    transform: none;
  }
}

.guarantees-list {
  margin-top: clamp(16px, 2.4vw, 26px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 16px);
}

.guarantee-item {
  position: relative;
  padding: clamp(14px, 1.9vw, 20px);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(ellipse 80% 110% at -10% -30%, rgba(233, 4, 8, 0.14), transparent 55%),
    linear-gradient(160deg, rgba(14, 16, 23, 0.95), rgba(8, 10, 14, 0.95));
  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.guarantee-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(255, 125, 129, 0.95), rgba(233, 4, 8, 0.65), rgba(233, 4, 8, 0));
  opacity: 0.9;
}

.guarantee-item:hover {
  border-color: rgba(255, 108, 112, 0.32);
  box-shadow:
    0 20px 44px rgba(0, 0, 0, 0.38),
    0 0 24px rgba(233, 4, 8, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

.guarantee-item__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 9px;
}

.guarantee-item__num {
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 30px;
  padding: 0 8px;
  border-radius: 9px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #fff;
  border: 1px solid rgba(255, 132, 136, 0.45);
  background: linear-gradient(145deg, rgba(233, 4, 8, 0.68), rgba(109, 2, 5, 0.9));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 6px 14px rgba(233, 4, 8, 0.2);
}

.guarantee-item h3 {
  margin: 0;
  font-size: clamp(18px, 0.74rem + 0.66vw, 22px);
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: #fff;
}

.guarantee-item p {
  margin: 0;
  font-size: clamp(13px, 1.05vw, 14.5px);
  line-height: 1.5;
  color: rgba(228, 233, 241, 0.86);
}

@media (min-width: 1260px) {
  .guarantees-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ——— Схема услуги (ранее таблица): карточная лента ——— */
.service-scheme-board {
  position: relative;
  margin-top: clamp(16px, 2.6vw, 28px);
  padding: clamp(16px, 2.4vw, 26px);
  border-radius: clamp(20px, 3vw, 28px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(ellipse 100% 58% at 50% -18%, rgba(233, 4, 8, 0.16), transparent 56%),
    linear-gradient(168deg, rgba(14, 16, 22, 0.52) 0%, rgba(5, 7, 11, 0.94) 100%);
  backdrop-filter: blur(22px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 32px 88px rgba(0, 0, 0, 0.52),
    0 0 0 1px rgba(0, 0, 0, 0.42),
    0 0 100px rgba(233, 4, 8, 0.06);
  overflow: hidden;
}

.service-scheme-board::before {
  content: '';
  pointer-events: none;
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(ellipse 96% 88% at 50% 42%, #000 22%, transparent 92%);
  opacity: 0.14;
}

.service-scheme {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 2vw, 18px);
}

.service-scheme__card {
  position: relative;
  display: grid;
  gap: clamp(14px, 2vw, 18px);
  padding:
    clamp(15px, 2vw, 21px) clamp(14px, 2.4vw, 22px) clamp(15px, 2vw, 21px)
    clamp(22px, 3.2vw, 32px);
  border-radius: clamp(14px, 2vw, 20px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    radial-gradient(120% 85% at 0% 0%, rgba(233, 4, 8, 0.1), transparent 46%),
    linear-gradient(165deg, rgba(14, 16, 22, 0.88) 0%, rgba(8, 10, 14, 0.96) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 14px 44px rgba(0, 0, 0, 0.34);
  transition:
    transform var(--dur-soft) var(--ease-out),
    border-color var(--dur-soft) var(--ease-out),
    box-shadow var(--dur-soft) var(--ease-out);
}

.service-scheme__card::before {
  content: '';
  position: absolute;
  left: 14px;
  top: clamp(18px, 3vw, 26px);
  bottom: clamp(18px, 3vw, 26px);
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 96, 102, 0.95), rgba(233, 4, 8, 0.35));
  box-shadow: 0 0 18px rgba(233, 4, 8, 0.32);
}

.service-scheme__card::after {
  content: '';
  position: absolute;
  left: 24px;
  right: 18px;
  top: 0;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 96, 102, 0.45) 50%, transparent 100%);
  opacity: 0.75;
}

@media (hover: hover) and (pointer: fine) {
  .service-scheme__card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 110, 114, 0.38);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 22px 56px rgba(0, 0, 0, 0.42),
      0 0 40px rgba(233, 4, 8, 0.1);
  }
}

.service-scheme__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 14px;
}

.service-scheme__step {
  flex-shrink: 0;
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: rgba(255, 176, 180, 0.96);
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(233, 4, 8, 0.38);
  background: rgba(233, 4, 8, 0.14);
  line-height: 1;
}

.service-scheme__ico {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: linear-gradient(148deg, rgba(233, 4, 8, 0.22), rgba(10, 11, 15, 0.94));
  color: rgba(255, 140, 144, 0.98);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 8px 22px rgba(0, 0, 0, 0.28);
}

.service-scheme__ico .icon {
  display: block;
}

.service-scheme__block {
  flex: 1 1 auto;
  margin: 0;
  min-width: min(100%, 12em);
  font-size: clamp(18px, 0.55vw + 13px, 24px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #fff;
}

.service-scheme__split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(14px, 2.8vw, 28px);
  align-items: start;
  padding-top: 2px;
}

.service-scheme__pane {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.service-scheme__pane--do {
  padding-right: clamp(10px, 2vw, 18px);
  border-right: 1px solid rgba(255, 255, 255, 0.09);
}

.service-scheme__eyebrow {
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 112, 118, 0.82);
}

.service-scheme__pane--get .service-scheme__eyebrow {
  color: rgba(255, 184, 188, 0.88);
}

.service-scheme__pane p {
  margin: 0;
  font-size: clamp(13px, 0.32vw + 11px, 15px);
  line-height: 1.48;
  color: rgba(228, 234, 244, 0.9);
}

.service-scheme__pane--get p {
  color: rgba(255, 228, 230, 0.94);
}

@media (max-width: 820px) {
  .service-scheme-board {
    padding: clamp(12px, 3vw, 18px);
    border-radius: clamp(16px, 4vw, 22px);
  }

  .service-scheme__split {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .service-scheme__pane--do {
    padding-right: 0;
    padding-bottom: 14px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
}

@media (max-width: 480px) {
  .service-scheme__block {
    flex-basis: 100%;
  }

  .service-scheme__card::before {
    left: 11px;
  }

  .service-scheme__card {
    padding-left: clamp(18px, 6vw, 26px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-scheme__card {
    transition: none;
  }

  .service-scheme__card:hover {
    transform: none;
  }
}

.diag-first-step__grid {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.diag-first-step__board {
  margin-top: clamp(14px, 2.8vw, 24px);
  padding: clamp(14px, 2.4vw, 24px);
  border-radius: clamp(18px, 2.8vw, 26px);
  background:
    linear-gradient(180deg, rgba(8, 10, 14, 0.94) 0%, rgba(6, 8, 12, 0.94) 100%),
    radial-gradient(circle at 12% 10%, rgba(233, 4, 8, 0.08), transparent 42%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 26px 70px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.diag-first-step__card {
  position: relative;
  padding: clamp(15px, 1.8vw, 20px);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(16, 19, 27, 0.95), rgba(9, 11, 16, 0.92));
  border: 1px solid rgba(245, 247, 250, 0.1);
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition:
    border-color var(--dur-soft) var(--ease-out),
    box-shadow var(--dur-soft) var(--ease-out),
    transform var(--dur-soft) var(--ease-out);
}

.diag-first-step__card:hover {
  transform: translate3d(0, -2px, 0);
  border-color: rgba(255, 98, 102, 0.32);
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.36),
    0 0 28px rgba(233, 4, 8, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.diag-first-step__card--accent {
  border-color: rgba(233, 4, 8, 0.32);
  background:
    linear-gradient(160deg, rgba(49, 8, 11, 0.82), rgba(16, 8, 11, 0.95)),
    radial-gradient(circle at 20% 0%, rgba(255, 84, 88, 0.22), transparent 45%);
}

.diag-first-step__card--accent::after {
  content: '';
  position: absolute;
  inset: -15% -40%;
  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, 0) 30%,
    rgba(255, 170, 172, 0.16) 46%,
    rgba(255, 92, 96, 0.22) 50%,
    rgba(255, 170, 172, 0.16) 54%,
    rgba(255, 255, 255, 0) 70%
  );
  transform: translate3d(-58%, 0, 0);
  animation: diag-accent-sheen 3.8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes diag-accent-sheen {
  0% {
    transform: translate3d(-58%, 0, 0);
    opacity: 0.2;
  }
  45% {
    opacity: 0.85;
  }
  100% {
    transform: translate3d(58%, 0, 0);
    opacity: 0.08;
  }
}

@media (prefers-reduced-motion: reduce) {
  .diag-first-step__card--accent::after {
    animation: none;
    opacity: 0.22;
  }
}

.diag-first-step__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 9px;
}

.diag-first-step__num {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 30px;
  padding: 0 8px;
  border-radius: 9px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fff;
  background: linear-gradient(145deg, rgba(233, 4, 8, 0.9), rgba(151, 2, 3, 0.95));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 4px 12px rgba(233, 4, 8, 0.22);
}

.diag-first-step__card h3 {
  margin: 0;
  font-size: clamp(18px, 0.72rem + 0.64vw, 21px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: #fff;
}

.diag-first-step__card p {
  margin: 0;
  font-size: clamp(13.5px, 1.15vw, 15px);
  line-height: 1.48;
  color: rgba(228, 233, 241, 0.88);
}

.diag-first-step__what {
  margin-top: 10px !important;
  font-family: var(--font-head);
  font-size: 12px !important;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  color: rgba(255, 130, 134, 0.98) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 10px;
}

.diag-first-step__cta {
  margin-top: clamp(14px, 2.4vw, 22px);
}

@media (max-width: 860px) {
  .guarantees-list,
  .diag-first-step__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1200px) {
  .dept-map__lane {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dept-map__card--wide {
    grid-column: 1 / span 3;
  }

  .dept-map__card:nth-child(3)::after {
    display: none;
  }
}

@media (max-width: 860px) {
  .dept-map__lane {
    grid-template-columns: 1fr;
  }

  .dept-map__card--wide {
    grid-column: auto;
    margin-top: 0;
  }

  .dept-map__card:not(:last-child)::after {
    content: '↓';
    right: 50%;
    top: auto;
    bottom: -12px;
    translate: 50% 50%;
  }

  .dept-map__footer {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 540px) {
  .dept-map__footer {
    grid-template-columns: 1fr;
  }
}

.dept-inside {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(34px, 4.4vw, 56px);
}

.dept-inside::before {
  content: '';
  position: absolute;
  left: -16%;
  top: -22%;
  width: min(720px, 84vw);
  height: min(720px, 84vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233, 4, 8, 0.2) 0%, rgba(233, 4, 8, 0.05) 42%, transparent 74%);
  pointer-events: none;
  opacity: 0.88;
}

.dept-inside::after {
  content: '';
  position: absolute;
  right: -12%;
  bottom: -34%;
  width: min(640px, 76vw);
  height: min(640px, 76vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 247, 250, 0.09) 0%, rgba(233, 4, 8, 0.06) 46%, transparent 72%);
  pointer-events: none;
}

.dept-inside .wrap {
  position: relative;
  z-index: 1;
}

.dept-inside .section__title {
  margin-bottom: 10px;
}

.dept-inside .section__subtitle {
  margin-top: 0;
  font-size: clamp(13px, 0.35rem + 0.65vw, 15px);
  line-height: 1.45;
  max-width: 72ch;
}

.dept-inside__grid {
  position: relative;
  margin-top: clamp(14px, 2vw, 20px);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(10px, 1.35vw, 14px);
}

.dept-inside__grid::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 20px;
  background:
    linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.03) 50%, transparent 100%),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent calc((100% / 3) - 1px),
      rgba(255, 255, 255, 0.04) calc((100% / 3) - 1px),
      rgba(255, 255, 255, 0.04) calc(100% / 3)
    );
  opacity: 0.14;
}

.dept-inside__card {
  position: relative;
  grid-column: span 4;
  min-height: clamp(214px, 24vh, 252px);
  padding: clamp(14px, 1.25vw, 18px);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(120% 90% at 96% -14%, rgba(233, 4, 8, 0.23) 0%, transparent 55%),
    linear-gradient(156deg, rgba(21, 23, 28, 0.98) 0%, rgba(9, 10, 13, 0.97) 100%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.45),
    0 14px 28px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform var(--dur-soft) var(--ease-out),
    border-color var(--dur-soft) var(--ease-out),
    box-shadow var(--dur-soft) var(--ease-out);
}

.dept-inside__wash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.06) 0%, transparent 36%),
    linear-gradient(180deg, transparent 48%, rgba(233, 4, 8, 0.06) 100%);
  opacity: 0.85;
}

.dept-inside__card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(122deg, transparent 8%, rgba(255, 255, 255, 0.08) 43%, transparent 79%);
  opacity: 0;
  transform: translateX(-24%);
  transition: opacity var(--dur-soft) var(--ease-out), transform var(--dur-soft) var(--ease-out);
}

.dept-inside__card:hover {
  transform: translateY(-3px);
  border-color: rgba(233, 4, 8, 0.34);
  box-shadow:
    0 0 0 1px rgba(233, 4, 8, 0.22),
    0 20px 36px rgba(0, 0, 0, 0.42),
    0 0 38px rgba(233, 4, 8, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.dept-inside__card:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.dept-inside__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.dept-inside__idx {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(233, 4, 8, 0.45);
  background: rgba(233, 4, 8, 0.12);
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: rgba(255, 176, 178, 0.98);
}

.dept-inside__role {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 9, 12, 0.72);
  font-family: var(--font-head);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(213, 218, 227, 0.92);
}

.dept-inside__icon.illus-slot {
  margin-left: auto;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at 25% 15%, rgba(233, 4, 8, 0.24), transparent 58%),
    rgba(12, 13, 16, 0.88);
  color: rgba(248, 249, 251, 0.96);
}

.dept-inside__title {
  margin: 0 0 8px;
  font-size: clamp(17px, 0.72rem + 0.72vw, 21px);
  line-height: 1.2;
  text-wrap: balance;
}

.dept-inside__text {
  margin: 0;
  font-size: clamp(13px, 0.38rem + 0.65vw, 14.25px);
  line-height: 1.44;
  color: rgba(245, 247, 250, 0.8);
}

.dept-inside__result {
  margin: auto 0 0;
  padding: 8px 11px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: clamp(12.75px, 0.35rem + 0.58vw, 14px);
  line-height: 1.4;
  color: rgba(245, 247, 250, 0.92);
  background:
    radial-gradient(130% 90% at 8% -30%, rgba(233, 4, 8, 0.18) 0%, transparent 50%),
    rgba(7, 8, 11, 0.75);
}

.dept-inside__result span {
  display: block;
  margin-right: 6px;
  margin-bottom: 2px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 153, 156, 0.98);
}

.dept-inside--stage {
  min-height: 100svh;
  display: flex;
  align-items: center;
}

.dept-inside--stage .wrap {
  width: 100%;
}

.dept-stage {
  position: relative;
  margin-top: 14px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.dept-stage__viewport {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(165deg, rgba(11, 12, 15, 0.86), rgba(7, 8, 11, 0.92));
  min-height: min(56vh, 520px);
}

.dept-stage__track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform var(--dur-soft) var(--ease-out);
}

.dept-stage__slide {
  flex: 0 0 100%;
  padding: clamp(12px, 1.6vw, 18px);
  display: flex;
}

.dept-stage__slide .dept-inside__card {
  min-height: 0;
  width: 100%;
  margin: 0;
}

.dept-stage__nav {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: linear-gradient(160deg, rgba(25, 27, 33, 0.95), rgba(11, 12, 15, 0.98));
  color: rgba(245, 247, 250, 0.9);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  transition: transform var(--dur-soft) var(--ease-out), border-color var(--dur-soft) var(--ease-out), box-shadow var(--dur-soft) var(--ease-out);
}

.dept-stage__nav:hover {
  transform: translateY(-2px);
  border-color: rgba(233, 4, 8, 0.42);
  box-shadow: 0 0 24px rgba(233, 4, 8, 0.2);
}

.dept-stage__nav:disabled {
  opacity: 0.35;
  cursor: default;
  transform: none;
  box-shadow: none;
}

.dept-stage__dots {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.dept-stage__dot {
  min-width: 38px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(8, 9, 12, 0.72);
  color: rgba(208, 214, 225, 0.88);
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  cursor: pointer;
}

.dept-stage__dot.is-active {
  border-color: rgba(233, 4, 8, 0.45);
  background: rgba(233, 4, 8, 0.14);
  color: rgba(255, 182, 185, 0.98);
}

@media (max-width: 900px) {
  .dept-inside--stage {
    min-height: auto;
    display: block;
  }

  .dept-stage {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .dept-stage__nav {
    display: none;
  }

  .dept-stage__viewport {
    min-height: auto;
  }

  .dept-stage__slide {
    padding: 0;
  }
}

@media (max-width: 1080px) {
  .dept-inside__grid {
    gap: 10px;
  }

  .dept-inside__card {
    grid-column: span 6;
    min-height: 216px;
  }
}

@media (max-width: 720px) {
  .dept-inside {
    padding-block: clamp(30px, 8.2vw, 44px);
  }

  .dept-inside .section__subtitle {
    font-size: 13px;
    line-height: 1.42;
  }

  .dept-inside__grid {
    grid-template-columns: 1fr;
  }

  .dept-inside__card {
    grid-column: span 1;
    min-height: auto;
  }
}

@media (min-width: 1081px) and (max-height: 860px) {
  .dept-inside {
    padding-block: 26px;
  }

  .dept-inside .section__title {
    margin-bottom: 6px;
    font-size: clamp(25px, 2.2vw, 34px);
  }

  .dept-inside .section__subtitle {
    font-size: 12.75px;
    line-height: 1.35;
  }

  .dept-inside__grid {
    margin-top: 10px;
    gap: 9px;
  }

  .dept-inside__card {
    min-height: 194px;
    padding: 12px;
  }

  .dept-inside__title {
    font-size: 19px;
  }

  .dept-inside__text {
    font-size: 12.9px;
    line-height: 1.34;
  }

  .dept-inside__result {
    font-size: 12.4px;
    line-height: 1.33;
    padding: 7px 10px;
  }
}

/* Целевой клиент (ica-*): фото CDN + «живой» визуал, иконки из спрайта */
.ica-section {
  position: relative;
  overflow: hidden;
  --ica-accent: var(--red-bright);
  --ica-accent-soft: rgba(255, 92, 96, 0.95);
  --ica-accent-dim: rgba(233, 4, 8, 0.42);
}

.ica-section .wrap {
  position: relative;
  z-index: 1;
}

.ica-head {
  display: block;
  margin-bottom: clamp(22px, 3.6vw, 34px);
}

.ica-head__text {
  min-width: 0;
}

.ica-head__lede {
  margin: clamp(12px, 2vw, 18px) 0 0;
  max-width: 52ch;
  font-size: clamp(13.5px, 0.42rem + 0.85vw, 15px);
  line-height: 1.58;
}

.ica-section__tag {
  margin: 0 0 14px;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ica-accent-soft);
}

.ica-section__tag::before {
  content: '// ';
  margin-right: 0.15em;
  letter-spacing: 0.06em;
  color: var(--ica-accent-dim);
}

.ica-section__title {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(24px, 1.05rem + 2.2vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.038em;
  color: var(--text);
  text-wrap: balance;
  text-shadow: 0 14px 48px rgba(0, 0, 0, 0.48);
}

.ica-section__title-accent {
  color: var(--ica-accent);
  text-shadow: 0 0 42px rgba(233, 4, 8, 0.28);
}

.ica-section__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 0.22em;
  vertical-align: baseline;
}

.ica-section__brand-prep {
  color: var(--text);
  text-shadow: none;
}

.ica-section__brand-logo {
  width: clamp(22px, 1.8vw, 28px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(233, 4, 8, 0.24));
}

.ica-section__brand-wordmark {
  font-size: clamp(26px, 2.1vw, 42px);
  line-height: 0.95;
}

.ica-section__ribbon {
  position: relative;
  margin-bottom: clamp(26px, 4vw, 40px);
  padding: clamp(16px, 3vw, 22px) clamp(18px, 3.2vw, 28px);
  padding-left: clamp(22px, 3.6vw, 32px);
  border-radius: clamp(20px, 3vw, 999px);
  border: 1px solid rgba(233, 4, 8, 0.45);
  background: linear-gradient(168deg, rgba(28, 12, 14, 0.9) 0%, rgba(10, 10, 12, 0.94) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 120, 124, 0.12),
    0 0 48px rgba(233, 4, 8, 0.08);
  overflow: hidden;
}

.ica-section__ribbon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 26, 31, 0.07) 40%,
    transparent 55%,
    rgba(255, 26, 31, 0.05) 78%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: ica-ribbon-sheen 9s ease-in-out infinite;
  pointer-events: none;
}

@keyframes ica-ribbon-sheen {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ica-section__ribbon::before {
    animation: none;
  }
}

.ica-section__ribbon-kicker {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  border-radius: 4px 0 0 4px;
  background: linear-gradient(180deg, rgba(255, 26, 31, 0.95), rgba(233, 4, 8, 0.35), rgba(255, 26, 31, 0.75));
  box-shadow: 0 0 18px rgba(233, 4, 8, 0.45);
}

.ica-section__ribbon p {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(14px, 0.48rem + 0.95vw, 16px);
  line-height: 1.55;
  color: rgba(248, 249, 252, 0.9);
}

.ica-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2.4vw, 22px);
  align-items: stretch;
}

@media (max-width: 960px) {
  .ica-head {
    text-align: left;
  }

  .ica-grid {
    grid-template-columns: 1fr;
    gap: clamp(18px, 4vw, 26px);
  }

  .ica-section__ribbon {
    border-radius: var(--radius-lg);
  }

  .ica-section__brand {
    margin-left: 0;
    gap: 6px;
  }

  .ica-section__brand-logo {
    width: 20px;
  }
}

.ica-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 0;
  overflow: hidden;
  border-radius: clamp(18px, 3vw, var(--radius-lg));
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(168deg, rgba(22, 24, 28, 0.98) 0%, rgba(8, 9, 11, 0.99) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(233, 4, 8, 0.08),
    0 20px 50px rgba(0, 0, 0, 0.42);
  transition:
    transform var(--dur-soft) var(--ease-out),
    border-color var(--dur-soft) var(--ease-out),
    box-shadow var(--dur-soft) var(--ease-out);
}

.ica-card::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 26, 31, 0.55), rgba(233, 4, 8, 0.35), transparent);
  opacity: 0.65;
  pointer-events: none;
  z-index: 3;
}

.ica-card__media {
  position: relative;
  height: clamp(132px, 22vw, 168px);
  overflow: hidden;
  flex-shrink: 0;
}

.ica-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 1.1s var(--ease-out), filter 0.6s var(--ease-out);
  filter: saturate(0.92) contrast(1.05);
}

.ica-card__media-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(6, 7, 9, 0.15) 35%,
    rgba(6, 7, 9, 0.82) 78%,
    rgba(4, 4, 6, 0.96) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.ica-card__media-noise {
  position: absolute;
  inset: 0;
  opacity: 0.055;
  pointer-events: none;
  z-index: 2;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.illus-slot--ica {
  position: absolute;
  left: clamp(14px, 2.4vw, 20px);
  bottom: clamp(10px, 2vw, 16px);
  z-index: 4;
  width: 56px;
  height: 56px;
  border-radius: 16px;
}

.ica-card__badge {
  position: absolute;
  top: clamp(10px, 1.8vw, 14px);
  right: clamp(12px, 2vw, 18px);
  z-index: 4;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: rgba(245, 247, 250, 0.55);
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 9, 11, 0.82);
}

.ica-card__body {
  padding: clamp(18px, 3vw, 24px) clamp(18px, 2.8vw, 24px) clamp(20px, 3.2vw, 26px);
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

@media (hover: hover) and (pointer: fine) {
  .ica-card:hover {
    transform: translateY(-5px);
    border-color: rgba(233, 4, 8, 0.42);
    box-shadow:
      inset 0 1px 0 rgba(255, 140, 144, 0.08),
      0 0 0 1px rgba(233, 4, 8, 0.22),
      0 28px 64px rgba(0, 0, 0, 0.48),
      0 0 60px rgba(233, 4, 8, 0.14);
  }

  .ica-card:hover .ica-card__photo {
    transform: scale(1.08);
    filter: saturate(1.05) contrast(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ica-card {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }

  .ica-card:hover {
    transform: none;
  }

  .ica-card:hover .ica-card__photo {
    transform: scale(1.04);
  }

  .ica-card__photo {
    transition: none;
  }
}

.ica-card__role {
  margin: 0 0 12px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(12.5px, 0.38rem + 0.9vw, 15px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.28;
  color: var(--ica-accent-soft);
}

.ica-card__lead {
  margin: 0 0 16px;
  font-size: clamp(13.5px, 0.42rem + 0.85vw, 15px);
  line-height: 1.58;
}

.ica-card__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1 1 auto;
}

.ica-card__list li {
  position: relative;
  padding-left: 18px;
  font-size: clamp(13px, 0.4rem + 0.85vw, 14.5px);
  line-height: 1.52;
  color: rgba(245, 247, 250, 0.9);
}

.ica-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 92, 96, 1), rgba(233, 4, 8, 0.95));
  box-shadow: 0 0 10px rgba(233, 4, 8, 0.55);
}

.ica-card__list li.ica-card__cta-wrap {
  padding-left: 0;
  margin-top: auto;
  padding-top: 8px;
}

.ica-card__list li.ica-card__cta-wrap::before {
  display: none;
}

.ica-card__cta-btn {
  width: 100%;
  justify-content: center;
  text-align: center;
  margin-top: 0;
  padding-left: 12px;
  padding-right: 12px;
  text-transform: uppercase;
  font-size: 14px;
  line-height: 1.15;
}

@keyframes rail-flow-shuttle {
  0% {
    transform: translateX(-40%);
    opacity: 0.35;
  }
  12% {
    opacity: 1;
  }
  88% {
    opacity: 1;
  }
  100% {
    transform: translateX(280%);
    opacity: 0.35;
  }
}

@keyframes rail-node-chain {
  0%,
  100% {
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.05),
      0 0 0 1px rgba(233, 4, 8, 0.14),
      0 8px 28px rgba(0, 0, 0, 0.38);
  }
  50% {
    border-color: rgba(255, 110, 114, 0.26);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 0 0 1px rgba(233, 4, 8, 0.28),
      0 0 18px rgba(233, 4, 8, 0.12),
      0 12px 34px rgba(0, 0, 0, 0.44);
  }
}

@keyframes rail-sep-glow {
  0%,
  100% {
    opacity: 0.45;
    filter: drop-shadow(0 0 6px rgba(233, 4, 8, 0.15));
  }
  50% {
    opacity: 1;
    filter: drop-shadow(0 0 14px rgba(233, 4, 8, 0.45));
  }
}

.process-rail {
  position: relative;
  padding-block: clamp(56px, 8vw, 100px);
  background:
    linear-gradient(180deg, rgba(233, 4, 8, 0.045) 0%, transparent 18%, transparent 82%, rgba(0, 0, 0, 0.42) 100%),
    radial-gradient(ellipse 88% 55% at 50% -8%, rgba(233, 4, 8, 0.16), transparent 52%),
    radial-gradient(ellipse 45% 38% at 4% 100%, rgba(151, 2, 3, 0.1), transparent 46%),
    linear-gradient(180deg, rgba(10, 11, 13, 0.99), rgba(4, 4, 5, 1));
}

.rail-system {
  position: relative;
  margin-top: clamp(20px, 4vw, 36px);
  z-index: 1;
}

.rail-system__ambient {
  pointer-events: none;
  position: absolute;
  inset: -24px -8px;
  z-index: 0;
  background:
    radial-gradient(ellipse 55% 40% at 18% 30%, rgba(233, 4, 8, 0.12), transparent 58%),
    radial-gradient(ellipse 50% 45% at 88% 70%, rgba(233, 4, 8, 0.08), transparent 55%);
  opacity: 0.9;
  filter: blur(0px);
}

.rail-system__frame {
  position: relative;
  border-radius: calc(var(--radius-xl) + 2px);
  padding: 1px;
  background: linear-gradient(
    128deg,
    rgba(233, 4, 8, 0.55) 0%,
    rgba(255, 255, 255, 0.1) 32%,
    rgba(233, 4, 8, 0.22) 58%,
    rgba(255, 255, 255, 0.06) 100%
  );
  background-size: 200% 200%;
  animation: rail-frame-sheen 14s ease-in-out infinite;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.55),
    0 24px 80px rgba(0, 0, 0, 0.55),
    0 0 100px rgba(233, 4, 8, 0.09);
  overflow: hidden;
}

@keyframes rail-frame-sheen {
  0%,
  100% {
    background-position: 0% 40%;
  }
  50% {
    background-position: 100% 60%;
  }
}

.rail-system__frame::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: var(--radius-xl);
  background: linear-gradient(
    168deg,
    rgba(20, 22, 26, 0.98) 0%,
    rgba(11, 12, 15, 0.97) 45%,
    rgba(6, 7, 9, 0.99) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.rail-system__flow {
  display: none;
  position: absolute;
  left: 4%;
  right: 4%;
  top: clamp(52px, 10.5vw, 76px);
  height: 3px;
  border-radius: 4px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.09) 50%,
    rgba(255, 255, 255, 0.04)
  );
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
  opacity: 0.85;
}

.rail-system__flow::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: min(38%, 220px);
  left: 0;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 72, 76, 0.15) 20%,
    rgba(255, 200, 202, 0.95) 50%,
    rgba(255, 72, 76, 0.15) 80%,
    transparent
  );
  animation: rail-flow-shuttle 3.8s cubic-bezier(0.45, 0.05, 0.2, 1) infinite;
}

@media (min-width: 721px) {
  .rail-system__flow {
    display: block;
  }
}

.rail {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: flex-start;
  gap: clamp(8px, 1.8vw, 14px);
  padding: clamp(16px, 3.2vw, 30px);
}

.rail__sep {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  user-select: none;
}

.rail__sep-ico {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 15px;
  line-height: 1;
  color: rgba(255, 210, 212, 0.95);
  background: radial-gradient(circle at 35% 28%, rgba(233, 4, 8, 0.45), rgba(12, 12, 14, 0.95));
  border: 1px solid rgba(255, 110, 114, 0.42);
  box-shadow:
    0 0 20px rgba(233, 4, 8, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  animation: rail-sep-glow 2.6s ease-in-out infinite;
}

.rail > .rail__sep:nth-child(2) .rail__sep-ico {
  animation-delay: 0.15s;
}

.rail > .rail__sep:nth-child(4) .rail__sep-ico {
  animation-delay: 0.3s;
}

.rail > .rail__sep:nth-child(6) .rail__sep-ico {
  animation-delay: 0.45s;
}

.rail > .rail__sep:nth-child(8) .rail__sep-ico {
  animation-delay: 0.6s;
}

@media (max-width: 720px) {
  .rail {
    flex-direction: column;
    align-items: stretch;
  }

  .rail__sep {
    width: auto;
    align-self: center;
    height: auto;
    min-height: 32px;
  }

  .rail__sep-ico {
    transform: rotate(90deg);
  }

  .rail__node {
    flex: none;
    width: 100%;
    min-width: 0;
  }
}

.rail__node {
  flex: 1 1 min(180px, 100%);
  position: relative;
  z-index: 1;
  border-radius: clamp(18px, 4vw, var(--radius-lg));
  border: 1px solid rgba(255, 255, 255, 0.11);
  isolation: isolate;
  background:
    radial-gradient(ellipse 120% 90% at 50% -35%, rgba(233, 4, 8, 0.16), transparent 58%),
    linear-gradient(158deg, rgba(26, 28, 32, 0.96), rgba(8, 9, 11, 0.92));
  padding: clamp(18px, 5vw, 22px);
  transition:
    transform var(--dur-soft) var(--ease-out),
    border-color var(--dur-soft) var(--ease-out),
    box-shadow var(--dur-soft) var(--ease-out);
  animation: rail-node-chain 5.5s ease-in-out infinite;
}

.rail > .rail__node:nth-child(1) {
  animation-delay: 0s;
}

.rail > .rail__node:nth-child(3) {
  animation-delay: 0.45s;
}

.rail > .rail__node:nth-child(5) {
  animation-delay: 0.9s;
}

.rail > .rail__node:nth-child(7) {
  animation-delay: 1.35s;
}

.rail > .rail__node:nth-child(9) {
  animation-delay: 1.8s;
}

.rail__node::before {
  content: '';
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 26, 31, 0.55), transparent);
  opacity: 0.95;
  pointer-events: none;
}

.rail__node:hover {
  transform: translate3d(0, -2px, 0);
  border-color: rgba(255, 120, 124, 0.45);
  box-shadow:
    0 0 0 1px rgba(233, 4, 8, 0.28),
    0 18px 56px rgba(233, 4, 8, 0.12),
    0 12px 40px rgba(0, 0, 0, 0.45);
}

.rail__key {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: 10px;
}

.rail__node p {
  margin: 0;
  font-size: 14px;
  color: rgba(245, 247, 250, 0.76);
  line-height: 1.55;
}

.metrics {
  padding-block: clamp(56px, 7vw, 96px);
  background:
    radial-gradient(ellipse 70% 50% at 18% -5%, rgba(255, 26, 31, 0.1), transparent 52%),
    radial-gradient(ellipse 50% 40% at 95% 60%, rgba(151, 2, 3, 0.05), transparent 45%),
    var(--bg);
}

.metrics__intro {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
}

.metrics__intro h2 {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
}

.metrics__intro p {
  max-width: 68ch;
}

.metrics__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: clamp(12px, 3vw, 16px);
}

.metric-tile {
  position: relative;
  border-radius: clamp(18px, 4vw, var(--radius-xl));
  border: 1px solid var(--border);
  padding: clamp(18px, 5vw, 24px);
  isolation: isolate;
  background:
    radial-gradient(ellipse 80% 90% at 100% -20%, rgba(233, 4, 8, 0.08), transparent 55%),
    linear-gradient(150deg, rgba(18, 20, 23, 0.97), rgba(5, 5, 6, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 -28px 48px rgba(233, 4, 8, 0.03);
  transition:
    transform var(--dur-soft) var(--ease-out),
    border-color var(--dur-soft) var(--ease-out),
    box-shadow var(--dur-soft) var(--ease-out);
}

.metric-tile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 14%;
  right: 14%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 26, 31, 0.55), transparent);
  opacity: 0.9;
  pointer-events: none;
}

.metric-tile:hover {
  transform: translate3d(0, -2px, 0);
  border-color: rgba(255, 26, 31, 0.28);
  box-shadow:
    0 14px 46px rgba(233, 4, 8, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 0 32px rgba(233, 4, 8, 0.04);
}

.metric-tile .label {
  display: block;
  margin-top: 10px;
  font-size: clamp(12px, 3.4vw, 13px);
  color: rgba(245, 247, 250, 0.62);
  line-height: 1.5;
}

/* --- «Состав системы»: bento вместо сетки одинаковых карточек --- */
.services-bento-section {
  position: relative;
  background:
    radial-gradient(ellipse 70% 45% at 50% -8%, rgba(233, 4, 8, 0.07), transparent 50%),
    radial-gradient(ellipse 40% 32% at 8% 100%, rgba(151, 2, 3, 0.05), transparent 42%),
    var(--bg);
}

.srv-bento {
  position: relative;
  max-width: min(1020px, 100%);
  margin-top: clamp(18px, 3.5vw, 28px);
  margin-left: auto;
  margin-right: auto;
  padding: clamp(20px, 4vw, 32px);
  border-radius: clamp(20px, 4vw, var(--radius-xl));
  overflow: hidden;
}

.srv-bento::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.22;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(245, 247, 250, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 247, 250, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 40%, #000 20%, transparent 72%);
}

.srv-bento > * {
  position: relative;
  z-index: 1;
}

.srv-bento__grid {
  position: relative;
  display: grid;
  gap: clamp(10px, 2vw, 14px);
  grid-template-columns: 1fr;
}

@keyframes srv-bento-spine {
  0%,
  100% {
    opacity: 0.72;
    filter: brightness(1);
  }
  50% {
    opacity: 0.95;
    filter: brightness(1.12);
  }
}

.srv-bento__grid .exp-card {
  min-height: 0;
  z-index: 1;
}

@media (min-width: 900px) {
  .srv-bento__grid {
    padding-left: 14px;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(min-content, auto);
  }

  .srv-bento__grid::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 4px;
    border-radius: 4px;
    background: linear-gradient(
      180deg,
      rgba(255, 210, 212, 0.35) 0%,
      rgba(233, 4, 8, 0.55) 22%,
      rgba(233, 4, 8, 0.28) 55%,
      rgba(151, 2, 3, 0.4) 100%
    );
    box-shadow:
      0 0 18px rgba(233, 4, 8, 0.25),
      inset 0 0 0 1px rgba(255, 255, 255, 0.12);
    opacity: 0.85;
    pointer-events: none;
    z-index: 0;
    animation: srv-bento-spine 5s ease-in-out infinite;
  }

  /* Чуть уже «якорная» карточка, закуп на 2 ряда — плотнее сетка без «ленты» на всю ширину */
  .srv-bento__grid > :nth-child(1) {
    grid-column: 1 / 8;
    grid-row: 1;
  }

  .srv-bento__grid > :nth-child(2) {
    grid-column: 8 / 13;
    grid-row: 1 / 3;
  }

  .srv-bento__grid > :nth-child(3) {
    grid-column: 1 / 5;
    grid-row: 2;
  }

  .srv-bento__grid > :nth-child(4) {
    grid-column: 5 / 8;
    grid-row: 2;
  }

  .srv-bento__grid > :nth-child(5) {
    grid-column: 1 / 8;
    grid-row: 3;
  }
}

@media (max-width: 899px) {
  .srv-bento__grid > * {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
  }
}

.srv-tile__head {
  display: flex;
  align-items: flex-start;
  gap: clamp(10px, 2vw, 16px);
  margin: 0 0 2px;
}

.srv-tile__head--compact {
  gap: 10px;
  margin-bottom: 0;
}

.srv-tile__glyph {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  color: rgba(255, 72, 76, 0.95);
  background: radial-gradient(circle at 32% 22%, rgba(233, 4, 8, 0.22), rgba(10, 11, 14, 0.96));
  border: 1px solid rgba(255, 110, 114, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 22px rgba(233, 4, 8, 0.14);
}

.srv-tile__glyph--compact {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.exp-card--accent .srv-tile__glyph {
  color: rgba(255, 255, 255, 0.98);
  background: rgba(0, 0, 0, 0.22);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 0 28px rgba(0, 0, 0, 0.22);
}

.exp-card--dark .srv-tile__glyph {
  color: rgba(255, 120, 124, 0.92);
  background: radial-gradient(circle at 30% 20%, rgba(233, 4, 8, 0.28), rgba(6, 7, 9, 0.96));
  border-color: rgba(233, 4, 8, 0.32);
}

.srv-tile__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.srv-tile__slot {
  display: inline-grid;
  place-items: center;
  min-width: 36px;
  height: 32px;
  padding: 0 8px;
  border-radius: 10px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--red-bright);
  border: 1px solid rgba(233, 4, 8, 0.35);
  background: rgba(5, 5, 6, 0.45);
}

.exp-card--accent .srv-tile__slot {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.2);
}

.srv-tile__tag {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(245, 247, 250, 0.1);
  color: rgba(245, 247, 250, 0.72);
  background: rgba(5, 5, 6, 0.35);
}

.exp-card--accent .srv-tile__tag {
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.88);
  background: rgba(0, 0, 0, 0.18);
}

.srv-tile__title {
  margin: 4px 0 0;
  font-family: var(--font-head);
  font-size: clamp(17px, 2vw, 19px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text);
}

.srv-tile__title--sm {
  font-size: clamp(16px, 1.6vw, 17px);
}

.exp-card--accent .srv-tile__title {
  color: #fff;
}

.srv-tile__lead {
  margin: 0;
  font-size: clamp(12.5px, 1.35vw, 13.5px);
  line-height: 1.55;
  color: rgba(245, 247, 250, 0.78);
}

.srv-tile__lead--on-accent {
  color: rgba(255, 255, 255, 0.9);
}

.srv-tile__list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  font-size: clamp(12.5px, 1.35vw, 13.5px);
  line-height: 1.55;
  color: rgba(245, 247, 250, 0.76);
}

.srv-tile__list--on-accent {
  color: rgba(255, 255, 255, 0.88);
}

.srv-tile--split {
  display: grid;
  gap: clamp(14px, 3vw, 20px);
}

/* Поверх .exp-card { display: flex }, иначе split-сетка не применится */
.srv-bento .srv-tile--split.exp-card {
  display: grid;
}

.srv-tile__half {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.srv-tile__divider {
  border-radius: 2px;
  background: rgba(245, 247, 250, 0.08);
}

@media (min-width: 700px) {
  .srv-tile--split {
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
  }

  .srv-tile--split .srv-tile__divider {
    width: 1px;
    height: auto;
    min-height: 100%;
    align-self: stretch;
    background: linear-gradient(180deg, transparent, rgba(245, 247, 250, 0.12) 20%, rgba(245, 247, 250, 0.12) 80%, transparent);
  }
}

@media (max-width: 699px) {
  .srv-tile--split .srv-tile__divider {
    width: 100%;
    height: 1px;
  }
}

.srv-bento__note {
  margin: clamp(14px, 2.5vw, 20px) 0 0;
  font-size: 12px;
  line-height: 1.5;
  max-width: 68ch;
}

/* --- Zero block: what exactly we do --- */
.services-ops-section {
  position: relative;
  background:
    radial-gradient(ellipse 72% 46% at 50% -8%, rgba(233, 4, 8, 0.09), transparent 52%),
    radial-gradient(ellipse 35% 30% at 8% 100%, rgba(151, 2, 3, 0.08), transparent 44%),
    var(--bg);
}

.services-roadmap {
  position: relative;
  margin-top: clamp(18px, 3.2vw, 28px);
  max-width: min(920px, 100%);
  margin-inline: auto;
}

.services-roadmap::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 32px;
  bottom: 32px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(
    180deg,
    rgba(233, 4, 8, 0.62) 0%,
    rgba(233, 4, 8, 0.2) 45%,
    rgba(233, 4, 8, 0.05) 100%
  );
  box-shadow: 0 0 18px rgba(233, 4, 8, 0.22);
}

.services-roadmap__step.services-ops-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr);
  gap: 12px 14px;
  align-items: start;
  padding: 0 0 clamp(12px, 2.4vw, 18px);
  margin: 0;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  overflow: visible;
}

.services-roadmap__step.services-ops-card::before {
  display: none;
}

@media (min-width: 769px) {
  /* 01, 03, 05… — панель справа; 02, 04… — слева */
  .services-roadmap__step:nth-child(odd) .services-roadmap__marker {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
  }

  .services-roadmap__step:nth-child(odd) .services-roadmap__panel {
    grid-column: 3;
    grid-row: 1;
    justify-self: start;
    width: min(100%, 430px);
  }

  .services-roadmap__step:nth-child(even) .services-roadmap__panel {
    grid-column: 1;
    grid-row: 1;
    justify-self: end;
    width: min(100%, 430px);
  }

  .services-roadmap__step:nth-child(even) .services-roadmap__marker {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
  }
}

.services-roadmap__marker {
  position: relative;
  display: grid;
  place-items: center;
  padding-top: 2px;
}

@media (min-width: 769px) {
  .services-roadmap__marker::after {
    content: '';
    position: absolute;
    top: 50%;
    width: clamp(10px, 2vw, 22px);
    height: 2px;
    margin-top: -1px;
    border-radius: 2px;
    pointer-events: none;
  }

  .services-roadmap__step:nth-child(odd) .services-roadmap__marker::after {
    left: calc(50% + 19px);
    background: linear-gradient(90deg, rgba(233, 4, 8, 0.55), rgba(233, 4, 8, 0.08));
    box-shadow: 0 0 12px rgba(233, 4, 8, 0.2);
  }

  .services-roadmap__step:nth-child(even) .services-roadmap__marker::after {
    right: calc(50% + 19px);
    left: auto;
    background: linear-gradient(270deg, rgba(233, 4, 8, 0.55), rgba(233, 4, 8, 0.08));
    box-shadow: 0 0 12px rgba(233, 4, 8, 0.2);
  }
}

.services-roadmap__num {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: rgba(255, 186, 190, 0.98);
  border: 2px solid rgba(233, 4, 8, 0.7);
  background: radial-gradient(circle at 32% 28%, rgba(48, 18, 22, 0.98), rgba(7, 8, 11, 0.98));
  box-shadow:
    0 0 0 4px rgba(233, 4, 8, 0.12),
    0 0 26px rgba(233, 4, 8, 0.35);
}

.services-roadmap__panel {
  position: relative;
  padding: clamp(14px, 2vw, 18px) clamp(16px, 2.2vw, 20px);
  border-radius: 16px;
  border: 1px solid rgba(233, 4, 8, 0.22);
  background:
    radial-gradient(ellipse 130% 90% at 92% -10%, rgba(233, 4, 8, 0.11), transparent 52%),
    radial-gradient(ellipse 80% 60% at 12% 108%, rgba(151, 2, 3, 0.06), transparent 48%),
    linear-gradient(168deg, rgba(22, 24, 32, 0.96) 0%, rgba(7, 9, 13, 0.98) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    inset 0 -1px 0 rgba(233, 4, 8, 0.05),
    0 14px 44px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(0, 0, 0, 0.28);
  transition:
    border-color var(--dur-soft) var(--ease-out),
    box-shadow var(--dur-soft) var(--ease-out),
    transform var(--dur-soft) var(--ease-out);
}

.services-roadmap__panel::before {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  top: 0;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 95, 99, 0.5), transparent);
  opacity: 0.9;
}

@media (hover: hover) and (pointer: fine) {
  .services-roadmap__step.services-ops-card:hover .services-roadmap__panel {
    border-color: rgba(255, 110, 114, 0.38);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 18px 48px rgba(0, 0, 0, 0.38),
      0 0 28px rgba(233, 4, 8, 0.12);
    transform: translateY(-2px);
  }
}

.services-roadmap__panel h3 {
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #fff;
}

.services-roadmap__panel > p:not(.services-ops-card__result-title) {
  margin: 0;
  color: rgba(245, 247, 250, 0.76);
  font-size: clamp(13px, 1.05vw, 14.5px);
  line-height: 1.55;
}

.services-roadmap__panel .services-ops-card__result-title {
  margin-top: 10px;
}

.services-roadmap__panel ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 5px;
  color: rgba(245, 247, 250, 0.82);
  font-size: clamp(12.5px, 1vw, 14px);
  line-height: 1.45;
}

.services-roadmap__panel ul li::marker {
  color: rgba(255, 82, 87, 0.9);
}

.services-ops-card__result-title {
  margin-top: 4px;
  color: rgba(255, 122, 126, 0.95) !important;
  font-weight: 700;
  letter-spacing: 0.02em;
}

@media (max-width: 768px) {
  .services-roadmap {
    max-width: min(680px, 100%);
  }

  .services-roadmap::before {
    left: 21px;
    transform: none;
    top: 32px;
    bottom: 32px;
  }

  .services-roadmap__step.services-ops-card {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .services-roadmap__step:nth-child(odd) .services-roadmap__marker,
  .services-roadmap__step:nth-child(even) .services-roadmap__marker {
    grid-column: 1;
    justify-self: start;
  }

  .services-roadmap__step:nth-child(odd) .services-roadmap__panel,
  .services-roadmap__step:nth-child(even) .services-roadmap__panel {
    grid-column: 2;
  }
}

@media (max-width: 520px) {
  .services-roadmap::before {
    left: 17px;
    top: 26px;
    bottom: 26px;
  }

  .services-roadmap__step.services-ops-card {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px 12px;
  }

  .services-roadmap__num {
    width: 32px;
    height: 32px;
    font-size: 9px;
  }

  .services-roadmap__panel {
    padding: 12px 12px 14px;
  }

  .services-roadmap__panel h3 {
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .services-roadmap__panel {
    transition: none;
  }

  .services-roadmap__step.services-ops-card:hover .services-roadmap__panel {
    transform: none;
  }
}

.services-ops-section.services-ops--scrollfx .services-ops-card {
  opacity: 0.26;
  transform: translate3d(0, 26px, 0) scale(0.985);
  filter: saturate(0.72) brightness(0.84) blur(1px);
  transition:
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.55s ease,
    filter 0.6s ease,
    border-color 0.45s ease,
    box-shadow 0.55s ease;
}

.services-ops-section.services-ops--scrollfx .services-ops-card > * {
  opacity: 0.76;
  transition: opacity 0.45s ease;
}

.services-ops-section.services-ops--scrollfx .services-ops-card.is-active {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: saturate(1) brightness(1) blur(0);
}

.services-ops-section.services-ops--scrollfx .services-ops-card.is-active .services-roadmap__panel {
  border-color: rgba(255, 105, 109, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(233, 4, 8, 0.06),
    0 18px 52px rgba(0, 0, 0, 0.4),
    0 0 32px rgba(233, 4, 8, 0.14);
}

.services-ops-section.services-ops--scrollfx .services-ops-card.is-active > * {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .services-ops-section.services-ops--scrollfx .services-ops-card,
  .services-ops-section.services-ops--scrollfx .services-ops-card.is-active {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

/* --- Как мы работаем: 4 фазы методологии (smisli §4–7) --- */
.method-phases {
  --method-mint: #34d399;
  --method-mint-soft: rgba(52, 211, 153, 0.22);
  position: relative;
  padding-block: clamp(56px, 9vw, 104px);
  overflow: hidden;
}

.method-phases__wrap {
  max-width: min(1180px, 100%);
}

.method-phases__mast {
  position: relative;
  z-index: 1;
  margin-bottom: clamp(10px, 2vw, 18px);
}

.method-phases__title-accent {
  color: var(--red-bright);
  white-space: nowrap;
}

@media (max-width: 419px) {
  .method-phases__title-accent {
    white-space: normal;
  }
}

.method-phases__spectrum {
  display: flex;
  gap: 0;
  margin-top: clamp(14px, 2.5vw, 22px);
  max-width: min(520px, 100%);
  height: 3px;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 0 24px rgba(233, 4, 8, 0.15);
}

.method-phases__spectrum span {
  flex: 1;
  min-width: 0;
  height: 100%;
}

.method-phases__spectrum span:nth-child(1) {
  background: linear-gradient(90deg, rgba(255, 200, 202, 0.85), rgba(255, 90, 94, 0.95));
}

.method-phases__spectrum span:nth-child(2) {
  background: linear-gradient(90deg, rgba(255, 74, 79, 0.95), rgba(233, 4, 8, 0.92));
}

.method-phases__spectrum span:nth-child(3) {
  background: linear-gradient(90deg, rgba(233, 4, 8, 0.92), rgba(151, 2, 3, 0.88));
}

.method-phases__spectrum span:nth-child(4) {
  background: linear-gradient(90deg, rgba(151, 2, 3, 0.88), rgba(94, 1, 4, 0.95));
}

.method-phases__board {
  position: relative;
  margin-top: clamp(20px, 3.5vw, 32px);
  padding: clamp(18px, 3vw, 26px) clamp(14px, 3vw, 24px) clamp(20px, 3.2vw, 28px);
  border-radius: clamp(20px, 4vw, var(--radius-xl));
  overflow: hidden;
}

.method-phases__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-bottom: clamp(18px, 3vw, 26px);
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: clamp(10px, 1.5vw, 11px);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 247, 250, 0.65);
}

.method-phases__toolbar-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: min(100%, 52ch);
}

.method-phases__toolbar-right {
  color: rgba(233, 4, 8, 0.78);
  white-space: nowrap;
}

.method-phases__rail {
  position: relative;
  margin: 0 0 clamp(12px, 2vw, 18px);
  padding: 0 clamp(8px, 2vw, 16px);
}

.method-phases__rail-line {
  display: block;
  height: 2px;
  margin: 0 10%;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    rgba(233, 4, 8, 0.08),
    rgba(233, 4, 8, 0.65) 35%,
    rgba(255, 74, 79, 0.55) 70%,
    rgba(233, 4, 8, 0.08)
  );
  box-shadow: 0 0 18px rgba(233, 4, 8, 0.22);
}

.method-phases__rail-dots {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: -22px;
  align-items: start;
  justify-items: center;
}

.method-phases__rail-dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: clamp(40px, 7vw, 46px);
  height: clamp(40px, 7vw, 46px);
  border-radius: 50%;
  font-family: var(--font-head);
  font-size: clamp(11px, 2vw, 12px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  background: radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.08), rgba(10, 11, 14, 0.98));
  border: 2px solid rgba(233, 4, 8, 0.65);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 0 28px rgba(233, 4, 8, 0.35);
}

.method-phases__rail-dot--finale {
  border-color: color-mix(in srgb, var(--method-mint) 65%, rgba(233, 4, 8, 0.35));
  color: rgba(245, 247, 250, 0.96);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 0 28px var(--method-mint-soft);
}

.method-phases__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 1.8vw, 16px);
  align-items: stretch;
}

.method-phases__col {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(16px, 2.6vw, 22px) clamp(14px, 2.2vw, 18px) clamp(18px, 2.8vw, 22px);
  border-radius: clamp(16px, 3vw, 20px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(165deg, rgba(22, 24, 28, 0.96) 0%, rgba(8, 9, 11, 0.94) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 14px 40px rgba(0, 0, 0, 0.38);
  transition:
    transform 0.4s var(--ease-out),
    border-color 0.35s ease,
    box-shadow 0.4s ease;
}

.method-phases__col::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  border-radius: clamp(16px, 3vw, 20px) clamp(16px, 3vw, 20px) 0 0;
  background: linear-gradient(90deg, transparent, rgba(233, 4, 8, 0.45), transparent);
  opacity: 0.75;
  pointer-events: none;
}

.method-phases__col--accent {
  border-color: rgba(52, 211, 153, 0.2);
  background: linear-gradient(
    168deg,
    rgba(6, 26, 22, 0.45) 0%,
    rgba(10, 11, 14, 0.94) 42%,
    rgba(8, 22, 18, 0.35) 100%
  );
}

.method-phases__col--accent::before {
  background: linear-gradient(90deg, transparent, rgba(52, 211, 153, 0.55), transparent);
}

.method-phases__wm {
  position: absolute;
  top: 6px;
  right: 8px;
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 7vw, 3.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  color: rgba(255, 255, 255, 0.04);
  pointer-events: none;
  user-select: none;
}

.method-phases__wm--accent {
  color: rgba(52, 211, 153, 0.09);
}

.method-phases__name {
  position: relative;
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-size: clamp(12px, 1.1vw + 10px, 14px);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 247, 250, 0.92);
}

.method-phases__lead {
  position: relative;
  margin: 0 0 12px;
  font-size: clamp(11.5px, 0.95vw + 10px, 13px);
  line-height: 1.55;
  color: rgba(245, 247, 250, 0.76);
  flex: 0 0 auto;
}

.method-phases__list {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
}

.method-phases__list li {
  position: relative;
  margin: 0;
  padding: 0 0 0 18px;
  font-size: clamp(11px, 0.85vw + 10px, 12.5px);
  line-height: 1.5;
  color: rgba(245, 247, 250, 0.78);
}

.method-phases__list li::before {
  content: '→';
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: rgba(233, 4, 8, 0.85);
  font-size: 0.95em;
}

.method-phases__col--accent .method-phases__list li::before {
  color: color-mix(in srgb, var(--method-mint) 75%, rgba(233, 4, 8, 0.5));
}

.method-phases__pill {
  position: relative;
  margin: 14px 0 0;
  padding: 9px 12px;
  align-self: stretch;
  border-radius: 12px;
  font-size: clamp(10px, 1.6vw, 11px);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(245, 247, 250, 0.88);
  border: 1px solid rgba(233, 4, 8, 0.35);
  background: rgba(0, 0, 0, 0.28);
}

.method-phases__pill--growth {
  border-color: rgba(52, 211, 153, 0.45);
  color: rgba(220, 255, 241, 0.92);
  background: rgba(6, 26, 22, 0.35);
  box-shadow: 0 0 22px var(--method-mint-soft);
}

.method-phases__result {
  margin: clamp(18px, 3vw, 26px) 0 0;
  padding-top: clamp(16px, 2.5vw, 22px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: clamp(10px, 1.6vw, 11px);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(245, 247, 250, 0.55);
}

.method-phases__note {
  position: relative;
  z-index: 1;
  margin: clamp(12px, 2vw, 16px) 0 0;
  font-size: 12px;
  line-height: 1.55;
  max-width: 72ch;
  margin-inline: auto;
  text-align: center;
}

@media (hover: hover) and (pointer: fine) {
  .method-phases__col:hover {
    transform: translate3d(0, -3px, 0);
    border-color: rgba(255, 120, 124, 0.22);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 20px 52px rgba(0, 0, 0, 0.45),
      0 0 40px rgba(233, 4, 8, 0.12);
  }

  .method-phases__col--accent:hover {
    border-color: rgba(52, 211, 153, 0.35);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.06),
      0 20px 52px rgba(0, 0, 0, 0.45),
      0 0 36px var(--method-mint-soft);
  }
}

@media (max-width: 1023px) {
  .method-phases__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .method-phases__rail-dots {
    margin-top: -20px;
  }
}

@media (max-width: 639px) {
  .method-phases__toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .method-phases__rail {
    display: none;
  }

  .method-phases__grid {
    grid-template-columns: 1fr;
  }

  .method-phases__col {
    padding-bottom: 20px;
  }
}

@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .method-phases__rail-dot--finale {
    border-color: rgba(52, 211, 153, 0.55);
  }

  .method-phases__col--accent .method-phases__list li::before {
    color: rgba(52, 211, 153, 0.85);
  }
}

.growth {
  background:
    radial-gradient(circle at 78% 0%, rgba(233, 4, 8, 0.12), transparent 46%),
    radial-gradient(ellipse 55% 38% at 4% 92%, rgba(151, 2, 3, 0.1), transparent 50%),
    var(--bg);
}

/* Блок «рост без раздувания бюджета» — спокойная сетка в стиле остального сайта */
.growth-card {
  position: relative;
  padding: clamp(22px, 4vw, 34px);
  border-radius: clamp(20px, 4vw, var(--radius-xl));
  overflow: hidden;
}

.growth-card__grid {
  display: grid;
  gap: clamp(22px, 4vw, 32px);
  grid-template-columns: 1fr;
  align-items: start;
}

@media (min-width: 920px) {
  .growth-card__grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(240px, 0.88fr);
    gap: clamp(24px, 3.5vw, 40px);
    align-items: stretch;
  }
}

.growth-card__title {
  margin: 0 0 10px;
  font-family: var(--font-head);
  font-size: clamp(1.05rem, 2.4vw + 0.4rem, 1.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text);
}

.growth-card__lead {
  margin: 0 0 clamp(16px, 3vw, 22px);
  max-width: 52ch;
  font-size: clamp(14px, 1.4vw, 15px);
  line-height: 1.6;
}

.growth-card__steps {
  margin: 0 0 clamp(18px, 3vw, 24px);
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 9, 11, 0.45);
  overflow: hidden;
}

.growth-card__step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: clamp(14px, 1.45vw, 15px);
  line-height: 1.45;
  color: rgba(245, 247, 250, 0.9);
}

.growth-card__step:last-child {
  border-bottom: none;
}

.growth-card__step-num {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(255, 26, 31, 0.88);
  min-width: 2.1em;
}

.growth-card__quote {
  margin: 0;
  padding: 14px 16px;
  border-radius: 14px;
  border-left: 3px solid rgba(233, 4, 8, 0.45);
  background: rgba(10, 11, 13, 0.55);
  font-size: 14px;
  line-height: 1.62;
  font-style: italic;
  color: rgba(220, 224, 230, 0.88);
}

.growth-card__viz {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: clamp(16px, 3vw, 22px);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(165deg, rgba(16, 17, 20, 0.75) 0%, rgba(8, 9, 11, 0.9) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.growth-card__viz-label {
  margin: 0 0 12px;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(155, 157, 159, 0.85);
}

.growth-card__chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  flex: 1;
  min-height: clamp(100px, 18vw, 132px);
  padding: 8px 4px 0;
  margin-bottom: 4px;
  border-radius: 10px;
  background: repeating-linear-gradient(
    to top,
    transparent 0,
    transparent calc(20px - 1px),
    rgba(255, 255, 255, 0.04) calc(20px - 1px),
    rgba(255, 255, 255, 0.04) 20px
  );
}

.growth-card__bar {
  flex: 1;
  min-width: 0;
  height: var(--h, 50%);
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, rgba(255, 74, 78, 0.55) 0%, rgba(233, 4, 8, 0.35) 55%, rgba(80, 8, 10, 0.45) 100%);
  border: 1px solid rgba(233, 4, 8, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.growth-card__viz-note {
  margin: 12px 0 0;
  font-size: 12.5px;
  line-height: 1.55;
  max-width: 42ch;
}

.growth-card.reveal .growth-card__step {
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.45s var(--ease-out),
    transform 0.5s var(--ease-out);
}

.growth-card.reveal[data-visible='true'] .growth-card__step {
  opacity: 1;
  transform: translateY(0);
}

.growth-card.reveal[data-visible='true'] .growth-card__step:nth-child(1) {
  transition-delay: 0.03s;
}
.growth-card.reveal[data-visible='true'] .growth-card__step:nth-child(2) {
  transition-delay: 0.07s;
}
.growth-card.reveal[data-visible='true'] .growth-card__step:nth-child(3) {
  transition-delay: 0.11s;
}
.growth-card.reveal[data-visible='true'] .growth-card__step:nth-child(4) {
  transition-delay: 0.15s;
}
.growth-card.reveal[data-visible='true'] .growth-card__step:nth-child(5) {
  transition-delay: 0.19s;
}

@media (prefers-reduced-motion: reduce) {
  .growth-card.reveal .growth-card__step,
  .growth-card.reveal[data-visible='true'] .growth-card__step {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* --- Блок «Наш опыт и результаты» (bento под дизайн-код сайта) --- */
.exp-bento {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 4.5vw, 36px);
  border-radius: clamp(20px, 4vw, var(--radius-xl));
}

.exp-bento__layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.12fr);
  gap: clamp(28px, 4.5vw, 44px);
  align-items: start;
}

.exp-bento__intro {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 2px clamp(8px, 2vw, 20px) 0 0;
  max-width: min(52ch, 100%);
}

.exp-bento__intro .section__label {
  margin-bottom: clamp(10px, 1.6vw, 14px);
}

.exp-bento__wave {
  position: absolute;
  z-index: 0;
  inset: -28% -16% -20% -38%;
  background:
    radial-gradient(ellipse 70% 55% at 85% 40%, rgba(233, 4, 8, 0.14), transparent 55%),
    radial-gradient(ellipse 55% 45% at 20% 80%, rgba(255, 26, 31, 0.06), transparent 50%);
  opacity: 0.9;
  pointer-events: none;
}

.exp-bento__intro > :not(.exp-bento__wave) {
  position: relative;
  z-index: 1;
}

.exp-bento__title {
  margin: 0 0 clamp(12px, 2vw, 16px);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.35rem, 3.2vw + 0.5rem, 2.35rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.exp-bento__title-plain {
  display: block;
  color: var(--text);
}

.exp-bento__title-accent {
  display: block;
  color: var(--red-bright);
  text-shadow: 0 0 36px rgba(233, 4, 8, 0.28);
}

.exp-bento__lead {
  margin: 0;
  max-width: none;
  font-size: clamp(14px, 1.5vw, 15px);
  line-height: 1.62;
}

.exp-bento__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: clamp(10px, 2vw, 14px);
  contain: layout;
}

.exp-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 2vw, 14px);
  min-height: clamp(148px, 22vw, 178px);
  padding: clamp(16px, 3vw, 22px);
  border-radius: clamp(16px, 3vw, var(--radius-lg));
  box-sizing: border-box;
}

.exp-card--dark {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(155deg, #070708 0%, #101114 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.exp-card--accent {
  border: 1px solid rgba(255, 26, 31, 0.35);
  background: linear-gradient(152deg, var(--red-dark) 0%, rgba(151, 2, 3, 0.92) 38%, var(--red) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 14px 40px rgba(233, 4, 8, 0.18);
}

.exp-card--surface {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(160deg, rgba(22, 24, 28, 0.95) 0%, rgba(10, 11, 13, 0.88) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 10px 32px rgba(0, 0, 0, 0.35);
}

.exp-card__stat {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(2rem, 4.2vw + 1rem, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--text);
}

.exp-card--accent .exp-card__stat {
  color: #fff;
}

.exp-card__stat--brand {
  color: var(--red-bright);
}

.exp-card__suffix {
  font-weight: 800;
  letter-spacing: -0.03em;
}

.exp-card__text {
  margin: 0;
  font-size: clamp(12px, 1.35vw, 13px);
  line-height: 1.55;
  color: rgba(245, 247, 250, 0.72);
}

.exp-card--dark .exp-card__text {
  color: rgba(245, 247, 250, 0.76);
}

.exp-card__text--on-accent {
  color: rgba(255, 255, 255, 0.9);
}

.exp-bento__note {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: clamp(14px, 2.2vw, 20px) 0 0;
  padding-top: clamp(12px, 2vw, 16px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: clamp(11px, 1.1vw, 12px);
  line-height: 1.55;
  max-width: 52ch;
  color: rgba(245, 247, 250, 0.52);
}

@media (max-width: 900px) {
  .exp-bento__layout {
    grid-template-columns: 1fr;
  }

  .exp-bento__intro {
    padding-right: 0;
    max-width: none;
  }
}

@media (max-width: 520px) {
  .exp-bento__grid {
    grid-template-columns: 1fr;
  }

  .exp-card {
    min-height: 0;
  }
}

.cases-carousel {
  position: relative;
  padding: clamp(14px, 3.2vw, 22px);
  isolation: isolate;
  contain: layout;
  background:
    radial-gradient(ellipse 85% 90% at 78% -20%, rgba(233, 4, 8, 0.1), transparent 48%),
    linear-gradient(152deg, rgba(16, 18, 22, 0.95), rgba(7, 7, 9, 0.92));
  border-radius: clamp(18px, 4vw, var(--radius-xl));
  border: 1px solid rgba(255, 255, 255, 0.085);
}

.cases-carousel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 14%;
  right: 14%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 26, 31, 0.45), transparent);
  opacity: 0.88;
  pointer-events: none;
}

.cases-carousel__toolbar {
  display: flex;
  align-items: center;
  gap: clamp(10px, 3vw, 16px);
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.cases-carousel__arrow {
  display: grid;
  place-items: center;
  width: var(--touch-min);
  min-height: var(--touch-min);
  flex-shrink: 0;
  border-radius: 12px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 8, 10, 0.75);
  transition:
    border-color var(--dur-micro) var(--ease-out),
    background var(--dur-micro) var(--ease-out),
    box-shadow var(--dur-micro) var(--ease-out);
}

.cases-carousel__arrow:hover {
  border-color: rgba(233, 4, 8, 0.34);
  box-shadow: 0 10px 30px rgba(233, 4, 8, 0.1);
}

.cases-carousel__counter {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: rgba(245, 247, 250, 0.66);
}

.cases-carousel__progress {
  position: relative;
  height: 3px;
  border-radius: 3px;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.cases-carousel__progress-fill {
  display: block;
  height: 100%;
  width: 10%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--red-dark), var(--red-bright));
  box-shadow: 0 0 12px rgba(233, 4, 8, 0.35);
  transition: width 0.56s var(--ease-out);
}

.cases-carousel__status {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  min-height: 1.35em;
  color: rgba(200, 204, 214, 0.92);
}

.cases-portfolio-section .cases-portfolio__head {
  margin-bottom: clamp(18px, 4vw, 28px);
  text-align: center;
}

.cases-portfolio__title {
  margin: 0 0 10px;
  font-family: var(--font-head);
  font-size: clamp(22px, 4.8vw + 4px, 40px);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  text-wrap: balance;
}

.cases-portfolio__subtitle {
  margin: 0;
  font-size: clamp(15px, 1.5vw, 17px);
  font-weight: 600;
  color: rgba(245, 247, 250, 0.62);
}

.cases-carousel__tabs-scroll {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 14px;
  margin-bottom: 10px;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(233, 4, 8, 0.35) transparent;
}

.cases-carousel__tabs-scroll::-webkit-scrollbar {
  height: 5px;
}

.cases-carousel__tabs-scroll::-webkit-scrollbar-thumb {
  background: rgba(233, 4, 8, 0.35);
  border-radius: 99px;
}

.cases-carousel__tab {
  flex: 0 0 auto;
  min-height: var(--touch-min);
  padding: 10px 16px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: rgba(200, 204, 210, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(6, 6, 8, 0.75);
  white-space: nowrap;
  scroll-snap-align: start;
  transition:
    border-color var(--dur-micro) var(--ease-out),
    background var(--dur-micro) var(--ease-out),
    color var(--dur-micro) var(--ease-out),
    box-shadow var(--dur-micro) var(--ease-out),
    transform var(--dur-micro) var(--ease-out);
}

.cases-carousel__tab:hover {
  border-color: rgba(255, 26, 31, 0.22);
  transform: translate3d(0, -1px, 0);
}

.cases-carousel__tab.is-active {
  color: var(--text);
  border-color: rgba(233, 4, 8, 0.36);
  background:
    radial-gradient(ellipse 100% 140% at 50% -20%, rgba(233, 4, 8, 0.18), transparent 55%), rgba(10, 6, 7, 0.88);
  box-shadow: 0 8px 22px rgba(233, 4, 8, 0.08);
}

.cases-carousel__tab--portfolio {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 12px;
  letter-spacing: -0.01em;
}

.cases-carousel__tab--portfolio .cases-carousel__tab-ico {
  flex-shrink: 0;
  opacity: 0.85;
}

.cases-carousel__tab--portfolio.is-active {
  border-width: 2px;
  border-color: rgba(233, 4, 8, 0.58);
  padding: 11px 17px;
}

.cases-carousel__viewport {
  overflow: hidden;
  border-radius: clamp(14px, 3vw, 20px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(5, 5, 7, 0.45);
}

.cases-carousel__viewport:focus-visible {
  outline: 2px solid rgba(255, 26, 31, 0.85);
  outline-offset: 3px;
}

.cases-carousel__tab:focus-visible {
  outline: 2px solid rgba(255, 26, 31, 0.85);
  outline-offset: 2px;
}

.cases-carousel__arrow:focus-visible {
  outline: 2px solid rgba(255, 26, 31, 0.85);
  outline-offset: 2px;
}

.cases-carousel__track {
  display: flex;
  width: 100%;
  transition: transform 0.65s var(--ease-out);
  will-change: transform;
}

.cases-carousel.track--instant .cases-carousel__track {
  transition: none !important;
}

.case-slide {
  flex: 0 0 100%;
  padding: clamp(12px, 3vw, 20px);
  box-sizing: border-box;
}

.case-slide__shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(12px, 2.4vw, 18px);
  align-items: start;
  margin-bottom: clamp(10px, 2vw, 14px);
}

@media (min-width: 960px) {
  .case-slide__shell {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(14px, 2.5vw, 26px);
    align-items: stretch;
  }
}

.case-slide__main {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.6vw, 12px);
  min-width: 0;
}

.case-slide__eyebrow {
  margin: 0;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(233, 4, 8, 0.92);
}

.case-slide__headline {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(13px, 0.55rem + 1.15vw, 17px);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.28;
  color: rgba(245, 247, 250, 0.96);
  text-wrap: balance;
}

.case-slide__lede {
  margin: 0;
  font-size: clamp(13px, 0.42rem + 0.85vw, 15px);
  line-height: 1.45;
  color: rgba(245, 247, 250, 0.68);
}

.case-slide__spotlight {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: clamp(10px, 2vw, 14px);
  border-radius: 12px;
  border: 1px solid rgba(233, 4, 8, 0.28);
  background:
    radial-gradient(ellipse 120% 140% at 12% -30%, rgba(233, 4, 8, 0.14), transparent 52%),
    rgba(10, 11, 14, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.case-slide__spotlight-ico {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: rgba(255, 26, 31, 0.96);
  background: rgba(233, 4, 8, 0.12);
  border: 1px solid rgba(233, 4, 8, 0.28);
}

.case-slide__spotlight-text {
  margin: 0;
  font-size: clamp(12px, 0.38rem + 0.75vw, 14px);
  font-weight: 600;
  line-height: 1.45;
  color: rgba(245, 247, 250, 0.85);
}

.case-slide__specs {
  margin: 2px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.case-slide__spec-row {
  display: grid;
  grid-template-columns: minmax(0, 38%) minmax(0, 1fr);
  gap: 10px 14px;
  align-items: baseline;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.case-slide__spec-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.case-slide__spec-row dt {
  margin: 0;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: rgba(245, 247, 250, 0.78);
}

.case-slide__spec-row dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(245, 247, 250, 0.58);
}

@media (max-width: 520px) {
  .case-slide__spec-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

.case-slide__cta {
  margin-top: 4px;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(245, 247, 250, 0.42);
  background: transparent;
  color: rgba(245, 247, 250, 0.94);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition:
    border-color var(--dur-micro) var(--ease-out),
    box-shadow var(--dur-micro) var(--ease-out),
    color var(--dur-micro) var(--ease-out);
}

.case-slide__cta:hover {
  border-color: rgba(233, 4, 8, 0.45);
  box-shadow: 0 10px 36px rgba(233, 4, 8, 0.12);
  color: var(--text);
}

.case-slide__cta:focus-visible {
  outline: 2px solid rgba(233, 4, 8, 0.55);
  outline-offset: 3px;
}

.case-slide__viz {
  min-width: 0;
}

.case-chart {
  height: 100%;
  padding: clamp(8px, 1.6vw, 12px);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(ellipse 90% 80% at 50% 0%, rgba(233, 4, 8, 0.09), transparent 55%),
    linear-gradient(165deg, rgba(14, 15, 18, 0.92), rgba(6, 7, 9, 0.88));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 10px 28px rgba(0, 0, 0, 0.32);
}

.case-chart__svg-host {
  width: 100%;
  min-height: 200px;
}

.case-chart__svg {
  display: block;
  width: 100%;
  height: auto;
}

.case-chart__hint {
  margin: 6px 0 0;
  font-size: 10px;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.case-slide__details {
  margin-top: clamp(6px, 1.5vw, 10px);
  padding: clamp(10px, 1.8vw, 14px);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(5, 6, 8, 0.35);
}

.case-slide__details-sum {
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: rgba(245, 247, 250, 0.82);
  list-style: none;
}

.case-slide__details-sum::-webkit-details-marker {
  display: none;
}

.case-slide__details[open] .case-slide__details-sum {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.case-slide__title {
  margin: 0 0 18px;
  font-family: var(--font-head);
  font-size: clamp(18px, 4.2vw, 22px);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--text);
}

.case-slide__tag {
  margin-left: 8px;
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: middle;
  color: rgba(255, 26, 31, 0.88);
  border: 1px solid rgba(233, 4, 8, 0.38);
  background: rgba(233, 4, 8, 0.1);
}

.case-slide__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: clamp(12px, 3vw, 20px);
  align-items: stretch;
}

@media (max-width: 820px) {
  .case-slide__grid {
    grid-template-columns: 1fr;
  }

  .case-slide__title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 10px;
  }

  .case-slide__tag {
    margin-left: 0;
  }

  .case-slide__pane--work {
    border-left: none;
    border-block: 1px dashed rgba(255, 255, 255, 0.1);
    padding-block: 14px;
  }
}

.case-slide__pane {
  padding: clamp(14px, 3vw, 18px);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: radial-gradient(120% 80% at 20% -10%, rgba(233, 4, 8, 0.06), transparent 45%), rgba(8, 9, 11, 0.55);
}

.case-slide__pane--work {
  border-color: rgba(233, 4, 8, 0.18);
  background:
    radial-gradient(ellipse 100% 120% at 50% -30%, rgba(233, 4, 8, 0.12), transparent 40%), rgba(7, 7, 9, 0.65);
}

.case-slide__pill {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.case-slide__pill--before {
  color: rgba(185, 190, 198, 0.75);
}

.case-slide__pill--work {
  color: rgba(255, 26, 31, 0.85);
}

.case-slide__pill--after {
  color: rgba(245, 247, 250, 0.78);
}

.case-slide__work {
  margin: 0;
  font-size: 14px;
  line-height: 1.62;
  color: rgba(245, 247, 250, 0.82);
}

.case-slide .case-list {
  gap: 7px;
  font-size: 13px;
}

.case-slide .case-list--before {
  color: rgba(198, 202, 210, 0.78);
}

.case-slide .case-list--after {
  color: rgba(245, 247, 250, 0.9);
}

.case-slide li::marker {
  color: rgba(233, 4, 8, 0.45);
}

.case-list {
  margin: 0;
  padding-left: 16px;
  display: grid;
  gap: 8px;
  font-size: 14px;
}

.case-list--before {
  color: rgba(245, 247, 250, 0.58);
}

.case-list--after {
  color: rgba(245, 247, 250, 0.86);
}

.faq-block {
  display: grid;
  gap: 8px;
}

details.faq-item {
  padding: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(155deg, rgba(17, 19, 22, 0.9), rgba(8, 9, 11, 0.86));
  backdrop-filter: blur(18px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 8px 34px rgba(0, 0, 0, 0.28);
  transition:
    border-color var(--dur-soft) var(--ease-out),
    box-shadow var(--dur-soft) var(--ease-out);
}

details[open].faq-item {
  border-color: rgba(233, 4, 8, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(233, 4, 8, 0.06),
    0 14px 42px rgba(0, 0, 0, 0.32);
}

details.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 13px clamp(46px, 12vw, 54px) 13px clamp(12px, 3vw, 18px);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(13.5px, 3.5vw, 15.5px);
  letter-spacing: -0.025em;
  color: var(--text);
  position: relative;
  text-wrap: balance;
}

details.faq-item summary::-webkit-details-marker {
  display: none;
}

details.faq-item summary::after {
  content: '+';
  position: absolute;
  right: max(14px, env(safe-area-inset-right));
  top: 50%;
  margin-top: calc(var(--touch-min) * -0.5);
  width: var(--touch-min);
  height: var(--touch-min);
  display: grid;
  place-items: center;
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
  color: rgba(255, 26, 31, 0.82);
  border-radius: 12px;
  transition:
    color 0.36s var(--ease-out),
    transform 0.42s cubic-bezier(0.33, 1, 0.68, 1),
    background-color 0.28s var(--ease-out);
}

details[open].faq-item summary::after {
  content: '+';
  color: rgba(245, 247, 250, 0.92);
  background: rgba(233, 4, 8, 0.12);
  transform: rotate(45deg);
}

/* max-height + opacity: стабильная интерполяция (grid 0fr→1fr часто не анимируется) */
details.faq-item .faq-item__body {
  display: block;
}

details.faq-item .faq-item__body-inner {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding-left: clamp(14px, 4vw, 20px);
  padding-right: clamp(14px, 4vw, 20px);
  padding-top: 0;
  padding-bottom: 0;
  border-top: 1px solid transparent;
  transition:
    max-height 0.5s cubic-bezier(0.33, 1, 0.68, 1),
    opacity 0.38s ease 0.05s,
    padding-top 0.45s cubic-bezier(0.33, 1, 0.68, 1),
    padding-bottom 0.45s cubic-bezier(0.33, 1, 0.68, 1),
    border-top-color 0.25s ease;
}

details[open].faq-item .faq-item__body-inner {
  max-height: min(80vh, 36rem);
  opacity: 1;
  padding-top: 10px;
  padding-bottom: 14px;
  border-top-color: var(--border);
}

details.faq-item .faq-item__body-inner > p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.58;
  color: rgba(245, 247, 250, 0.82);
  transform: translateY(-6px);
  transition: transform 0.42s cubic-bezier(0.33, 1, 0.68, 1) 0.06s;
}

details.faq-item .faq-item__body-inner > p + p {
  margin-top: 9px;
}

details[open].faq-item .faq-item__body-inner > p {
  transform: translateY(0);
}

.section__title--faq .faq-title-accent {
  color: var(--red-bright);
  text-shadow: 0 0 28px rgba(233, 4, 8, 0.35);
}

.section__title--faq .faq-title-dot {
  color: rgba(245, 247, 250, 0.38);
  font-weight: 800;
}

.form-section {
  background:
    radial-gradient(ellipse 72% 52% at 50% -18%, rgba(233, 4, 8, 0.09), transparent 54%),
    var(--bg-deep);
}

.form-shell {
  padding: clamp(20px, 3vw, 30px);
  border-radius: var(--radius-xl);
  border-color: rgba(255, 255, 255, 0.1);
  background: linear-gradient(
    154deg,
    rgba(18, 20, 24, 0.92) 0%,
    rgba(10, 11, 13, 0.88) 100%
  );
}

.form-shell--split {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    'form'
    'cta';
  align-items: start;
  gap: clamp(16px, 3.8vw, 26px);
  padding: clamp(16px, 3vw, 26px);
}

@media (min-width: 960px) {
  .form-shell--split {
    grid-template-columns: minmax(252px, 0.94fr) minmax(340px, 1.52fr);
    grid-template-areas: 'cta form';
    gap: clamp(28px, 4vw, 44px);
  }
}

.form-cta {
  grid-area: cta;
  margin: 0;
  padding: clamp(14px, 3.2vw, 20px) clamp(16px, 3.8vw, 22px);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.078);
  background:
    radial-gradient(ellipse 140% 100% at 0% 0%, rgba(233, 4, 8, 0.12), transparent 52%), rgba(9, 9, 12, 0.68);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 12px 40px rgba(0, 0, 0, 0.32);
}

.form-cta__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(200, 204, 210, 0.95);
}

.form-cta__pulse {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red-bright);
  box-shadow: 0 0 14px rgba(233, 4, 8, 0.55);
}

.form-cta__title {
  margin: 0 0 14px;
  font-family: var(--font-head);
  font-size: clamp(17px, 3.8vw, 20px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text);
}

.form-cta__list {
  margin: 0 0 18px;
  padding: 0 0 0 18px;
  display: grid;
  gap: 10px;
  font-size: 13.75px;
  line-height: 1.52;
  color: rgba(220, 222, 228, 0.92);
}

.form-cta__list li::marker {
  color: rgba(233, 4, 8, 0.55);
}

.form-cta__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.form-cta__side.btn {
  width: 100%;
}

@media (min-width: 480px) {
  .form-cta__side.btn {
    width: auto;
    justify-self: start;
    align-self: flex-start;
  }
}

.form-cta__link {
  display: inline-flex;
  align-items: center;
  padding: 4px 0;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.58);
  text-decoration: underline;
  text-decoration-color: rgba(233, 4, 8, 0.35);
  text-underline-offset: 3px;
  transition: color 0.22s var(--ease-out), text-decoration-color 0.22s var(--ease-out);
}

.form-cta__link:hover {
  color: rgba(245, 247, 250, 0.88);
  text-decoration-color: rgba(233, 4, 8, 0.65);
}

.form-cta__note {
  margin: 0;
  font-size: 11.75px;
  line-height: 1.45;
}

.form-main {
  grid-area: form;
  min-width: 0;
}

/* Контакт: компактнее по вертикали, та же форма и поля */
#contact.section {
  padding-block: clamp(28px, 6vw, 80px);
}

#contact .section__title {
  margin-bottom: 6px;
}

#contact .section__subtitle {
  margin-bottom: clamp(12px, 2.2vw, 18px);
  max-width: 52ch;
  font-size: clamp(13.5px, 1.2vw, 15px);
  line-height: 1.45;
}

#contact .form-shell--split {
  padding: clamp(12px, 2vw, 18px);
  gap: clamp(12px, 2.2vw, 20px);
}

@media (min-width: 960px) {
  #contact .form-shell--split {
    grid-template-columns: minmax(200px, 0.82fr) minmax(320px, 1.65fr);
    gap: clamp(16px, 2.5vw, 26px);
  }
}

#contact .form-cta {
  padding: clamp(10px, 1.8vw, 14px) clamp(12px, 2.2vw, 16px);
}

#contact .form-cta__kicker {
  margin-bottom: 6px;
  font-size: 11px;
}

#contact .form-cta__title {
  margin-bottom: 8px;
  font-size: clamp(15px, 2.2vw, 18px);
}

#contact .form-cta__list {
  gap: 5px;
  margin-bottom: 10px;
  font-size: 12.75px;
  line-height: 1.42;
}

#contact .form-cta__actions {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin-bottom: 8px;
}

#contact .form-cta__note {
  font-size: 11px;
  line-height: 1.4;
}

#contact .lead-form__grid--compact {
  gap: 8px 12px;
}

#contact .form-shell--split .form-main .field {
  gap: 4px;
}

#contact .form-shell--split .form-main .field input:not([type='checkbox']),
#contact .form-shell--split .form-main .field select {
  padding: 10px 12px;
  min-height: 46px;
}

#contact .form-shell--split .form-main .field textarea {
  padding: 10px 12px;
  min-height: 68px;
}

#contact .field--contact-pref .form-contact-hint {
  font-size: 11px;
  line-height: 1.32;
}

#contact .lead-form .btn {
  margin-top: 10px;
  padding-block: 12px;
}

#contact .field.field--checkbox {
  margin-top: 2px;
  gap: 6px;
}

#contact .field-checkbox-label {
  font-size: 12px;
  line-height: 1.4;
}

#contact .form-status {
  margin-top: 8px !important;
  font-size: 13px !important;
}

.lead-form__grid--compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}

@media (max-width: 519px) {
  .lead-form__grid--compact {
    grid-template-columns: 1fr;
  }
}

.form-shell--split .form-main .field {
  gap: 6px;
  font-size: 12.5px;
}

.form-shell--split .form-main .field input:not([type='checkbox']),
.form-shell--split .form-main .field select {
  padding: 12px 14px;
  font-size: 16px;
  border-radius: 12px;
}

.form-shell--split .form-main .field textarea {
  padding: 12px 14px;
  font-size: 16px;
  border-radius: 12px;
  min-height: 96px;
}

.lead-form__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: clamp(14px, 3.5vw, 16px);
}

.field {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(245, 247, 250, 0.74);
  letter-spacing: -0.01em;
}

.field--full {
  grid-column: 1 / -1;
}

.field__lab {
  display: block;
  font: inherit;
  font-weight: 600;
  color: inherit;
  letter-spacing: inherit;
}

.field-phone-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.field-phone-flag {
  display: none;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(38, 40, 44, 0.95) 0%, rgba(14, 15, 18, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.45) inset,
    0 2px 10px rgba(0, 0, 0, 0.28);
  pointer-events: none;
  overflow: hidden;
}

.field-phone-flag.is-visible {
  display: inline-flex;
}

.field-phone-flag__img {
  display: block;
  width: 30px;
  height: 30px;
  object-fit: cover;
  border-radius: 50%;
}

.field-phone-input-row input[type='tel'] {
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
}

.field--contact-pref .form-contact-hint {
  display: block;
  margin-top: 2px;
  font-weight: 500;
  font-size: 12px;
  line-height: 1.42;
  color: rgba(230, 232, 236, 0.56);
}

.field input:not([type='checkbox']),
.field select,
.field textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(5, 5, 6, 0.7);
  color: var(--text);
  padding: max(13px, 0.62rem) max(14px, 16px);
  font-size: 16px;
  min-height: var(--touch-min);
  outline: none;
  transition:
    border-color 0.25s var(--ease-out),
    box-shadow 0.25s var(--ease-out),
    transform 0.25s var(--ease-out);
}

.field textarea {
  resize: vertical;
  min-height: clamp(100px, 22vh, 180px);
}

.field input:not([type='checkbox']):focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(255, 26, 31, 0.55);
  box-shadow: 0 0 0 4px rgba(233, 4, 8, 0.12), 0 20px 50px rgba(0, 0, 0, 0.32);
  transform: translateY(-2px);
}

.lead-form .btn {
  margin-top: 14px;
  width: 100%;
}

@media (min-width: 640px) {
  .lead-form .btn {
    width: fit-content;
  }
}

body.lead-modal-open {
  overflow: hidden;
}

.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: max(12px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right))
    max(14px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.28s var(--ease-out),
    visibility 0.28s step-end;
}

.lead-modal.lead-modal--open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition:
    opacity 0.28s var(--ease-out),
    visibility 0s step-start;
}

.lead-modal__backdrop {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background: rgba(4, 5, 6, 0.38);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition:
    background-color 0.34s var(--ease-out),
    backdrop-filter 0.34s var(--ease-out),
    -webkit-backdrop-filter 0.34s var(--ease-out);
}

.lead-modal.lead-modal--open .lead-modal__backdrop {
  background: rgba(4, 5, 6, 0.76);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.lead-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100vw - 22px));
  max-height: min(94dvh, 880px);
  overflow-x: clip;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(233, 4, 8, 0.32) rgba(10, 11, 13, 0.35);
  padding: clamp(16px, 3.8vw, 26px);
  padding-top: clamp(38px, 5.5vw, 46px);
  border-radius: var(--radius-xl);
  margin-inline: auto;
  background: linear-gradient(
    153deg,
    rgba(22, 24, 28, 0.96) 0%,
    rgba(12, 13, 16, 0.94) 50%,
    rgba(9, 9, 11, 0.98) 100%
  );
  box-shadow:
    0 0 0 1px rgba(233, 4, 8, 0.06),
    0 26px 80px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transform: translateY(14px) scale(0.97);
  opacity: 0;
  transition:
    transform 0.38s cubic-bezier(0.33, 1, 0.68, 1),
    opacity 0.26s var(--ease-out);
}

.lead-modal__dialog::-webkit-scrollbar {
  width: 6px;
}

.lead-modal__dialog::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(233, 4, 8, 0.42), rgba(110, 3, 5, 0.45));
  border-radius: 99px;
  border: 1px solid rgba(0, 0, 0, 0.25);
}

.lead-modal__dialog::-webkit-scrollbar-track {
  background: rgba(6, 7, 9, 0.55);
  border-radius: 99px;
}

.lead-modal.lead-modal--open .lead-modal__dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.lead-modal__close {
  position: absolute;
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  z-index: 2;
  display: grid;
  place-items: center;
  width: var(--touch-min);
  height: var(--touch-min);
  padding: 0;
  margin: 0;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(14, 15, 18, 0.88);
  color: rgba(245, 247, 250, 0.78);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition:
    color var(--dur-soft) var(--ease-out),
    border-color var(--dur-soft) var(--ease-out),
    box-shadow var(--dur-soft) var(--ease-out),
    transform var(--dur-micro) var(--ease-out);
}

.lead-modal__close:hover {
  color: var(--text);
  border-color: rgba(233, 4, 8, 0.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 24px rgba(233, 4, 8, 0.12);
}

.lead-modal__close:active {
  transform: translateY(1px);
}

.lead-modal__close:focus-visible {
  outline: 2px solid rgba(255, 26, 31, 0.88);
  outline-offset: 3px;
}

.lead-modal__head {
  margin-bottom: 10px;
  padding-right: max(0px, calc(var(--touch-min) - 8px));
}

.lead-modal__label {
  margin-bottom: 8px;
}

.lead-modal__title {
  margin: 0 0 6px;
  font-family: var(--font-head);
  font-size: clamp(19px, 0.92rem + 1.85vw, 26px);
  font-weight: 800;
  letter-spacing: -0.034em;
  line-height: 1.08;
  color: var(--text);
  text-wrap: balance;
}

.lead-modal__sub {
  margin: 0;
  font-size: 12.75px;
  line-height: 1.42;
  max-width: 62ch;
}

.lead-modal__form .lead-form__grid {
  margin-top: 0;
}

.lead-modal__form .lead-modal__grid.lead-form__grid--compact {
  gap: 8px 14px;
}

@media (min-width: 480px) {
  .lead-modal__grid.lead-form__grid--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.lead-modal__form.lead-form .field {
  gap: 5px;
  font-size: 12px;
}

.lead-modal__form.lead-form .field input:not([type='checkbox']),
.lead-modal__form.lead-form .field select,
.lead-modal__form.lead-form .field textarea {
  padding: 10px 12px;
  font-size: 15px;
  min-height: 44px;
  border-radius: 12px;
}

.lead-modal__form.lead-form .field textarea {
  resize: vertical;
  min-height: 70px !important;
  padding-top: 11px;
  padding-bottom: 11px;
  line-height: 1.45;
}

.lead-modal__form.lead-form .field input:not([type='checkbox']):focus,
.lead-modal__form.lead-form .field select:focus,
.lead-modal__form.lead-form .field textarea:focus {
  transform: translateY(-1px);
}

.lead-modal__form.lead-form .field--checkbox {
  margin-top: 8px;
  font-size: 13px;
}

.lead-modal__form.lead-form .field-checkbox-label {
  font-size: 13px;
  line-height: 1.48;
}

.lead-modal__form.lead-form .btn.btn--primary {
  width: 100%;
  margin-top: 10px;
}

.lead-modal__form.lead-form .form-status {
  margin-top: 8px !important;
  font-size: 13px !important;
}

@media (prefers-reduced-motion: reduce) {
  .lead-modal,
  .lead-modal__dialog {
    transition-duration: 0.01ms !important;
    transition-timing-function: linear !important;
  }

  .lead-modal.lead-modal--open .lead-modal__dialog,
  .lead-modal__dialog {
    transform: none;
    opacity: 1;
  }
}

.form-status {
  margin-top: 12px !important;
  font-size: 14px !important;
  transition:
    opacity 0.38s var(--ease-out),
    transform 0.38s var(--ease-out);
}

.form-status--ok {
  opacity: 0;
  transform: translateY(6px);
}

.form-status--ok.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.form-status--err {
  opacity: 1;
  color: #ffb4b7;
}

.form-status--err:not([hidden]) {
  margin-top: var(--space-2) !important;
}

.field--invalid select,
.field--invalid textarea,
.field--invalid input:not([type='checkbox']) {
  border-color: rgba(233, 4, 8, 0.55);
  box-shadow: 0 0 0 1px rgba(233, 4, 8, 0.2);
}

.field--invalid.field--checkbox .field-checkbox-row {
  border-color: rgba(233, 4, 8, 0.45);
}

.field--checkbox {
  font-weight: 500;
  margin-top: 6px;
}

.field-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 9, 11, 0.5);
  transition:
    border-color 0.18s var(--ease-out),
    background-color 0.18s var(--ease-out);
}

.field-checkbox-row:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(10, 11, 14, 0.58);
}

.field-checkbox-row input[type='checkbox'] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin: 0;
  margin-top: 0.32em;
  padding: 0;
  box-sizing: border-box;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 5px;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  background: rgba(6, 7, 8, 0.88);
  transition:
    border-color 0.15s var(--ease-out),
    background-color 0.15s var(--ease-out),
    box-shadow 0.15s var(--ease-out);
}

.field-checkbox-row input[type='checkbox']:hover {
  border-color: rgba(255, 255, 255, 0.4);
}

.field-checkbox-row input[type='checkbox']:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px rgba(8, 9, 11, 0.95),
    0 0 0 4px rgba(233, 4, 8, 0.32);
}

.field-checkbox-row input[type='checkbox']:checked {
  border-color: transparent;
  background-color: var(--red-bright);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 9' fill='none'%3E%3Cpath d='M1 4.6L4.5 8L11 1.1' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 10px auto;
  background-position: center 55%;
  background-repeat: no-repeat;
}

.field-checkbox-row input[type='checkbox']:checked:hover {
  border-color: transparent;
  background-color: #ff2a31;
}

@media (prefers-reduced-motion: reduce) {
  .field-checkbox-row,
  .field-checkbox-row input[type='checkbox'] {
    transition-duration: 0.01ms !important;
  }
}

.field-checkbox-label {
  flex: 1;
  font-size: clamp(13px, 3.2vw, 14px);
  line-height: 1.45;
  color: rgba(235, 236, 240, 0.88);
  font-weight: 500;
}

.field-checkbox-label a {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(233, 4, 8, 0.35);
  text-underline-offset: 3px;
  color: rgba(246, 247, 250, 0.96);
  transition:
    color 0.15s var(--ease-out),
    text-decoration-color 0.15s var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .field-checkbox-label a:hover {
    color: rgba(255, 255, 255, 1);
    text-decoration-color: rgba(233, 4, 8, 0.75);
  }
}

.form-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.lead-form {
  position: relative;
}

.legal-page {
  padding-block: clamp(28px, 8vw, 72px);
}

.legal-page__inner {
  padding: clamp(22px, 4vw, 40px);
  border-radius: var(--radius-xl);
  max-width: 800px;
  margin-inline: auto;
}

.legal-page__title {
  font-size: clamp(1.65rem, 4vw + 0.8rem, 2.35rem);
  margin: 0 0 var(--space-2);
}

.legal-page__meta {
  font-size: 13px;
  line-height: 1.55;
  margin-bottom: var(--space-3);
}

.legal-page__body h2 {
  font-size: clamp(1.05rem, 2vw + 0.65rem, 1.28rem);
  margin: var(--space-4) 0 var(--space-2);
  color: var(--text);
}

.legal-page__body h2:first-of-type {
  margin-top: var(--space-3);
}

.legal-page__body p,
.legal-page__body ul {
  font-size: 15px;
  line-height: 1.65;
  margin: 0 0 var(--space-3);
  color: var(--muted);
}

.legal-page__body a {
  color: rgba(245, 247, 250, 0.92);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-page__body ul {
  padding-left: 1.25rem;
}

.legal-page__back {
  margin-top: var(--space-4);
  margin-bottom: 0 !important;
}

/* Блок «Наша команда» + портрет директора по маркетингу (секция #mdir) */
.mdir-section {
  padding-block: clamp(28px, 4vw, 56px);
}

.mdir-section__header {
  margin: 0 0 clamp(22px, 4vw, 36px);
  text-align: center;
}

.mdir-section__heading {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(22px, 5.2vw + 6px, 44px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
  text-wrap: balance;
  text-shadow: 0 16px 60px rgba(0, 0, 0, 0.4);
}

.mdir-section__heading-plain {
  color: var(--text);
}

.mdir-section__heading-accent {
  margin-left: 0.28em;
  color: var(--red-bright);
}

.mdir-card {
  margin: 0 auto;
  max-width: 1160px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(
    156deg,
    rgba(26, 28, 32, 0.97) 0%,
    rgba(13, 14, 17, 0.98) 48%,
    rgba(8, 9, 11, 0.99) 100%
  );
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.5),
    0 22px 64px rgba(0, 0, 0, 0.44),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.mdir-card__layout {
  display: grid;
  grid-template-columns: 1fr;
  padding-inline: clamp(12px, 2.6vw, 24px);
  padding-bottom: clamp(18px, 3.2vw, 32px);
}

@media (min-width: 900px) {
  .mdir-card__layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    gap: clamp(18px, 2.5vw, 32px);
    padding-inline: clamp(14px, 2.4vw, 26px);
    padding-top: clamp(6px, 1.2vw, 14px);
    padding-bottom: clamp(20px, 3.2vw, 36px);
  }
}

.mdir-card__copy {
  padding: clamp(26px, 5vw, 42px);
  padding-bottom: clamp(28px, 5vw, 44px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

@media (min-width: 900px) {
  .mdir-card__copy {
    padding: clamp(32px, 5vw, 48px);
    padding-right: clamp(28px, 4vw, 40px);
    border-bottom: none;
    border-right: 1px solid rgba(255, 255, 255, 0.065);
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

.mdir-card__eyebrow {
  margin: 0 0 14px;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: rgba(155, 157, 159, 0.88);
}

.mdir-card__title {
  margin: 0 0 clamp(14px, 2.8vw, 20px);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(22px, 1rem + 1.9vw, 34px);
  line-height: 1.09;
  letter-spacing: -0.038em;
  color: var(--text);
  text-wrap: balance;
}

.mdir-card__body {
  margin: 0;
  padding: 0;
}

.mdir-card__body p {
  margin: 0;
  font-size: clamp(14px, 0.52rem + 1.05vw, 17px);
  line-height: 1.62;
  color: rgba(245, 247, 250, 0.78);
}

.mdir-card__body p + p {
  margin-top: 1.05em;
}

.mdir-card__lead {
  margin: 0 0 clamp(14px, 2.5vw, 20px);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(18px, 1rem + 1.2vw, 26px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--red-bright);
}

.mdir-card__copy-cta {
  margin-top: clamp(22px, 3.5vw, 32px);
}

.mdir-card__btn-write {
  flex: 0 0 auto;
  align-self: flex-start;
  padding: 11px 26px;
  min-height: 44px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mdir-card__figure {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0;
  isolation: isolate;
  background:
    radial-gradient(ellipse 70% 55% at 78% 18%, rgba(233, 4, 8, 0.07), transparent 58%),
    radial-gradient(ellipse 90% 80% at 50% 20%, rgba(245, 247, 250, 0.06), rgba(9, 9, 11, 0.92) 62%);
  padding: clamp(14px, 2.4vw, 22px) clamp(10px, 2vw, 18px) clamp(18px, 3vw, 28px);
}

/* Лёгкая «рамка-подсветка» только на фото */
.mdir-card__photo::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
  opacity: 0.55;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 38%,
    transparent 58%,
    rgba(233, 4, 8, 0.12) 100%
  );
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    inset 0 0 0 2px rgba(233, 4, 8, 0.1);
}

.mdir-card__photo {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: min(520px, 62vh);
  min-height: min(280px, 52vw);
  overflow: hidden;
  border-radius: clamp(16px, 2.4vw, 24px);
  transform: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 -32px 64px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(233, 4, 8, 0.32),
    0 0 24px rgba(233, 4, 8, 0.08),
    0 14px 32px rgba(0, 0, 0, 0.45),
    0 36px 80px rgba(0, 0, 0, 0.55),
    0 52px 120px rgba(0, 0, 0, 0.35);
}

@media (max-width: 899px) {
  .mdir-card__photo {
    margin-top: clamp(4px, 1vw, 10px);
  }
}

@media (min-width: 900px) {
  .mdir-card__photo {
    min-height: min(360px, 44vh);
    max-height: min(480px, 58vh);
  }
}

.mdir-card__photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 22%;
  transform: none;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.mdir-card__profile {
  position: relative;
  z-index: 3;
  margin: 0;
  padding: clamp(18px, 2.8vw, 26px) 0 0;
}

.mdir-card__name {
  display: block;
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-size: clamp(22px, 1rem + 1.8vw, 32px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: var(--red-bright);
}

.mdir-card__role {
  display: block;
  margin: 0 0 12px;
  font-family: var(--font-head);
  font-size: clamp(13px, 0.42rem + 1vw, 15px);
  font-weight: 700;
  line-height: 1.45;
  color: rgba(245, 247, 250, 0.9);
}

.mdir-card__tagline {
  margin: 0;
  font-size: clamp(13px, 0.42rem + 0.85vw, 15px);
  line-height: 1.55;
  color: rgba(245, 247, 250, 0.56);
}

.mdir-card__plate {
  position: absolute;
  right: clamp(14px, 3.2vw, 22px);
  bottom: clamp(14px, 3.2vw, 22px);
  left: auto;
  max-width: min(288px, calc(100% - 28px));
  padding: clamp(13px, 3vw, 16px) clamp(16px, 4vw, 20px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(165deg, rgba(18, 19, 22, 0.94) 0%, rgba(8, 9, 11, 0.92) 100%);
  backdrop-filter: blur(18px);
  transform: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.05),
    0 18px 48px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(233, 4, 8, 0.14);
  z-index: 2;
}

.mdir-card__plate-title {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-head);
  font-size: clamp(13px, 2.9vw, 15px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.mdir-card__plate-sub {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(11px, 2.4vw, 12.5px);
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(245, 247, 250, 0.58);
}

.mdir-card__plate-brand-light {
  color: rgba(245, 247, 250, 0.88);
  font-weight: 700;
}

.mdir-card__plate-brand-accent {
  color: var(--red-bright);
  font-weight: 700;
}

.mdir-card__plate-rest {
  font-weight: 600;
}

/* Финальный CTA (референс: консультация + аудит; палитра и шрифты — дизайн-код сайта) */
.closing-final {
  background:
    radial-gradient(ellipse 55% 45% at 50% 100%, rgba(233, 4, 8, 0.07), transparent 60%),
    linear-gradient(180deg, rgba(5, 5, 6, 0.35), transparent 42%),
    var(--bg);
}

.closing-final__card {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 48px) clamp(20px, 4vw, 40px);
  border-radius: clamp(22px, 4vw, var(--radius-xl));
  border-color: rgba(255, 255, 255, 0.1) !important;
  background: linear-gradient(
    165deg,
    rgba(26, 28, 32, 0.92) 0%,
    rgba(14, 15, 18, 0.88) 45%,
    rgba(10, 11, 13, 0.94) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 56px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(233, 4, 8, 0.06);
}

.closing-final__blobs {
  position: absolute;
  inset: -20% -10% -25% -10%;
  background:
    radial-gradient(circle at 12% 35%, rgba(255, 255, 255, 0.07), transparent 42%),
    radial-gradient(circle at 88% 22%, rgba(233, 4, 8, 0.09), transparent 38%),
    radial-gradient(circle at 72% 88%, rgba(255, 255, 255, 0.04), transparent 45%),
    radial-gradient(circle at 30% 92%, rgba(255, 26, 31, 0.06), transparent 40%);
  opacity: 0.95;
  pointer-events: none;
}

.closing-final__inner {
  position: relative;
  z-index: 1;
  max-width: 52rem;
  margin-inline: auto;
  text-align: center;
}

.closing-final__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 clamp(10px, 1.8vw, 16px);
}

.closing-final__brand-logo {
  width: clamp(22px, 2vw, 30px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(233, 4, 8, 0.24));
}

.closing-final__brand-wordmark {
  font-size: clamp(18px, 1.4vw + 12px, 24px);
}

.closing-final__title {
  margin: 0 0 clamp(14px, 2.5vw, 20px);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.05rem, 2.4vw + 0.55rem, 1.85rem);
  line-height: 1.18;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}

.closing-final__title-line {
  display: block;
}

.closing-final__title-line + .closing-final__title-line {
  margin-top: 0.2em;
}

.closing-final__title-line--accent {
  color: var(--red-bright);
  text-shadow: 0 0 40px rgba(233, 4, 8, 0.22);
}

.closing-final__lead {
  margin: 0 auto;
  max-width: 56ch;
  font-size: clamp(14px, 1.6vw, 16px);
  line-height: 1.65;
  color: rgba(200, 204, 210, 0.92) !important;
}

.closing-final__actions {
  margin-top: clamp(22px, 4vw, 32px);
  justify-content: center;
}

.closing-final__actions .btn {
  flex: 0 1 auto;
}

.closing-final__btn-primary {
  box-shadow:
    0 10px 32px rgba(233, 4, 8, 0.28),
    0 0 0 1px rgba(255, 26, 31, 0.2);
}

.closing-final__btn-primary:hover {
  box-shadow:
    0 14px 40px rgba(233, 4, 8, 0.36),
    0 0 0 1px rgba(255, 26, 31, 0.28);
}

@media (max-width: 480px) {
  .closing-final__brand {
    gap: 8px;
  }

  .closing-final__brand-logo {
    width: 20px;
  }

  .closing-final__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .closing-final__actions .btn {
    width: 100%;
  }
}

.site-footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0;
  background: var(--bg-deep);
  box-shadow: inset 0 1px 0 rgba(233, 4, 8, 0.08);
}

.site-footer::before {
  content: '';
  pointer-events: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 120px;
  background: linear-gradient(180deg, rgba(233, 4, 8, 0.07), transparent 72%);
  opacity: 1;
  z-index: 0;
}

.site-footer__watermark {
  position: absolute;
  left: max(-12%, -80px);
  bottom: -8%;
  width: min(52vw, 420px);
  max-height: 85%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.07;
  filter: saturate(1.1);
}

.site-footer__watermark img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: left bottom;
}

.site-footer .wrap {
  position: relative;
  z-index: 1;
}

.site-footer__body {
  padding: clamp(32px, 5vw, 48px) 0 clamp(28px, 4vw, 40px);
}

.site-footer__grid {
  display: grid;
  gap: clamp(28px, 4vw, 40px);
  align-items: start;
}

@media (max-width: 879px) {
  .site-footer .wrap {
    padding-inline: max(18px, var(--gutter)) max(18px, var(--gutter-r));
  }

  .site-footer__body {
    padding-top: clamp(36px, 8vw, 44px);
    padding-bottom: clamp(24px, 5vw, 32px);
  }

  .site-footer__grid {
    gap: clamp(18px, 5vw, 26px);
  }

  /* Дублируют строки «Контакты» — на телефоне убираем второй ряд иконок */
  .site-footer__social {
    display: none;
  }
}

@media (max-width: 639px) {
  /* Политика уже в «Информации» — на узком экране не дублируем в нижней полосе */
  .site-footer__bottom-link {
    display: none;
  }

  .site-footer__bottom-inner {
    align-items: center;
    text-align: center;
    padding-inline: max(12px, env(safe-area-inset-left)) max(12px, env(safe-area-inset-right));
  }

  .site-footer__copy {
    align-items: center;
    text-align: center;
    width: 100%;
    padding: 0 4px;
    box-sizing: border-box;
  }

  .site-footer__copy-main,
  .site-footer__copy-sub {
    text-align: center;
  }
}

@media (min-width: 880px) {
  .site-footer__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.15fr) minmax(0, 1fr);
    gap: clamp(24px, 3.5vw, 48px);
  }
}

.site-footer__brand-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.site-footer__brand-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(10px, 2vw, 14px);
}

.site-footer__logo {
  display: block;
  height: clamp(36px, 6.5vw, 44px);
  width: auto;
  max-width: min(52px, 16vw);
  flex-shrink: 0;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 4px 20px rgba(233, 4, 8, 0.2));
}

.site-footer__tagline {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  letter-spacing: 0.04em;
  color: rgba(245, 247, 250, 0.52);
}

.site-footer__heading {
  margin: 0 0 14px;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red-bright);
  text-shadow: 0 0 20px rgba(233, 4, 8, 0.22);
}

.site-footer__linklist {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 42ch;
}

.site-footer__linklist a {
  font-size: clamp(13px, 0.42rem + 0.85vw, 15px);
  line-height: 1.55;
  color: rgba(245, 247, 250, 0.82);
  text-decoration: none;
  border-radius: 8px;
  transition: color var(--dur-micro) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .site-footer__linklist a:hover {
    color: var(--text);
  }
}

.site-footer__contacts {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.site-footer__contact {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
  margin: -4px -6px;
  padding: 6px;
  transition: background-color var(--dur-micro) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .site-footer__contact:hover {
    background: rgba(255, 255, 255, 0.04);
  }
}

@media (max-width: 879px) {
  .site-footer__col--legal,
  .site-footer__col--reach {
    padding: 14px 14px 12px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 11, 13, 0.65);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  }

  .site-footer__heading {
    margin-bottom: 10px;
    text-shadow: none;
  }

  .site-footer__linklist {
    max-width: none;
    gap: 0;
  }

  .site-footer__linklist li + li {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  .site-footer__linklist a {
    display: block;
    padding: 14px 4px;
    min-height: 0;
    border-radius: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    font-size: 14px;
    line-height: 1.45;
    color: rgba(245, 247, 250, 0.88);
    transition: color var(--dur-micro) var(--ease-out);
  }

  .site-footer__linklist a::before {
    display: none;
  }

  .site-footer__contacts {
    margin-bottom: 0;
    gap: 8px;
  }

  .site-footer__contact {
    margin: 0;
    padding: 10px 10px;
    align-items: center;
    gap: 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(6, 7, 9, 0.45);
    box-shadow: none;
  }

  .site-footer__contact:hover,
  .site-footer__contact:active {
    background: rgba(233, 4, 8, 0.07);
    border-color: rgba(233, 4, 8, 0.22);
  }

  .site-footer__contact-ico {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border-color: rgba(233, 4, 8, 0.28);
    background: rgba(233, 4, 8, 0.06);
    box-shadow: none;
  }

  .site-footer__contact-value {
    font-size: 14px;
  }

  .site-footer__contact-label {
    font-size: 10px;
    letter-spacing: 0.04em;
  }
}

@media (max-width: 879px) and (hover: hover) and (pointer: fine) {
  .site-footer__linklist a:hover {
    color: var(--text);
    background: transparent;
  }
}

.site-footer__contact--noicon {
  padding-left: 2px;
}

.site-footer__contact-ico {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(233, 4, 8, 0.42);
  color: var(--red-bright);
  background: rgba(233, 4, 8, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 26, 31, 0.12);
}

.icon--footer-ico {
  width: 22px;
  height: 22px;
}

.site-footer__contact-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.site-footer__contact-value {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(14px, 0.45rem + 0.9vw, 16px);
  letter-spacing: -0.02em;
  color: rgba(252, 252, 253, 0.96);
}

.site-footer__contact-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  color: rgba(155, 157, 159, 0.88);
}

.site-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-footer__soc {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(233, 4, 8, 0.4);
  color: var(--red-bright);
  background: rgba(10, 10, 12, 0.65);
  text-decoration: none;
  transition:
    border-color var(--dur-micro) var(--ease-out),
    color var(--dur-micro) var(--ease-out),
    box-shadow var(--dur-soft) var(--ease-out),
    transform var(--dur-soft) var(--ease-out);
}

.icon--footer-soc {
  width: 20px;
  height: 20px;
}

@media (hover: hover) and (pointer: fine) {
  .site-footer__soc:hover {
    border-color: rgba(255, 26, 31, 0.55);
    color: #fff;
    box-shadow: 0 0 22px rgba(233, 4, 8, 0.28);
    transform: translateY(-2px);
  }
}

.site-footer__bottom {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 0 calc(20px + env(safe-area-inset-bottom, 0px));
  background: rgba(0, 0, 0, 0.28);
}

.site-footer__bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

@media (min-width: 640px) {
  .site-footer__bottom-inner {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px 20px;
  }
}

.site-footer__copy {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: rgba(155, 157, 159, 0.82);
  line-height: 1.35;
  max-width: 100%;
}

.site-footer__copy-main {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(245, 247, 250, 0.78);
}

.site-footer__copy-sub {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(155, 157, 159, 0.65);
}

@media (min-width: 640px) {
  .site-footer__copy {
    align-items: flex-start;
    text-align: left;
  }
}

.site-footer__bottom-link {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(155, 157, 159, 0.72);
  text-decoration: none;
  border-radius: 8px;
  transition: color var(--dur-micro) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .site-footer__bottom-link:hover {
    color: rgba(245, 247, 250, 0.88);
  }
}

/* Юридические страницы: прежняя сетка навигации в подвале */
.site-footer__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  padding: clamp(28px, 4vw, 40px) 0 calc(24px + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 740px) {
  .site-footer__inner {
    grid-template-columns: 1fr auto auto;
    align-items: center;
  }
}

.site-footer__inner .site-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

.site-footer__nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
}

.site-footer__nav a {
  color: rgba(245, 247, 250, 0.66);
  display: inline-flex;
  align-items: center;
  min-height: var(--touch-min);
  padding: 4px 8px;
  margin: -4px -8px;
  border-radius: 12px;
}

.site-footer__nav a:hover {
  color: var(--text);
}

.footer-note {
  font-size: 12px;
  opacity: 0.75;
  margin-top: 0;
  display: block;
}

.site-footer small {
  font-size: 13px;
}

.metric-footnote {
  margin-top: 18px;
  font-size: 12px !important;
}

.sprite-root {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  display: block;
  flex-shrink: 0;
}

.icon--xs {
  width: 18px;
  height: 18px;
}

.icon--sm {
  width: 22px;
  height: 22px;
}

.icon--md {
  width: 28px;
  height: 28px;
}

.icon--lg {
  width: 40px;
  height: 40px;
}

.illus-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid rgba(255, 26, 31, 0.26);
  background: radial-gradient(circle at 30% 20%, rgba(255, 26, 31, 0.22), rgba(8, 8, 10, 0.92));
  color: rgba(255, 26, 31, 0.95);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 28px rgba(233, 4, 8, 0.12),
    0 8px 24px rgba(0, 0, 0, 0.35);
  transition:
    border-color var(--dur-soft) var(--ease-out),
    box-shadow var(--dur-soft) var(--ease-out),
    transform var(--dur-soft) var(--ease-out);
}

.glass-panel:hover .illus-slot:not(.illus-slot--quiet) {
  border-color: rgba(255, 26, 31, 0.32);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 24px rgba(233, 4, 8, 0.12),
    0 8px 22px rgba(0, 0, 0, 0.36);
}

.rail__node:hover .illus-slot--rail {
  border-color: rgba(255, 26, 31, 0.48);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 32px rgba(233, 4, 8, 0.18),
    0 8px 26px rgba(0, 0, 0, 0.4);
}

.illus-slot--sm {
  width: 42px;
  height: 42px;
}

.illus-slot--md {
  width: 50px;
  height: 50px;
}

.illus-slot--rail {
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
  border-radius: 13px;
}

.illus-slot--quiet {
  color: rgba(245, 247, 250, 0.55);
  background: rgba(18, 20, 23, 0.65);
  border-color: var(--border);
}

.rec-scheme {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(165deg, rgba(14, 15, 18, 0.92), rgba(6, 7, 9, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 12px 40px rgba(0, 0, 0, 0.38);
  overflow: hidden;
}

.rec-scheme__step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(14px, 3.5vw, 20px);
  align-items: start;
  padding: clamp(16px, 4vw, 22px) clamp(16px, 4vw, 22px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.rec-scheme__step:last-child {
  border-bottom: none;
}

.rec-scheme__n {
  display: grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  border-radius: 12px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: rgba(245, 247, 250, 0.88);
  background: radial-gradient(circle at 30% 20%, rgba(233, 4, 8, 0.35), rgba(10, 11, 14, 0.95));
  border: 1px solid rgba(233, 4, 8, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 24px rgba(233, 4, 8, 0.12);
}

.rec-scheme__title {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(15px, 1.05rem, 17px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 6px;
}

.rec-scheme__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  max-width: 52ch;
}

.rec__visual {
  margin: 0;
}

.rec__visual-frame {
  position: relative;
  isolation: isolate;
  border-radius: calc(var(--radius-lg) + 2px);
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(233, 4, 8, 0.55) 0%,
    rgba(255, 255, 255, 0.08) 42%,
    rgba(233, 4, 8, 0.22) 100%
  );
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 20px 56px rgba(0, 0, 0, 0.45),
    0 0 80px rgba(233, 4, 8, 0.07);
}

.rec__visual-frame::after {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: calc(var(--radius-lg) - 4px);
  border: 1px solid rgba(233, 4, 8, 0.12);
  pointer-events: none;
  z-index: 2;
}

.rec__visual-glow {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: radial-gradient(ellipse 85% 50% at 50% -8%, rgba(233, 4, 8, 0.2), transparent 58%);
  mix-blend-mode: screen;
  opacity: 0.85;
  pointer-events: none;
  z-index: 1;
}

.rec__visual-img {
  position: relative;
  z-index: 0;
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  background: rgba(4, 5, 7, 0.98);
}

.rec__visual-caption {
  margin: 14px 2px 0;
  font-size: 13px;
  line-height: 1.55;
  letter-spacing: 0.01em;
}

@media (min-width: 980px) {
  .rec__visual-caption {
    max-width: 58ch;
  }
}

@media (hover: hover) and (pointer: fine) {
  .rec__panel:hover .rec__visual-frame {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.08),
      0 24px 64px rgba(0, 0, 0, 0.5),
      0 0 96px rgba(233, 4, 8, 0.1);
  }
}

.rec__lead {
  font-size: clamp(15px, 1.04rem, 1.08rem);
  max-width: 58ch;
  line-height: 1.65;
  margin-top: 2px;
}

.rec__cta-row {
  margin-top: 26px;
}

/* Блок «Диагностика» (#system-architecture): плотнее по вертикали, акцент на оффере */
.section--rec-diag.section {
  padding-block: clamp(28px, 5vw, 72px);
}

.section--rec-diag .rec {
  gap: clamp(16px, 2.5vw, 22px);
}

@media (min-width: 980px) {
  .section--rec-diag .rec {
    gap: clamp(22px, 3vw, 34px);
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  }
}

.section--rec-diag .section__label {
  margin-bottom: 10px;
}

.section--rec-diag .section__title {
  margin-bottom: clamp(8px, 1.5vw, 12px);
  font-size: clamp(1.35rem, 2.2vw + 0.55rem, 2.15rem);
  line-height: 1.12;
  text-wrap: balance;
}

.section--rec-diag .rec__title-accent {
  color: var(--red-bright);
  text-shadow: 0 0 22px rgba(233, 4, 8, 0.22);
}

.section--rec-diag .rec__lead {
  margin-top: 0;
  margin-bottom: 0;
  max-width: 50ch;
  font-size: clamp(14px, 0.42rem + 1.05vw, 16px);
  line-height: 1.52;
}

.section--rec-diag .rec-scheme {
  margin-top: clamp(12px, 2vw, 16px);
}

.section--rec-diag .rec-scheme__step {
  padding: clamp(11px, 2.2vw, 15px) clamp(12px, 2.8vw, 18px);
  gap: clamp(10px, 2.2vw, 16px);
}

.section--rec-diag .rec-scheme__n {
  min-width: 36px;
  height: 36px;
  font-size: 11px;
}

.section--rec-diag .rec-scheme__title {
  margin-bottom: 4px;
  font-size: clamp(14px, 0.95rem + 0.35vw, 16px);
}

.section--rec-diag .rec-scheme__desc {
  font-size: 13px;
  line-height: 1.48;
  max-width: 48ch;
}

.section--rec-diag .rec__cta-row {
  margin-top: clamp(14px, 2.5vw, 20px);
}

.section--rec-diag .rec__panel {
  padding: clamp(14px, 3.5vw, 20px);
}

.section--rec-diag .rec__panel-eyebrow {
  margin-bottom: 10px;
}

.section--rec-diag .rec__panel h3 {
  margin: clamp(12px, 2.2vw, 18px) 0 8px;
  font-size: clamp(17px, 0.5rem + 1.6vw, 19px);
}

.section--rec-diag .rec__checks {
  gap: 8px;
}

.section--rec-diag .rec__checks li {
  padding-left: 30px;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 500;
  color: rgba(245, 247, 250, 0.9);
}

.section--rec-diag .rec__visual-caption {
  margin: 10px 2px 0;
  font-size: 12.5px;
  line-height: 1.48;
}

.section--rec-diag .rec__ribbon {
  margin-top: 14px;
  padding-top: 12px;
  font-size: 11px;
  letter-spacing: 0.16em;
}

@media (max-width: 699px) {
  /* Инфографика не должна вытягиваться на всю высоту экрана */
  .section--rec-diag .rec__visual-frame {
    margin-inline: auto;
    max-width: min(520px, 100%);
  }

  .section--rec-diag .rec__visual-img {
    width: 100%;
    max-height: min(36vh, 220px);
    height: auto;
    object-fit: contain;
    object-position: center top;
  }

  /* Логотип + REDIT в одной линии с текстом, как на десктопе — без «резины» */
  .section--rec-diag .rec__panel h3 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 0.35em;
    row-gap: 0.35em;
    line-height: 1.22;
  }

  .section--rec-diag .rec__brand {
    margin-left: 0;
    gap: 8px;
    flex-shrink: 0;
  }

  .section--rec-diag .rec__brand-logo {
    width: 22px;
    max-height: 26px;
    transform: translateY(1px);
  }

  .section--rec-diag .rec__brand-wordmark {
    font-size: clamp(17px, 4.5vw, 21px);
    line-height: 1;
  }
}

.rail__node .illus-slot--rail {
  color: rgba(233, 4, 8, 0.85);
}

.metric-tile__top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(10px, 3vw, 16px);
}

.metric-tile__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
}

.metric-tile__tag {
  margin: 0;
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 247, 250, 0.46);
  line-height: 1.2;
}

.metric-illus {
  flex: 0 0 min(120px, 44%);
}

.metric-illus svg {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 14px rgba(233, 4, 8, 0.12));
}

@media (max-width: 640px) {
  .metrics {
    padding-block: clamp(28px, 7vw, 48px);
  }

  .metrics__intro {
    gap: 8px;
    margin-bottom: 12px;
  }

  .metrics__intro h2 {
    font-size: clamp(20px, 5.4vw, 26px);
  }

  .metrics__intro p {
    font-size: 13px;
    line-height: 1.45;
  }

  /* Две колонки — меньше вертикального скролла, чем четыре полноширинные карточки */
  .metrics__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .metric-tile {
    padding: 10px 10px 8px;
    border-radius: 14px;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.05),
      0 6px 20px rgba(0, 0, 0, 0.32);
  }

  .metric-tile::before {
    left: 10%;
    right: 10%;
    opacity: 0.45;
    height: 1.5px;
  }

  .metric-tile__top {
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
  }

  .metric-tile__meta {
    flex: 1 1 0;
    min-width: 0;
    justify-content: flex-start;
    padding: 0;
    gap: 3px;
  }

  .metric-tile .stat-num {
    font-size: clamp(17px, 5.5vw, 24px);
    line-height: 1.05;
  }

  .metric-tile .stat-num .suffix {
    font-size: 0.78em;
  }

  .metric-tile__tag {
    font-size: 8px;
    letter-spacing: 0.12em;
    color: rgba(245, 247, 250, 0.5);
    line-height: 1.15;
  }

  /* Убираем тяжёлую «плашку» вокруг SVG — она раздувала карточку и выглядела как лишний круг/рамка */
  .metric-illus {
    flex: 0 0 52px;
    width: 52px;
    max-width: 52px;
    margin-top: 0;
    padding: 0;
    box-sizing: border-box;
    align-self: center;
    background: none;
    border-radius: 0;
    border: none;
  }

  .metric-illus svg {
    filter: none;
  }

  .metric-tile .label {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 10px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .metric-footnote {
    margin-top: 10px;
    font-size: 11px !important;
    line-height: 1.4;
  }
}

.illus-slot--xs {
  width: 38px;
  height: 38px;
  border-radius: 11px;
}

.bg-deep .illus-slot:not(.illus-slot--quiet) {
  background: linear-gradient(145deg, rgba(233, 4, 8, 0.12), rgba(5, 5, 6, 0.6));
}

.btn:focus-visible,
.site-header__burger:focus-visible,
.site-header__sheet-close:focus-visible,
.site-header__sheet-nav a:focus-visible,
.site-footer__linklist a:focus-visible,
.site-footer__contact:focus-visible,
.site-footer__soc:focus-visible,
.site-footer__bottom-link:focus-visible,
.site-footer__nav a:focus-visible,
details.faq-item summary:focus-visible {
  outline: 2px solid rgba(255, 26, 31, 0.9);
  outline-offset: 3px;
}

@media (max-width: 560px) {
  .hero.section {
    padding-block: clamp(32px, 9vw, 88px);
  }

  .brand-wordmark {
    column-gap: 0;
  }

  .site-header__logo {
    max-width: min(46px, 15vw);
  }

  .diag-first-step__board {
    padding: 12px;
    border-radius: 16px;
  }

  .diag-first-step__card {
    border-radius: 14px;
  }

  .diag-first-step__head {
    gap: 8px;
    margin-bottom: 8px;
  }

  .diag-first-step__num {
    min-width: 30px;
    height: 28px;
    font-size: 11px;
  }

  .diag-first-step__card h3 {
    font-size: 19px;
  }
}

@media (pointer: coarse) {
  .site-header {
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }

  .glass-panel {
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }

  .glass-panel:hover,
  .metric-tile:hover,
  .rail__node:hover,
  .method-phases__col:hover {
    transform: none;
  }

  .btn--ghost:hover {
    transform: none;
  }

  /* Меньше постоянных keyframes на GPU телефона — фон героя без «снега» */
  .hero__particles {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto;
  }

  .rail-system__frame,
  .rail-system__flow::after,
  .rail__node,
  .rail__sep-ico {
    animation: none !important;
  }

  .srv-bento__grid::before {
    animation: none !important;
  }

  .form-status {
    transition: none !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }

  .glass-panel:hover {
    transform: none;
  }

  .hero-vis {
    transition: none;
  }

  .hero-intro .hero__depth,
  .hero-intro .hero-enter {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    clip-path: none !important;
  }

  .hero-portrait__glow,
  .hero-portrait__orbit,
  .hero-portrait__orbit--counter,
  .hero-portrait__sweep,
  .hero-portrait__frame,
  .hero-portrait__hud,
  .hero-portrait__hud-ring {
    animation: none !important;
  }

  .hero-portrait__sweep {
    opacity: 0 !important;
  }

  .badge__dot--live {
    animation: none !important;
  }

  .hero__accent {
    animation: none !important;
    color: var(--red-bright) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  }

  .hero-intro .hero-enter--accent::after {
    animation: none !important;
    transform: scaleX(1) !important;
    opacity: 0.55 !important;
  }

  .hero-intro .hero-enter--accent {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .hero .btn--primary {
    animation: none !important;
    filter: none !important;
    background-image: linear-gradient(132deg, var(--red-bright) 0%, var(--red) 48%, var(--red-dark) 100%);
    background-size: 100% 100%;
    background-position: 50% 50%;
    box-shadow:
      0 12px 40px rgba(233, 4, 8, 0.35),
      inset 0 1px 0 rgba(255, 255, 255, 0.18);
  }

  .hero .btn--primary::before {
    display: none !important;
    animation: none !important;
  }

  .hero .btn--primary::after {
    animation: none !important;
    display: none;
  }

  .hero__pipeline [data-step],
  .hero__pipeline-sep,
  .hero__bloom,
  .hero__streak,
  .hero__fog,
  .hero__particles i,
  .hero__rail {
    animation: none !important;
  }

  .pillar-card::before,
  .pillar-card__orbit,
  .pillar-card__orbit--ccw {
    animation: none !important;
  }

  .pillar-card__orbit,
  .pillar-card__orbit--ccw {
    transform: translate(-50%, -50%) rotate(0deg) !important;
  }

  .pillar-accent {
    text-shadow: none !important;
  }

  /* FAQ: глобальное правило выше зануляет все transition-duration; даём короткую порядочную раскладку */
  details.faq-item .faq-item__body-inner {
    transition-duration: 0.28s !important;
  }

  details.faq-item .faq-item__body-inner > p {
    transition-duration: 0.24s !important;
  }

  details.faq-item summary::after {
    transition-duration: 0.26s !important;
  }

}

/* ——— Наши клиенты: бесконечная карусель логотипов ——— */

.clients-section {
  padding-block: clamp(56px, 11vw, 148px);
}

.clients-section .section__title {
  font-size: clamp(34px, 3.4vw, 62px);
  max-width: 22ch;
}

.clients-section .section__subtitle {
  margin-bottom: clamp(28px, 5.5vw, 48px);
  max-width: 52ch;
  font-size: clamp(15px, 1.35vw, 18px);
}

.clients-section__strip {
  width: 100%;
  max-width: min(100%, calc(var(--site-max) + 140px));
  margin-inline: auto;
  padding-inline: var(--gutter) var(--gutter-r);
  box-sizing: border-box;
}

.clients-marquee {
  overflow: hidden;
  padding-block: clamp(26px, 4.8vw, 44px);
  border-radius: clamp(22px, 4.5vw, var(--radius-xl));
  background:
    linear-gradient(
      155deg,
      rgba(14, 15, 18, 0.96) 0%,
      rgba(10, 11, 14, 0.9) 48%,
      rgba(7, 8, 10, 0.94) 100%
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(233, 4, 8, 0.12),
    0 18px 56px rgba(0, 0, 0, 0.48),
    0 0 80px rgba(233, 4, 8, 0.06);
}

.clients-marquee::before {
  content: '';
  pointer-events: none;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(ellipse 78% 130% at 10% 45%, rgba(233, 4, 8, 0.11), transparent 54%),
    radial-gradient(ellipse 60% 110% at 90% 42%, rgba(255, 26, 31, 0.07), transparent 50%);
  opacity: 1;
}

.clients-marquee__viewport {
  position: relative;
  z-index: 1;
  overflow: hidden;
  margin-inline: 0;
  /* Горизонтальный inset строк — здесь, а не на каждой ul: иначе между двумя копиями ряда
     суммируются padding-right + padding-left и на стыке появляется «лишняя» щель на ширину плитки */
  padding-inline: clamp(32px, 6vw, 72px);
  box-sizing: border-box;
  /* Плавное растворение у краёв + меньше клип по логотипам */
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 10%,
    #000 90%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 10%,
    #000 90%,
    transparent 100%
  );
}

.clients-marquee__track {
  display: flex;
  flex-direction: row;
  width: max-content;
  will-change: transform;
  backface-visibility: hidden;
  animation: clients-marquee-scroll 64s linear infinite;
}

@keyframes clients-marquee-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

.clients-marquee:hover .clients-marquee__track {
  animation-play-state: paused;
}

.clients-marquee__row {
  display: flex;
  flex-direction: row;
  flex-shrink: 0;
  align-items: stretch;
  gap: clamp(18px, 3.2vw, 30px);
  margin: 0;
  padding-block: 10px;
  padding-inline: 0;
  list-style: none;
}

.clients-marquee__cell {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: clamp(156px, 26vw, 216px);
  min-height: clamp(76px, 11vw, 102px);
  padding: 14px 18px;
  border-radius: clamp(18px, 2.4vw, 22px);
  /* Светлая подложка: большинство логотипов рассчитаны на светлый фон — тёмный текст снова читается */
  border: 1px solid rgba(12, 14, 18, 0.1);
  background: linear-gradient(
    165deg,
    #fbfcfe 0%,
    #f2f4f8 42%,
    #e9ecf2 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(12, 14, 18, 0.06),
    0 4px 14px rgba(0, 0, 0, 0.28),
    0 1px 0 rgba(255, 255, 255, 0.06);
  transition:
    border-color var(--dur-soft) var(--ease-smooth-in-out),
    box-shadow var(--dur-soft) var(--ease-smooth-in-out),
    background var(--dur-soft) var(--ease-smooth-in-out),
    opacity var(--dur-soft) var(--ease-smooth-in-out),
    transform var(--dur-micro) var(--ease-out);
}

.clients-marquee__cell img {
  display: block;
  height: clamp(36px, 5.2vw, 54px);
  width: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  opacity: 1;
  filter: contrast(1.04);
  transition:
    filter var(--dur-soft) var(--ease-smooth-in-out),
    transform var(--dur-micro) var(--ease-out);
}

.clients-marquee__cell:hover,
.clients-marquee__cell:focus-within {
  border-color: rgba(233, 4, 8, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 0 0 1px rgba(233, 4, 8, 0.12),
    0 8px 26px rgba(0, 0, 0, 0.32),
    0 0 28px rgba(233, 4, 8, 0.12);
  background: linear-gradient(
    165deg,
    #ffffff 0%,
    #f6f8fc 55%,
    #eef1f7 100%
  );
}

.clients-marquee__cell:hover img,
.clients-marquee__cell:focus-within img {
  filter: contrast(1.08);
  transform: scale(1.03);
}

@media (hover: hover) and (pointer: fine) {
  .clients-marquee:hover .clients-marquee__cell:not(:hover) {
    opacity: 0.9;
  }

  .clients-marquee:hover .clients-marquee__cell:not(:hover) img {
    filter: contrast(1.02);
  }
}

@media (prefers-reduced-motion: reduce) {
  .clients-marquee__track {
    animation: none !important;
    width: 100% !important;
    max-width: min(100%, var(--site-max));
    margin-inline: auto;
    transform: none !important;
    justify-content: center;
  }

  .clients-marquee__row[aria-hidden='true'] {
    display: none !important;
  }

  .clients-marquee__row {
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
    padding-block: 8px;
    row-gap: clamp(16px, 3vw, 22px);
    column-gap: clamp(28px, 5vw, 44px);
  }

  .clients-marquee__viewport {
    mask-image: none;
    -webkit-mask-image: none;
    overflow: visible;
  }

  .clients-marquee:hover .clients-marquee__cell:not(:hover) {
    opacity: 0.92;
  }

  .clients-marquee:hover .clients-marquee__cell:not(:hover) img {
    filter: contrast(1.03);
  }
}

/* Первый экран: та же бесконечная карусель, но ниже и компактнее */
.clients-marquee.clients-marquee--hero {
  position: relative;
  padding-block: clamp(8px, 1.5vw, 14px);
  border-radius: clamp(12px, 2vw, 17px);
  background: rgba(5, 6, 8, 0.48);
  backdrop-filter: blur(12px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(233, 4, 8, 0.09),
    0 12px 36px rgba(0, 0, 0, 0.35);
}

.clients-marquee.clients-marquee--hero::before {
  opacity: 0.45;
}

.clients-marquee.clients-marquee--hero .clients-marquee__viewport {
  padding-inline: clamp(10px, 3vw, 44px);
}

.clients-marquee.clients-marquee--hero .clients-marquee__track {
  animation-duration: 72s;
}

.clients-marquee.clients-marquee--hero .clients-marquee__row {
  gap: clamp(10px, 2vw, 18px);
  padding-block: 3px;
}

.clients-marquee.clients-marquee--hero .clients-marquee__cell {
  width: clamp(100px, 15vw, 152px);
  min-height: clamp(46px, 7vw, 72px);
  padding: 8px 10px;
  border-radius: 11px;
}

.clients-marquee.clients-marquee--hero .clients-marquee__cell img {
  height: clamp(22px, 3.4vw, 38px);
}
