/*
 * DataLab24 — стили сайта.
 * Порядок: токены и базовые стили → общие компоненты → секции.
 * Классы в формате «блок__элемент» (например, .hero__title, .svc__card).
 */

/* Monaspace Argon (GitHub Next, SIL OFL 1.1 — assets/fonts/MONASPACE-LICENSE.txt),
   вариативный, насыщенность 200–800, подмножество латиница + кириллица. */
@font-face {
  font-family: 'Monaspace Argon';
  src: url('../fonts/MonaspaceArgon-subset.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* ───────────── DataLab24 · design tokens ───────────── */
:root {
  --font-argon: 'Monaspace Argon';
  --navy: #101a3a;
  --deep: #081a32;
  --blue: #087bfa;
  --cyan: #00c9e8;
  --purple: #5910d9;
  --white: #ffffff;
  --gray: #f5f7fb;
  --mint: #eaf5f0;
  --green: #079d73;
  --green-dark: #06291f;

  --text: var(--navy);
  --muted: #59627e;
  --muted-2: #8a92aa;
  --line: #e3e8f2;
  --line-strong: #cfd7e6;
  --on-dark: #e9eefb;
  --on-dark-muted: #9aa6c4;
  --line-dark: rgba(154, 166, 196, 0.18);

  --gradient: linear-gradient(110deg, #00c9e8 0%, #087bfa 50%, #5910d9 100%);
  --gradient-soft: linear-gradient(110deg, rgba(0, 201, 232, 0.12), rgba(8, 123, 250, 0.1) 50%, rgba(89, 16, 217, 0.12));

  /* Единый шрифт сайта — Monaspace Argon. */
  --font-sans: var(--font-argon), ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --font-mono: var(--font-argon), ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;

  --shadow-sm: 0 1px 2px rgba(16, 26, 58, 0.06), 0 2px 8px rgba(16, 26, 58, 0.04);
  --shadow: 0 2px 6px rgba(16, 26, 58, 0.05), 0 12px 32px rgba(16, 26, 58, 0.08);
  --shadow-lg: 0 24px 64px rgba(16, 26, 58, 0.14);
  --glow: 0 10px 30px rgba(8, 123, 250, 0.28);

  --container: 1240px;
  --gutter: 24px;
  --header-h: 72px;
  --section-y: clamp(72px, 9vw, 128px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 160ms;
  --t: 280ms;

  color-scheme: light;
}

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
    --header-h: 64px;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: 'calt' 1, 'liga' 1;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

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

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure {
  margin: 0;
}

ul[role='list'],
ol[role='list'] {
  list-style: none;
  padding: 0;
}

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

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: rgba(8, 123, 250, 0.18);
}

/* ───────────── primitives ───────────── */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: var(--section-y);
}

.section--gray {
  background: var(--gray);
}

.section--dark {
  background: var(--deep);
  color: var(--on-dark);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
}

.eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: 14px 0 0 -2px rgba(8, 123, 250, 0.35);
  margin-right: 12px;
}

.section--dark .eyebrow {
  color: var(--cyan);
}

.h1 {
  font-size: clamp(28px, 4.8vw, 66px);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.h2 {
  font-size: clamp(25px, 3.4vw, 46px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.h3 {
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.lead {
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.55;
  color: var(--muted);
  text-wrap: pretty;
}

.section--dark .lead {
  color: var(--on-dark-muted);
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  transition: top var(--t-fast);
}

.skip-link:focus {
  top: 12px;
}

/* Появление секций при прокрутке (класс выставляет Reveal) */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal='shown'] {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* Пока JS не загрузился — контент не прячем */
html:not(.js) [data-reveal] {
  opacity: 1;
  transform: none;
}


/* ═════════ components/ui/Button (.btn__*) ═════════ */
.btn__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  isolation: isolate;
  overflow: hidden;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t) var(--ease), background-color var(--t), color var(--t), border-color var(--t);
  -webkit-tap-highlight-color: transparent;
}

.btn__btn:active {
  transform: translateY(1px) scale(0.99);
}

.btn__btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn__md {
  min-height: 48px;
  padding: 0 22px;
  font-size: 15px;
}

.btn__lg {
  min-height: 58px;
  padding: 0 28px;
  font-size: 16px;
}

.btn__sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
}

.btn__block {
  width: 100%;
}

.btn__label {
  position: relative;
  z-index: 1;
}

.btn__icon {
  position: relative;
  z-index: 1;
  transition: transform var(--t) var(--ease);
}

.btn__btn:hover .btn__icon {
  transform: translateX(3px);
}

/* Градиентная основная кнопка с мягким переливом */
.btn__primary {
  color: #fff;
  background: var(--gradient);
  background-size: 160% 100%;
  background-position: 0% 50%;
  box-shadow: 0 8px 24px rgba(8, 123, 250, 0.25);
}

.btn__primary:hover {
  background-position: 100% 50%;
  box-shadow: 0 12px 32px rgba(89, 16, 217, 0.3);
  transform: translateY(-1px);
}

.btn__secondary {
  color: var(--navy);
  background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
}

.btn__secondary:hover {
  box-shadow: inset 0 0 0 1.5px var(--blue), var(--shadow-sm);
  color: var(--blue);
}

.btn__dark {
  color: #fff;
  background: var(--navy);
}

.btn__dark:hover {
  background: #1b2752;
}

.btn__outline-light {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.28);
}

.btn__outline-light:hover {
  box-shadow: inset 0 0 0 1.5px var(--cyan);
  background: rgba(0, 201, 232, 0.08);
}

.btn__white {
  color: var(--navy);
  background: #fff;
}

.btn__white:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transform: translateY(-1px);
}

.btn__green {
  color: #fff;
  background: var(--green);
  box-shadow: 0 8px 22px rgba(7, 157, 115, 0.28);
}

.btn__green:hover {
  background: #068a65;
}

@media (max-width: 420px) {
  .btn__lg {
    min-height: 54px;
    padding: 0 22px;
  }
}


/* ═════════ components/ui/Logo (.logo__*) ═════════ */
.logo__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
}

.logo__mark {
  height: 100%;
  width: auto;
}

/* Высота написания соотносится со знаком примерно как в исходной композиции */
.logo__wordmark {
  height: 46%;
  width: auto;
  margin-top: 4%;
}

.logo__compact .logo__wordmark {
  display: none;
}


/* ═════════ components/ui/SectionHeader (.sh__*) ═════════ */
.sh__header {
  display: grid;
  gap: 24px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.sh__main {
  display: grid;
  gap: 18px;
  max-width: 820px;
}

.sh__withAside {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.sh__center {
  justify-items: center;
  text-align: center;
}

.sh__center .sh__main {
  justify-items: center;
}

.sh__index {
  opacity: 0.6;
  margin-right: 6px;
}

.sh__lead {
  max-width: 660px;
}

@media (max-width: 860px) {
  .sh__withAside {
    grid-template-columns: 1fr;
    align-items: start;
  }
}


/* ═════════ components/ui/Accordion (.acc__*) ═════════ */
.acc__accordion {
  display: grid;
  border-top: 1px solid var(--line);
}

.acc__item {
  border-bottom: 1px solid var(--line);
}

.acc__heading {
  font-size: inherit;
  font-weight: inherit;
}

.acc__trigger {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 22px 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.acc__num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted-2);
}

.acc__q {
  font-size: clamp(17px, 1.5vw, 20px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.35;
  transition: color var(--t-fast);
}

.acc__trigger:hover .acc__q {
  color: var(--blue);
}

.acc__toggle {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gray);
  color: var(--navy);
  transition: transform var(--t) var(--ease), background var(--t), color var(--t);
}

.acc__open .acc__toggle {
  transform: rotate(45deg);
  background: var(--gradient);
  color: #fff;
}

.acc__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--t) var(--ease);
}

