/* Антология сервис — стили сайта.
   Шрифт Onest хранится на нашем сервере (без обращений к сторонним сервисам). */

@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/fonts/onest-cyrillic-wght-normal.woff2) format('woff2-variations'), url(/assets/fonts/onest-cyrillic-wght-normal.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/fonts/onest-cyrillic-ext-wght-normal.woff2) format('woff2-variations'), url(/assets/fonts/onest-cyrillic-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/fonts/onest-latin-wght-normal.woff2) format('woff2-variations'), url(/assets/fonts/onest-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+20BD;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/fonts/onest-latin-ext-wght-normal.woff2) format('woff2-variations'), url(/assets/fonts/onest-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light;
  --paper: #FFFFFF;
  --mist: #F1F4F5;
  --mist-2: #E5EAED;
  --ink: #14181C;
  --ink-2: #2B323A;
  --slate: #56606A;
  --rule: #D7DDE1;
  --fiber: #087F86;
  --fiber-2: #12A6AC;
  --fiber-soft: #E1F2F2;
  --ok: #1E9A53;
  --warn: #D18B00;
  --fault: #D8434A;

  --font: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;

  --t-sm: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --t-base: clamp(1rem, 0.96rem + 0.18vw, 1.0625rem);
  --t-lead: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --t-h3: clamp(1.1875rem, 1.12rem + 0.3vw, 1.375rem);
  --t-h2: clamp(1.75rem, 1.45rem + 1.3vw, 2.625rem);
  --t-h1: clamp(2.125rem, 1.7rem + 1.9vw, 3.25rem);

  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-cine: cubic-bezier(.62, 0, .18, 1);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--t-base);
  line-height: 1.6;
  font-feature-settings: 'tnum' 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 720; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: var(--t-h1); line-height: 1.04; letter-spacing: -0.03em; font-weight: 760; }
h2 { font-size: var(--t-h2); line-height: 1.1; }
h3 { font-size: var(--t-h3); line-height: 1.25; letter-spacing: -0.01em; font-weight: 680; }
strong { font-weight: 650; }

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

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---------- Кнопки и ссылки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 14px 24px;
  border-radius: 12px; border: 1.5px solid transparent;
  font: inherit; font-weight: 640; font-size: 1.0625rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--fiber); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--small { min-height: 44px; padding: 10px 18px; font-size: 0.9688rem; border-radius: 10px; }
.btn svg { width: 20px; height: 20px; flex: none; }

.link { color: var(--fiber); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; font-weight: 560; }
.link:hover { color: var(--ink); }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-header__row { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.logo__mark { width: 34px; height: 34px; flex: none; }
.logo__name { font-weight: 760; font-size: 1.125rem; letter-spacing: -0.02em; line-height: 1; white-space: nowrap; }
.logo__name span { color: var(--fiber); }

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  position: relative; padding: 8px 12px; border-radius: 8px;
  color: var(--ink-2); text-decoration: none; font-size: 0.9688rem; font-weight: 520; white-space: nowrap;
}
.nav a:hover { color: var(--fiber); background: var(--mist); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 640; }
.nav a[aria-current="page"]::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--fiber); }

