/* =========================================================
   Asfrog — Intelligent Business Automation
   ========================================================= */

:root {
  --bg: #F2F4F3;
  --surface: #FFFFFF;
  --ink: #000000;
  --ink-2: #3D4440;
  --ink-3: #78807B;
  --line: rgba(0, 0, 0, .08);
  --line-strong: rgba(0, 0, 0, .14);

  --green: #00C25B;
  --green-ink: #00853E;
  --green-soft: rgba(0, 194, 91, .12);
  --mint: #7DECB9;
  --aqua: #8FE1F2;
  --lilac: #C3B6FF;

  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 10px;

  --float: 0 1px 0 rgba(255, 255, 255, .9) inset,
           0 24px 48px -24px rgba(14, 48, 30, .28),
           0 2px 6px rgba(14, 48, 30, .05);

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(88px, 11vw, 160px);

  --font: "Onest", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01";
  overflow-x: hidden;
}

h1, h2, h3, h4 { color: var(--ink); margin: 0; font-weight: 450; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg, canvas { display: block; }
button, input, textarea { font: inherit; color: inherit; }

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

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm);
}
.skip:focus { top: 16px; }

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

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

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 24px 64px;
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.section-head h2 {
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 1.04;
  letter-spacing: -.035em;
  max-width: 14em;
}
.section-head p { max-width: 34em; color: var(--ink-3); font-size: 18px; }