.acc__open .acc__panel {
  grid-template-rows: 1fr;
}

.acc__inner {
  overflow: hidden;
}

.acc__inner p {
  padding: 0 48px 24px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

@media (max-width: 560px) {
  .acc__trigger {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 18px 0;
  }
  .acc__num {
    display: none;
  }
  .acc__inner p {
    padding: 0 0 20px;
    font-size: 15px;
  }
}


/* ═════════ components/layout/Header (.header__*) ═════════ */
.header__header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), box-shadow var(--t), background var(--t);
}

.header__scrolled {
  background: rgba(255, 255, 255, 0.9);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(16, 26, 58, 0.05);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
}

.header__brand {
  flex: none;
  display: flex;
  align-items: center;
}

.header__nav {
  margin-inline: auto;
}

.header__nav ul {
  display: flex;
  gap: 2px;
}

.header__nav a {
  position: relative;
  display: block;
  padding: 8px 9px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  transition: color var(--t-fast), background var(--t-fast);
}

.header__nav a:hover {
  color: var(--navy);
  background: var(--gray);
}

.header__nav a.header__active {
  color: var(--navy);
}

.header__nav a.header__active::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: var(--gradient);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.header__burger {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--gray);
  color: var(--navy);
}

.header__mobile {
  display: none;
}

@media (max-width: 1439px) {
  .header__calcBtn {
    display: none !important;
  }
}

@media (max-width: 1180px) {
  .header__nav {
    display: none;
  }
  .header__actions {
    margin-left: auto;
  }
  .header__burger {
    display: grid;
  }
  .header__calcBtn {
    display: none !important;
  }

  .header__mobile {
    position: fixed;
    inset: var(--header-h) 0 0;
    display: block;
    overflow-y: auto;
    background: #fff;
    padding: 12px 0 calc(32px + env(safe-area-inset-bottom, 0px));
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity var(--t), transform var(--t) var(--ease);
  }

  .header__mobile[hidden] {
    display: none;
  }

  .header__mobileOpen {
    opacity: 1;
    transform: none;
  }
}

.header__mobileList li {
  border-bottom: 1px solid var(--line);
  animation: header-itemIn 420ms var(--ease) both;
  animation-delay: calc(var(--i) * 35ms);
}

@keyframes header-itemIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.header__mobileList a {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  min-height: 60px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.header__mobileList a span {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted-2);
}

.header__mobileList a svg {
  color: var(--blue);
}

.header__mobileCta {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.header__mobileBrand {
  display: grid;
  justify-items: start;
  gap: 10px;
  margin-top: 32px;
  font-size: 14px;
  color: var(--muted);
}

html.menu-open {
  overflow: hidden;
}

@media (max-width: 480px) {
  .header__leadBtn {
    display: none !important;
  }
}


/* ═════════ components/layout/Footer (.footer__*) ═════════ */
.footer__footer {
  position: relative;
  background: var(--deep);
  color: var(--on-dark-muted);
  padding: 0 0 28px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-top: 56px;
  padding-bottom: 48px;
}

.footer__brand {
  display: grid;
  align-content: start;
  gap: 14px;
}

.footer__slogan {
  margin-top: 8px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  max-width: 340px;
  letter-spacing: -0.01em;
}

.footer__tagline {
  font-size: 14px;
}

.footer__title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
}

.footer__links {
  display: grid;
  gap: 8px;
  font-size: 15px;
}

.footer__links a:hover,
.footer__contacts a:hover {
  color: #fff;
}

.footer__contacts {
  display: grid;
  align-content: start;
  gap: 8px;
  font-style: normal;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  font-size: 13px;
}

@media (max-width: 900px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}


/* ═════════ components/graphics/NetworkHero (.nethero__*) ═════════ */
.nethero__wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 0.92;
  touch-action: pan-y;
  container-type: inline-size;
}

.nethero__grid {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  background-image: radial-gradient(circle, rgba(8, 123, 250, 0.16) 1px, transparent 1.2px);
  background-size: 22px 22px;
  mask-image: radial-gradient(circle at center, #000 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at center, #000 30%, transparent 70%);
}

.nethero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.nethero__core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 31cqw;
  height: 31cqw;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 58%, rgba(255, 255, 255, 0.85) 70%, rgba(255, 255, 255, 0) 72%);
  animation: nethero-coreIn 900ms var(--ease) both;
}

.nethero__core::before {
  content: '';
  position: absolute;
  inset: -18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(8, 123, 250, 0.16), rgba(89, 16, 217, 0.06) 45%, transparent 70%);
  z-index: -1;
}

.nethero__ring {
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  border: 1px solid rgba(8, 123, 250, 0.22);
  animation: nethero-ring 4.8s ease-out infinite;
}

.nethero__ring2 {
  animation-delay: 2.4s;
}

@keyframes nethero-ring {
  0% {
    transform: scale(0.95);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.45);
    opacity: 0;
  }
}

@keyframes nethero-coreIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.85);
  }
}

.nethero__mark {
  position: relative;
  width: auto;
  height: 22cqw;
  filter: drop-shadow(0 10px 24px rgba(8, 123, 250, 0.22));
}

.nethero__chip {
  position: absolute;
  transform: translate(-50%, -50%);
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(16, 26, 58, 0.08);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--navy);
  animation: nethero-chipIn 600ms var(--ease) both;
  animation-delay: var(--d);
}

.nethero__chip::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--gradient);
  vertical-align: 1px;
}

@keyframes nethero-chipIn {
  from {
    opacity: 0;
    transform: translate(-50%, -30%) scale(0.92);
  }
}

@media (max-width: 640px) {
  .nethero__chip {
    padding: 5px 9px;
    font-size: 11px;
  }
  .nethero__chip::before {
    width: 5px;
    height: 5px;
    margin-right: 5px;
  }
}


/* ═════════ components/graphics/FlowDiagram (.flow__*) ═════════ */
.flow__flow {
  --cycle: calc(var(--steps) * 0.7s + 1.2s);
  margin: 0;
}

.flow__list {
  display: flex;
  align-items: stretch;
  margin: 0;
}

.flow__item {
  display: flex;
  align-items: center;
  flex: 1 1 0;
  min-width: 0;
}

.flow__item:last-child {
  flex: 0 0 auto;
}

.flow__node {
  position: relative;
  flex: none;
  display: grid;
  justify-items: center;
  gap: 8px;
  width: 128px;
  padding: 18px 10px 16px;
  border-radius: var(--radius);
  text-align: center;
  transition: transform var(--t) var(--ease);
}

.flow__node::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: 0 0 0 2px var(--cyan), 0 0 28px rgba(0, 201, 232, 0.45);
  opacity: 0;
  animation: flow-nodeHit var(--cycle) infinite;
  animation-delay: calc(var(--i) * 0.7s);
}

.flow__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
}

.flow__label {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.flow__sub {
  font-size: 12px;
  line-height: 1.35;
}

.flow__link {
  position: relative;
  flex: 1;
  min-width: 18px;
  height: 2px;
  margin: 0 -1px;
  overflow: visible;
}

.flow__link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient);
  opacity: 0.45;
}