.header-contact { display: flex; align-items: center; gap: 18px; flex: none; }
.header-phone { display: flex; flex-direction: column; text-decoration: none; line-height: 1.15; white-space: nowrap; }
.header-phone b { font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.header-phone small { color: var(--slate); font-size: 0.8125rem; }
.header-phone:hover b { color: var(--fiber); }

.menu-btn, .call-btn {
  display: none; width: 46px; height: 46px; border-radius: 12px; border: 1.5px solid var(--rule);
  background: var(--paper); color: var(--ink); align-items: center; justify-content: center; cursor: pointer; padding: 0;
}
.menu-btn svg, .call-btn svg { width: 22px; height: 22px; }
.mobile-nav { display: none; }

@media (max-width: 1180px) {
  .nav a { padding: 8px 9px; font-size: 0.9375rem; }
  .header-contact .btn { display: none; }
}
@media (max-width: 980px) {
  .nav, .header-contact { display: none; }
  .menu-btn, .call-btn { display: inline-flex; }
  .site-header__row { gap: 10px; }
  .call-btn { margin-left: auto; }
  .mobile-nav { border-top: 1px solid var(--rule); background: var(--paper); }
  .mobile-nav.is-open { display: block; }
  .mobile-nav ul { list-style: none; padding: 8px 0 18px; }
  .mobile-nav a { display: block; padding: 13px 4px; font-size: 1.0625rem; font-weight: 560; text-decoration: none; border-bottom: 1px solid var(--mist-2); }
  .mobile-nav a[aria-current="page"] { color: var(--fiber); }
  .mobile-nav .mobile-nav__phone { border-bottom: 0; padding-top: 18px; font-weight: 700; font-size: 1.25rem; }
}
@media (max-width: 380px) {
  .logo__name { font-size: 1rem; }
  .logo__mark { width: 30px; height: 30px; }
}

/* ---------- Секции ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--mist { background: var(--mist); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section__head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
.section__head p { margin-top: 18px; color: var(--slate); font-size: var(--t-lead); line-height: 1.5; }
.lead { font-size: var(--t-lead); line-height: 1.5; color: var(--ink-2); }
.muted { color: var(--slate); }
.prose { max-width: 68ch; }
.prose p, .prose li { color: var(--ink-2); }

/* ---------- Первый экран ---------- */
.hero { position: relative; padding-top: clamp(28px, 5vw, 64px); padding-bottom: clamp(48px, 6vw, 88px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero__text { max-width: 600px; position: relative; z-index: 2; }
.hero h1 { margin-bottom: 22px; }
.hero .lead { margin-bottom: 30px; max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.facts { list-style: none; display: grid; gap: 10px; }
.facts li { display: flex; gap: 12px; align-items: baseline; color: var(--ink-2); }
.facts li::before {
  content: ''; flex: none; width: 10px; height: 10px; border-radius: 50%;
  background: var(--ok); box-shadow: 0 0 0 4px rgba(30, 154, 83, .14); transform: translateY(-1px);
}
.fit-list { list-style: none; display: grid; gap: 8px; margin: -6px 0 30px; color: var(--ink-2); }
.fit-list li { position: relative; padding-left: 26px; }
.fit-list li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 12px; height: 2px; background: var(--fiber); border-radius: 2px; }
.fit-title { font-weight: 650; margin-bottom: 14px; }

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

@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__text { max-width: 640px; }
}

/* ---------- 3D-макет офиса ---------- */
.scene-box { position: relative; width: 100%; aspect-ratio: 900 / 600; margin-top: -2%; }
.scene {
  position: absolute; left: 0; top: 0; width: 900px; height: 600px;
  transform-origin: 0 0; transform: scale(var(--fit, .62));
  perspective: 1900px; perspective-origin: 50% 32%;
  pointer-events: none; user-select: none;
}
.scene__tilt, .scene__cam, .scene__drift, .floor { transform-style: preserve-3d; }
.scene__tilt { position: absolute; inset: 0; transform: translateY(var(--py, 0px)) rotateX(var(--prx, 0deg)); will-change: transform; }
.scene__cam {
  position: absolute; left: 90px; top: 70px; width: 720px; height: 460px;
  transform: rotateX(56deg) rotateZ(-34deg) scale(1.04);
}
.scene__drift { position: absolute; inset: 0; }
.floor {
  position: absolute; inset: 0; border-radius: 6px;
  background:
    linear-gradient(var(--paper), var(--paper)) padding-box,
    var(--paper);
  box-shadow: 0 0 0 1px var(--rule), 0 40px 80px -30px rgba(20, 24, 28, .35), 0 18px 40px -20px rgba(20, 24, 28, .25);
}
.floor__svg { position: absolute; inset: 0; width: 720px; height: 460px; overflow: visible; }
.floor__grid { stroke: #E6ECEF; stroke-width: 1; }
.plan-line { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; }
.room-label { font-family: var(--font); font-size: 15px; font-weight: 560; fill: var(--slate); letter-spacing: -0.01em; }
.desk-shadow { fill: rgba(20, 24, 28, .10); }
.cable { fill: none; stroke: var(--fiber-2); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.cable--glow { stroke: rgba(18, 166, 172, .22); stroke-width: 9; }
.pulse-dot { fill: #fff; stroke: var(--fiber); stroke-width: 2.4; opacity: 0; }
.wifi-ring { fill: none; stroke: var(--fiber-2); stroke-width: 2; transform-box: fill-box; transform-origin: center; opacity: 0; }
.wifi-ap { fill: var(--paper); stroke: var(--ink); stroke-width: 2; }
.cone { opacity: 1; }
.issue-ring { fill: none; stroke-width: 3; transform-box: fill-box; transform-origin: center; }

.wall {
  position: absolute; left: 0; top: 0; height: var(--h, 30px); width: var(--len);
  transform-origin: 0 0;
  transform: translate(var(--x), var(--y)) rotateZ(var(--rot)) rotateX(90deg);
}
.wall__face {
  position: absolute; inset: 0; transform-origin: 50% 0;
  background: linear-gradient(to bottom, var(--wall-a, #E9EEF1), var(--wall-b, #F7F9FA));
  border-bottom: 3px solid var(--wall-cap, #B9C3CA);
  box-shadow: inset 0 0 0 1px rgba(20, 24, 28, .06);
}

.block { position: absolute; left: 0; top: 0; transform-style: preserve-3d; transform: translate(var(--x), var(--y)); width: var(--w); height: var(--d); }
.block__top {
  position: absolute; inset: 0; background: var(--top, #fff); border: 1.5px solid var(--edge, #9AA6AF); border-radius: 3px;
  transform: translateZ(var(--z, 16px));
}
.block__side {
  position: absolute; left: 0; width: 100%; height: var(--z, 16px); top: 100%;
  transform-origin: 0 0; transform: rotateX(90deg);
  background: var(--side, #DCE3E7); border: 1px solid rgba(20, 24, 28, .10);
}
.block__side--y { top: 0; left: 100%; width: var(--z, 16px); height: 100%; transform-origin: 0 0; transform: rotateY(-90deg); background: var(--side2, #CBD4DA); }

.monitor {
  position: absolute; left: 0; top: 0; width: var(--w, 34px); height: 22px;
  transform-origin: 0 0; transform: translate(var(--x), var(--y)) translateZ(16px) rotateZ(var(--rot, 0deg)) rotateX(90deg);
}
.monitor__screen {
  position: absolute; inset: 0; border-radius: 3px; background: #2B323A; border: 2px solid #2B323A; transform-origin: 50% 0;
}
.monitor__screen::after {
  content: ''; position: absolute; inset: 1px; border-radius: 2px;
  background: linear-gradient(160deg, #BFF1F2 0%, #6FD4D8 60%, #3FB7BE 100%); opacity: 0;
}
.led {
  position: absolute; left: 0; top: 0; width: 7px; height: 7px; border-radius: 50%;
  transform: translate(var(--x), var(--y)) translateZ(var(--z, 2px));
  background: #9AA6AF; box-shadow: 0 0 0 2px #fff;
}

.status-card {
  position: absolute; right: 0; bottom: 0; width: min(300px, 62%);
  background: rgba(255, 255, 255, .96); border: 1px solid var(--rule); border-radius: 16px;
  box-shadow: 0 20px 50px -24px rgba(20, 24, 28, .35);
  padding: 16px 18px 14px; font-size: 0.9063rem; z-index: 3;
}
.status-card__title { font-weight: 680; font-size: 0.9688rem; margin-bottom: 8px; }
.status-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 7px 0; border-top: 1px solid var(--mist-2); align-items: center; }
.status-row__name { color: var(--slate); }
.status-row__val { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-align: right; }
.status-row__val::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.status-row__val--bad::before { background: var(--fault); }
.status-swap { display: grid; justify-items: end; }
.status-swap > * { grid-area: 1 / 1; }
.status-total { margin-top: 8px; padding-top: 9px; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; font-weight: 650; }
.status-total__ok { color: var(--ok); }

@media (min-width: 981px) {
  .status-card { position: relative; right: auto; bottom: auto; margin: -24% 0 0 auto; width: min(300px, 54%); }
  .scene-wrap--fix .status-card { width: min(380px, 70%); margin-top: -20%; }
}
@media (max-width: 980px) {
  .status-card { position: relative; right: auto; bottom: auto; width: 100%; max-width: 420px; margin-top: 4px; }
}
@media (max-width: 640px) {
  .room-label { display: none; }
}

/* ---------- Анимация макета ----------
   Без JS или при отключённой анимации показывается готовая картинка.
   Класс .anim ставится на <html> скриптом, .is-playing — на .scene-wrap. */
.monitor__screen::after { opacity: 1; }
.led { background: var(--ok); }
.wifi-ring { opacity: .28; }
.wifi-ring:nth-of-type(2) { transform: scale(.62); }
.wifi-ring:nth-of-type(3) { transform: scale(.32); }

.anim .scene-wrap .plan-line { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); }
.anim .scene-wrap .wall__face { transform: scaleY(0); }
.anim .scene-wrap .block { transform: translate(var(--x), var(--y)) scale3d(1, 1, .02); }
.anim .scene-wrap .block > * { opacity: 0; }
.anim .scene-wrap .monitor { opacity: 0; }
.anim .scene-wrap .cable { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); }
.anim .scene-wrap .pulse-dot, .anim .scene-wrap .cone, .anim .scene-wrap .wifi-ring { opacity: 0; }
.anim .scene-wrap .monitor__screen::after { opacity: 0; }
.anim .scene-wrap .led { background: #9AA6AF; }
.anim .scene-wrap .status-card { opacity: 0; transform: translateY(14px); }
.anim .scene-wrap .status-row { opacity: 0; }
.anim .scene-wrap .scene__cam { transform: rotateX(0deg) rotateZ(0deg) scale(1.16); }

.anim .scene-wrap.is-playing .scene__cam { animation: cam-in 2.8s var(--ease-cine) .15s both; }
.anim .scene-wrap.is-playing .scene__drift { animation: drift 18s ease-in-out 3.4s infinite alternate; }
.anim .scene-wrap.is-playing .plan-line { animation: draw 1.5s var(--ease-out) calc(.25s + var(--i, 0) * 70ms) forwards; }
.anim .scene-wrap.is-playing .wall__face { animation: rise .9s var(--ease-out) calc(1.25s + var(--i, 0) * 45ms) forwards; }
.anim .scene-wrap.is-playing .block { animation: grow .9s var(--ease-out) calc(1.9s + var(--i, 0) * 50ms) forwards; }
.anim .scene-wrap.is-playing .block > * { animation: pop .5s ease calc(1.9s + var(--i, 0) * 50ms) forwards; }
.anim .scene-wrap.is-playing .monitor { animation: pop .6s var(--ease-out) calc(2.3s + var(--i, 0) * 50ms) forwards; }
.anim .scene-wrap.is-playing .cable { animation: draw 1.1s var(--ease-out) calc(2.8s + var(--i, 0) * 120ms) forwards; }
.anim .scene-wrap.is-playing .pulse-dot { animation: fade-in .3s ease var(--d, 5s) forwards; }
.anim .scene-wrap.is-playing .monitor__screen::after { animation: screen-on .8s ease calc(3.9s + var(--i, 0) * 110ms) forwards; }
.anim .scene-wrap.is-playing .led { animation: led-on .4s ease calc(4s + var(--i, 0) * 110ms) forwards; }
.anim .scene-wrap.is-playing .wifi-ring { animation: ring 3.6s ease-out calc(4.2s + var(--i, 0) * 1.2s) infinite; }
.anim .scene-wrap.is-playing .cone { animation: fade-in 1.4s ease calc(4.3s + var(--i, 0) * .3s) forwards; }
.anim .scene-wrap.is-playing .status-card { animation: card-in .8s var(--ease-out) 4.3s forwards; }
.anim .scene-wrap.is-playing .status-row { animation: fade-in .5s ease calc(4.6s + var(--i, 0) * 180ms) forwards; }

/* Вариант «нашли и исправили»: без анимации сразу видно исправленное состояние */
.issue-ring { stroke: var(--ok); opacity: .9; }
.scene-wrap--fix .status-swap .is-bad { opacity: 0; }
.scene-wrap--fix .status-total__bad { opacity: 0; color: var(--fault); }
.anim .scene-wrap--fix .issue-ring { stroke: var(--fault); opacity: 0; }
.anim .scene-wrap--fix .status-swap .is-bad { opacity: 1; }
.anim .scene-wrap--fix .status-swap .is-fixed { opacity: 0; }
.anim .scene-wrap--fix .status-total__bad { opacity: 1; }
.anim .scene-wrap--fix .status-total__ok { opacity: 0; }
.anim .scene-wrap--fix.is-playing .issue-ring { animation: issue 1.6s ease-out calc(4.8s + var(--i, 0) * .25s) 3 forwards, to-ok .4s ease calc(7.6s + var(--i, 0) * .7s) forwards; }
.anim .scene-wrap--fix.is-playing .status-swap .is-bad { animation: fade-out .4s ease calc(7.6s + var(--i, 0) * .7s) forwards; }
.anim .scene-wrap--fix.is-playing .status-swap .is-fixed { animation: fade-in .5s ease calc(7.8s + var(--i, 0) * .7s) forwards; }
.anim .scene-wrap--fix.is-playing .status-total__bad { animation: fade-out .3s ease 10.4s forwards; }
.anim .scene-wrap--fix.is-playing .status-total__ok { animation: fade-in .6s ease 10.6s forwards; }

@keyframes cam-in {
  0%   { transform: rotateX(0deg) rotateZ(0deg) scale(1.16); }
  100% { transform: rotateX(56deg) rotateZ(-34deg) scale(1.04); }
}
@keyframes drift { from { transform: rotateZ(0deg); } to { transform: rotateZ(3.5deg); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rise { to { transform: scaleY(1); } }
@keyframes pop { from { opacity: 0; } to { opacity: 1; } }
@keyframes grow { from { transform: translate(var(--x), var(--y)) scale3d(1, 1, .02); } to { transform: translate(var(--x), var(--y)) scale3d(1, 1, 1); } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes screen-on { to { opacity: 1; } }
@keyframes led-on { to { background: var(--ok); box-shadow: 0 0 0 2px #fff, 0 0 10px 2px rgba(30, 154, 83, .55); } }
@keyframes ring { 0% { opacity: .55; transform: scale(.15); } 100% { opacity: 0; transform: scale(1); } }
@keyframes card-in { to { opacity: 1; transform: none; } }
@keyframes issue { 0% { opacity: .9; transform: scale(.5); } 100% { opacity: 0; transform: scale(1.5); } }
@keyframes to-ok { to { stroke: var(--ok); opacity: .9; transform: scale(1); } }

/* ---------- Список услуг (как прайс) ---------- */
.svc-list { list-style: none; border-bottom: 1px solid var(--rule); }
.svc-row {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto 28px; gap: 24px; align-items: center;
  padding: 26px 8px; border-top: 1px solid var(--rule); text-decoration: none; color: inherit;
  transition: background-color .25s ease;
}
.svc-row:hover { background: var(--mist); }
.svc-row:hover .svc-row__go { transform: translateX(4px); color: var(--fiber); }
.svc-row__icon { width: 64px; height: 64px; }
.svc-row h3 { margin-bottom: 6px; }
.svc-row p { color: var(--slate); margin: 0; max-width: 60ch; }
.svc-row__price { font-weight: 680; font-size: 1.125rem; white-space: nowrap; font-variant-numeric: tabular-nums; text-align: right; }
.svc-row__price small { display: block; font-weight: 450; font-size: 0.875rem; color: var(--slate); }
.svc-row__go { width: 24px; height: 24px; color: var(--slate); transition: transform .25s var(--ease-out), color .25s ease; }
@media (max-width: 720px) {
  .svc-row { grid-template-columns: 48px minmax(0, 1fr); gap: 4px 16px; padding: 22px 4px; align-items: start; }
  .svc-row__icon { width: 48px; height: 48px; grid-row: span 2; }
  .svc-row__price { text-align: left; grid-column: 2; margin-top: 8px; }
  .svc-row__go { display: none; }
}

/* ---------- Бесплатная проверка и пример отчёта ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.split--center { align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.check-list { list-style: none; display: grid; gap: 0; margin: 24px 0 32px; border-top: 1px solid var(--rule); }
.check-list li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--rule); color: var(--ink-2); }
.check-list li svg { width: 22px; height: 22px; flex: none; color: var(--fiber); margin-top: 1px; }

.report {
  position: relative; background: var(--paper); border-radius: 6px;
  box-shadow: 0 1px 0 var(--rule), 0 30px 60px -30px rgba(20, 24, 28, .35), 0 0 0 1px var(--rule);
  padding: clamp(22px, 3vw, 34px); font-size: 0.9375rem;
}
.report::before { content: ''; position: absolute; inset: 10px -10px -10px 10px; z-index: -1; background: var(--mist-2); border-radius: 6px; }
.report__head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding-bottom: 16px; border-bottom: 2px solid var(--ink); margin-bottom: 6px; }
.report__title { font-weight: 720; font-size: 1.1875rem; letter-spacing: -0.01em; line-height: 1.25; }
.report__sub { color: var(--slate); font-size: 0.875rem; margin-top: 4px; }
.report__stamp { flex: none; font-size: 0.8125rem; color: var(--slate); border: 1.5px solid var(--rule); border-radius: 8px; padding: 6px 10px; text-align: center; line-height: 1.3; }
.report__row { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--mist-2); }
.report__row:last-of-type { border-bottom: 0; }
.report__dot { width: 12px; height: 12px; border-radius: 50%; margin-top: 5px; }
.report__dot--bad { background: var(--fault); }
.report__dot--mid { background: var(--warn); }
.report__dot--ok { background: var(--ok); }
.report__line { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px; align-items: baseline; }
.report__item { font-weight: 640; }
.report__state { font-weight: 600; font-size: 0.875rem; }
.report__state--bad { color: #B3262D; }
.report__state--mid { color: #8F5F00; }
.report__state--ok { color: #11663A; }
.report__fix { color: var(--slate); margin-top: 3px; line-height: 1.5; }
.report__sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 2px solid var(--ink); text-align: center; }
.report__sum div { background: var(--mist); border-radius: 8px; padding: 8px 4px; font-size: 0.8125rem; color: var(--slate); line-height: 1.3; }
.report__sum b { display: block; font-size: 1.25rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.report__note { margin-top: 12px; font-size: 0.8125rem; color: var(--slate); }

.anim .report .report__row, .anim .report .report__sum { opacity: 0; transform: translateY(6px); }
.anim .report.in-view .report__row, .anim .report.in-view .report__sum { animation: card-in .55s var(--ease-out) calc(.2s + var(--i, 0) * 260ms) forwards; }

/* ---------- Шаги ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; counter-reset: step; position: relative; }
.steps::before {
  content: ''; position: absolute; left: 22px; right: 22px; top: 22px; height: 3px; border-radius: 3px;
  background: linear-gradient(to right, var(--fiber-2), var(--fiber-2)) 0 0 / var(--steps-p, 100%) 100% no-repeat, var(--rule);
}
.step { position: relative; }
.step__num {
  position: relative; width: 46px; height: 46px; border-radius: 50%; background: var(--paper); border: 2.5px solid var(--ink);
  display: grid; place-items: center; font-weight: 740; font-size: 1.0625rem; margin-bottom: 20px; font-variant-numeric: tabular-nums;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--slate); margin: 0; }
.anim .steps:not(.in-view) { --steps-p: 0%; }
.anim .steps.in-view::before { transition: background-size 1.6s var(--ease-out); }
.anim .steps .step__num { transition: border-color .4s ease, background-color .4s ease, color .4s ease; }
.steps.in-view .step__num { border-color: var(--fiber); }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before { left: 22px; right: auto; top: 22px; bottom: 22px; width: 3px; height: auto;
    background: linear-gradient(var(--fiber-2), var(--fiber-2)) 0 0 / 100% var(--steps-p, 100%) no-repeat, var(--rule); }
  .step { display: grid; grid-template-columns: 46px 1fr; gap: 0 20px; padding-bottom: 28px; }
  .step__num { margin-bottom: 0; grid-row: span 2; }
}

/* ---------- Цены ---------- */
.tariffs { width: 100%; border-collapse: collapse; font-size: var(--t-base); }
.tariffs th, .tariffs td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.tariffs thead th { font-weight: 450; color: var(--slate); font-size: 0.9375rem; border-bottom: 2px solid var(--ink); vertical-align: bottom; }
.tariffs thead th b { display: block; color: var(--ink); font-weight: 700; font-size: 1.1875rem; letter-spacing: -0.01em; margin-bottom: 2px; }
.tariffs tbody th { font-weight: 520; color: var(--ink-2); width: 30%; }
.tariffs .price-cell { font-weight: 720; font-size: 1.25rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tariffs .price-cell small { display: block; font-weight: 450; font-size: 0.875rem; color: var(--slate); }
.tariffs .yes { color: var(--ok); font-weight: 600; }
.tariffs .no { color: var(--slate); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.table-scroll .tariffs { min-width: 680px; }
.tariff-cards { display: none; }
@media (max-width: 720px) {
  .tariffs-wrap { display: none; }
  .tariff-cards { display: grid; gap: 14px; }
  .tariff-card { background: var(--paper); border: 1px solid var(--rule); border-radius: 16px; padding: 20px; }
  .tariff-card__name { font-weight: 700; font-size: 1.125rem; }
  .tariff-card__name span { font-weight: 450; color: var(--slate); }
  .tariff-card__price { font-weight: 740; font-size: 1.5rem; letter-spacing: -0.02em; margin: 6px 0 12px; }
  .tariff-card__price small { font-size: 0.9375rem; font-weight: 450; color: var(--slate); letter-spacing: 0; }
  .tariff-card ul { list-style: none; display: grid; gap: 6px; }
  .tariff-card li { position: relative; padding-left: 22px; }
  .tariff-card li::before { content: ''; position: absolute; left: 2px; top: .55em; width: 10px; height: 6px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
  .tariff-card li.is-no { color: var(--slate); }
  .tariff-card li.is-no::before { width: 10px; height: 2px; border: 0; background: #9AA6AF; transform: none; top: .7em; }
}

.offer {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; align-items: center;
  margin-top: 32px; padding: 24px 28px; border-radius: 16px; background: var(--ink); color: #fff;
}
.offer__price { font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem); font-weight: 760; letter-spacing: -0.03em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.offer p { margin: 0; color: #C9D2D8; }
.offer p b { color: #fff; font-weight: 650; }
.offer .btn--primary { background: #fff; color: var(--ink); }
.offer .btn--primary:hover { background: var(--fiber-2); color: #fff; }
@media (max-width: 860px) { .offer { grid-template-columns: 1fr; } }

.price-list { list-style: none; }
.price-group + .price-group { margin-top: 36px; }
.split > .price-group + .price-group { margin-top: 0; }
.price-group h3 { margin-bottom: 10px; }
.price-line { display: flex; align-items: baseline; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--mist-2); }
.price-line__name { color: var(--ink-2); }
.price-line__dots { flex: 1; min-width: 24px; border-bottom: 2px dotted #BCC5CB; transform: translateY(-4px); }
.price-line__val { font-weight: 680; white-space: nowrap; font-variant-numeric: tabular-nums; }
.price-line__val--incl { color: var(--ok); font-weight: 600; }
.price-note { margin-top: 18px; color: var(--slate); font-size: 0.9375rem; max-width: 70ch; }

.kits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule); }
.kit { padding: 22px 22px 24px; }
.kit + .kit { border-left: 1px solid var(--rule); }
.kit__name { font-weight: 700; font-size: 1.125rem; margin-bottom: 4px; }
.kit__what { color: var(--slate); margin-bottom: 14px; }
.kit__price { font-weight: 740; font-size: 1.5rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .kits { grid-template-columns: 1fr; } .kit + .kit { border-left: 0; border-top: 1px solid var(--rule); } }

/* ---------- Что делаем (определения) ---------- */
.defs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 64px); }
.def { padding: 22px 0; border-top: 1px solid var(--rule); }
.def h3 { margin-bottom: 6px; }
.def p { color: var(--slate); margin: 0; }
.def--wide { grid-column: 1 / -1; }
@media (max-width: 760px) { .defs { grid-template-columns: 1fr; } }

/* ---------- Сравнение ---------- */
.compare { width: 100%; border-collapse: collapse; }
.compare th, .compare td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--rule); vertical-align: top; }
.compare thead th { border-bottom: 2px solid var(--ink); font-weight: 700; }
.compare td:first-child { color: var(--slate); }
.compare td:last-child { color: var(--ink); font-weight: 520; }
.compare thead th:last-child { color: var(--fiber); }
@media (max-width: 640px) {
  .compare, .compare tbody, .compare tr, .compare td { display: block; width: 100%; }
  .compare thead { display: none; }
  .compare tr { padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .compare td { border: 0; padding: 4px 0; }
  .compare td::before { content: attr(data-label); display: block; font-size: 0.8125rem; color: var(--slate); font-weight: 600; }
  .compare td:first-child { color: var(--ink-2); }
}

.team { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--rule); }
.team__badge { width: 88px; height: 88px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 760; font-size: 1.75rem; letter-spacing: -0.02em; }
.team p { max-width: 64ch; color: var(--ink-2); }
@media (max-width: 560px) { .team { grid-template-columns: 1fr; gap: 18px; } .team__badge { width: 64px; height: 64px; font-size: 1.25rem; } }

/* ---------- Вопросы ---------- */
.faq { border-top: 1px solid var(--rule); max-width: 880px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center;
  padding: 22px 0; font-weight: 640; font-size: var(--t-h3); line-height: 1.35; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--rule);
  background:
    linear-gradient(var(--ink), var(--ink)) center / 12px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 12px no-repeat;
  transition: transform .3s var(--ease-out), background-color .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--fiber); }
.faq .faq__body { padding: 0 0 24px; max-width: 72ch; color: var(--ink-2); }
.faq .faq__body p { margin-bottom: .8em; }
.faq-more { margin-top: 28px; }

.faq-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.faq-nav a { padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--rule); text-decoration: none; font-weight: 560; font-size: 0.9375rem; }
.faq-nav a:hover { border-color: var(--ink); }
.faq-group + .faq-group { margin-top: clamp(48px, 6vw, 80px); }
.faq-group > h2 { margin-bottom: 20px; }

/* ---------- Заявка ---------- */
.request { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .request { grid-template-columns: 1fr; } }
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; font-size: 0.9375rem; margin-bottom: 8px; }
.field label span { font-weight: 450; color: var(--slate); }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--paper);
  border: 1.5px solid #C3CCD2; border-radius: 12px; padding: 14px 16px; min-height: 54px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: #8A949D; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--fiber); box-shadow: 0 0 0 4px rgba(18, 166, 172, .18); }
.field input[aria-invalid="true"] { border-color: var(--fault); }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 0.9375rem; color: var(--ink-2); line-height: 1.5; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--fiber); cursor: pointer; }
.consent a { color: var(--fiber); }
.form__small { font-size: 0.875rem; color: var(--slate); margin: 0; }
.form__small a { color: var(--fiber); }
.form__status { display: none; border-radius: 12px; padding: 14px 16px; font-weight: 560; }
.form__status.is-ok { display: block; background: #E5F5EC; color: #11663A; }
.form__status.is-err { display: block; background: #FBE9EA; color: #9B2228; }
.form .btn { width: 100%; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.contact-card { border: 1px solid var(--rule); border-radius: 18px; padding: 26px 26px 24px; background: var(--paper); }
.contact-card__phone { display: inline-block; font-size: clamp(1.5rem, 1.3rem + 1vw, 2rem); font-weight: 760; letter-spacing: -0.02em; text-decoration: none; font-variant-numeric: tabular-nums; margin: 4px 0 2px; }
.contact-card__phone:hover { color: var(--fiber); }
.contact-card dl { margin: 18px 0 0; display: grid; gap: 14px; }
.contact-card dt { font-size: 0.875rem; color: var(--slate); }
.contact-card dd { margin: 2px 0 0; font-weight: 520; }
.contact-card a { color: inherit; }

/* ---------- Документы ---------- */
.doc { max-width: 76ch; }
.doc h1 { font-size: clamp(1.875rem, 1.5rem + 1.6vw, 2.75rem); margin-bottom: 12px; }
.doc .doc__meta { color: var(--slate); margin-bottom: 36px; }
.doc h2 { font-size: clamp(1.25rem, 1.15rem + .5vw, 1.5rem); margin: 40px 0 12px; }
.doc p, .doc li { color: var(--ink-2); }
.doc ul, .doc ol { padding-left: 1.3em; margin: 0 0 1em; }
.doc li { margin-bottom: .4em; }
.doc table { border-collapse: collapse; width: 100%; margin: 8px 0 20px; font-size: 0.9375rem; }
.doc th, .doc td { border: 1px solid var(--rule); padding: 10px 12px; text-align: left; vertical-align: top; }
.doc th { background: var(--mist); font-weight: 600; }
.doc td { overflow-wrap: anywhere; }
@media (max-width: 680px) {
  .doc table, .doc tbody, .doc tr, .doc td { display: block; width: 100%; }
  .doc thead { display: none; }
  .doc tr { border: 1px solid var(--rule); border-radius: 12px; padding: 6px 14px; margin-bottom: 12px; }
  .doc td { border: 0; padding: 8px 0; border-bottom: 1px solid var(--mist-2); }
  .doc td:last-child { border-bottom: 0; }
  .doc td::before { content: attr(data-label); display: block; font-size: 0.8125rem; font-weight: 650; color: var(--slate); margin-bottom: 2px; }
}
.doc .doc__box { background: var(--mist); border-radius: 12px; padding: 18px 20px; margin: 20px 0; }

/* ---------- Подвал ---------- */
.site-footer { background: var(--ink); color: #C9D2D8; padding: 64px 0 40px; font-size: 0.9375rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--fiber-2); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-title { color: #fff; font-weight: 650; margin-bottom: 12px; }
.site-footer ul { list-style: none; display: grid; gap: 9px; }
.footer-phone { font-size: 1.375rem; font-weight: 740; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.footer-legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid #2E363E; display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; color: #9AA6AF; font-size: 0.875rem; }
.footer-legal a { color: #C9D2D8; text-decoration: underline; text-underline-offset: 3px; }
.footer-legal button { background: none; border: 0; padding: 0; font: inherit; color: #C9D2D8; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.footer-legal__links { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.site-footer .logo { color: #fff; margin-bottom: 14px; }
.site-footer .logo__mark rect:first-child { fill: #262D34; stroke: #3A434C; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Кнопки внизу экрана на телефоне ---------- */
.dock { display: none; }
@media (max-width: 760px) {
  .dock {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .97); border-top: 1px solid var(--rule);
    transform: translateY(110%); transition: transform .35s var(--ease-out);
  }
  .dock.is-shown { transform: none; }
  .dock .btn { min-height: 48px; padding: 10px 12px; font-size: 1rem; }
  .site-footer { padding-bottom: calc(40px + 76px + env(safe-area-inset-bottom)); }
  .has-cookie .dock { transform: translateY(110%) !important; }
}

/* ---------- Окно о файлах cookie ---------- */
.cookie {
  position: fixed; z-index: 60; right: 16px; bottom: 16px; width: min(440px, calc(100% - 32px));
  background: var(--paper); border: 1px solid var(--rule); border-radius: 18px;
  box-shadow: 0 24px 60px -20px rgba(20, 24, 28, .4);
  padding: 20px 20px 18px; font-size: 0.9375rem;
}
.cookie[hidden] { display: none; }
.cookie__title { font-weight: 700; margin-bottom: 6px; }
.cookie p { color: var(--ink-2); margin-bottom: 14px; line-height: 1.5; }
.cookie__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cookie .btn { min-height: 46px; padding: 10px 12px; font-size: 0.9688rem; }
.cookie__short { display: none; }
@media (max-width: 760px) {
  .cookie { left: 0; right: 0; bottom: 0; width: 100%; border-radius: 18px 18px 0 0; border-width: 1px 0 0; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); font-size: 0.9063rem; }
  .cookie__title { display: none; }
  .cookie__long { display: none; }
  .cookie__short { display: inline; }
  .cookie p { margin-bottom: 12px; }
}

/* ---------- Иллюстрации страниц услуг ---------- */
.illus { width: 100%; height: auto; overflow: visible; }
.illus text { font-family: var(--font); }
.i-line { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.i-thin { fill: none; stroke: #9AA6AF; stroke-width: 1.5; }
.i-fill { fill: var(--paper); stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.i-mist { fill: var(--mist); }
.i-label { font-size: 15px; font-weight: 560; fill: var(--slate); }
.i-label--ink { fill: var(--ink); font-weight: 650; }

.anim [data-illus] .draw { stroke-dasharray: var(--len, 600); stroke-dashoffset: var(--len, 600); }
.anim [data-illus] .appear { opacity: 0; }
.anim [data-illus] .rise-in { opacity: 0; transform: translateY(14px); }
.anim [data-illus].is-playing .draw { animation: draw var(--dur, 1.2s) var(--ease-out) var(--delay, 0s) forwards; }
.anim [data-illus].is-playing .appear { animation: fade-in var(--dur, .6s) ease var(--delay, 0s) forwards; }
.anim [data-illus].is-playing .rise-in { animation: card-in var(--dur, .7s) var(--ease-out) var(--delay, 0s) forwards; }

.c-title { font-size: 19px; font-weight: 680; fill: var(--ink); letter-spacing: -0.01em; }
.c-sub { font-size: 15px; fill: var(--slate); }
@media (max-width: 640px) { .c-sub { display: none; } .c-title { font-size: 22px; } }

.port-leds circle { fill: var(--ok); }
.anim [data-illus] .port-leds circle { fill: #56606A; }
.anim [data-illus].is-playing .port-leds circle { animation: led-fill .3s ease var(--delay, 1s) forwards, blink 1.8s steps(2, jump-none) calc(var(--delay, 1s) + 1.2s) infinite; }
@keyframes led-fill { to { fill: var(--ok); } }

.cone-v, .cone-m { opacity: 1; }
.anim [data-illus] .cone-v, .anim [data-illus] .cone-m { opacity: 0; }
.anim [data-illus].is-playing .cone-v, .anim [data-illus].is-playing .cone-m { animation: fade-in 1s ease var(--delay, 1s) forwards; }

.paste-old, .dust, .ssd-ring { opacity: 0; }
.anim [data-illus] .paste-old, .anim [data-illus] .dust { opacity: 1; }
.anim [data-illus] .paste-new { opacity: 0; }
.anim [data-illus].is-playing .dust { animation: fade-out .9s ease 1.4s forwards; }
.anim [data-illus].is-playing .paste-old { animation: fade-out .6s ease 2.3s forwards; }
.anim [data-illus].is-playing .paste-new { animation: fade-in .6s ease 2.3s forwards; }
.anim [data-illus].is-playing .ssd-ring { animation: issue 1.2s ease-out 3.2s 2 forwards; }
.t-marker { transform: translateX(500px); }
.anim [data-illus] .t-marker { transform: translateX(612px); }
.anim [data-illus].is-playing .t-marker { animation: t-cool 1.6s var(--ease-cine) 2.6s forwards; }
@keyframes t-cool { to { transform: translateX(500px); } }
.t-hot { opacity: 0; }
.anim [data-illus] .t-hot { opacity: 1; }
.anim [data-illus] .t-ok { opacity: 0; }
.anim [data-illus].is-playing .t-hot { animation: fade-out .3s ease 3.4s forwards; }
.anim [data-illus].is-playing .t-ok { animation: fade-in .4s ease 3.6s forwards; }
.todo-box { fill: var(--ok); stroke: var(--ok); stroke-width: 2; }
.todo-tick { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 20; stroke-dashoffset: 0; }
.anim [data-illus] .todo-box { fill: #fff; stroke: #C3CCD2; }
.anim [data-illus] .todo-tick { stroke-dashoffset: 20; }
.anim [data-illus].is-playing .todo-box { animation: todo-on .3s ease var(--delay, 1s) forwards; }
.anim [data-illus].is-playing .todo-tick { animation: draw .35s ease calc(var(--delay, 1s) + .15s) forwards; }
@keyframes todo-on { to { fill: var(--ok); stroke: var(--ok); } }
.flow-doc { opacity: 0; }
.anim [data-illus].is-playing .flow-doc { animation: fade-in .3s ease 1.8s forwards; }
.fan { animation-duration: 1.6s; }
.blink { animation: blink 1.6s steps(2, jump-none) infinite; animation-delay: var(--blink-delay, 0s); }
@keyframes blink { 50% { opacity: .25; } }
.spin { transform-box: fill-box; transform-origin: center; animation: spin 1.1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.anim .dolly { transform-box: view-box; transform-origin: 50% 55%; animation: dolly 14s ease-in-out 1s infinite alternate; }
@keyframes dolly { from { transform: scale(1); } to { transform: scale(1.045); } }

/* ---------- Без анимации, если человек отключил её в системе ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