.section-head--center {
  grid-template-columns: 1fr;
  text-align: center;
  justify-items: center;
}
.section-head--center h2 { max-width: 17em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 24px;
  border-radius: 12px;
  font-size: 15.5px; font-weight: 500; letter-spacing: -.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--sm { height: 42px; padding: 0 18px; font-size: 14.5px; border-radius: 10px; }
.btn--block { width: 100%; }

.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #1d2420; box-shadow: 0 8px 24px -10px rgba(0, 194, 91, .55); }

.btn--light { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn--light:hover { border-color: var(--line-strong); }

.btn--green { background: var(--green); color: #00170A; }
.btn--green:hover { background: #12D46B; box-shadow: 0 10px 30px -10px rgba(0, 194, 91, .7); }

/* "Записаться на звонок" — opens the Calendly popup (booking.js) */
.btn--cal svg {
  width: 18px; height: 18px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.btn--cal:hover svg { color: var(--green-ink); }
.btn--outline-light { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .22); }
.btn--outline-light:hover { border-color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .1); }
.btn--outline-light.btn--cal:hover svg { color: var(--green); }
.btn.is-loading { opacity: .65; cursor: progress; }

/* =========================================================
   HEADER
   ========================================================= */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding: 14px var(--gutter) 0;
  pointer-events: none;
}
.header__bar {
  pointer-events: auto;
  max-width: var(--container);
  margin: 0 auto;
  height: 64px;
  display: flex; align-items: center; gap: 24px;
  padding: 0 12px 0 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(255, 255, 255, .7);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.header.is-scrolled .header__bar {
  background: rgba(255, 255, 255, .82);
  border-color: var(--line);
  box-shadow: 0 10px 30px -18px rgba(14, 48, 30, .25);
}
/* Phones and tablets: a live blur under a fixed header is recomputed on every scroll frame,
   so the bar is painted nearly opaque instead. */
@media (hover: none) {
  .header__bar { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(255, 255, 255, .86); }
  .header.is-scrolled .header__bar { background: rgba(255, 255, 255, .95); }
}

.logo { color: var(--ink); flex: none; }
.header__book { margin-right: -14px; }

/* the same page in the other language (scripts/build-services.mjs) */
.lang-switch {
  flex: none;
  display: inline-flex; align-items: center; gap: 6px;
  height: 42px; padding: 0 11px; margin-right: -12px;
  border-radius: 10px;
  font-size: 14px; font-weight: 500; letter-spacing: .02em; color: var(--ink-2);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.lang-switch:hover { background: rgba(0, 0, 0, .05); color: var(--ink); }
.lang-switch svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.logo svg { height: 28px; width: auto; }

.nav { display: flex; gap: 4px; margin: 0 auto; }
.nav > a {
  font-size: 15px; color: var(--ink-2); white-space: nowrap;
  padding: 8px 14px; border-radius: 10px;
  transition: color .2s, background-color .2s;
}
.nav > a:hover { color: var(--ink); background: rgba(0, 0, 0, .04); }

/* "Направления" dropdown */
.nav__dd { position: relative; }
.nav__dd-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 10px 8px 14px; border: 0; border-radius: 10px;
  background: transparent; cursor: pointer;
  font-size: 15px; color: var(--ink-2); white-space: nowrap;
  transition: color .2s, background-color .2s;
}
.nav__dd-toggle:hover,
.nav__dd.is-open .nav__dd-toggle { color: var(--ink); background: rgba(0, 0, 0, .04); }
.nav__dd-toggle svg {
  width: 16px; height: 16px;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .25s var(--ease);
}
.nav__dd.is-open .nav__dd-toggle svg { transform: rotate(180deg); }

.dd {
  position: absolute; top: calc(100% + 18px); left: -12px;
  width: min(620px, calc(100vw - var(--gutter) * 2));
  padding: 8px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px rgba(14, 48, 30, .4), 0 2px 8px rgba(14, 48, 30, .05);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s;
}
.dd::before { /* keeps the menu open while the pointer crosses the gap */
  content: ""; position: absolute; left: 0; right: 0; top: -20px; height: 20px;
}
.nav__dd.is-open .dd {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.dd__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.dd__item {
  display: grid; gap: 2px; align-content: start;
  padding: 12px 14px; border-radius: 12px;
  transition: background-color .15s;
}
.dd__item b { font-weight: 500; font-size: 15px; color: var(--ink); }
.dd__item span { font-size: 13.5px; line-height: 1.35; color: var(--ink-3); }
.dd__item:hover { background: var(--bg); }
.dd__item[aria-current="page"] { background: var(--green-soft); }
.dd__all {
  display: block;
  margin-top: 6px; padding: 12px 14px;
  border-top: 1px solid var(--line);
  font-size: 14.5px; font-weight: 500; color: var(--green-ink);
}
.dd__all:hover { color: var(--ink); }

.burger {
  display: none;
  width: 44px; height: 44px; margin-left: auto;
  border: 0; border-radius: 12px; background: rgba(0, 0, 0, .05); cursor: pointer;
  position: relative;
}
.burger span {
  position: absolute; left: 13px; right: 13px; height: 1.6px; background: var(--ink); border-radius: 2px;
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- full-screen mobile menu ----------
   Opens as a circle growing from the burger (--mx/--my set by main.js),
   then the items slide in one after another. */
.header__bar { position: relative; z-index: 1; }
html.menu-open { overflow: hidden; }
html.menu-open .header__bar { background: rgba(255, 255, 255, .82); border-color: var(--line); }

.mobile-menu {
  pointer-events: auto;
  position: fixed; inset: 0; z-index: 0;
  display: flex; flex-direction: column;
  padding: calc(14px + 64px + clamp(20px, 4vh, 36px)) var(--gutter) max(24px, env(safe-area-inset-bottom));
  overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
  background:
    radial-gradient(rgba(0, 0, 0, .07) 1px, transparent 1.3px) 0 0 / 22px 22px,
    var(--bg);
  clip-path: circle(0 at var(--mx, calc(100% - 44px)) var(--my, 44px));
  transition: clip-path .6s cubic-bezier(.7, 0, .2, 1);
}
.mobile-menu.is-open { clip-path: circle(150vmax at var(--mx, calc(100% - 44px)) var(--my, 44px)); }
.mobile-menu[hidden] { display: none; }

.mobile-menu__glow {
  position: absolute; left: -20%; right: -20%; bottom: -12%; height: 58%;
  background:
    radial-gradient(closest-side at 28% 60%, rgba(125, 236, 185, .6), transparent),
    radial-gradient(closest-side at 74% 42%, rgba(195, 182, 255, .45), transparent);
  pointer-events: none;
}
.mobile-menu__mark {
  position: absolute; right: -16%; bottom: 14%;
  width: 72%; max-width: 360px; height: auto;
  color: var(--green); opacity: .08;
  transform: rotate(-14deg);
  pointer-events: none;
}
.mobile-menu__nav, .mobile-menu__foot { position: relative; z-index: 1; }
.mobile-menu__nav { display: grid; }

.mm-link {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%;
  padding: clamp(10px, 1.8vh, 16px) 0;
  border: 0; border-bottom: 1px solid var(--line);
  background: none; cursor: pointer; text-align: left;
  font-family: inherit; font-size: clamp(28px, 8vw, 40px); font-weight: 450;
  letter-spacing: -.035em; line-height: 1.1; color: var(--ink);
}
.mm-link__icon {
  flex: none;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong); color: var(--ink);
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s, transform .3s var(--ease);
}
.mm-link__icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mm-link:hover .mm-link__icon,
.mm-link:active .mm-link__icon { background: var(--green); border-color: var(--green); color: #00170A; }
.mm-link--toggle[aria-expanded="true"] .mm-link__icon { transform: rotate(180deg); background: var(--ink); border-color: var(--ink); color: var(--green); }

/* "Направления" accordion */
.mm-sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.mm-sub.is-open { grid-template-rows: 1fr; }
.mm-sub__inner { min-height: 0; overflow: hidden; }
.mm-sub__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 14px 0 16px; }
.mm-sub__grid a {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: 14px;
  background: rgba(255, 255, 255, .8);
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: 0 10px 22px -18px rgba(14, 48, 30, .45);
  font-size: 15px; line-height: 1.25; color: var(--ink);
}
.mm-sub__grid a::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.mm-sub__grid a[aria-current="page"] { background: var(--green-soft); border-color: rgba(0, 194, 91, .25); }

.mobile-menu__foot { margin-top: auto; padding-top: 28px; display: grid; gap: 10px; }
.mobile-menu__slogan { margin-top: 6px; text-align: center; font-size: 13.5px; color: var(--ink-3); }

/* staggered entrance of the items once the circle has opened */
.js .mm-anim { opacity: 0; transform: translateY(18px); }
.mobile-menu.is-open .mm-anim {
  opacity: 1; transform: none;
  transition: opacity .45s var(--ease), transform .55s var(--ease);
  transition-delay: calc(.2s + var(--i, 0) * .05s);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  padding-top: clamp(132px, 15vh, 180px);
  overflow: hidden;
  background:
    radial-gradient(rgba(0, 0, 0, .07) 1px, transparent 1.3px) 0 0 / 22px 22px,
    var(--bg);
}
.hero::after { /* fade dot grid into next section */
  content: ""; position: absolute; inset: auto 0 0 0; height: 220px;
  background: linear-gradient(to bottom, rgba(242, 244, 243, 0), var(--bg));
  pointer-events: none;
}

.hero__content {
  position: relative; z-index: 3;
  max-width: 1000px; margin: 0 auto; padding-inline: var(--gutter);
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}

.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 16px 6px 6px;
  border-radius: 999px;
  font-size: 14px; color: var(--ink-2);
  background: rgba(255, 255, 255, .86);
  border: 1px solid var(--line);
  transition: border-color .2s;
}
.badge:hover { border-color: var(--line-strong); }
.badge__mark {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: var(--green);
}
.badge__mark svg { width: 16px; height: 16px; }

.hero__title {
  margin-top: 28px;
  font-size: clamp(37px, 6.4vw, 92px);
  line-height: 1;
  letter-spacing: -.045em;
  font-weight: 430;
  max-width: 11.5em;
  text-wrap: balance;
}
.hero__title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.hero__title .w > span { display: inline-block; }

.hero__lead {
  margin-top: 26px;
  max-width: 36em;
  font-size: clamp(17px, 1.35vw, 19px);
  color: var(--ink-3);
  text-wrap: balance;
}

.hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* stage: voice orb in the middle, live-feed cards in the side columns.
   Everything sits in one grid, so nothing overlaps at any width. */
.hero__stage {
  --card-w: 290px;
  --stage-gap: clamp(24px, 2.6vw, 40px);
  position: relative;
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: clamp(40px, 5vw, 64px) auto 0;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-rows: 1fr 1fr;
  grid-template-areas: "a orb b" "c orb d";
  column-gap: var(--stage-gap);
  align-items: center;
}

/* ---------- voice-powered orb ---------- */
.orb {
  /* as large as possible while leaving room for a card column on each side */
  --size: min(560px, calc(100vw - var(--gutter) * 2 - (var(--card-w) + var(--stage-gap)) * 2));
  --level: 0;
  grid-area: orb;
  position: relative; z-index: 1;
  width: var(--size); height: var(--size);
}
.orb__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.orb__button {
  position: absolute; inset: 0; margin: auto;
  width: 50%; height: 50%;
  border-radius: 50%;
  display: grid; place-content: center; justify-items: center; gap: 4px;
  padding: 0 5%;
  text-align: center;
  cursor: pointer;
  color: var(--ink);
  isolation: isolate;
  /* Frosted look painted as a gradient, not backdrop-filter: a live blur over the
     animated ring would be recomputed on every frame. */
  background:
    radial-gradient(90% 90% at 38% 26%, rgba(255, 255, 255, .85), rgba(255, 255, 255, 0) 70%),
    linear-gradient(150deg, rgb(221, 247, 235), rgb(222, 243, 248) 55%, rgb(235, 232, 253));
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .9) inset,
    0 30px 60px -30px rgba(14, 48, 30, .35);
  transition: transform .3s var(--ease);
}
.orb__button::before { /* hover: brighten */
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: #fff; opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease);
}
.orb__button:hover::before { opacity: .4; }
.orb__button:active { transform: scale(.98); }
.orb__button:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; border-radius: 50%; }

.orb__mic {
  position: relative;
  width: clamp(44px, 4.4vw, 60px); aspect-ratio: 1;
  margin-bottom: clamp(6px, 1vw, 12px);
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: var(--green);
  transform: scale(calc(1 + var(--level) * .22));
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.orb__mic::after { /* voice ripple */
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 calc(var(--level) * 22px) rgba(0, 194, 91, .2);
}
.orb__icon {
  width: 44%; height: 44%;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.orb__icon--off { display: none; }

.orb__label { font-size: clamp(14px, 1.35vw, 19px); font-weight: 500; letter-spacing: -.01em; line-height: 1.2; }
.orb__note { font-size: clamp(11.5px, .95vw, 13.5px); color: var(--ink-3); line-height: 1.3; }
.orb__label, .orb__note { text-wrap: balance; } /* even lines stay clear of the round edge */

.orb[data-state="listening"] .orb__mic,
.orb[data-state="speaking"] .orb__mic { background: var(--green); color: #00170A; }
.orb[data-state="thinking"] .orb__mic { animation: breathe 1.2s ease-in-out infinite; }
.orb[data-state="denied"] .orb__icon--on,
.orb[data-state="unsupported"] .orb__icon--on { display: none; }
.orb[data-state="denied"] .orb__icon--off,
.orb[data-state="unsupported"] .orb__icon--off { display: block; }
.orb[data-state="denied"] .orb__mic,
.orb[data-state="unsupported"] .orb__mic { color: rgba(255, 255, 255, .7); }
@keyframes breathe { 50% { opacity: .55; } }

/* ---------- AI consultant chat (under the orb) ---------- */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.assistant {
  position: relative; z-index: 3;
  width: 100%; max-width: calc(680px + var(--gutter) * 2);
  margin: clamp(24px, 3vw, 36px) auto 0;
  padding: 0 var(--gutter);
  display: grid; gap: 10px;
}
.assistant__log {
  display: grid; gap: 8px; align-content: start;
  max-height: 340px; overflow-y: auto; overscroll-behavior: contain;
  padding: 14px;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .84);
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: var(--float);
}
.say {
  max-width: 86%; margin: 0;
  padding: 10px 14px; border-radius: 16px;
  font-size: 15.5px; line-height: 1.5;
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.say--user { justify-self: end; background: var(--ink); color: #fff; border-bottom-right-radius: 5px; }
.say--bot { justify-self: start; background: #fff; color: var(--ink); border-bottom-left-radius: 5px; }
.say--pending { opacity: .6; }
.say--error { background: #FFF1EE; color: #A3261A; }
.say--typing::after {
  content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px;
  background: var(--green); vertical-align: -2px; animation: caret 1s steps(1) infinite;
}
.say--wait::before { /* three dots until the first words arrive */
  content: "";
  display: block; width: 30px; height: 8px;
  background:
    radial-gradient(circle 3px, var(--ink-3) 98%, transparent) 0 50% / 10px 8px no-repeat,
    radial-gradient(circle 3px, var(--ink-3) 98%, transparent) 10px 50% / 10px 8px no-repeat,
    radial-gradient(circle 3px, var(--ink-3) 98%, transparent) 20px 50% / 10px 8px no-repeat;
  animation: breathe 1.1s ease-in-out infinite;
}

/* request card filled in by the consultant */
.lead-card {
  display: grid; gap: 14px;
  padding: 18px;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: var(--float);
  scroll-margin: 96px 0 16px; /* clear of the fixed header */
  animation: lead-in .35s var(--ease);
}
.assistant.is-voice .lead-card, .assistant.is-voice .lead-done { order: -1; }
.lead-card[hidden], .lead-done[hidden], .lead-card label[hidden] { display: none; }
.lead-card__head { display: flex; align-items: center; justify-content: space-between; }
.lead-card__title { margin: 0; font-size: 17px; font-weight: 500; letter-spacing: -.01em; }
.lead-card__close {
  width: 36px; height: 36px; margin: -6px -8px -6px 0; border: 0; border-radius: 10px;
  display: grid; place-items: center;
  background: transparent; color: var(--ink-3); cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.lead-card__close:hover { background: rgba(0, 0, 0, .05); color: var(--ink); }
.lead-card__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.lead-card__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.lead-card label { display: grid; gap: 5px; align-content: start; min-width: 0; }
.lead-card label > span { font-size: 13px; color: var(--ink-2); }
.lead-card label i { font-style: normal; color: var(--ink-3); }
.lead-card__task { grid-column: 1 / -1; }
.lead-card input, .lead-card textarea {
  width: 100%; min-width: 0; padding: 0 12px;
  border: 1px solid var(--line-strong); border-radius: 10px;
  background: #fff; color: var(--ink);
  font: inherit; font-size: 15px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.lead-card input { height: 44px; }
.lead-card textarea { display: block; min-height: 64px; padding: 10px 12px; line-height: 1.45; resize: none; }
.lead-card input::placeholder, .lead-card textarea::placeholder { color: var(--ink-3); }
.lead-card input:focus, .lead-card textarea:focus { outline: none; border-color: rgba(0, 194, 91, .7); box-shadow: 0 0 0 4px rgba(0, 194, 91, .12); }
.lead-card [aria-invalid="true"] { border-color: #D6402F; }
.lead-card .is-new { animation: lead-new 1.4s var(--ease); }
.lead-card__error { margin: 0; font-size: 14px; line-height: 1.4; color: #A3261A; }
.lead-card .btn { justify-self: start; }
.lead-done {
  display: flex; gap: 12px; align-items: center;
  padding: 14px 18px;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: var(--float);
  animation: lead-in .35s var(--ease);
}
.lead-done p { margin: 0; font-size: 14.5px; line-height: 1.4; color: var(--ink-2); }
.lead-done b { display: block; font-weight: 500; color: var(--ink); }
.lead-done__icon { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #00170A; }
.lead-done__icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes lead-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes lead-new { from { background: rgba(0, 194, 91, .18); border-color: rgba(0, 194, 91, .7); } }
@media (max-width: 560px) {
  .lead-card { padding: 16px; }
  .lead-card__fields { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 10px; }
  .lead-card__fields label:nth-child(n + 3) { grid-column: 1 / -1; } /* name and phone share a row */
  .lead-card input { padding: 0 10px; }
  .lead-card .btn { justify-self: stretch; }
}
@media (pointer: coarse) { .lead-card input, .lead-card textarea { font-size: 16px; } } /* no zoom on iPhone */
@media (prefers-reduced-motion: reduce) { .lead-card, .lead-done, .lead-card .is-new { animation: none; } }

.assistant__form {
  display: flex; gap: 6px; align-items: center;
  padding: 6px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .94);
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px -24px rgba(14, 48, 30, .35);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.assistant__form:focus-within { border-color: rgba(0, 194, 91, .6); box-shadow: 0 0 0 4px rgba(0, 194, 91, .12), 0 16px 40px -24px rgba(14, 48, 30, .35); }
.assistant__form input {
  flex: 1; min-width: 0; height: 46px; padding: 0 12px;
  border: 0; background: transparent;
  font-size: 16px; color: var(--ink);
}
.assistant__form input::placeholder { color: var(--ink-3); }
.assistant__form input:focus { outline: none; }
.assistant__send {
  flex: none; width: 46px; height: 46px; border: 0; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--ink); color: var(--green); cursor: pointer;
  transition: background-color .2s var(--ease), opacity .2s;
}
.assistant__send:hover { background: #1d2420; }
.assistant__send:disabled { opacity: .35; cursor: default; }
.assistant__send svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.assistant__note { text-align: center; font-size: 13px; color: var(--ink-3); }

/* no WebGL: draw a static ring in CSS instead */
.orb--fallback .orb__canvas { display: none; }
.orb--fallback::before {
  content: ""; position: absolute; inset: 4%; border-radius: 50%;
  background: conic-gradient(from 210deg, var(--green), var(--lilac), var(--aqua), var(--green));
  -webkit-mask: radial-gradient(closest-side, transparent 64%, #000 70%, #000 86%, transparent 100%);
          mask: radial-gradient(closest-side, transparent 64%, #000 70%, #000 86%, transparent 100%);
  filter: blur(6px); opacity: .85;
}
.hero__haze { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__haze span {
  /* painted soft glows: each box is grown by the old 70px blur on every side */
  position: absolute;
  background: radial-gradient(closest-side, var(--c) 0%, color-mix(in srgb, var(--c) 55%, transparent) 45%, transparent 100%);
  opacity: .55;
}
.hero__haze span:nth-child(1) { --c: var(--mint); width: calc(38vw + 140px); height: calc(22vw + 140px); left: calc(18% - 70px); top: calc(30% - 70px); }
.hero__haze span:nth-child(2) { --c: var(--lilac); width: calc(30vw + 140px); height: calc(20vw + 140px); right: calc(16% - 70px); top: calc(22% - 70px); opacity: .45; }
.hero__haze span:nth-child(3) { --c: var(--aqua); width: calc(26vw + 140px); height: calc(16vw + 140px); left: calc(42% - 70px); top: calc(50% - 70px); opacity: .4; }

.hero__cards { display: contents; }

.feed {
  position: relative; z-index: 2;
  width: min(100%, var(--card-w));
  display: flex; align-items: center; gap: 12px;
  padding: 10px 18px 10px 10px;
  border-radius: 16px;
  /* solid instead of backdrop-filter: these cards float all the time, and a moving
     blur is redrawn on every frame */
  background: rgba(255, 255, 255, .86);
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: var(--float);
}
.feed--a { grid-area: a; justify-self: end; }
.feed--b { grid-area: b; justify-self: start; align-self: start; margin-top: 12%; }
.feed--c { grid-area: c; justify-self: start; }
.feed--d { grid-area: d; justify-self: end; align-self: end; margin-bottom: 12%; }

.feed__icon {
  position: relative; flex: none;
  width: 40px; height: 40px; border-radius: 11px;
  background: #fff;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  transition: background-color .35s var(--ease), border-color .35s var(--ease);
}
.feed__spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, .12);
  border-top-color: var(--ink);
  animation: spin .8s linear infinite;
  transition: opacity .25s, transform .25s;
}
.feed__tick {
  position: absolute; width: 18px; height: 18px;
  fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 16; stroke-dashoffset: 16;
  transition: stroke-dashoffset .45s var(--ease) .1s;
}
.feed.is-done .feed__icon { background: var(--green); border-color: var(--green); }
.feed.is-done .feed__spinner { opacity: 0; transform: scale(.4); }
.feed.is-done .feed__tick { stroke-dashoffset: 0; }

.feed__text { display: grid; min-width: 0; line-height: 1.3; transition: opacity .3s var(--ease), transform .3s var(--ease); }
.feed.is-swapping .feed__text { opacity: 0; transform: translateY(4px); }
.feed__title { font-weight: 500; font-size: 15px; color: var(--ink); }
.feed__status { font-size: 13.5px; color: var(--ink-3); }
.feed__title, .feed__status { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed.is-done .feed__status { color: var(--green-ink); }

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

/* tool strip */
.tools {
  position: relative; z-index: 3;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: clamp(28px, 4vw, 48px) var(--gutter) 0;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.tools__label { font-size: 14px; color: var(--ink-3); }
.tools__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; }
.tools__list li { font-size: 16px; font-weight: 500; color: #9AA19D; letter-spacing: -.01em; white-space: nowrap; }

/* running line: one list width per cycle, so the loop has no seam */
.marquee { width: 100%; }
.marquee.is-running {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}
.marquee.is-running .marquee__track {
  display: flex; width: max-content;
  animation: marquee var(--marquee-duration, 30s) linear infinite;
}
.marquee.is-running .tools__list { flex-wrap: nowrap; gap: 0; }
.marquee.is-running .tools__list li { display: flex; align-items: center; }
.marquee.is-running .tools__list li::after { /* separator, also closes the gap to the next copy */
  content: ""; width: 5px; height: 5px; margin: 0 22px; border-radius: 50%;
  background: var(--green); opacity: .55;
}
.marquee.is-running:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(var(--marquee-shift, 0px) * -1)); } }

/* hero intro choreography */
.js .hero .badge,
.js .hero__lead,
.js .hero__actions,
.js .assistant,
.js .tools { opacity: 0; transform: translateY(14px); }
.js .hero__title .w > span { transform: translateY(105%); }
.js .orb { opacity: 0; transform: scale(.94); }
.js .feed { opacity: 0; translate: 0 18px; }

.is-ready .hero .badge,
.is-ready .hero__lead,
.is-ready .hero__actions,
.is-ready .assistant,
.is-ready .tools {
  opacity: 1; transform: none;
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.is-ready .hero .badge { transition-delay: .05s; }
.is-ready .hero__lead { transition-delay: .55s; }
.is-ready .hero__actions { transition-delay: .7s; }
.is-ready .assistant { transition-delay: 1.1s; }
.is-ready .tools { transition-delay: 1.4s; }
.is-ready .hero__title .w > span {
  transform: none;
  transition: transform 1s var(--ease);
  transition-delay: calc(.12s + var(--i) * .06s);
}
.is-ready .orb {
  opacity: 1; transform: none;
  transition: opacity 1.6s var(--ease) .35s, transform 2s var(--ease) .35s;
}
.is-ready .feed {
  opacity: 1; translate: 0 0;
  transition: opacity .8s var(--ease), translate .9s var(--ease);
}
.is-ready .feed--a { transition-delay: 1.0s; }
.is-ready .feed--b { transition-delay: 1.15s; }
.is-ready .feed--c { transition-delay: 1.3s; }
.is-ready .feed--d { transition-delay: 1.45s; }

/* gentle float after entrance */
.is-floating .feed { animation: bob 7s ease-in-out infinite; }
.is-floating .feed--b { animation-delay: -2s; }
.is-floating .feed--c { animation-delay: -4s; }
.is-floating .feed--d { animation-delay: -5.5s; }
@keyframes bob { 50% { transform: translateY(-8px); } }


/* =========================================================
   INTRO
   ========================================================= */
.intro { padding-top: clamp(72px, 9vw, 128px); }
.intro__text {
  font-size: clamp(26px, 3.1vw, 44px);
  line-height: 1.2;
  letter-spacing: -.025em;
  color: var(--ink);
  max-width: 24em;
  font-weight: 420;
}
.intro__text .word { transition: color .4s var(--ease); }
.js .intro__text .word { color: #C3C8C5; }
.js .intro__text .word.on { color: var(--ink); }


/* =========================================================
   SERVICES — list of directions, each links to its own page
   ========================================================= */
.services { background: var(--surface); border-radius: var(--r-xl) var(--r-xl) 0 0; }

.svc-list { border-top: 1px solid var(--line); }
.svc-list li { border-bottom: 1px solid var(--line); }
.svc-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) 48px;
  align-items: center; gap: 24px;
  margin-inline: -16px;
  padding: clamp(18px, 2.2vw, 26px) 16px;
  border-radius: 16px;
  transition: background-color .2s var(--ease);
}
.svc-row:hover { background: var(--bg); }
.svc-row__title { font-size: clamp(22px, 2.3vw, 32px); font-weight: 450; letter-spacing: -.025em; line-height: 1.15; color: var(--ink); }
.svc-row__desc { font-size: 17px; line-height: 1.45; color: var(--ink-3); }
.svc-row__arrow {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong); color: var(--ink);
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s, transform .25s var(--ease);
}
.svc-row__arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svc-row:hover .svc-row__arrow { background: var(--green); border-color: var(--green); color: #00170A; transform: rotate(45deg); }

.checklist {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 32px;
}
.checklist--single { grid-template-columns: 1fr; gap: 12px; }
.checklist li {
  position: relative; padding-left: 32px;
  font-size: 15.5px; line-height: 1.45; color: var(--ink-2);
}
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0;
  width: 21px; height: 21px; border-radius: 7px;
  background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%2300853E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat;
}


.flow {
  position: relative; overflow: hidden;
  padding: 24px;
  border-radius: var(--r-lg);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(195, 182, 255, .45), transparent 60%),
    radial-gradient(120% 90% at 0% 100%, rgba(125, 236, 185, .55), transparent 60%),
    var(--bg);
}
.flow__title { font-size: 14px; color: var(--ink-3); margin-bottom: 16px; }
.flow__steps { display: grid; gap: 10px; position: relative; }
.flow__steps::before {
  content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 1.5px;
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, .18) 0 4px, transparent 4px 8px);
}
.flow__steps li {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px 10px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: 0 10px 24px -18px rgba(14, 48, 30, .35);
  font-size: 15px; color: var(--ink);
}
.flow__steps li::before {
  content: ""; flex: none;
  width: 24px; height: 24px; border-radius: 8px;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
  border: 1px solid var(--green);
}
@keyframes stepOn {
  from { background-color: var(--bg); background-size: 0; border-color: var(--line); }
  to   { background-color: var(--green); background-size: 14px; border-color: var(--green); }
}

.result {
  padding: 22px 24px;
  border-radius: var(--r-lg);
  background: var(--ink); color: rgba(255, 255, 255, .78);
  font-size: 15.5px; line-height: 1.5;
}
.result b { display: block; color: var(--green); font-weight: 500; margin-bottom: 6px; font-size: 14px; }

/* =========================================================
   AI BENTO
   ========================================================= */
.ai { background: var(--surface); padding-top: 0; }

.bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: auto;
  gap: 14px;
}
.tile {
  position: relative; overflow: hidden;
  padding: 26px;
  border-radius: var(--r-lg);
  background: var(--bg);
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  min-height: 250px;
}
.tile h3 { font-size: 21px; letter-spacing: -.02em; font-weight: 500; }
.tile p { margin-top: 8px; color: var(--ink-3); font-size: 15px; line-height: 1.5; max-width: 30em; }

.tile--agents { grid-column: span 2; grid-row: span 2; }
.tile--chat { grid-row: span 2; }
.tile--doc { grid-column: span 2; }
.tile--custom {
  grid-column: 1 / -1;
  flex-direction: row; align-items: flex-end;
  background: var(--ink); color: rgba(255, 255, 255, .7);
  min-height: 0;
  padding: 32px 26px; /* same side padding as the other tiles, so the titles line up */
}
.tile--custom h3 { color: #fff; font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -.03em; font-weight: 450; }
.tile--custom .tile__text p { color: rgba(255, 255, 255, .6); font-size: 16.5px; }
.tile--custom__note {
  max-width: 30em; margin-left: auto;
  padding-left: 20px; border-left: 2px solid var(--green);
  font-size: 15px; color: rgba(255, 255, 255, .72);
}

/* agent visual */
.agent-viz {
  position: relative; flex: 1; min-height: 280px;
  border-radius: 18px;
  background:
    radial-gradient(60% 70% at 50% 50%, rgba(125, 236, 185, .55), transparent 70%),
    radial-gradient(40% 50% at 80% 20%, rgba(195, 182, 255, .5), transparent 70%),
    #fff;
}
.agent-viz__lines {
  position: absolute; inset: 0; width: 100%; height: 100%;
  fill: none; stroke: rgba(0, 0, 0, .22); stroke-width: 1.2; stroke-dasharray: 3 5;
}
.agent-viz__core {
  position: absolute; left: 50%; top: 50%; z-index: 2;
  transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 10px;
  padding: 10px 18px 10px 10px; border-radius: 16px;
  background: var(--ink); color: #fff; font-weight: 500; font-size: 15px;
  box-shadow: 0 18px 36px -16px rgba(0, 0, 0, .5);
}
.agent-viz__core svg { width: 30px; height: 30px; padding: 6px; border-radius: 10px; background: rgba(255, 255, 255, .1); color: var(--green); }
.agent-viz__tool {
  position: absolute; z-index: 2;
  transform: translate(-50%, -50%);
  padding: 8px 14px; border-radius: 12px;
  background: rgba(255, 255, 255, .85);
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: 0 10px 22px -14px rgba(14, 48, 30, .4);
  font-size: 14px; color: var(--ink); white-space: nowrap;
}
.agent-viz__tool::before {
  content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); margin-right: 8px; vertical-align: 1px;
}
.agent-viz__tool.t1 { left: 22%; top: 20%; }
.agent-viz__tool.t5 { left: 50%; top: 20%; }
.agent-viz__tool.t2 { left: 78%; top: 20%; }
.agent-viz__tool.t3 { left: 22%; top: 80%; }
.agent-viz__tool.t4 { left: 78%; top: 80%; }
.agent-viz__tool.t5::before { background: var(--lilac); }

/* assistants */
.assist-viz { display: grid; gap: 8px; justify-items: end; }
.assist-viz span {
  padding: 9px 14px; border-radius: 14px 14px 4px 14px;
  background: #fff; font-size: 14px; color: var(--ink);
  box-shadow: 0 6px 16px -12px rgba(0, 0, 0, .3);
}
.assist-viz span:last-child { background: var(--ink); color: #fff; }

/* chat */
.chat-viz { display: grid; gap: 8px; align-content: end; flex: 1; }
.msg { max-width: 88%; padding: 10px 14px; font-size: 14px; line-height: 1.4; border-radius: 16px; }
.tile .msg { margin: 0; color: inherit; }
.msg--in { justify-self: end; background: var(--ink); color: #fff; border-bottom-right-radius: 4px; }
.tile .msg--in { color: #fff; }
.msg--out { justify-self: start; background: #fff; color: var(--ink); border-bottom-left-radius: 4px; }
.tile .msg--out { color: var(--ink); }
.msg--typing { justify-self: start; background: #fff; display: flex; gap: 4px; padding: 13px 14px; border-bottom-left-radius: 4px; }
.msg--typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); animation: typing 1.2s infinite ease-in-out; }
.msg--typing i:nth-child(2) { animation-delay: .15s; }
.msg--typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { opacity: .25; transform: none; } 30% { opacity: 1; transform: translateY(-2px); } }

/* voice */
.wave { display: flex; align-items: center; gap: 4px; height: 64px; }
.wave i {
  flex: 1; min-width: 2px; border-radius: 3px;
  background: linear-gradient(to top, var(--green), var(--aqua));
  height: 95%;
  transform: scaleY(.21);
  animation: wave 1.6s ease-in-out infinite;
}
.wave i:nth-child(3n) { animation-duration: 1.2s; }
.wave i:nth-child(4n) { animation-duration: 1.9s; }
.wave i:nth-child(5n+1) { animation-delay: -.4s; }
.wave i:nth-child(2n) { animation-delay: -.8s; }
@keyframes wave { 50% { transform: scaleY(1); } }

/* knowledge base */
.search-viz {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: 14px;
  background: #fff; border: 1px solid var(--line);
  font-size: 14.5px; color: var(--ink);
}
.search-viz svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--ink-3); stroke-width: 1.8; stroke-linecap: round; }
.search-viz span::after {
  content: ""; display: inline-block; width: 1.5px; height: 1em; background: var(--green);
  margin-left: 2px; vertical-align: -2px; animation: caret 1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

/* document AI */
.doc-viz { display: flex; gap: 14px; align-items: center; }
.doc-viz__page {
  flex: none; width: 92px; aspect-ratio: .74; padding: 14px 12px;
  border-radius: 10px; background: #fff;
  box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .35);
  display: grid; gap: 6px; align-content: start;
}
.doc-viz__page i { height: 5px; border-radius: 3px; background: #E6E9E7; }
.doc-viz__page i:nth-child(2n) { width: 70%; }
.doc-viz__page i.hl { background: var(--mint); }
.doc-viz__fields { flex: 1; min-width: 0; margin: 0; display: grid; gap: 6px; }
.doc-viz__fields div {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 8px 12px; border-radius: 10px; background: #fff;
  font-size: 13px;
}
.doc-viz__fields dt { color: var(--ink-3); }
.doc-viz__fields div { min-width: 0; }
.doc-viz__fields dt { flex: none; }
.doc-viz__fields dd { margin: 0; min-width: 0; color: var(--ink); font-weight: 500; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* data processing */
.sort-viz {
  /* the squares set the height themselves; a fixed height made them spill up over the text */
  display: grid; grid-template-columns: repeat(6, minmax(0, 36px)); gap: 8px;
  justify-content: start;
}
.sort-viz span { aspect-ratio: 1; border-radius: 6px; background: #fff; border: 1px solid var(--line); }
.sort-viz span:nth-child(-n+4) { background: var(--green); border-color: var(--green); }
.sort-viz span:nth-child(n+5):nth-child(-n+8) { background: var(--aqua); border-color: var(--aqua); }
.sort-viz span:nth-child(n+9) { background: var(--lilac); border-color: var(--lilac); }
.sort-viz span:nth-child(1) { order: 3; } .sort-viz span:nth-child(5) { order: 1; } .sort-viz span:nth-child(9) { order: 2; }
.sort-viz span:nth-child(2) { order: 7; } .sort-viz span:nth-child(6) { order: 5; } .sort-viz span:nth-child(10) { order: 4; }
.sort-viz span:nth-child(3) { order: 11; } .sort-viz span:nth-child(7) { order: 9; } .sort-viz span:nth-child(11) { order: 6; }
.sort-viz span:nth-child(4) { order: 8; } .sort-viz span:nth-child(8) { order: 12; } .sort-viz span:nth-child(12) { order: 10; }
.tile--data:hover .sort-viz span { order: 0; }

/* =========================================================
   INTEGRATIONS
   ========================================================= */
.integrations {
  background:
    radial-gradient(rgba(0, 0, 0, .07) 1px, transparent 1.3px) 0 0 / 22px 22px,
    var(--bg);
}

.eco {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(180px, 22vw, 280px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 9vw, 140px);
  max-width: 1120px; margin: 0 auto;
}
.eco__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.eco__lines .base { fill: none; stroke: rgba(0, 0, 0, .13); stroke-width: 1.2; }
.eco__lines .pulse {
  fill: none; stroke: var(--green); stroke-width: 2; stroke-linecap: round;
  stroke-dasharray: 14 400; stroke-dashoffset: 414;
}
.eco.is-live .eco__lines .pulse { animation: pulse 3.2s cubic-bezier(.5, 0, .5, 1) infinite; }
@keyframes pulse { to { stroke-dashoffset: 0; } }
@keyframes ecoFlow {
  0%   { background-position: 0 0; opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { background-position: 0 100%; opacity: 0; }
}

.eco__col { display: grid; gap: 12px; position: relative; z-index: 1; }
.eco__col--left { justify-items: end; }
.eco__col--right { justify-items: start; }
.eco__node {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 16px; border-radius: 14px;
  background: rgba(255, 255, 255, .85);
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: 0 10px 24px -18px rgba(14, 48, 30, .45);
  font-size: 15px; line-height: 1.3; color: var(--ink);
  max-width: 100%;
}
.eco__node::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex: none; }

.eco__core { position: relative; z-index: 1; aspect-ratio: 1; display: grid; place-items: center; }
.eco__core-ring {
  position: absolute; inset: 0; border-radius: 50%;
  background:
    conic-gradient(from 0deg, var(--mint), var(--aqua), var(--lilac), var(--green), var(--mint));
  /* soft edge from a static mask, not a blur filter re-rendered while it spins */
  -webkit-mask: radial-gradient(closest-side, #000 55%, transparent 100%);
          mask: radial-gradient(closest-side, #000 55%, transparent 100%);
  opacity: .7;
  animation: spin 14s linear infinite;
}
.eco__core-inner {
  position: relative; width: 64%; aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center;
  /* painted frost: a live blur over the spinning ring was redrawn on every frame */
  background: radial-gradient(circle at 35% 30%, #fff, rgba(255, 255, 255, .9) 60%, rgba(244, 250, 247, .88));
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: var(--float);
  color: var(--green);
}
.eco__core-inner svg { width: 46%; height: auto; }
.eco__core-label { display: none; }

.eco__tech {
  margin: clamp(48px, 6vw, 72px) auto 0; max-width: 40em;
  text-align: center; color: var(--ink-3); font-size: 17px;
}
.eco__tech b { color: var(--ink); font-weight: 500; }

/* =========================================================
   DEVELOPMENT
   ========================================================= */
.dev__grid {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 96px); align-items: center;
}
.dev h2 { font-size: clamp(32px, 3.6vw, 50px); line-height: 1.06; letter-spacing: -.035em; }
.dev__lead { margin-top: 18px; color: var(--ink-3); font-size: 18px; max-width: 32em; }
.dev .checklist { margin-top: 32px; }

.window {
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -40px rgba(14, 48, 30, .35), 0 2px 8px rgba(14, 48, 30, .04);
  overflow: hidden;
  position: relative;
}
.window::before {
  content: ""; position: absolute; inset: -30% -20% auto auto; width: 70%; height: 80%;
  background: radial-gradient(closest-side, rgba(195, 182, 255, .45), transparent);
  pointer-events: none;
}
.window__bar {
  display: flex; align-items: center; gap: 7px;
  height: 44px; padding: 0 16px; border-bottom: 1px solid var(--line);
  font-size: 13.5px; color: var(--ink-3);
}
.window__bar i { width: 11px; height: 11px; border-radius: 50%; background: #E3E6E4; }
.window__bar span { margin-left: 12px; }
.window__body { display: grid; grid-template-columns: 58px 1fr; min-height: 380px; }
.window__side { border-right: 1px solid var(--line); display: grid; gap: 10px; align-content: start; justify-items: center; padding: 16px 0; }
.window__side i { width: 28px; height: 28px; border-radius: 9px; background: var(--bg); }
.window__side i.on { background: var(--ink); }
.window__main { padding: 18px; display: grid; gap: 12px; position: relative; }

.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi { padding: 12px 14px; border-radius: 12px; background: var(--bg); display: grid; gap: 2px; }
.kpi span { font-size: 12px; color: var(--ink-3); }
.kpi b { font-size: 22px; font-weight: 500; color: var(--ink); letter-spacing: -.02em; }
.kpi--accent { background: rgba(0, 194, 91, .12); }
.kpi--accent b { color: var(--green-ink); }

.charts { display: grid; grid-template-columns: .8fr 1.2fr; gap: 10px; }
.chart { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); display: grid; gap: 10px; }
.chart__title { font-size: 12px; color: var(--ink-3); }
.chart--donut svg { width: 100px; height: 100px; justify-self: center; transform: rotate(-90deg); }
.chart--donut circle { fill: none; stroke-width: 14; }
.d-bg { stroke: var(--bg); }
.d-1 { stroke: var(--green); stroke-dasharray: 160 276.5; }
.d-2 { stroke: var(--lilac); stroke-dasharray: 60 276.5; stroke-dashoffset: -164; }
.bars { display: flex; align-items: end; gap: 8px; height: 100px; }
.bars i { flex: 1; height: var(--h); border-radius: 6px 6px 3px 3px; background: linear-gradient(to top, var(--mint), var(--aqua)); }
.bars i:last-child { background: var(--green); }

.rows { display: grid; gap: 6px; }
.row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 10px; background: var(--bg);
  font-size: 13px; color: var(--ink);
}
.row .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.row em { margin-left: auto; font-style: normal; color: var(--ink-3); white-space: nowrap; }

/* =========================================================
   AUDIT
   ========================================================= */
.audit { background: var(--surface); border-radius: var(--r-xl); margin-inline: clamp(8px, 1.4vw, 20px); }
.audit__grid {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(40px, 6vw, 96px); align-items: start;
}
.audit h2 { font-size: clamp(32px, 3.6vw, 50px); line-height: 1.06; letter-spacing: -.035em; max-width: 15em; }
.audit__lead { margin-top: 18px; color: var(--ink-3); font-size: 18px; max-width: 34em; }

.audit__list { margin-top: 36px; border-top: 1px solid var(--line); counter-reset: none; }
.audit__list li {
  display: flex; gap: 14px; align-items: baseline;
  padding: 14px 0; border-bottom: 1px solid var(--line);
  color: var(--ink); font-size: 16px;
}
.audit__list li::before {
  content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); transform: translateY(-2px);
}

.plan {
  position: sticky; top: 110px;
  padding: 24px; border-radius: var(--r-lg);
  background:
    radial-gradient(90% 60% at 100% 0%, rgba(143, 225, 242, .5), transparent 65%),
    radial-gradient(90% 70% at 0% 100%, rgba(125, 236, 185, .5), transparent 65%),
    var(--bg);
  display: grid; gap: 14px;
}
.plan__head { display: flex; gap: 12px; align-items: center; }
.plan__head b { display: block; color: var(--ink); font-weight: 500; font-size: 18px; }
.plan__head span { font-size: 14px; color: var(--ink-3); }
.plan__icon { width: 44px; height: 44px; border-radius: 13px; background: var(--ink); display: grid; place-items: center; color: var(--green); }
.plan__icon svg { width: 24px; height: 24px; }

.plan__list { display: grid; gap: 8px; }
.plan__list li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; border-radius: 14px;
  background: rgba(255, 255, 255, .85);
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: 0 10px 24px -20px rgba(14, 48, 30, .5);
  font-size: 15px; color: var(--ink);
}
.tag { font-style: normal; font-size: 12.5px; padding: 4px 10px; border-radius: 999px; background: var(--bg); color: var(--ink-2); white-space: nowrap; }
.tag--hi { background: var(--green); color: #00170A; }

.plan__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.plan__meta div {
  padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .6);
  font-size: 13.5px; color: var(--ink-2);
  display: flex; align-items: center; gap: 8px;
}
.plan__meta div::before {
  content: ""; width: 16px; height: 16px; flex: none; border-radius: 5px;
  background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%2300853E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.plan__meta div:last-child { grid-column: 1 / -1; }
.plan__caption { font-size: 14.5px; color: var(--ink-3); }

/* =========================================================
   SUPPORT
   ========================================================= */
.support__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stage-card {
  padding: clamp(26px, 3vw, 40px);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 28px;
}
.stage-card header h3 { font-size: clamp(26px, 2.4vw, 34px); letter-spacing: -.03em; }
.stage-card header p { margin-top: 6px; color: var(--ink-3); }
.stage-card--live { background: var(--ink); border-color: var(--ink); color: rgba(255, 255, 255, .75); }
.stage-card--live h3 { color: #fff; }
.stage-card--live header p { color: rgba(255, 255, 255, .55); }
.stage-card--live .checklist li { color: rgba(255, 255, 255, .82); }
.stage-card--live .checklist li::before {
  background-color: rgba(0, 194, 91, .18);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%2300C25B' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.uptime { margin-top: auto; padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, .06); display: grid; gap: 12px; }
.uptime__label { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #fff; }
.uptime__label i { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.uptime__label i::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: rgba(0, 194, 91, .6);
  animation: live 2.4s infinite;
}
@keyframes live { 0% { transform: scale(1); opacity: 1; } 70%, 100% { transform: scale(3); opacity: 0; } }
.uptime__bars { display: flex; gap: 3px; height: 28px; }
.uptime__bars i { flex: 1; border-radius: 3px; background: var(--green); opacity: .85; }
.uptime__bars i:nth-child(7n+3) { opacity: .6; }

/* =========================================================
   APPROACH
   ========================================================= */
.approach { background: var(--surface); }
.approach__grid {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(40px, 7vw, 120px); align-items: start;
}
.approach__intro { position: sticky; top: 120px; display: grid; gap: 18px; justify-items: start; }
.approach__intro h2 { font-size: clamp(34px, 4.2vw, 58px); line-height: 1.04; letter-spacing: -.035em; }
.approach__intro p { color: var(--ink-3); font-size: 18px; max-width: 26em; margin-bottom: 10px; }
.approach__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.steps { position: relative; display: grid; --progress: 0; }
.steps::before, .steps::after {
  content: ""; position: absolute; left: 27px; top: 28px; bottom: 28px; width: 2px; border-radius: 2px;
}
.steps::before { background: var(--bg); }
.steps::after {
  background: var(--green);
  transform-origin: top; transform: scaleY(var(--progress));
}
.step {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 56px 1fr; gap: 24px;
  padding: 0 0 clamp(32px, 4vw, 48px);
}
.step:last-child { padding-bottom: 0; }
.step__n {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface); border: 1.5px solid var(--line-strong);
  font-size: 15px; font-weight: 500; color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.step.is-on .step__n { background: var(--ink); border-color: var(--ink); color: var(--green); }
.step h3 { font-size: clamp(21px, 1.8vw, 25px); letter-spacing: -.02em; font-weight: 500; padding-top: 12px; }
.step h3 span { display: block; font-size: 15.5px; font-weight: 400; color: var(--ink-3); letter-spacing: 0; margin-top: 2px; }
html[lang="en"] .step h3 span { display: none; } /* the Russian subtitle of the English stage name */
.step p { margin-top: 10px; color: var(--ink-2); max-width: 34em; }

/* =========================================================
   WHY
   ========================================================= */
.why__quote { margin: 0; }
.why__quote p {
  font-size: clamp(32px, 4.6vw, 68px);
  line-height: 1.04; letter-spacing: -.04em; color: var(--ink); font-weight: 430;
  max-width: 15em; text-wrap: balance;
}
.why__sub { margin-top: 28px; max-width: 40em; font-size: 19px; color: var(--ink-3); }

/* feature grid — dashed cells with a faded grid pattern (port of grid-feature-cards) */
.features {
  --cell-line: rgba(0, 0, 0, .14);
  margin-top: clamp(56px, 7vw, 96px);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px dashed var(--cell-line);
  border-left: 1px dashed var(--cell-line);
}
.feature {
  position: relative; overflow: hidden;
  padding: clamp(24px, 2.4vw, 32px);
  border-right: 1px dashed var(--cell-line);
  border-bottom: 1px dashed var(--cell-line);
}
.feature__pattern {
  pointer-events: none;
  position: absolute; top: 0; left: 50%;
  width: 100%; height: 100%;
  margin: -8px 0 0 -80px;
  -webkit-mask-image: linear-gradient(#fff, transparent);
          mask-image: linear-gradient(#fff, transparent);
}
.feature__wash {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, .05), rgba(0, 0, 0, .01));
  -webkit-mask-image: radial-gradient(farthest-side at top, #fff, transparent);
          mask-image: radial-gradient(farthest-side at top, #fff, transparent);
}
.feature__grid {
  position: absolute; inset: 0; width: 100%; height: 100%;
  fill: rgba(0, 0, 0, .04);
  stroke: rgba(0, 0, 0, .1);
}
.feature__icon {
  position: relative;
  width: 26px; height: 26px;
  fill: none; stroke: rgba(0, 0, 0, .75); stroke-width: 1;
  stroke-linecap: round; stroke-linejoin: round;
}
.feature h3 {
  position: relative;
  margin-top: 40px;
  font-size: 18px; font-weight: 450; letter-spacing: -.01em;
}
.feature p {
  position: relative; z-index: 2;
  margin-top: 8px;
  font-size: 15px; font-weight: 300; line-height: 1.55;
  color: var(--ink-3);
}

/* one reveal for the whole grid: fade + slight drop-in */
.js .features[data-reveal] { opacity: 0; transform: translateY(-8px); }
.js .features[data-reveal].is-visible {
  opacity: 1; transform: none;
  transition: opacity .8s var(--ease) .4s, transform .8s var(--ease) .4s;
}

/* =========================================================
   CTA
   ========================================================= */
.cta {
  position: relative; overflow: hidden;
  margin: 0 clamp(8px, 1.4vw, 20px);
  padding-block: clamp(88px, 10vw, 140px);
  border-radius: var(--r-xl);
  background: var(--ink); color: rgba(255, 255, 255, .7);
}
.cta__glow {
  position: absolute; left: 50%; top: -300px; width: max(90%, 760px); height: 820px;
  transform: translateX(-50%);
  background:
    radial-gradient(closest-side at 30% 55%, rgba(0, 194, 91, .42), transparent),
    radial-gradient(closest-side at 52% 45%, rgba(143, 225, 242, .22), transparent),
    radial-gradient(closest-side at 72% 55%, rgba(195, 182, 255, .3), transparent);
  pointer-events: none;
}
.cta .container { position: relative; }
.cta__head { text-align: center; display: grid; justify-items: center; gap: 22px; }
.cta__head h2 {
  color: #fff; font-size: clamp(38px, 5.6vw, 80px); line-height: 1; letter-spacing: -.045em; font-weight: 430;
}
.cta__head p { max-width: 36em; font-size: 18px; color: rgba(255, 255, 255, .62); }

/* contact section of the home page: the whole form on one screen */
.cta--contact { padding-block: clamp(48px, 5.4vw, 84px); scroll-margin-top: -28px; }
.contact {
  display: grid;
  grid-template: "head stage" auto "next stage" 1fr / minmax(0, 1fr) min(590px, 56%);
  column-gap: clamp(36px, 5vw, 72px); row-gap: 32px;
}
.contact__head { grid-area: head; padding-top: 6px; }
.contact__head h2 { color: #fff; font-size: clamp(30px, 3.3vw, 49px); line-height: 1.05; letter-spacing: -.045em; font-weight: 430; }
.contact__head p { margin-top: 20px; max-width: 31em; font-size: 17px; line-height: 1.5; color: rgba(255, 255, 255, .74); text-wrap: pretty; }
.contact__stage { grid-area: stage; position: relative; align-self: center; }
.contact__next { grid-area: next; align-self: end; }

.form.contact__form {
  position: relative;
  padding: clamp(22px, 2.2vw, 30px);
  border: 0; border-radius: 30px;
  background: linear-gradient(160deg, rgba(40, 49, 45, .92), rgba(17, 21, 19, .95) 50%, rgba(15, 18, 17, .95));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 50px 110px -30px rgba(0, 0, 0, .9);
}
.contact__form::before { /* a thin edge in the colours of the glow */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.2px; pointer-events: none;
  background: linear-gradient(150deg, rgba(143, 225, 242, .75), rgba(195, 182, 255, .5) 22%, rgba(255, 255, 255, .06) 48%, rgba(255, 255, 255, .05) 64%, rgba(0, 194, 91, .7));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.form.contact__form:has(.form__body[hidden]) { min-height: 560px; display: grid; align-content: center; }
.form.contact__form .form__body { gap: 14px; }
.form.contact__form .field input, .form.contact__form .field textarea, .form.contact__form .cc { background: rgba(255, 255, 255, .055); border-color: rgba(255, 255, 255, .11); }
.form.contact__form .field input:hover, .form.contact__form .field textarea:hover, .form.contact__form .cc:hover { border-color: rgba(255, 255, 255, .24); }
.form.contact__form .field input:focus, .form.contact__form .field textarea:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(0, 194, 91, .16); }
.form.contact__form .field input[aria-invalid="true"] { border-color: #FF8A7A; }
.form.contact__form .cc__panel { right: auto; width: max(100%, min(330px, 100cqw)); }
.form.contact__form .btn { margin-top: 4px; height: 54px; font-size: 16px; }

.contact__steps { counter-reset: s; display: grid; gap: 18px; }
.contact__steps li { counter-increment: s; position: relative; padding-left: 54px; }
.contact__steps li::before {
  content: counter(s); position: absolute; left: 0; top: 1px;
  width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
  font-size: 15px; font-weight: 500; color: #4BE39A;
}
.contact__steps li:not(:last-child)::after { /* thread between the steps */
  content: ""; position: absolute; left: 17.5px; top: 43px; bottom: -13px; width: 1px;
  background: linear-gradient(rgba(255, 255, 255, .26), rgba(255, 255, 255, .06));
}
.contact__steps b { display: block; font-size: 17px; font-weight: 500; letter-spacing: -.01em; line-height: 1.35; color: #fff; }
.contact__steps span { display: block; margin-top: 2px; max-width: 30em; font-size: 15px; line-height: 1.45; color: rgba(255, 255, 255, .64); }
.contact__cal { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; font-size: 14.5px; color: rgba(255, 255, 255, .55); }
@media (max-height: 740px) and (min-width: 1000px) { /* low laptop screens */
  .cta--contact { padding-block: 34px; }
  .form.contact__form { padding: 22px 26px; }
  .contact__form .form__body { gap: 10px; }
  .form.contact__form .field input, .form.contact__form .cc { height: 44px; }
  .contact__form .chips { gap: 6px; margin: 2px 0 0; }
  .contact__form .chips legend { margin-bottom: 8px; }
  .contact__form .chips span { padding: 6px 12px; }
  .form.contact__form .btn { height: 50px; }
  .contact__steps { gap: 12px; }
  .contact__cal { margin-top: 20px; }
}

.form {
  padding: clamp(22px, 2.4vw, 30px);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6);
}
.form__body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; container-type: inline-size; }
.field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.field > span { font-size: 13.5px; color: rgba(255, 255, 255, .6); }
.field__opt { font-style: normal; margin-left: 6px; color: rgba(255, 255, 255, .36); }
.field input {
  height: 48px; padding: 0 14px; border-radius: 12px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  color: #fff; font-size: 15.5px;
  transition: border-color .2s, background-color .2s;
}
.field textarea {
  display: block; width: 100%; min-height: 84px; padding: 12px 14px; border-radius: 12px; resize: vertical;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  color: #fff; font: inherit; font-size: 15.5px; line-height: 1.45;
  transition: border-color .2s, background-color .2s;
}
.field[hidden] { display: none; }
.field input::placeholder, .field textarea::placeholder { color: rgba(255, 255, 255, .35); }
.field input:hover, .field textarea:hover { border-color: rgba(255, 255, 255, .26); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); background: rgba(255, 255, 255, .09); }
.field input[aria-invalid="true"] { border-color: #FF8A7A; }

/* phone: country picker (our own dropdown, main.js) + number */
.phone { position: relative; display: flex; gap: 8px; }
.phone > input { flex: 1; width: 0; min-width: 0; } /* else its default width widens the form on phones */

.cc {
  flex: none;
  display: flex; align-items: center; gap: 8px;
  height: 48px; padding: 0 10px 0 13px; border-radius: 12px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  color: #fff; font: inherit; font-size: 15.5px; font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.cc:hover { border-color: rgba(255, 255, 255, .26); }
.cc:focus-visible, .cc[aria-expanded="true"] { outline: none; border-color: var(--green); background: rgba(255, 255, 255, .09); }
.cc__flag {
  flex: none; display: block;
  width: 21px; height: 14px; border-radius: 3px; object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .16); /* white flags stay visible on black */
}
.cc__globe { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cc__chevron {
  width: 16px; height: 16px; fill: none;
  stroke: rgba(255, 255, 255, .5); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .2s var(--ease);
}
.cc[aria-expanded="true"] .cc__chevron { transform: rotate(180deg); }

.cc__panel {
  position: absolute; z-index: 10; left: 0; right: 0; top: calc(100% + 8px);
  display: flex; flex-direction: column;
  max-height: 340px;
  border-radius: 16px;
  background: #131816;
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 30px 70px -24px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0, 0, 0, .5);
  overflow: hidden;
  transform-origin: top center;
  animation: ccIn .18s var(--ease) both;
}
@keyframes ccIn { from { opacity: 0; transform: translateY(-6px) scale(.98); } }

.cc__search { position: relative; flex: none; padding: 8px 8px 4px; }
.cc__search-icon {
  position: absolute; left: 20px; top: calc(50% + 2px); transform: translateY(-50%);
  width: 16px; height: 16px; fill: none; stroke: rgba(255, 255, 255, .45); stroke-width: 2; stroke-linecap: round;
  pointer-events: none;
}
.field .cc__search input {
  display: block; width: 100%; height: 40px;
  padding: 0 12px 0 36px; border-radius: 10px;
  font-size: 16px; /* no zoom on iOS */
}

.cc__list { overflow-y: auto; overscroll-behavior: contain; padding: 4px 6px 6px; }
.cc__group { padding: 10px 10px 4px; font-size: 12.5px; color: rgba(255, 255, 255, .4); }
.cc__option {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 10px;
  font-size: 15px; color: rgba(255, 255, 255, .88);
  cursor: pointer;
}
.cc__option.is-active { background: rgba(255, 255, 255, .08); }
.cc__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc__dial { color: rgba(255, 255, 255, .45); font-variant-numeric: tabular-nums; }
.cc__check {
  flex: none; width: 16px; height: 16px; visibility: hidden;
  fill: none; stroke: var(--green); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
}
.cc__option[aria-selected="true"] .cc__dial { color: var(--green); }
.cc__option[aria-selected="true"] .cc__check { visibility: visible; }
.cc__sep { height: 1px; margin: 6px 4px; background: rgba(255, 255, 255, .08); }
.cc__empty { margin: 0; padding: 12px 10px 6px; font-size: 14px; color: rgba(255, 255, 255, .45); }

/* Telegram: "@" drawn inside the field */
.affix { position: relative; display: block; }
.affix__sign {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  font-size: 15.5px; color: rgba(255, 255, 255, .4); pointer-events: none;
}
.affix input { width: 100%; padding-left: 30px; }

.chips { border: 0; margin: 6px 0 4px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { font-size: 13.5px; color: rgba(255, 255, 255, .6); margin-bottom: 10px; padding: 0; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span {
  display: inline-block; padding: 8px 13px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .16);
  font-size: 14px; color: rgba(255, 255, 255, .8);
  transition: background-color .2s, border-color .2s, color .2s;
}
.chips label:hover span { border-color: rgba(255, 255, 255, .3); }
.chips input:checked + span { background: var(--green); border-color: var(--green); color: #00170A; }
.chips input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 2px; }

.form__error { color: #FF9C8F; font-size: 14px; }
.form__or {
  display: flex; align-items: center; gap: 12px;
  margin-top: 4px;
  font-size: 13.5px; color: rgba(255, 255, 255, .5);
}
.form__or::before, .form__or::after { content: ""; flex: 1; height: 1px; background: rgba(255, 255, 255, .14); }
.form .btn { margin-top: 6px; }

.form__done { text-align: center; padding: 40px 10px; display: grid; justify-items: center; gap: 10px; }
.form__done[hidden] { display: none; }
.form__done h3 { color: #fff; font-size: 24px; letter-spacing: -.02em; }
.form__done-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--green); display: grid; place-items: center; margin-bottom: 6px; }
.form__done-icon svg { width: 26px; height: 26px; fill: none; stroke: #00170A; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* spam trap (api/_lib/lead.mjs): off-screen, skipped by keyboard and screen readers */
.form__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
/* side by side only when the form is wide enough (the popup, the full-width section form) */
@container (max-width: 515px) { .contact__form .form__row:nth-child(2) { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } } /* the phone with its country needs more */
@container (max-width: 459px) { .form__row, .contact__form .form__row:nth-child(2) { grid-template-columns: minmax(0, 1fr); } }
/* iOS zooms into inputs with text under 16px */
@media (pointer: coarse) { .field input, .field textarea { font-size: 16px; } }

/* =========================================================
   LEAD POPUP — the contact form in a dialog (main.js)
   A dark panel like the contact section; a bottom sheet on phones.
   ========================================================= */
html { scrollbar-gutter: stable; }
html.modal-open { overflow: hidden; }

.lead-modal {
  position: fixed; inset: 0;
  width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 16px; border: 0;
  background: transparent; color: rgba(255, 255, 255, .7);
  overflow: hidden;
}
.lead-modal[open] { display: grid; place-items: center; }
.lead-modal::backdrop {
  background: rgba(10, 20, 15, .42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lead-modal__panel {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column;
  width: min(100%, 580px); max-height: calc(100dvh - 32px);
  border-radius: var(--r-xl);
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 50px 120px -30px rgba(0, 0, 0, .55);
}
.lead-modal__glow {
  position: absolute; z-index: -1; left: 50%; top: -260px;
  width: 760px; height: 520px; transform: translateX(-50%);
  background:
    radial-gradient(closest-side at 32% 55%, rgba(0, 194, 91, .38), transparent),
    radial-gradient(closest-side at 54% 45%, rgba(143, 225, 242, .18), transparent),
    radial-gradient(closest-side at 72% 55%, rgba(195, 182, 255, .26), transparent);
  pointer-events: none;
}
.lead-modal__scroll {
  overflow-y: auto; overscroll-behavior: contain;
  padding: clamp(28px, 4vw, 40px);
}
.lead-modal__head h2 {
  color: #fff; font-size: clamp(30px, 4vw, 38px); line-height: 1.05; letter-spacing: -.035em; font-weight: 430;
  padding-right: 48px;
}
.lead-modal__head p { margin: 12px 0 0; max-width: 30em; font-size: 15.5px; color: rgba(255, 255, 255, .6); }
.lead-modal.is-done .lead-modal__head { display: none; }

.lead-modal__close {
  position: absolute; z-index: 1; top: 16px; right: 16px;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .06); color: #fff;
  cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.lead-modal__close:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); }
.lead-modal__close:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.lead-modal__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

/* inside the popup the form sits straight on the panel, without its own card */
.form--modal {
  margin-top: 26px; padding: 0;
  background: none; border: 0; border-radius: 0; box-shadow: none;
}
.form--modal .form__done { padding: 24px 0 8px; }
.form--modal .form__done .btn { margin-top: 14px; min-width: 160px; }

@media (prefers-reduced-motion: no-preference) {
  .lead-modal[open] .lead-modal__panel { animation: leadIn .5s var(--ease) both; }
  .lead-modal[open]::backdrop { animation: leadFade .35s ease both; }
  .lead-modal.is-closing .lead-modal__panel { animation: leadOut .22s ease-in both; }
  .lead-modal.is-closing::backdrop { animation: leadFade .22s ease-in reverse both; }
}
@keyframes leadIn { from { opacity: 0; transform: translateY(28px) scale(.97); } }
@keyframes leadOut { to { opacity: 0; transform: translateY(18px) scale(.98); } }
@keyframes leadFade { from { opacity: 0; } }

@media (max-width: 600px) {
  .lead-modal { padding: 0; }
  .lead-modal[open] { place-items: end stretch; }
  .lead-modal__panel {
    width: 100%; max-height: calc(100dvh - 12px);
    border-radius: 28px 28px 0 0; border-bottom: 0;
  }
  .lead-modal__scroll { padding: 30px 20px calc(24px + env(safe-area-inset-bottom)); }
  .lead-modal__close { top: 14px; right: 14px; }
  @media (prefers-reduced-motion: no-preference) {
    .lead-modal[open] .lead-modal__panel { animation: leadSheetIn .45s var(--ease) both; }
    .lead-modal.is-closing .lead-modal__panel { animation: leadSheetOut .25s ease-in both; }
  }
}
@keyframes leadSheetIn { from { transform: translateY(100%); } }
@keyframes leadSheetOut { to { transform: translateY(100%); } }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  margin: clamp(8px, 1.4vw, 20px);
  padding: clamp(36px, 4.6vw, 64px) 0 clamp(20px, 2vw, 28px);
  border-radius: var(--r-xl); background: var(--surface);
}
.footer__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 32px clamp(32px, 6vw, 96px); align-items: start; }
.footer__brand a { display: inline-block; border-radius: 10px; }
.footer__brand img { width: clamp(200px, 19vw, 260px); height: auto; }
.footer__brand p { margin-top: 20px; max-width: 30em; color: var(--ink-3); font-size: 16px; line-height: 1.55; }
.footer__contacts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.footer__contact {
  display: flex; align-items: center; gap: 14px; height: 100%;
  padding: 12px 16px 12px 12px; border-radius: 18px; background: var(--bg);
  font-size: 15.5px; font-weight: 500; line-height: 1.3; color: var(--ink);
  transition: background-color .2s var(--ease);
}
.footer__contact:hover { background: #E7EBE9; }
.footer__contact > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.footer__contact--soon, .footer__contact--soon:hover { background: var(--bg); color: var(--ink-3); font-weight: 400; }
.footer__contact--soon .footer__icon, .footer__contact--soon:hover .footer__icon { background: var(--surface); color: var(--ink-3); }
.footer__contact small { display: block; margin-bottom: 1px; font-size: 13.5px; font-weight: 400; color: var(--ink-3); }
.footer__icon { flex: none; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--surface); color: var(--ink); transition: background-color .2s var(--ease), color .2s var(--ease); }
.footer__icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.footer__contact:hover .footer__icon, .footer__icon--lead { background: var(--green); color: #00170A; }

.footer__nav {
  display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr) minmax(0, 1fr); gap: 36px clamp(28px, 4vw, 64px);
  margin-top: clamp(32px, 4vw, 52px); padding-top: clamp(32px, 4vw, 52px); border-top: 1px solid var(--line);
}
.footer__nav h2 { margin-bottom: 10px; font-size: 20px; font-weight: 500; letter-spacing: -.02em; line-height: 1.2; }
.footer__list { display: grid; align-content: start; }
.footer__list--two { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: column; grid-template-rows: repeat(4, auto); column-gap: 28px; }
.footer__list a { display: block; padding: 7px 0; font-size: 16px; line-height: 1.35; color: var(--ink-2); transition: color .2s var(--ease); }
.footer__list a:hover { color: var(--green-ink); }
.footer__list a[aria-current="page"] { color: var(--ink); font-weight: 500; }
.footer__list a[aria-current="page"]::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 9px; border-radius: 50%; background: var(--green); vertical-align: 1px; }

.footer__bottom {
  margin-top: clamp(32px, 4vw, 52px); padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap;
  font-size: 14.5px; color: var(--ink-3);
}
.footer__up {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 12px 9px 16px; border-radius: 999px; background: var(--bg); color: var(--ink);
  transition: background-color .2s var(--ease);
}
.footer__up:hover { background: #E7EBE9; }
.footer__end { display: flex; align-items: center; gap: 6px; }
.footer__lang {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 999px; color: var(--ink-2);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.footer__lang:hover { background: var(--bg); color: var(--ink); }
.footer__lang svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.footer__up svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* =========================================================
   SERVICE PAGES (/services/*.html)
   ========================================================= */
.svc-hero {
  padding: clamp(128px, 16vh, 168px) 0 clamp(64px, 8vw, 112px);
  background:
    radial-gradient(rgba(0, 0, 0, .07) 1px, transparent 1.3px) 0 0 / 22px 22px,
    var(--bg);
}
.svc-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .9fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: end;
}
.svc-back {
  display: inline-flex; align-items: center; gap: 6px;
  margin-bottom: clamp(28px, 4vw, 48px);
  padding: 6px 14px 6px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, .7); border: 1px solid var(--line);
  font-size: 14.5px; color: var(--ink-2);
  transition: border-color .2s, color .2s;
}
.svc-back:hover { color: var(--ink); border-color: var(--line-strong); }
.svc-back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svc-hero__kicker { font-size: 15px; font-weight: 500; color: var(--green-ink); }
.svc-hero h1 {
  margin-top: 12px;
  font-size: clamp(40px, 5.6vw, 80px); line-height: 1.02; letter-spacing: -.045em; font-weight: 430;
  text-wrap: balance;
}
.svc-hero__lead { margin-top: 22px; max-width: 36em; font-size: clamp(17px, 1.35vw, 19px); color: var(--ink-3); }
.svc-hero__actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.svc-hero__aside { display: grid; gap: 14px; }
.svc-hero .flow {
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(195, 182, 255, .45), transparent 60%),
    radial-gradient(120% 90% at 0% 100%, rgba(125, 236, 185, .55), transparent 60%),
    var(--surface);
  box-shadow: var(--float);
}
/* the scenario ticks off step by step once, when the page opens */
.js .svc-hero .flow__steps li::before { animation: stepOn .4s var(--ease) both; }
.js .svc-hero .flow__steps li:nth-child(1)::before { animation-delay: .5s; }
.js .svc-hero .flow__steps li:nth-child(2)::before { animation-delay: .9s; }
.js .svc-hero .flow__steps li:nth-child(3)::before { animation-delay: 1.3s; }
.js .svc-hero .flow__steps li:nth-child(4)::before { animation-delay: 1.7s; }

.svc-included { background: var(--surface); border-radius: var(--r-xl) var(--r-xl) 0 0; margin-top: calc(var(--r-xl) * -1); }
/* "Что входит": the composition by meaning, and the panel that ties it into one solution */
.kit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 384px); gap: clamp(16px, 1.8vw, 24px); align-items: start; }
.kit__groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.kit__group {
  --tone: var(--green);
  display: flex; flex-direction: column; gap: 18px;
  padding: clamp(16px, 1.6vw, 22px);
  border-radius: var(--r-lg); background: var(--bg);
}
.kit__group--wide { grid-column: 1 / -1; }
.kit__group:nth-child(2) { --tone: var(--lilac); }
.kit__group:nth-child(3) { --tone: var(--aqua); }
.kit__group:nth-child(4) { --tone: var(--ink); --sign: var(--green); }
.kit__group h3 { display: flex; align-items: center; gap: 12px; font-size: clamp(19px, 1.55vw, 21px); font-weight: 500; letter-spacing: -.02em; line-height: 1.2; }
.kit__icon, .hub__node { display: grid; place-items: center; background: var(--tone); color: var(--sign, #00170A); }
.kit__icon { flex: none; width: 40px; height: 40px; border-radius: 12px; }
.kit__icon svg, .hub__node svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.kit__list {
  flex: 1; display: grid; align-content: start; column-gap: 28px;
  padding: 6px clamp(14px, 1.3vw, 18px); border-radius: var(--r-md); background: var(--surface);
}
.kit__group--wide .kit__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kit__list li {
  position: relative; padding: 13px 0 13px 32px;
  font-size: 15.5px; line-height: 1.42; color: var(--ink-2);
}
.kit__list li + li { border-top: 1px solid var(--line); }
.kit__group--wide .kit__list li:nth-child(2) { border-top: 0; } /* the first row has two */
.kit__list li::before {
  content: ""; position: absolute; left: 0; top: 14px;
  width: 20px; height: 20px; border-radius: 7px;
  background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%2300853E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.kit__panel {
  position: sticky; top: 96px;
  padding: clamp(20px, 1.9vw, 26px);
  border-radius: 28px;
  background:
    radial-gradient(120% 70% at 100% 0%, rgba(195, 182, 255, .5), transparent 60%),
    radial-gradient(120% 80% at 0% 100%, rgba(125, 236, 185, .6), transparent 62%),
    #F5F8F6;
  box-shadow: var(--float);
}
.kit__panel h3 { margin-top: 10px; font-size: clamp(24px, 2.1vw, 29px); font-weight: 450; letter-spacing: -.03em; line-height: 1.1; text-wrap: balance; }
.kit__panel p { margin-top: 12px; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.kit__panel .btn { margin-top: 22px; }

/* the groups around the mark; same icons and colours as on the cards */
.hub { position: relative; max-width: 340px; margin: 0 auto; aspect-ratio: 300 / 240; }
.hub__lines { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: rgba(0, 60, 30, .38); stroke-width: 1.5; stroke-dasharray: 4 6; stroke-linecap: round; }
.hub__node, .hub__core { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); }
.hub__node { width: 54px; height: 54px; border-radius: 17px; box-shadow: 0 0 0 6px rgba(255, 255, 255, .75), 0 14px 26px -12px rgba(14, 48, 30, .45); transition: transform .3s var(--ease); }
.hub__node svg { width: 24px; height: 24px; }
.hub__node:nth-of-type(1) { --x: 20.7%; --y: 23.3%; --tone: var(--green); }
.hub__node:nth-of-type(2) { --x: 79.3%; --y: 23.3%; --tone: var(--lilac); }
.hub__node:nth-of-type(3) { --x: 20.7%; --y: 76.7%; --tone: var(--aqua); }
.hub__node:nth-of-type(4) { --x: 79.3%; --y: 76.7%; --tone: var(--ink); --sign: var(--green); }
.hub--3 .hub__node:nth-of-type(3) { --x: 50%; --y: 84%; }
.hub__core { --x: 50%; --y: 50%; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 26px; background: #fff; color: var(--green); box-shadow: 0 0 0 1px rgba(0, 40, 20, .05), 0 22px 40px -16px rgba(14, 48, 30, .5); }
.hub__core svg { width: 44px; height: 44px; }
.hub--3 .hub__core { --y: 47%; }
@media (hover: hover) { /* the card under the pointer answers in the panel */
  .kit:has(.kit__group:nth-child(1):hover) .hub__node:nth-of-type(1),
  .kit:has(.kit__group:nth-child(2):hover) .hub__node:nth-of-type(2),
  .kit:has(.kit__group:nth-child(3):hover) .hub__node:nth-of-type(3),
  .kit:has(.kit__group:nth-child(4):hover) .hub__node:nth-of-type(4) { transform: translate(-50%, -50%) scale(1.14); }
}
@media (prefers-reduced-motion: reduce) { .hub__node { transition: none; } }

.svc-note {
  margin-top: 32px; max-width: 60em;
  padding: 14px 16px; border-radius: 12px;
  background: var(--bg); font-size: 14.5px; color: var(--ink-3);
}
.svc-cta__actions { margin-top: 8px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.svc-other__title { font-size: clamp(28px, 3vw, 40px); letter-spacing: -.03em; line-height: 1.1; margin-bottom: clamp(24px, 3vw, 36px); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1310px) {
  .header__book { width: 42px; padding: 0; }
  .header__book span { display: none; }
}
@media (max-width: 1100px) {
  .header__bar { gap: 16px; }
  .nav > a { padding-inline: 10px; }
  .nav__dd-toggle { padding-left: 10px; }
  .header__book { margin-right: -6px; }
}

@media (max-width: 1100px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile--agents { grid-column: 1 / -1; grid-row: auto; }
  .tile--chat { grid-row: span 2; }
  .tile--doc { grid-column: 1 / -1; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* below 1180px the side columns get too narrow: cards move under the orb */
@media (max-width: 1179px) {
  .hero__stage {
    grid-template-columns: repeat(2, minmax(0, var(--card-w)));
    grid-template-rows: auto auto;
    grid-template-areas: "orb orb" "a b";
    justify-content: center;
    column-gap: 12px;
    row-gap: clamp(16px, 3vw, 28px);
  }
  .orb { --size: min(480px, 80vw); justify-self: center; }
  .feed--a, .feed--b { width: 100%; justify-self: stretch; align-self: auto; margin: 0; }
  .feed--c, .feed--d { display: none; }
}

@media (max-width: 1100px) { /* the panel goes under the groups: beside them long words do not fit */
  .kit { grid-template-columns: minmax(0, 1fr); }
  .kit__panel { position: static; display: grid; grid-template-columns: minmax(220px, 320px) minmax(0, 1fr); gap: 36px; align-items: center; }
  .kit__panel .hub { width: 100%; }
  .kit__panel h3 { margin-top: 0; }
  .kit__panel .btn { width: auto; }
}
@media (max-width: 999px) { /* contact section: one column */
  .contact { grid-template: "head" auto "stage" auto "next" auto / minmax(0, 1fr); row-gap: 40px; }
  .contact__head h2 { font-size: clamp(26px, 7.8vw, 56px); }
  .contact__head p { max-width: 38em; }
  .contact__steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .contact__steps li { padding: 50px 0 0; }
  .contact__steps li:not(:last-child)::after { left: 46px; right: -14px; top: 18.5px; bottom: auto; width: auto; height: 1px; background: linear-gradient(90deg, rgba(255, 255, 255, .26), rgba(255, 255, 255, .06)); }
}
/* below 1024px the header with the language link no longer fits: the burger menu instead */
@media (max-width: 1023px) {
  .nav, .header__cta, .header__book { display: none; }
  .burger { display: block; margin-left: 0; }
  .lang-switch { margin: 0 -4px 0 auto; }
}
@media (min-width: 1024px) and (max-width: 1100px) { /* the globe alone */
  .lang-switch { padding: 0 12px; }
  .lang-switch span { display: none; }
}
@media (max-width: 960px) {
  .section-head { grid-template-columns: 1fr; }
  .dev__grid, .audit__grid, .approach__grid { grid-template-columns: 1fr; }
  .svc-hero__grid { grid-template-columns: 1fr; align-items: start; }
  .svc-hero__aside { grid-template-columns: 1fr 1fr; align-items: start; }
  .plan, .approach__intro { position: static; }
  /* phones and tablets: one clear branch, the Asfrog core on top and every system plugged into one line */
  .eco { display: flex; flex-direction: column; align-items: stretch; gap: 0; max-width: 520px; padding-bottom: 2px; }
  .eco__lines { display: none; }
  .eco__core { order: -1; aspect-ratio: auto; display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
  .eco__core-ring { display: none; }
  .eco__core-inner {
    width: 64px; flex: none;
    box-shadow: 0 0 0 6px rgba(0, 194, 91, .12), 0 18px 36px -18px rgba(0, 194, 91, .6);
  }
  .eco__core-inner svg { width: 50%; }
  .eco__core-label { display: grid; gap: 2px; margin: 0; }
  .eco__core-label b { font-size: 18px; font-weight: 500; color: var(--ink); }
  .eco__core-label span { font-size: 14.5px; line-height: 1.4; color: var(--ink-3); }
  .eco__col, .eco__col--left, .eco__col--right { display: grid; gap: 8px; justify-items: stretch; padding-left: 52px; }
  .eco__col--right { margin-top: 8px; }
  .eco__node { width: 100%; justify-content: flex-start; }
  .eco__node::after { /* branch from the line to the card */
    content: ""; position: absolute; left: -20px; top: 50%;
    width: 20px; height: 2px; margin-top: -1px;
    background: rgba(0, 194, 91, .4);
  }
  .eco__node { position: relative; }
  .eco::before { /* the line from the core down to the last system */
    content: ""; position: absolute; left: 31px; top: 64px; bottom: 25px;
    width: 2px; background: rgba(0, 194, 91, .4);
  }
  .eco::after { /* data pulse running down the line while the block is on screen */
    content: ""; position: absolute; left: 30px; top: 64px; bottom: 24px;
    width: 4px; border-radius: 4px;
    background: linear-gradient(to bottom, transparent, var(--green), transparent) 0 0 / 4px 56px no-repeat;
    opacity: 0;
  }
  .eco.is-live::after { animation: ecoFlow 3.2s cubic-bezier(.5, 0, .5, 1) infinite; }
  .eco__tech { max-width: 520px; text-align: left; }
  .footer__top { grid-template-columns: minmax(0, 1fr); }
  .footer__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__nav section:first-child { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .footer__contacts { grid-template-columns: minmax(0, 1fr); }
  .footer__nav { gap: 30px 20px; }
  .footer__list--two { column-gap: 20px; }
  .footer__list a { padding: 8px 0; }
  .footer__bottom { justify-content: flex-start; }
  .footer__bottom p:nth-child(2) { order: 1; flex-basis: 100%; }
  .footer__end { margin-left: auto; }
  .hero__stage { grid-template-columns: minmax(0, var(--card-w)); grid-template-areas: "orb" "a"; }
  .orb { --size: min(340px, 88vw); }
  .orb__button { width: 54%; height: 54%; padding: 0 2.5%; }
  .feed { padding: 8px 14px 8px 8px; }
  .feed__icon { width: 34px; height: 34px; }
  .feed--b { display: none; }
  .agent-viz__tool.t5, .agent-viz__lines .l5 { display: none; }
  .checklist { grid-template-columns: 1fr; }
  .kit__groups, .kit__group--wide .kit__list { grid-template-columns: minmax(0, 1fr); }
  .kit__group { grid-column: auto; gap: 14px; }
  .kit__list li { font-size: 16px; }
  .kit__group--wide .kit__list li:nth-child(2) { border-top: 1px solid var(--line); }
  .kit__panel { display: block; }
  .kit__panel .hub { margin-bottom: 14px; }
  .kit__panel .btn { width: 100%; }
  .svc-row { grid-template-columns: minmax(0, 1fr) 40px; gap: 4px 16px; }
  .svc-row__desc { grid-column: 1; grid-row: 2; font-size: 15.5px; }
  .svc-row__arrow { grid-column: 2; grid-row: 1 / span 2; width: 40px; height: 40px; }
  .svc-hero__aside { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .tile--chat { grid-row: auto; }
  .agent-viz__tool { font-size: 13px; padding: 6px 10px; }
  .doc-viz__fields { grid-template-columns: 1fr; }
  .doc-viz__page { display: none; }
  .tile--custom { flex-direction: column; align-items: flex-start; }
  .tile--custom__note { margin-left: 0; }
  .support__grid { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .feature h3 { margin-top: 28px; }
  .contact { row-gap: 32px; }
  .contact__head p { margin-top: 14px; font-size: 16px; text-wrap: pretty; }
  .contact__stage { margin-inline: -10px; }
  .form.contact__form { padding: 20px 18px; border-radius: 26px; }
  .contact__steps { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .contact__steps li { padding: 0 0 0 54px; }
  .contact__steps li:not(:last-child)::after { left: 17.5px; right: auto; top: 43px; bottom: -13px; width: 1px; height: auto; background: linear-gradient(rgba(255, 255, 255, .26), rgba(255, 255, 255, .06)); }
  .contact__cal { justify-content: center; text-align: center; }
  .contact__cal .btn { width: 100%; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi:last-child { grid-column: 1 / -1; }
  .charts { grid-template-columns: 1fr; }
  .chart--donut { display: none; }
  .window__body { grid-template-columns: 1fr; }
  .window__side { display: none; }
  .plan__meta { grid-template-columns: 1fr; }
  .step { grid-template-columns: 44px 1fr; gap: 16px; }
  .step__n { width: 44px; height: 44px; font-size: 13.5px; }
  .steps::before, .steps::after { left: 21px; top: 22px; bottom: 22px; }
  .step h3 { padding-top: 8px; }
  .hero__actions .btn,
  .svc-hero__actions .btn,
  .svc-cta__actions .btn,
  .approach__actions .btn { flex: 1 1 100%; }
  .approach__actions { justify-self: stretch; }
}

/* small phones: keep the agent chips off the edges and let document values wrap */
@media (max-width: 420px) {
  .agent-viz__tool { font-size: 12px; padding: 5px 9px; }
  .agent-viz__tool::before { width: 6px; height: 6px; margin-right: 6px; }
  .agent-viz__tool.t1, .agent-viz__tool.t3 { left: 25%; }
  .agent-viz__tool.t2, .agent-viz__tool.t4 { left: 75%; }
  .doc-viz__fields div { flex-direction: column; gap: 2px; }
  .doc-viz__fields dd { text-align: left; white-space: normal; }
}
/* the narrowest phones: keep the consultant's title and note inside the round button */
@media (max-width: 360px) {
  .svc-hero h1 { font-size: 34px; } /* «документооборота» in one piece */
  .footer__list--two { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-flow: row; }
  .orb__button { padding: 0; }
  .orb__mic { width: 38px; margin-bottom: 4px; }
  .orb__label { font-size: 3.8vw; }
  .orb__note { font-size: 3.2vw; }
}

/* sections out of view: their endless animations wait (main.js toggles .is-paused) */
.is-paused, .is-paused *, .is-paused *::before, .is-paused *::after { animation-play-state: paused !important; }

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js .intro__text .word { color: var(--ink); }
  .eco__core-ring { animation: none; }
}