.flow__pulse {
  position: absolute;
  top: 50%;
  left: 0;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 201, 232, 0.35), 0 0 16px 4px rgba(0, 201, 232, 0.7);
  opacity: 0;
  animation: flow-travelX var(--cycle) infinite;
  animation-delay: calc(var(--i) * 0.7s + 0.1s);
}

@keyframes flow-travelX {
  0% {
    left: 0;
    opacity: 0;
  }
  4% {
    opacity: 1;
  }
  22% {
    left: 100%;
    opacity: 1;
  }
  26%,
  100% {
    left: 100%;
    opacity: 0;
  }
}

@keyframes flow-travelY {
  0% {
    top: 0;
    opacity: 0;
  }
  4% {
    opacity: 1;
  }
  22% {
    top: 100%;
    opacity: 1;
  }
  26%,
  100% {
    top: 100%;
    opacity: 0;
  }
}

@keyframes flow-nodeHit {
  0% {
    opacity: 0;
  }
  4% {
    opacity: 1;
  }
  18%,
  100% {
    opacity: 0;
  }
}

/* ── светлая тема ── */
.flow__light .flow__node {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.flow__light .flow__icon {
  background: var(--gradient-soft);
  color: var(--blue);
}

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

/* ── тёмная тема ── */
.flow__dark .flow__node {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-dark);
  color: #fff;
}

.flow__dark .flow__icon {
  background: rgba(0, 201, 232, 0.1);
  color: var(--cyan);
}

.flow__dark .flow__sub {
  color: var(--on-dark-muted);
}

.flow__accent.flow__node {
  border-color: transparent;
  background:
    linear-gradient(var(--node-bg, #0d2347), var(--node-bg, #0d2347)) padding-box,
    var(--gradient) border-box;
  border: 1.5px solid transparent;
}

.flow__light .flow__accent.flow__node {
  --node-bg: #fff;
}

.flow__accent .flow__icon {
  background: var(--gradient);
  color: #fff;
}

/* ── вертикальная раскладка ── */
@media (max-width: 760px) {
  .flow__list {
    flex-direction: column;
    align-items: center;
  }
  .flow__item {
    flex-direction: column;
    flex: none;
    width: 100%;
    max-width: 320px;
  }
  .flow__node {
    width: 100%;
    grid-template-columns: auto 1fr;
    justify-items: start;
    align-items: center;
    column-gap: 14px;
    row-gap: 0;
    padding: 12px 14px;
    text-align: left;
  }
  .flow__icon {
    grid-row: span 2;
    width: 42px;
    height: 42px;
  }
  .flow__link {
    flex: none;
    width: 2px;
    height: 26px;
    min-width: 0;
    margin: -1px 0;
  }
  .flow__pulse {
    left: 50%;
    top: 0;
    animation-name: flow-travelY;
  }
}


/* ═════════ components/graphics/NetworkDivider (.divider__*) ═════════ */
.divider__divider {
  position: relative;
  height: 24px;
  overflow: hidden;
}

.divider__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.divider__node {
  position: absolute;
  top: 50%;
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  background: var(--blue);
  opacity: 0.55;
}

.divider__node:nth-child(2) {
  background: var(--cyan);
}

.divider__node:nth-child(6) {
  background: var(--purple);
}

.divider__dark .divider__node {
  box-shadow: 0 0 10px rgba(0, 201, 232, 0.5);
}

.divider__pulse {
  position: absolute;
  top: 50%;
  left: 0;
  width: 120px;
  height: 2px;
  margin-top: -1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  animation: divider-run 6s linear infinite;
}

@keyframes divider-run {
  from {
    transform: translateX(-120px);
  }
  to {
    transform: translateX(100vw);
  }
}


/* ═════════ components/graphics/GraphGlyph (.glyph__*) ═════════ */
.glyph__glyph {
  width: 100%;
  height: auto;
  overflow: visible;
}

.glyph__frame {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 1.5;
}

.glyph__frame circle {
  fill: var(--line-strong);
  stroke: none;
}

.glyph__edges line {
  opacity: 0.55;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.glyph__nodes circle {
  transition: transform 400ms var(--ease);
}

/* Ховер карточки: соединения «прорисовываются» заново, узлы пульсируют */
.glyph-host:hover .glyph__edges line,
.glyph-host:focus-within .glyph__edges line {
  animation: glyph-draw 700ms var(--ease) both;
  animation-delay: calc(var(--i) * 45ms);
  opacity: 0.9;
}

.glyph-host:hover .glyph__nodes circle,
.glyph-host:focus-within .glyph__nodes circle {
  animation: glyph-beat 900ms var(--ease) both;
  animation-delay: calc(var(--i) * 60ms);
}

@keyframes glyph-draw {
  from {
    stroke-dashoffset: 1;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes glyph-beat {
  40% {
    transform: scale(1.35);
  }
}


/* ═════════ components/graphics/UiPreview (.ui__*) ═════════ */
.ui__window {
  position: absolute;
  left: 22px;
  right: 22px;
  top: 22px;
  bottom: -14px;
  border-radius: 14px 14px 0 0;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(16, 26, 58, 0.1);
  overflow: hidden;
  transition: transform 600ms var(--ease);
}

li:hover > div > .ui__window,
li:hover > div > .ui__phone {
  transform: translateY(-6px);
}

.ui__chrome {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 10px;
  border-bottom: 1px solid var(--line);
  background: #fafbfe;
}

.ui__chrome i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line-strong);
}

.ui__url {
  flex: 1;
  height: 10px;
  max-width: 50%;
  margin-left: 10px;
  border-radius: 999px;
  background: var(--gray);
}

.ui__viewport {
  padding: 14px;
  height: calc(100% - 26px);
}

.ui__line {
  display: block;
  height: 6px;
  border-radius: 999px;
  background: #e3e8f2;
}

.ui__h {
  height: 10px;
  background: var(--navy);
  opacity: 0.85;
}

.ui__btn {
  display: block;
  width: 72px;
  height: 20px;
  border-radius: 999px;
  background: var(--gradient);
}

.ui__btnFull {
  width: 100%;
}

/* landing */
.ui__landing {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 14px;
  height: 100%;
}

.ui__lCopy {
  display: grid;
  align-content: center;
  gap: 8px;
}

.ui__lCopy .ui__btn {
  margin-top: 6px;
}

.ui__widget {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--gray);
}

.ui__input {
  display: block;
  height: 16px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--line);
}

.ui__slider {
  position: relative;
  display: block;
  height: 4px;
  border-radius: 999px;
  background: var(--line-strong);
}

.ui__slider span {
  position: absolute;
  inset: 0 40% 0 0;
  border-radius: inherit;
  background: var(--gradient);
}

.ui__slider span::after {
  content: '';
  position: absolute;
  right: -5px;
  top: -4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--blue);
}

/* corporate */
.ui__corp {
  display: grid;
  gap: 9px;
  align-content: start;
}

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

.ui__logoDot {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: var(--gradient);
  margin-right: auto;
}

.ui__navBtn {
  width: 40px;
  height: 14px;
  border-radius: 999px;
  background: var(--navy);
}

.ui__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.ui__col {
  display: grid;
  gap: 6px;
  padding: 10px;
  border-radius: 8px;
  background: var(--gray);
}

.ui__icon {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: var(--gradient-soft);
  border: 1px solid rgba(8, 123, 250, 0.3);
}

/* shop */
.ui__shopHead {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.ui__search {
  flex: 1;
  height: 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--gray);
}

.ui__cart {
  position: relative;
  width: 20px;
  height: 18px;
  border-radius: 4px;
  border: 2px solid var(--navy);
}

.ui__cart b {
  position: absolute;
  top: -8px;
  right: -8px;
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  font-size: 8px;
}

.ui__products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.ui__product {
  display: grid;
  gap: 5px;
}

.ui__pImg {
  display: block;
  height: 46px;
  border-radius: 8px;
  background: linear-gradient(135deg, hsl(var(--h) 85% 92%), hsl(calc(var(--h) + 40) 80% 86%));
}

.ui__priceTag {
  display: block;
  width: 34px;
  height: 8px;
  border-radius: 999px;
  background: var(--blue);
  opacity: 0.8;
}

/* webapp */
.ui__app {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  height: 100%;
  margin: -14px 0 0 -14px;
}

.ui__side {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 10px;
  padding-top: 12px;
  background: var(--navy);
}

.ui__side .ui__logoDot {
  margin: 0 0 6px;
}

.ui__sideItem {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.18);
}

.ui__sideActive {
  background: var(--cyan);
}

.ui__main {
  display: grid;
  gap: 8px;
  align-content: start;
  padding-top: 14px;
}

.ui__kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.ui__kpi {
  display: grid;
  gap: 5px;
  padding: 7px;
  border-radius: 7px;
  border: 1px solid var(--line);
}

.ui__chart {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 48px;
  padding: 0 2px;
  border-bottom: 1px solid var(--line);
}

.ui__chart span {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: var(--gradient);
  opacity: 0.85;
}

.ui__rows {
  display: grid;
  gap: 5px;
}

.ui__row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ui__row i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--line-strong);
}

.ui__badge {
  margin-left: auto;
  width: 30px;
  height: 10px;
  border-radius: 999px;
  background: rgba(7, 157, 115, 0.25);
}

/* Telegram Mini App */
.ui__phone {
  position: absolute;
  left: 50%;
  top: 18px;
  bottom: -30px;
  width: 168px;
  margin-left: -84px;
  padding: 10px;
  border-radius: 26px;
  background: #fff;
  border: 6px solid var(--navy);
  box-shadow: 0 20px 44px rgba(16, 26, 58, 0.18);
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 8px;
  transition: transform 600ms var(--ease);
}

.ui__phoneBar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ui__back {
  width: 8px;
  height: 8px;
  border-left: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(45deg);
}

.ui__barTitle {
  flex: 1;
  height: 7px;
  border-radius: 999px;
  background: var(--navy);
  opacity: 0.8;
  max-width: 60px;
  margin: 0 auto;
}

.ui__dotsH {
  width: 12px;
  height: 3px;
  background: radial-gradient(circle, var(--muted-2) 1.2px, transparent 1.5px) 0 0 / 4px 3px;
}

.ui__tmaBanner {
  height: 36px;
  border-radius: 10px;
  background: var(--gradient);
}

.ui__tmaGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  align-content: start;
}

.ui__tmaItem {
  display: grid;
  gap: 4px;
  padding: 5px;
  border-radius: 8px;
  background: var(--gray);
}

.ui__tmaImg {
  height: 30px;
  border-radius: 6px;
  background: linear-gradient(135deg, #d9f6fb, #e4dcfa);
}

.ui__tmaButton {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 40px;
  height: 22px;
  border-radius: 8px;
  background: #2aabee;
}


/* ═════════ components/calculator/Calculator (.calc__*) ═════════ */
.calc__calculator {
  position: relative;
}

.calc__restored {
  margin-bottom: 16px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: rgba(8, 123, 250, 0.08);
  color: var(--blue);
  font-size: 14px;
  font-weight: 600;
}

/* Desktop: каталог (категория слева + карточки) | sticky-панель справа */
.calc__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}

.calc__catalog {
  display: grid;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.calc__aside {
  align-self: stretch;
}

.calc__sticky {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  display: flex;
  flex-direction: column;
  /* Панель никогда не выше экрана: итог всегда виден, прокручивается только список */
  max-height: calc(100dvh - var(--header-h) - 32px);
}

/* ───── категория ───── */
.calc__category {
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr);
  gap: 20px;
  padding: 22px 22px 22px 20px;
  border-top: 1px solid var(--line);
}

.calc__category:first-child {
  border-top: 0;
}

.calc__catHead {
  display: grid;
  align-content: start;
  gap: 4px;
}

.calc__catIndex {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted-2);
}

.calc__catTitle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.calc__catCount {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  animation: calc-pop 300ms var(--ease);
}

@keyframes calc-pop {
  from {
    transform: scale(0.5);
  }
}

.calc__catHint {
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
}

.calc__catRule {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green);
}

.calc__ruleRadio,
.calc__ruleCheck {
  width: 10px;
  height: 10px;
  border: 1.5px solid currentColor;
}

.calc__ruleRadio {
  border-radius: 50%;
}

.calc__ruleCheck {
  border-radius: 3px;
}

.calc__catBody {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.calc__cardGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
}

.calc__compactGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
}

.calc__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.calc__chipsTotal {
  font-size: 13px;
  color: var(--muted);
}

.calc__chipsTotal b {
  color: var(--green-dark);
}

@media (max-width: 1180px) {
  .calc__layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 20px;
  }
  .calc__category {
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 16px;
  }
}

/* Tablet/mobile: одна колонка, сводка — нижняя панель */
@media (max-width: 1023px) {
  .calc__layout {
    grid-template-columns: 1fr;
  }
  .calc__aside {
    display: none;
  }
  .calc__category {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 20px 16px;
  }
  .calc__catHead {
    grid-template-columns: auto 1fr auto;
    align-items: baseline;
    column-gap: 10px;
  }
  .calc__catIndex {
    grid-row: 1;
  }
  .calc__catTitle {
    grid-row: 1;
  }
  .calc__catRule {
    grid-row: 1;
    grid-column: 3;
    margin: 0;
  }
  .calc__catHint {
    grid-column: 1 / -1;
  }
  /* Нижняя панель не перекрывает последние карточки */
  .calc__calculator {
    padding-bottom: 88px;
  }
}

@media (max-width: 560px) {
  .calc__catalog {
    border-radius: var(--radius);
    margin-inline: calc(var(--gutter) * -0.5);
  }
  .calc__cardGrid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .calc__compactGrid {
    grid-template-columns: 1fr 1fr;
  }
}


/* ═════════ components/calculator/CalculatorDetails (.det__*) ═════════ */
.det__details {
  display: grid;
  gap: 14px;
}

.det__group {
  display: grid;
  gap: 4px;
}

.det__groupTitle {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.det__groupNote {
  text-transform: none;
  letter-spacing: 0;
  font-size: 11px;
  color: #a5711b;
}

.det__lines {
  display: grid;
  margin: 0;
}

.det__line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: baseline;
  gap: 10px;
  padding: 6px 0;
  font-size: 14px;
  line-height: 1.35;
  border-bottom: 1px dashed var(--line);
  overflow: hidden;
}

.det__lines .det__line:last-child {
  border-bottom: 0;
}

.det__lineTitle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--navy);
}

.det__linePrice {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
  white-space: nowrap;
  text-align: right;
}

.det__custom {
  color: #a5711b;
}

.det__remove {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin: -4px -4px -4px 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted-2);
  align-self: center;
  transition: background var(--t-fast), color var(--t-fast);
}

.det__remove:hover {
  background: #fde8e8;
  color: #c0392b;
}

.det__urgency {
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 8px 10px;
  border: 0;
  border-radius: var(--radius-xs);
  background: #fff6e5;
  color: #8a5a00;
}

.det__urgency .det__lineTitle,
.det__urgency .det__linePrice {
  color: #8a5a00;
}

/* анимация строк */
.det__enter {
  animation: det-lineIn 320ms var(--ease) both;
}

.det__exit {
  animation: det-lineOut 240ms var(--ease) both;
  pointer-events: none;
}

@keyframes det-lineIn {
  from {
    opacity: 0;
    transform: translateX(10px);
    max-height: 0;
    padding-block: 0;
  }
  to {
    opacity: 1;
    transform: none;
    max-height: 60px;
  }
}

@keyframes det-lineOut {
  from {
    opacity: 1;
    max-height: 60px;
  }
  to {
    opacity: 0;
    transform: translateX(-10px);
    max-height: 0;
    padding-block: 0;
    border-color: transparent;
  }
}

.det__compact .det__line {
  font-size: 13px;
  padding: 5px 0;
}


/* ═════════ components/calculator/CalculatorForm (.form__*) ═════════ */
.form__dialog {
  width: min(600px, calc(100vw - 24px));
  max-height: min(92dvh, 880px);
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: #fff;
  color: var(--navy);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.form__dialog[open] {
  display: flex;
  animation: form-dialogIn 320ms var(--ease);
}

.form__dialog::backdrop {
  background: rgba(8, 26, 50, 0.55);
  backdrop-filter: blur(6px);
  animation: form-fade 240ms ease;
}

@keyframes form-dialogIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
}

@keyframes form-fade {
  from {
    opacity: 0;
  }
}

html.modal-open {
  overflow: hidden;
}

.form__panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: inherit;
}

.form__head {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
  padding: 22px 22px 18px;
  border-bottom: 1px solid var(--line);
}

.form__head::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: var(--gradient);
}

.form__mark {
  width: auto;
  height: 40px;
}

.form__title {
  font-size: 22px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.form__subtitle {
  margin-top: 4px;
  font-size: 14px;
  color: var(--muted);
}

.form__close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--gray);
  color: var(--navy);
  transition: background var(--t-fast);
}

.form__close:hover {
  background: var(--line);
}

.form__body {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px 22px 22px;
  display: grid;
  gap: 18px;
}

.form__summary {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--mint);
  border: 1px solid rgba(7, 157, 115, 0.25);
}

.form__totals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form__totals > div {
  display: grid;
}

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

.form__totalValue {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 600;
  color: var(--green-dark);
}

.form__customNote {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #8a5a00;
}

.form__breakdown summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
  font-size: 14px;
  font-weight: 700;
  color: var(--green-dark);
  padding: 4px 0;
}

.form__breakdown summary::-webkit-details-marker {
  display: none;
}

.form__breakdown[open] summary svg {
  transform: rotate(180deg);
}

.form__breakdown[open] summary {
  margin-bottom: 8px;
}

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

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

.form__field {
  display: grid;
  gap: 6px;
}

.form__label {
  font-size: 13px;
  font-weight: 700;
}

.form__optional {
  font-weight: 500;
  color: var(--muted-2);
  margin-left: 4px;
}

.form__field input,
.form__field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 16px; /* без автозума на iOS */
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.form__field textarea {
  resize: vertical;
  min-height: 88px;
}

.form__field input::placeholder,
.form__field textarea::placeholder {
  color: #a8b0c4;
}

.form__field input:focus,
.form__field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(8, 123, 250, 0.12);
}

.form__field [aria-invalid='true'] {
  border-color: #d64545;
}

.form__field [aria-invalid='true']:focus {
  box-shadow: 0 0 0 4px rgba(214, 69, 69, 0.12);
}

.form__error {
  font-size: 13px;
  color: #c0392b;
}

.form__consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
}

.form__consent input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--blue);
}

.form__consent a {
  color: var(--blue);
  text-decoration: underline;
}

.form__hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__alert {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: #fdecec;
  color: #8f2a20;
  font-size: 14px;
  line-height: 1.45;
}

.form__alertContacts {
  margin-top: 4px;
}

.form__alertContacts a {
  font-weight: 700;
  text-decoration: underline;
}

.form__sending {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.form__spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  animation: form-spin 800ms linear infinite;
}

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

.form__success {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 32px 24px 28px;
  text-align: center;
}

.form__successIcon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--green);
  box-shadow: 0 0 0 8px rgba(7, 157, 115, 0.08);
}

.form__successId {
  font-size: 14px;
  color: var(--muted);
}

@media (max-width: 560px) {
  .form__dialog {
    width: 100vw;
    max-width: 100vw;
    max-height: 94dvh;
    margin: auto 0 0;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
  .form__row {
    grid-template-columns: 1fr;
  }
  .form__head {
    padding: 18px 16px 14px;
  }
  .form__body {
    padding: 16px;
  }
}


/* ═════════ components/calculator/MobilePriceBar (.mbar__*) ═════════ */
.mbar__bar {
  display: none;
}

@media (max-width: 1023px) {
  .mbar__bar {
    position: fixed;
    left: 8px;
    right: 8px;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    z-index: 60;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 8px;
    border-radius: 20px;
    background: rgba(6, 41, 31, 0.96);
    backdrop-filter: blur(10px);
    box-shadow: 0 16px 40px rgba(6, 41, 31, 0.35);
    color: #fff;
    transform: translateY(140%);
    opacity: 0;
    transition: transform 360ms var(--ease), opacity 240ms;
    pointer-events: none;
  }

  .mbar__visible {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
}

.mbar__info {
  position: relative;
  display: grid;
  align-content: center;
  min-width: 0;
  min-height: 52px;
  padding: 4px 36px 4px 10px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: inherit;
  text-align: left;
}

.mbar__info:hover {
  background: rgba(255, 255, 255, 0.06);
}

.mbar__total {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.mbar__meta {
  font-size: 12px;
  line-height: 1.3;
  color: #9fd8c4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mbar__chev {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #9fd8c4;
}

.mbar__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 52px;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  background: var(--green);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.mbar__cta:hover {
  background: #08b384;
}

.mbar__sheet {
  width: 100vw;
  max-width: 640px;
  max-height: 88dvh;
  margin: auto auto 0;
  padding: 0;
  border: 0;
  border-radius: 24px 24px 0 0;
  background: #fff;
  color: var(--navy);
}

.mbar__sheet[open] {
  animation: mbar-sheetIn 360ms var(--ease);
}

.mbar__sheet::backdrop {
  background: rgba(8, 26, 50, 0.5);
  backdrop-filter: blur(4px);
}

@keyframes mbar-sheetIn {
  from {
    transform: translateY(40%);
    opacity: 0;
  }
}

.mbar__sheetInner {
  position: relative;
  padding: 10px 18px calc(20px + env(safe-area-inset-bottom, 0px));
}

.mbar__grabber {
  width: 44px;
  height: 5px;
  margin: 0 auto 12px;
  border-radius: 999px;
  background: var(--line-strong);
}

.mbar__sheetClose {
  position: absolute;
  top: 10px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--gray);
}

.mbar__sheetInner > div:last-child {
  margin-top: 18px;
}


/* ═════════ components/calculator/PriceSummary (.sum__*) ═════════ */
.sum__summary {
  display: grid;
  gap: 16px;
}

.sum__panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid rgba(7, 157, 115, 0.22);
  box-shadow: 0 20px 50px rgba(6, 41, 31, 0.1);
  position: relative;
  overflow: hidden;
}

.sum__panel::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--gradient);
}

.sum__panel > * {
  flex: none;
}

.sum__panel > .sum__list {
  flex: 0 1 auto;
  min-height: 72px;
  max-height: none;
}

.sum__sheet {
  padding: 4px 0 0;
}

.sum__head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sum__kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-right: auto;
}

.sum__count {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  transition: background var(--t);
}

.sum__countEmpty {
  background: var(--gray);
  color: var(--muted);
}

.sum__reset {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.sum__reset:hover:not(:disabled) {
  background: var(--gray);
  color: var(--navy);
}

.sum__reset:disabled {
  opacity: 0.4;
  cursor: default;
}

.sum__totals {
  display: grid;
  gap: 2px;
}

.sum__total {
  font-family: var(--font-mono);
  font-size: clamp(34px, 3vw, 42px);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--green-dark);
  font-variant-numeric: tabular-nums;
}

.sum__totalEmpty {
  color: #b5c2bc;
}

.sum__totalCustom {
  font-size: 24px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #8a5a00;
}

.sum__totalCaption {
  font-size: 13px;
  color: var(--muted);
}

.sum__monthly {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 600;
  color: var(--green);
  font-variant-numeric: tabular-nums;
}

.sum__monthly span {
  font-size: 14px;
  font-weight: 500;
}

.sum__unspecified {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
}

.sum__unspecified span {
  display: block;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  color: #a5711b;
}

.sum__customAlert {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: #fff6e5;
  color: #6f4900;
  font-size: 13px;
  line-height: 1.4;
}

.sum__customAlert div {
  display: grid;
  gap: 2px;
}

.sum__list {
  max-height: 300px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
  margin-right: -4px;
  scrollbar-width: thin;
}

.sum__sheet .sum__list {
  max-height: none;
  overflow: visible;
}

.sum__empty {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--gray);
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}

.sum__empty svg {
  flex: none;
  color: var(--blue);
  margin-top: 1px;
}

.sum__urgent {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  text-align: left;
  transition: border-color var(--t-fast), background var(--t-fast);
}

.sum__urgent:hover {
  border-color: #e4b45a;
}

.sum__urgentOn {
  border-color: #e9a23b;
  background: #fffaf0;
}

.sum__switch {
  position: relative;
  width: 40px;
  height: 24px;
  border-radius: 999px;
  background: var(--line-strong);
  transition: background var(--t-fast);
}

.sum__knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform var(--t) var(--ease);
}

.sum__urgentOn .sum__switch {
  background: #e9a23b;
}

.sum__urgentOn .sum__knob {
  transform: translateX(16px);
}

.sum__urgentText {
  display: grid;
  min-width: 0;
  font-size: 14px;
  line-height: 1.3;
}

.sum__urgentText span {
  font-size: 12px;
  color: var(--muted);
}

.sum__urgentAmount {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: #8a5a00;
}

.sum__disclaimer {
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
  text-align: center;
}

.sum__shareRow {
  display: grid;
  gap: 8px;
  justify-items: center;
}

.sum__share {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
}

.sum__share:hover {
  background: rgba(8, 123, 250, 0.08);
}

.sum__shareInput {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 12px;
}


/* ═════════ components/calculator/ServiceCard (.svc__*) ═════════ */
/* ───── карточка ───── */
.svc__card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1.5px solid var(--line);
  transition: border-color var(--t-fast), background-color var(--t), box-shadow var(--t) var(--ease), transform var(--t) var(--ease);
}

.svc__card:hover {
  border-color: #b9c6dc;
  box-shadow: 0 6px 18px rgba(16, 26, 58, 0.07);
}

.svc__card:has(.svc__main:active) {
  transform: scale(0.985);
}

.svc__selected {
  background: var(--mint);
  border-color: var(--green);
}

.svc__selected:hover {
  border-color: var(--green);
  box-shadow: 0 6px 18px rgba(7, 157, 115, 0.12);
}

.svc__main {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 4px;
  width: 100%;
  flex: 1 1 auto;
  padding: 14px 44px 14px 14px;
  border: 0;
  border-radius: inherit;
  background: transparent;
  text-align: left;
}

.svc__main:focus-visible {
  outline-offset: 2px;
}

.svc__title {
  font-size: 15px;
  line-height: 1.3;
  hyphens: auto;
  overflow-wrap: break-word;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.svc__desc {
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
}

.svc__footer {
  margin-top: 8px;
}

.svc__price {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

.svc__from {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.svc__period {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.svc__zero {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted-2);
}

.svc__custom {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: #8a5a00;
  background: #fff3da;
  padding: 2px 8px;
  border-radius: 999px;
}

.svc__selected .svc__price {
  color: var(--green-dark);
}

/* индикатор выбора */
.svc__check {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 1.5px solid var(--line-strong);
  background: #fff;
  color: transparent;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast), transform var(--t) var(--ease);
}

.svc__radio {
  border-radius: 50%;
}

.svc__selected .svc__check {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  transform: scale(1.05);
  animation: svc-pop 320ms var(--ease);
}

@keyframes svc-pop {
  0% {
    transform: scale(0.6);
  }
  60% {
    transform: scale(1.18);
  }
}

/* подробности */
.svc__hasDetails .svc__main {
  padding-bottom: 6px;
}

.svc__more {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 10px 10px;
  padding: 4px 6px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
}

.svc__more:hover {
  background: rgba(8, 123, 250, 0.08);
}

.svc__details {
  margin: -4px 14px 12px;
  padding: 10px 0 0;
  border-top: 1px dashed var(--line-strong);
  display: grid;
  gap: 4px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--muted);
}

.svc__details[hidden] {
  display: none;
}

.svc__details li {
  position: relative;
  padding-left: 14px;
}

.svc__details li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}

/* компактный вариант (интеграция, LLM) */
.svc__compact .svc__main {
  padding: 12px 40px 12px 12px;
  gap: 2px;
}

.svc__compact .svc__footer {
  margin-top: 4px;
}

.svc__compact .svc__title {
  font-size: 14px;
}

/* ───── чипы каналов ───── */
.svc__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px 0 10px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t);
}

.svc__chip:hover {
  border-color: #b9c6dc;
  box-shadow: 0 4px 12px rgba(16, 26, 58, 0.06);
}

.svc__chip.svc__selected {
  background: var(--mint);
  border-color: var(--green);
}

.svc__chipCheck {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gray);
  color: var(--muted);
  transition: background var(--t-fast), color var(--t-fast);
}

.svc__chip.svc__selected .svc__chipCheck {
  background: var(--green);
  color: #fff;
}

/* ───── переключатель опции ───── */
.svc__option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px dashed var(--line-strong);
  background: rgba(255, 255, 255, 0.6);
  text-align: left;
  transition: border-color var(--t-fast), background var(--t-fast);
}

.svc__option:hover {
  border-color: #9fb0cc;
}

.svc__optionOn {
  border-style: solid;
  border-color: var(--green);
  background: var(--mint);
}

.svc__switch {
  position: relative;
  width: 40px;
  height: 24px;
  border-radius: 999px;
  background: var(--line-strong);
  transition: background var(--t-fast);
}

.svc__knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform var(--t) var(--ease);
}

.svc__optionOn .svc__switch {
  background: var(--green);
}

.svc__optionOn .svc__knob {
  transform: translateX(16px);
}

.svc__optionText {
  display: grid;
  min-width: 0;
}

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

.svc__optionNote {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.35;
}

@media (max-width: 480px) {
  .svc__option {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .svc__option > :last-child {
    grid-column: 2;
  }
}


/* ═════════ components/sections/Advantages (.adv__*) ═════════ */
.adv__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.adv__intro > div:first-child {
  margin-bottom: 32px;
}

.adv__diagram {
  display: grid;
  grid-template-columns: auto minmax(60px, 1fr) auto;
  align-items: center;
  max-width: 440px;
  height: 220px;
}

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

.adv__tasks li {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  text-align: center;
}

.adv__lines {
  width: 100%;
  height: 200px;
}

.adv__path {
  stroke-dasharray: 6 6;
  animation: adv-flow 2.4s linear infinite;
  opacity: 0.7;
}

@keyframes adv-flow {
  to {
    stroke-dashoffset: -24;
  }
}

.adv__hub {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--glow);
}

.adv__hubMark {
  width: auto;
  height: 58px;
}

.adv__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.adv__card {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--gray);
  border: 1px solid transparent;
  transition: background var(--t), border-color var(--t), transform var(--t) var(--ease);
}

.adv__card:hover {
  background: #fff;
  border-color: var(--line);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.adv__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 8px;
  border-radius: 16px;
  background: var(--gradient);
  color: #fff;
  box-shadow: var(--glow);
}

.adv__text {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

@media (max-width: 1024px) {
  .adv__layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .adv__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .adv__card {
    padding: 22px;
  }
  .adv__diagram {
    height: 200px;
  }
}


/* ═════════ components/sections/AiAutomation (.ai__*) ═════════ */
.ai__section {
  overflow: hidden;
  isolation: isolate;
}

.ai__glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(40% 50% at 90% 10%, rgba(89, 16, 217, 0.35), transparent 70%),
    radial-gradient(40% 50% at 0% 90%, rgba(0, 201, 232, 0.18), transparent 70%);
}

.ai__glow::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(154, 166, 196, 0.16) 1px, transparent 1.3px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}

.ai__top {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.ai__copy {
  display: grid;
  gap: 22px;
}

.ai__copy h2 {
  color: #fff;
}

.ai__index {
  opacity: 0.6;
}

.ai__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.ai__caps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ai__cap {
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-dark);
  transition: background var(--t), border-color var(--t), transform var(--t) var(--ease);
}

.ai__cap:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(0, 201, 232, 0.35);
  transform: translateY(-3px);
}

.ai__capIcon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 201, 232, 0.18), rgba(89, 16, 217, 0.25));
  color: var(--cyan);
}

.ai__capTitle {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.ai__capText {
  font-size: 14px;
  line-height: 1.5;
  color: var(--on-dark-muted);
}

.ai__panel {
  margin-top: clamp(48px, 6vw, 80px);
  padding: clamp(20px, 3vw, 36px);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(13, 35, 71, 0.85), rgba(8, 26, 50, 0.6));
  border: 1px solid var(--line-dark);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.ai__panelHead {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  font-size: 13px;
  color: var(--on-dark-muted);
}

.ai__panelDot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(0, 201, 232, 0.15);
  animation: ai-blink 2s ease-in-out infinite;
}

@keyframes ai-blink {
  50% {
    opacity: 0.4;
  }
}

@media (max-width: 960px) {
  .ai__top {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .ai__caps {
    grid-template-columns: 1fr;
  }
  .ai__cap {
    grid-template-columns: auto 1fr;
    padding: 16px;
  }
  .ai__ctas > * {
    flex: 1 1 100%;
  }
}


/* ═════════ components/sections/CalculatorSection (.calcsec__*) ═════════ */
.calcsec__section {
  background: linear-gradient(180deg, var(--mint), #f4faf7 40%, #fff);
  overflow: clip;
}

.calcsec__section .eyebrow {
  color: var(--green);
}

.calcsec__decor {
  position: absolute;
  top: 0;
  right: 0;
  width: min(520px, 60vw);
  height: 360px;
  background-image: radial-gradient(circle, rgba(7, 157, 115, 0.22) 1.2px, transparent 1.5px);
  background-size: 22px 22px;
  mask-image: radial-gradient(circle at 80% 20%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 80% 20%, #000, transparent 70%);
  pointer-events: none;
}


/* ═════════ components/sections/Cases (.cases__*) ═════════ */
.cases__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.cases__card {
  display: grid;
  gap: 18px;
  align-content: start;
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: #fff;
}

.cases__facts {
  display: grid;
  gap: 12px;
  margin: 0;
}

.cases__facts dt {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
}

.cases__facts dd {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.cases__tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cases__tech li {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--gray);
  font-size: 12px;
  font-weight: 600;
}

@media (max-width: 400px) {
  .cases__grid {
    grid-template-columns: 1fr;
  }
}


/* ═════════ components/sections/Directions (.directions__*) ═════════ */
.directions__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.directions__card {
  position: relative;
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t);
}

.directions__card:nth-child(-n + 2) {
  grid-column: span 3;
}

.directions__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.directions__card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1.5px;
  background: var(--gradient);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--t);
  pointer-events: none;
}

.directions__card:hover::before,
.directions__card:focus-within::before {
  opacity: 1;
}

.directions__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.directions__num {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted-2);
}

.directions__glyph {
  width: 120px;
}

.directions__card:nth-child(-n + 2) .directions__glyph {
  width: 150px;
}

.directions__title {
  margin-top: auto;
}

.directions__text {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
  max-width: 420px;
}

.directions__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
}

/* вся карточка кликабельна */
.directions__link::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
}

.directions__link svg {
  transition: transform var(--t) var(--ease);
}

.directions__card:hover .directions__link svg {
  transform: translateX(4px);
}

@media (max-width: 1024px) {
  .directions__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .directions__card,
  .directions__card:nth-child(-n + 2) {
    grid-column: span 1;
  }
  .directions__card:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .directions__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .directions__card {
    padding: 22px;
  }
  .directions__glyph,
  .directions__card:nth-child(-n + 2) .directions__glyph {
    width: 96px;
  }
  .directions__top {
    margin-bottom: 4px;
  }
}


/* ═════════ components/sections/Faq (.faq__*) ═════════ */
.faq__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.faq__side {
  position: sticky;
  top: calc(var(--header-h) + 32px);
}

.faq__card {
  display: grid;
  gap: 10px;
  justify-items: start;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--gray);
}

.faq__cardTitle {
  font-size: 18px;
  font-weight: 800;
}

.faq__cardText {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 6px;
}

@media (max-width: 900px) {
  .faq__layout {
    grid-template-columns: 1fr;
  }
  .faq__side {
    position: static;
    display: contents;
  }
  .faq__card {
    order: 2;
  }
}


/* ═════════ components/sections/FinalCta (.cta__*) ═════════ */
.cta__section {
  padding-top: 0;
}

.cta__card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(36px, 6vw, 80px);
  border-radius: 36px;
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(89, 16, 217, 0.55), transparent 65%),
    radial-gradient(50% 70% at 0% 100%, rgba(0, 201, 232, 0.3), transparent 65%),
    linear-gradient(135deg, #0b1f44, var(--deep));
  color: #fff;
}

.cta__net {
  position: absolute;
  inset: 0 0 0 35%;
  z-index: -1;
  opacity: 0.9;
}

.cta__net svg {
  width: 100%;
  height: 100%;
}

.cta__dot {
  animation: cta-twinkle 3s ease-in-out infinite;
}

@keyframes cta-twinkle {
  50% {
    opacity: 0.35;
  }
}

.cta__copy {
  display: grid;
  gap: 22px;
  max-width: 720px;
}

.cta__mark {
  width: auto;
  height: 64px;
  filter: drop-shadow(0 6px 20px rgba(0, 201, 232, 0.35));
}

.cta__copy h2 {
  color: #fff;
}

.cta__text {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
  color: #c9d3ec;
  max-width: 600px;
}

.cta__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

@media (max-width: 640px) {
  .cta__card {
    border-radius: var(--radius-lg);
  }
  .cta__net {
    inset: 0;
    opacity: 0.35;
  }
  .cta__ctas > * {
    flex: 1 1 100%;
  }
}


/* ═════════ components/sections/Hero (.hero__*) ═════════ */
.hero__hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(28px, 5vw, 64px)) 0 clamp(48px, 6vw, 88px);
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 60% at 82% 38%, rgba(8, 123, 250, 0.1), transparent 70%),
    radial-gradient(40% 50% at 100% 0%, rgba(89, 16, 217, 0.08), transparent 70%),
    radial-gradient(40% 40% at 0% 100%, rgba(0, 201, 232, 0.08), transparent 70%),
    linear-gradient(#fff, var(--gray));
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(16, 26, 58, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(16, 26, 58, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
}

.hero__copy {
  display: grid;
  gap: 22px;
  animation: hero-rise 900ms var(--ease) both;
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

.hero__eyebrow {
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
}

.hero__title {
  font-size: clamp(27px, 4.4vw, 62px);
  text-wrap: balance;
}

.hero__lead {
  max-width: 560px;
}

.hero__extra {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
}

.hero__extraLine {
  flex: none;
  width: 40px;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient);
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.hero__dirs ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.hero__dirs a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
}

.hero__dirs a::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient);
}

.hero__dirs a:hover {
  border-color: var(--blue);
  color: var(--navy);
  background: #fff;
}

.hero__visual {
  position: relative;
  min-width: 0;
}

@media (max-width: 960px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
  .hero__visual {
    max-width: 560px;
    width: 100%;
    margin: 0 auto;
    order: -1;
  }
  .hero__copy {
    gap: 18px;
  }
}

@media (max-width: 960px) and (min-width: 641px) {
  .hero__visual {
    max-width: 460px;
  }
}

@media (max-width: 640px) {
  .hero__visual {
    margin-top: -8px;
    margin-bottom: -12px;
  }
  .hero__ctas > * {
    flex: 1 1 100%;
  }
  .hero__dirs {
    display: none;
  }
}


/* ═════════ components/sections/Infrastructure (.infra__*) ═════════ */
.infra__section {
  background:
    radial-gradient(50% 60% at 15% 50%, rgba(8, 123, 250, 0.16), transparent 70%),
    var(--deep);
}

.infra__section h2 {
  color: #fff;
}

.infra__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.infra__visual {
  max-width: 540px;
  width: 100%;
  justify-self: center;
}

.infra__topology {
  width: 100%;
  height: auto;
  overflow: visible;
}

.infra__flow {
  stroke: #00c9e8;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 10 400;
  stroke-dashoffset: 0;
  animation: infra-dash 2.7s linear infinite;
  filter: drop-shadow(0 0 4px rgba(0, 201, 232, 0.8));
}

@keyframes infra-dash {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: -410;
  }
}

.infra__sat rect {
  fill: #0f2547;
  stroke: rgba(154, 166, 196, 0.3);
}

.infra__sat text {
  fill: #e9eefb;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-sans);
}

.infra__hubHalo {
  fill: rgba(8, 123, 250, 0.12);
  transform-origin: 240px 220px;
  animation: infra-halo 3.2s ease-in-out infinite;
}

@keyframes infra-halo {
  50% {
    transform: scale(1.12);
    opacity: 0.5;
  }
}

.infra__hubTitle {
  fill: #fff;
  font-size: 15px;
  font-weight: 800;
  font-family: var(--font-sans);
}

.infra__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.infra__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line-dark);
  transition: border-color var(--t), background var(--t);
}

.infra__item:hover {
  border-color: rgba(0, 201, 232, 0.35);
  background: rgba(255, 255, 255, 0.06);
}

.infra__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: rgba(0, 201, 232, 0.1);
  color: var(--cyan);
}

.infra__title {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.infra__text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--on-dark-muted);
}

@media (max-width: 1024px) {
  .infra__layout {
    grid-template-columns: 1fr;
  }
  .infra__visual {
    max-width: 460px;
  }
}

@media (max-width: 560px) {
  .infra__list {
    grid-template-columns: 1fr;
  }
  .infra__item {
    padding: 16px;
  }
}


/* ═════════ components/sections/Integrations (.integr__*) ═════════ */
.integr__diagram {
  padding: clamp(20px, 3vw, 40px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle, rgba(8, 123, 250, 0.1) 1px, transparent 1.3px) 0 0 / 24px 24px,
    #fff;
  border: 1px solid var(--line);
}

.integr__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.integr__card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
}

.integr__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--gradient-soft);
  color: var(--blue);
  margin-bottom: 6px;
}

.integr__title {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.integr__text {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--muted);
}

.integr__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 6px;
}

.integr__tags li {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--gray);
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
}

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

@media (max-width: 560px) {
  .integr__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}


/* ═════════ components/sections/Process (.process__*) ═════════ */
.process__steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
}

.process__step {
  display: grid;
  gap: 22px;
  align-content: start;
}

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

.process__node {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  color: var(--blue);
  border: 1.5px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--gradient) border-box;
  box-shadow: 0 8px 22px rgba(8, 123, 250, 0.16);
}

.process__connector {
  position: absolute;
  left: 64px;
  right: -12px;
  top: 50%;
  height: 2px;
  overflow: hidden;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 12px);
}

.process__connector::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 900ms var(--ease);
  transition-delay: calc(var(--i) * 200ms + 300ms);
}

.process__step[data-reveal='shown'] .process__connector::after {
  transform: scaleX(1);
}

.process__body {
  display: grid;
  gap: 8px;
  padding-right: 12px;
}

.process__num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.process__title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.process__text {
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}

@media (max-width: 900px) {
  .process__steps {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .process__step {
    grid-template-columns: 56px 1fr;
    gap: 18px;
  }
  .process__marker {
    flex-direction: column;
    align-items: center;
    align-self: stretch;
  }
  .process__connector {
    position: static;
    width: 2px;
    height: auto;
    flex: 1;
    min-height: 28px;
    margin: 6px 0;
    background: repeating-linear-gradient(180deg, var(--line-strong) 0 6px, transparent 6px 12px);
  }
  .process__connector::after {
    transform-origin: top;
    transform: scaleY(0);
    background: linear-gradient(180deg, var(--cyan), var(--purple));
  }
  .process__step[data-reveal='shown'] .process__connector::after {
    transform: scaleY(1);
  }
  .process__body {
    padding: 8px 0 28px;
  }
}


/* ═════════ components/sections/WebDevelopment (.web__*) ═════════ */
.web__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.web__card {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  background: var(--gray);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}

.web__card:nth-child(n + 4) {
  grid-column: span 3;
}

.web__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.web__preview {
  position: relative;
  height: 220px;
  padding: 22px 22px 0;
  background:
    radial-gradient(70% 90% at 50% 100%, rgba(8, 123, 250, 0.1), transparent 70%),
    linear-gradient(180deg, #eef2fa, var(--gray));
  overflow: hidden;
}

.web__body {
  display: grid;
  gap: 8px;
  padding: 20px 22px 22px;
  background: #fff;
  border-top: 1px solid var(--line);
  flex: 1;
  align-content: start;
}

.web__title {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.web__text {
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}

.web__price {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
}

@media (max-width: 1024px) {
  .web__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .web__card,
  .web__card:nth-child(n + 4) {
    grid-column: span 1;
  }
  .web__card:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .web__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .web__preview {
    height: 190px;
  }
}
