/* QARU — публичный лендинг (B2B SaaS для ПЦХ). Без фреймворков. */

:root {
  --blue: #0a63f0;
  --blue-2: #3d8bff;
  --blue-3: #8fb8ff;
  --blue-soft: #eaf1ff;
  --navy: #071330;
  --navy-2: #0b1a3f;
  --navy-3: #12245a;
  --ink: #0a1430;
  --ink-2: #4a556d;
  --ink-3: #8089a0;
  --line: #e5e9f1;
  --line-d: rgba(255, 255, 255, .1);
  --bg: #ffffff;
  --bg-tint: #f5f7fb;
  --ok: #12a46a;
  --ok-soft: #e6f7ef;
  --warn: #d98200;
  --warn-soft: #fff4de;
  --bad: #e5484d;
  --bad-soft: #fdecec;
  --r-sm: 12px;
  --r: 16px;
  --r-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(10, 20, 48, .05);
  --shadow: 0 1px 2px rgba(10, 20, 48, .05), 0 10px 30px -12px rgba(10, 20, 48, .14);
  --shadow-lg: 0 40px 90px -30px rgba(2, 8, 28, .6);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --head: "Manrope", "Inter", system-ui, sans-serif;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.6 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--head); margin: 0; letter-spacing: -.025em; line-height: 1.12; }
p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 15px/1 var(--font); padding: 13px 20px; border-radius: var(--r-sm);
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s, border-color .2s;
}
.btn .i { width: 18px; height: 18px; stroke-width: 2.2; transition: transform .2s var(--ease); }
.btn:hover .i { transform: translateX(2px); }
.btn:active { transform: translateY(1px); }
.btn--sm { padding: 10px 16px; font-size: 14px; border-radius: 10px; }
.btn--lg { padding: 16px 24px; font-size: 16px; border-radius: 14px; }
.btn--block { width: 100%; }
.btn--primary { background: linear-gradient(180deg, #2a7bff, var(--blue)); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 8px 22px -8px rgba(10, 99, 240, .65); }
.btn--primary:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 12px 28px -8px rgba(10, 99, 240, .75); transform: translateY(-1px); }
.btn--ghost { color: #fff; background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .18); }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); }
.btn--outline { color: var(--ink); background: #fff; border-color: var(--line); }
.btn--outline:hover { border-color: var(--blue); color: var(--blue); }
.btn--white { background: #fff; color: var(--navy); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .4); }
.btn--white:hover { transform: translateY(-1px); }
:focus-visible { outline: 3px solid rgba(61, 139, 255, .55); outline-offset: 2px; }

/* ---------- Шапка ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; border-bottom: 1px solid transparent; transition: background .3s, border-color .3s; }
.nav.is-scrolled, .nav.is-open { background: rgba(7, 19, 48, .84); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-color: rgba(255, 255, 255, .08); }
.nav__inner { height: 72px; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; white-space: nowrap; flex: none; }
.brand__name { font: 800 21px/1 var(--head); letter-spacing: .02em; }
.brand__tag { font-size: 12px; font-weight: 500; color: rgba(225, 233, 255, .6); padding: 4px 8px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 6px; }
.nav__links { display: flex; gap: 26px; }
.nav__links a { color: rgba(255, 255, 255, .7); font-size: 14.5px; font-weight: 500; transition: color .2s; }
.nav__links a:hover { color: #fff; }
.nav__login-m { display: none; }
.nav__actions { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.link-quiet { color: rgba(255, 255, 255, .8); font-size: 14.5px; font-weight: 500; }
.link-quiet:hover { color: #fff; }
.nav__burger { display: none; width: 40px; height: 40px; border: 0; background: rgba(255, 255, 255, .08); border-radius: 10px; cursor: pointer; padding: 0; }
.nav__burger span { display: block; width: 18px; height: 2px; background: #fff; margin: 5px auto; border-radius: 2px; transition: transform .25s var(--ease); }
.nav.is-open .nav__burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav.is-open .nav__burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; background: var(--navy); color: #fff; padding: 150px 0 120px; }
.hero__bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(110% 80% at 85% 0%, #123a86 0%, rgba(7, 19, 48, 0) 60%), radial-gradient(60% 50% at 0% 100%, #0e2a66 0%, rgba(7, 19, 48, 0) 70%); }
.hero__glow { position: absolute; width: 640px; height: 640px; right: -120px; top: -200px; background: radial-gradient(circle, rgba(61, 139, 255, .4), transparent 65%); filter: blur(10px); animation: drift 16s ease-in-out infinite alternate; }
.hero__grid { position: absolute; inset: 0; opacity: .55; background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px); background-size: 60px 60px; mask-image: radial-gradient(70% 60% at 55% 30%, #000 25%, transparent 75%); -webkit-mask-image: radial-gradient(70% 60% at 55% 30%, #000 25%, transparent 75%); }
@keyframes drift { to { transform: translate(-70px, 60px) scale(1.08); } }
.hero__inner { display: grid; grid-template-columns: .95fr 1.05fr; gap: 64px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 500; color: #c9d8ff; padding: 7px 14px 7px 12px; border-radius: 999px; background: rgba(61, 139, 255, .1); border: 1px solid rgba(61, 139, 255, .28); }
.pill__dot { width: 7px; height: 7px; border-radius: 50%; background: #46e3a0; box-shadow: 0 0 0 4px rgba(70, 227, 160, .18); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(70, 227, 160, 0); } }
.hero h1 { font-size: clamp(38px, 4.6vw, 62px); font-weight: 800; margin: 24px 0 22px; letter-spacing: -.035em; line-height: 1.04; }
.grad { background: linear-gradient(92deg, #8fb8ff 0%, #3d8bff 50%, #a9c8ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad--dark { background-image: linear-gradient(92deg, #0a63f0, #3d8bff); }
.hero__lead { font-size: 18px; line-height: 1.65; color: rgba(225, 233, 255, .75); max-width: 540px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__trust { display: inline-flex; align-items: center; gap: 8px; margin-top: 30px; font-size: 14px; color: rgba(225, 233, 255, .6); }
.hero__trust .i { width: 18px; height: 18px; color: #46e3a0; }

/* Dashboard */
.hero__visual { position: relative; }
.dash { background: #fff; color: var(--ink); border-radius: var(--r-lg); box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, .08); overflow: hidden; font-size: 12px; animation: float 8s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }
.dash__top { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #fafbfd; }
.dash__dots { display: flex; gap: 6px; }
.dash__dots i { width: 10px; height: 10px; border-radius: 50%; background: #dfe3ea; }
.dash__title { font-weight: 600; font-size: 12.5px; }
.dash__live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--ok); font-weight: 600; }
.dash__live i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); animation: pulse 2s infinite; box-shadow: 0 0 0 3px rgba(18, 164, 106, .2); }
.dash__body { display: grid; grid-template-columns: 54px 1fr; }
.dash__side { background: var(--navy); display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 0; }
.dash__side img { margin-bottom: 8px; }
.dash__side span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; color: rgba(255, 255, 255, .45); }
.dash__side span.on { background: rgba(61, 139, 255, .2); color: #fff; }
.dash__side .i { width: 17px; height: 17px; }
.dash__main { padding: 16px; background: var(--bg-tint); }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; min-width: 0; }
.tile--wide { grid-column: span 2; }
.tile small { display: block; font-size: 11px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile strong { display: block; font: 800 21px/1.3 var(--head); font-variant-numeric: tabular-nums; letter-spacing: -.02em; white-space: nowrap; }
.tile em { font-style: normal; font-size: 11px; color: var(--ink-3); }
.tile em.up { color: var(--ok); }
.warn { color: var(--warn) !important; }
.bad { color: var(--bad) !important; }
.muted { color: var(--ink-3); font-size: .7em; font-weight: 600; }
.bars { display: flex; align-items: flex-end; gap: 5px; height: 46px; margin-top: 8px; }
.bars i { flex: 1; height: var(--h); background: #dbe7ff; border-radius: 4px 4px 2px 2px; transform-origin: bottom; }
.bars i.on { background: linear-gradient(180deg, var(--blue-2), var(--blue)); }
.is-in .bars i { animation: grow 1s var(--ease) both; }
.bars i:nth-child(2) { animation-delay: .05s; } .bars i:nth-child(3) { animation-delay: .1s; } .bars i:nth-child(4) { animation-delay: .15s; } .bars i:nth-child(5) { animation-delay: .2s; } .bars i:nth-child(6) { animation-delay: .25s; } .bars i:nth-child(7) { animation-delay: .3s; } .bars i:nth-child(8) { animation-delay: .35s; } .bars i:nth-child(9) { animation-delay: .4s; } .bars i:nth-child(10) { animation-delay: .45s; }
@keyframes grow { from { transform: scaleY(0); } }
.meter { height: 7px; border-radius: 99px; background: var(--blue-soft); margin-top: 10px; overflow: hidden; }
.meter i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--blue-2), var(--blue)); }
.is-in .meter i { animation: fillw 1.4s .3s var(--ease) both; }
@keyframes fillw { from { width: 0; } }

.float { position: absolute; display: flex; align-items: center; gap: 12px; background: #fff; color: var(--ink); border-radius: 14px; padding: 11px 16px 11px 11px; box-shadow: 0 20px 44px -14px rgba(2, 8, 28, .5), 0 0 0 1px rgba(10, 20, 48, .05); white-space: nowrap; }
.float b { display: block; font-size: 13.5px; font-family: var(--head); }
.float small { display: block; font-size: 12px; color: var(--ink-2); }
.float__ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; }
.float__ic .i { width: 18px; height: 18px; }
.float__ic--warn { background: var(--warn-soft); color: var(--warn); }
.float__ic--bad { background: var(--bad-soft); color: var(--bad); }
.float__ic--ok { background: var(--ok-soft); color: var(--ok); }
.float--1 { left: -40px; bottom: -30px; animation: float 7s 1s ease-in-out infinite; }
.float--2 { right: -26px; top: -22px; animation: float 9s .5s ease-in-out infinite; }
.float--3 { right: 36px; bottom: -34px; animation: float 8s 2s ease-in-out infinite; }

/* ---------- Секции ---------- */
.section { padding: 120px 0; }
.section--tint { background: var(--bg-tint); }
.section--dark { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.head { max-width: 760px; margin: 0 auto 60px; text-align: center; }
.head h2, .split h2, .qr h2 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 800; text-wrap: balance; }
h1 .grad { white-space: nowrap; }
.head p:not(.kicker) { margin-top: 16px; color: var(--ink-2); font-size: 18px; }
.head--light p:not(.kicker) { color: rgba(225, 233, 255, .7); }
.kicker { display: inline-block; font: 700 12.5px/1 var(--font); color: var(--blue); text-transform: uppercase; letter-spacing: .14em; margin-bottom: 18px; }
.kicker--light { color: var(--blue-3); }
.promo .head { margin-bottom: 40px; }
.promo__frame { max-width: 1000px; margin: 0 auto; border-radius: var(--r-lg); overflow: hidden; background: var(--navy); box-shadow: var(--shadow-lg), 0 0 0 1px rgba(10, 20, 48, .06); }
.promo__video { display: block; width: 100%; aspect-ratio: 16 / 9; background: var(--navy); }
.lead { font-size: 18px; color: var(--ink-2); margin-top: 18px; line-height: 1.65; }
.section--dark .lead { color: rgba(225, 233, 255, .72); }

.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: center; }
.split--rev .split__copy { order: 2; }

.checks { display: grid; gap: 12px; margin-top: 28px; }
.checks li { position: relative; padding-left: 32px; font-size: 16px; color: var(--ink); font-weight: 500; }
.checks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a63f0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center/12px no-repeat; }

.av { flex: none; width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; font: 700 10px/1 var(--font); font-style: normal; color: #fff; background: #5b7cfa; }
.av--2 { background: #f59e0b; } .av--3 { background: #14b8a6; } .av--4 { background: #a855f7; }

/* ---------- Проблема ---------- */
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pcard { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 28px; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pcard__ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--bad-soft); color: var(--bad); margin-bottom: 20px; }
.pcard h3, .fcard h3, .scard h3 { font-size: 18.5px; font-weight: 700; margin-bottom: 8px; }
.pcard p, .fcard p, .scard p { color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.bridge { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 48px; font: 700 clamp(19px, 2vw, 24px)/1.3 var(--head); text-align: center; }

/* ---------- QR ---------- */
.qr { background: radial-gradient(80% 90% at 100% 50%, #102f72 0%, var(--navy) 65%); }
.qr__inner { display: grid; grid-template-columns: 1fr 1.05fr; gap: 72px; align-items: center; }
.qsteps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 36px; counter-reset: q; }
.qsteps li { position: relative; display: grid; gap: 10px; font-size: 13.5px; font-weight: 600; color: rgba(225, 233, 255, .5); padding: 14px; border-radius: var(--r-sm); border: 1px solid var(--line-d); background: rgba(255, 255, 255, .03); transition: color .4s, background .4s, border-color .4s; }
.qsteps li span { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); transition: background .4s, color .4s; }
.qsteps li .i { width: 18px; height: 18px; }
.qsteps li.is-active { color: #fff; border-color: rgba(61, 139, 255, .6); background: rgba(61, 139, 255, .12); }
.qsteps li.is-active span { background: var(--blue); color: #fff; }
.qsteps li.is-done { color: rgba(225, 233, 255, .85); }
.qsteps li.is-done span { background: rgba(70, 227, 160, .16); color: #46e3a0; }
.qr__punch { margin-top: 30px; font: 700 18px/1.4 var(--head); color: #fff; padding-left: 16px; border-left: 3px solid var(--blue-2); }

.qr__demo { display: grid; grid-template-columns: 220px 1fr; gap: 18px; align-items: center; }
.scanner { background: rgba(255, 255, 255, .04); border: 1px solid var(--line-d); border-radius: var(--r-lg); padding: 20px; }
.scanner__frame { position: relative; aspect-ratio: 1; border-radius: 14px; background: #fff; padding: 28px; overflow: hidden; }
.qrcode { width: 100%; height: 100%; fill: #071330; }
.c { position: absolute; width: 18px; height: 18px; border: 3px solid var(--blue-2); }
.c1 { top: 6px; left: 6px; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.c2 { top: 6px; right: 6px; border-left: 0; border-bottom: 0; border-radius: 0 6px 0 0; }
.c3 { bottom: 6px; left: 6px; border-right: 0; border-top: 0; border-radius: 0 0 0 6px; }
.c4 { bottom: 6px; right: 6px; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }
.scanner__line { position: absolute; left: 10px; right: 10px; top: 12%; height: 3px; border-radius: 3px; background: var(--blue-2); box-shadow: 0 0 18px 4px rgba(61, 139, 255, .6); opacity: 0; }
.qr__demo[data-st="0"] .scanner__line { opacity: 1; animation: scan 1.6s ease-in-out infinite alternate; }
@keyframes scan { to { top: 86%; } }
.qr__demo[data-st="3"] .scanner__frame { box-shadow: 0 0 0 3px rgba(70, 227, 160, .7); }
.scanner__cap { position: relative; height: 36px; margin-top: 14px; font-size: 12.5px; text-align: center; color: rgba(225, 233, 255, .75); }
.scanner__cap span { position: absolute; inset: 0; opacity: 0; transition: opacity .35s; }
.qr__demo[data-st="0"] [data-cap="0"], .qr__demo[data-st="1"] [data-cap="1"], .qr__demo[data-st="2"] [data-cap="2"], .qr__demo[data-st="3"] [data-cap="3"] { opacity: 1; }

.form-card { background: #fff; color: var(--ink); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-lg); }
.form-card__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.form-card__head b { font: 700 16px var(--head); }
.badge-auto { display: inline-flex; align-items: center; gap: 6px; font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--blue); background: var(--blue-soft); padding: 5px 10px; border-radius: 99px; opacity: 0; transform: scale(.9); transition: opacity .4s, transform .4s var(--ease); }
.badge-auto .i { width: 13px; height: 13px; }
.qr__demo:not([data-st="0"]) .badge-auto { opacity: 1; transform: none; }
.kv > div { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.kv dt { font-size: 12.5px; color: var(--ink-3); }
.kv dd { position: relative; min-height: 32px; display: flex; align-items: center; }
.kv .empty, .kv .val { font-size: 14px; padding: 6px 10px; border-radius: 8px; transition: opacity .35s, transform .35s var(--ease), background .6s; }
.kv .empty { color: var(--ink-3); background: var(--bg-tint); width: 100%; }
.kv .val { position: absolute; inset: 0; display: flex; align-items: center; font-weight: 600; background: var(--ok-soft); opacity: 0; transform: translateX(-6px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qr__demo:not([data-st="0"]) .kv .val { opacity: 1; transform: none; }
.qr__demo:not([data-st="0"]) .kv .empty { opacity: 0; }
.qr__demo[data-st="2"] .kv .val, .qr__demo[data-st="3"] .kv .val { background: var(--bg-tint); }
.kv > div:nth-child(2) .val { transition-delay: .1s; } .kv > div:nth-child(3) .val { transition-delay: .2s; } .kv > div:nth-child(4) .val { transition-delay: .3s; } .kv > div:nth-child(5) .val { transition-delay: .4s; }
.form-card__btn { position: relative; margin-top: 16px; height: 44px; border-radius: 11px; background: var(--blue); color: #fff; font-weight: 600; font-size: 14px; overflow: hidden; transition: background .4s; }
.form-card__btn span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; transition: opacity .3s, transform .3s var(--ease); }
.form-card__btn .b2 { opacity: 0; transform: translateY(10px); }
.form-card__btn .i { width: 17px; height: 17px; stroke-width: 2.5; }
.qr__demo[data-st="3"] .form-card__btn { background: var(--ok); }
.qr__demo[data-st="3"] .form-card__btn .b1 { opacity: 0; transform: translateY(-10px); }
.qr__demo[data-st="3"] .form-card__btn .b2 { opacity: 1; transform: none; }

/* ---------- WhatsApp ---------- */
.wa { display: grid; grid-template-columns: 220px 1fr; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; min-height: 420px; font-size: 13px; }
.wa__list { border-right: 1px solid var(--line); background: #fafbfd; padding: 12px; display: grid; align-content: start; gap: 4px; }
.wa__search { font-size: 12.5px; color: var(--ink-3); background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; margin-bottom: 6px; }
.wa__item { display: flex; align-items: center; gap: 10px; padding: 9px 8px; border-radius: 10px; min-width: 0; }
.wa__item > div { min-width: 0; flex: 1; }
.wa__item b { display: block; font-size: 13px; }
.wa__item small { display: block; font-size: 11.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa__item.is-on { background: var(--blue-soft); }
.wa__dot { flex: none; min-width: 18px; height: 18px; border-radius: 9px; background: #25d366; color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; }
.wa__chat { display: flex; flex-direction: column; min-width: 0; }
.wa__head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.wa__head b { display: block; font-size: 13.5px; }
.wa__head small { display: block; font-size: 11.5px; color: var(--blue); }
.wa__msgs { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 18px 16px; background: #f3f5f9 radial-gradient(rgba(10, 20, 48, .05) 1px, transparent 1px) 0 0/16px 16px; }
.msg { max-width: 80%; padding: 9px 12px 7px; border-radius: 12px; line-height: 1.45; box-shadow: var(--shadow-sm); }
.msg small { display: block; text-align: right; font-size: 10.5px; color: var(--ink-3); margin-top: 3px; }
.msg--in { align-self: flex-start; background: #fff; border-top-left-radius: 4px; }
.msg--out { align-self: flex-end; background: #dcf8e6; border-top-right-radius: 4px; }
.msg--auto em { display: block; font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--ok); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 3px; }
.js .wa .msg { opacity: 0; transform: translateY(8px) scale(.98); }
.wa .msg.is-shown { opacity: 1; transform: none; transition: opacity .4s var(--ease), transform .4s var(--ease); }
.wa__input { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-top: 1px solid var(--line); }
.wa__tpl { font-size: 12px; font-weight: 600; color: var(--blue); background: var(--blue-soft); padding: 6px 10px; border-radius: 8px; }
.wa__field { flex: 1; color: var(--ink-3); font-size: 12.5px; }
.wa__send { width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; }
.wa__send .i { width: 16px; height: 16px; }

/* ---------- Уведомления: timeline ---------- */
.tl { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tl::before, .tl::after { content: ""; position: absolute; top: 27px; left: 12.5%; right: 12.5%; height: 2px; background: var(--line); }
.tl::after { background: linear-gradient(90deg, var(--blue), var(--warn) 75%, var(--bad)); transform-origin: left; transform: scaleX(0); transition: transform 2s .3s var(--ease); }
.tl.is-in::after { transform: scaleX(1); }
.tl li { position: relative; z-index: 1; text-align: center; display: grid; justify-items: center; align-content: start; gap: 4px; }
.tl__dot { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--line); color: var(--ink-3); margin-bottom: 14px; transition: background .4s, border-color .4s, color .4s, transform .4s var(--ease); }
.tl.is-in li .tl__dot { border-color: var(--blue); color: var(--blue); background: var(--blue-soft); }
.tl.is-in li.tl__end .tl__dot { border-color: var(--bad); color: var(--bad); background: var(--bad-soft); }
.tl.is-in li:nth-child(1) .tl__dot { transition-delay: .3s; } .tl.is-in li:nth-child(2) .tl__dot { transition-delay: .9s; } .tl.is-in li:nth-child(3) .tl__dot { transition-delay: 1.5s; } .tl.is-in li:nth-child(4) .tl__dot { transition-delay: 2.1s; }
.tl b { font: 700 17px/1.3 var(--head); }
.tl small { font-size: 14.5px; color: var(--ink-2); }
.effect { margin: 56px auto 0; max-width: 720px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px 16px; padding: 22px 28px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); font: 700 18px/1.4 var(--head); text-align: center; }
.effect span { font: 600 12px var(--font); text-transform: uppercase; letter-spacing: .1em; color: var(--ok); background: var(--ok-soft); padding: 6px 10px; border-radius: 8px; }

/* ---------- Оплаты ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.tags li { font-size: 14px; font-weight: 500; color: var(--ink-2); padding: 7px 13px; border-radius: 99px; background: var(--bg-tint); border: 1px solid var(--line); }
.note { margin-top: 24px; font-size: 14.5px; color: var(--ink-3); padding-left: 14px; border-left: 2px solid var(--line); }
.ptable { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; font-size: 14px; }
.ptable__head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.ptable__head b { font: 700 16px var(--head); }
.ptable__head span { font-size: 13px; color: var(--ink-3); }
.prow { display: grid; grid-template-columns: 1.5fr 1fr .7fr 1.2fr; align-items: center; gap: 10px; padding: 15px 20px; border-top: 1px solid var(--line); }
.prow > span { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.prow--h { border-top: 0; background: #fafbfd; font-size: 11.5px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; padding-block: 11px; }
.st { position: relative; display: inline-grid; font-style: normal; font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 99px; }
.st--ok { color: var(--ok); background: var(--ok-soft); }
.st--bad { color: var(--bad); background: var(--bad-soft); }
.st--flip { color: #b26b00; background: var(--warn-soft); transition: color .5s, background .5s; }
.st--flip b { grid-area: 1/1; font-weight: 600; transition: opacity .4s, transform .4s var(--ease); }
.st__b { opacity: 0; transform: translateY(6px); }
#payFlip { transition: background .8s; }
#payFlip.is-paid { background: #f4fbf7; }
#payFlip.is-paid .st--flip { color: var(--ok); background: var(--ok-soft); }
#payFlip.is-paid .st__a { opacity: 0; transform: translateY(-6px); }
#payFlip.is-paid .st__b { opacity: 1; transform: none; }

/* ---------- Возможности ---------- */
.grid5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.fcard { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.fcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d3ddef; }
.fcard__ic, .scard__ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); margin-bottom: 18px; transition: background .3s, color .3s; }
.fcard:hover .fcard__ic { background: var(--blue); color: #fff; }

/* ---------- Audit ---------- */
.audit { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 8px 22px 18px; }
.audit__head { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.audit__head b { font: 700 16px var(--head); }
.audit__head span { font-size: 12.5px; color: var(--ink-3); background: var(--bg-tint); padding: 4px 10px; border-radius: 99px; }
.alog li { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 14px; padding: 14px 0 14px; }
.alog li::before { content: ""; position: absolute; left: 66px; top: 22px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid var(--blue-2); z-index: 1; }
.alog li::after { content: ""; position: absolute; left: 71px; top: 32px; bottom: -22px; width: 2px; background: var(--line); }
.alog li:last-child::after { display: none; }
.alog time { font: 600 13.5px var(--font); color: var(--ink-3); font-variant-numeric: tabular-nums; padding-top: 1px; }
.alog li > div { padding-left: 26px; }
.alog b { font-size: 15px; font-weight: 600; }
.alog li.is-hl::before { background: var(--blue); box-shadow: 0 0 0 5px rgba(10, 99, 240, .15); }
.diff { display: inline-flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 13px; font-weight: 600; padding: 8px 12px; border-radius: 10px; background: var(--bg-tint); border: 1px solid var(--line); }
.diff .i { width: 15px; height: 15px; color: var(--ink-3); }
.diff__was { color: var(--bad); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.diff__now { color: var(--ok); }
.js .alog li { opacity: 0; transform: translateX(-10px); }
.is-in .alog li { opacity: 1; transform: none; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.is-in .alog li:nth-child(1) { transition-delay: .9s; } .is-in .alog li:nth-child(2) { transition-delay: .6s; } .is-in .alog li:nth-child(3) { transition-delay: .35s; } .is-in .alog li:nth-child(4) { transition-delay: .1s; }

/* ---------- Руководитель ---------- */
#owner { background: radial-gradient(90% 70% at 50% 0%, #11307a 0%, var(--navy) 65%); }
.owner { background: rgba(255, 255, 255, .03); border: 1px solid var(--line-d); border-radius: 24px; padding: 22px; box-shadow: var(--shadow-lg); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpi { background: #fff; color: var(--ink); border-radius: var(--r); padding: 20px 22px; }
.kpi small { display: block; font-size: 13px; color: var(--ink-3); }
.kpi strong { display: block; font: 800 clamp(22px, 2.3vw, 30px)/1.3 var(--head); letter-spacing: -.025em; font-variant-numeric: tabular-nums; white-space: nowrap; margin: 4px 0 2px; }
.kpi em { font-style: normal; font-size: 12.5px; color: var(--ink-3); }
.kpi em.up { color: var(--ok); font-weight: 600; }
.owner__row { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; margin-top: 14px; }
.chart, .minis { background: #fff; color: var(--ink); border-radius: var(--r); padding: 20px 22px; }
.chart__head { display: flex; justify-content: space-between; margin-bottom: 12px; }
.chart__head b { font: 700 15px var(--head); }
.chart__head span { font-size: 12.5px; color: var(--ink-3); }
.chart__svg { width: 100%; height: 180px; }
.chart__line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.is-in .chart__line { animation: draw 2s .3s var(--ease) forwards; }
.chart__area { opacity: 0; }
.is-in .chart__area { animation: fadein 1.2s 1s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: 1; } }
.minis { display: grid; align-content: start; }
.minis li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 14px; }
.minis li:first-child { border-top: 0; padding-top: 0; }
.minis span { color: var(--ink-2); }
.minis b { font: 700 16px var(--head); font-variant-numeric: tabular-nums; }

/* ---------- Филиалы ---------- */
.tree { background: var(--bg-tint); border: 1px solid var(--line); border-radius: 24px; padding: 40px 28px; }
.tree__root { display: flex; align-items: center; gap: 14px; width: max-content; margin: 0 auto; background: var(--navy); color: #fff; padding: 14px 22px 14px 14px; border-radius: var(--r); box-shadow: 0 20px 40px -18px rgba(7, 19, 48, .6); }
.tree__root b { display: block; font: 800 18px var(--head); letter-spacing: .02em; }
.tree__root small { display: block; font-size: 12.5px; color: rgba(225, 233, 255, .6); }
.tree__lines { width: 100%; height: 60px; }
.tree__lines path { fill: none; stroke: var(--blue-2); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; }
.is-in .tree__lines path { animation: draw 1.4s .4s var(--ease) forwards; }
.tree__leaves { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.leaf { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px 12px; text-align: center; display: grid; justify-items: center; gap: 4px; box-shadow: var(--shadow-sm); }
.leaf .i { color: var(--blue); width: 24px; height: 24px; margin-bottom: 6px; }
.leaf b { font: 700 16px var(--head); }
.leaf small { font-size: 12.5px; color: var(--ink-3); }

/* ---------- Безопасность ---------- */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.scard { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 28px; display: grid; grid-template-columns: 44px 1fr; column-gap: 18px; }
.scard__ic { grid-row: span 2; margin: 0; background: var(--navy); color: var(--blue-3); }
.scard h3 { margin-top: 2px; }

/* ---------- Как работает ---------- */
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: f; }
.flow li { position: relative; display: flex; align-items: center; gap: 16px; padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); font: 700 16.5px/1.35 var(--head); box-shadow: var(--shadow-sm); }
.flow li span { flex: none; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font: 800 13px var(--head); color: var(--blue); background: var(--blue-soft); }
.flow li:not(.flow__last)::after { content: ""; position: absolute; right: -13px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-top: 2px solid var(--blue-3); border-right: 2px solid var(--blue-3); transform: rotate(45deg); z-index: 1; }
.flow li:nth-child(3n)::after { display: none; }
.flow__last { background: var(--navy) !important; color: #fff; border-color: var(--navy) !important; }
.flow__last span { background: var(--blue) !important; color: #fff !important; }

/* ---------- Позиционирование ---------- */
.pos { text-align: center; max-width: 900px; margin: 0 auto 64px; }
.pos__a { font: 600 clamp(20px, 2.2vw, 26px)/1.4 var(--head); color: var(--ink-3); }
.pos__b { margin-top: 10px; font: 800 clamp(32px, 4.4vw, 58px)/1.08 var(--head); letter-spacing: -.035em; }
.vs { display: grid; grid-template-columns: 1fr 1.6fr; gap: 18px; max-width: 980px; margin: 0 auto; }
.vs__col { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; }
.vs__col h3 { display: flex; align-items: center; gap: 10px; font-size: 19px; margin-bottom: 20px; color: var(--ink-3); }
.vs__col ul { display: flex; flex-wrap: wrap; gap: 8px; }
.vs__col li { font-size: 14.5px; font-weight: 500; padding: 8px 14px; border-radius: 10px; background: var(--bg-tint); color: var(--ink-3); text-decoration: line-through; text-decoration-color: rgba(128, 137, 160, .5); }
.vs__col--qaru { background: var(--navy); border-color: var(--navy); box-shadow: 0 30px 60px -30px rgba(7, 19, 48, .7); }
.vs__col--qaru h3 { color: #fff; font-size: 22px; }
.vs__col--qaru li { background: rgba(61, 139, 255, .14); color: #fff; text-decoration: none; border: 1px solid rgba(61, 139, 255, .3); }

/* ---------- Тарифы ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; }
.plan h3 { font-size: 22px; }
.plan__for { color: var(--ink-3); font-size: 14.5px; margin: 6px 0 22px; }
.plan__price { margin: 0; color: var(--ink-3); font-size: 15px; }
.plan__price strong { font-family: var(--head); font-size: 34px; font-weight: 800; letter-spacing: -.025em; color: var(--ink); white-space: nowrap; }
.plan__year { margin: 6px 0 22px; color: var(--ink-3); font-size: 14px; }
.plan__setup { display: flex; justify-content: space-between; gap: 12px; margin: auto 0 24px; padding-top: 18px; border-top: 1px dashed var(--line); font-size: 14.5px; color: var(--ink-2); }
.plan__setup b { white-space: nowrap; color: var(--ink); }
.plans-all { margin-top: 18px; padding: 32px; background: var(--bg-tint); border-radius: var(--r-lg); }
.plans-all h3 { font-size: 20px; margin-bottom: 20px; }
.plans-all ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 24px; }
.plans-all__note { margin: 24px 0 0; padding-top: 20px; border-top: 1px dashed var(--line); font-size: 15px; color: var(--ink-2); }
.plans-all__note b { color: var(--ink); }
.plans-all li { position: relative; padding-left: 30px; font-size: 15px; color: var(--ink-2); }
.plans-all li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a63f0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center/11px no-repeat; }

/* ---------- Final CTA ---------- */
.final-wrap { padding-top: 40px; }
.final { position: relative; overflow: hidden; isolation: isolate; text-align: center; color: #fff; border-radius: 32px; padding: 88px 32px; background: radial-gradient(90% 120% at 50% 0%, #1546a8 0%, var(--navy) 60%); }
.final__glow { position: absolute; inset: 0; z-index: -1; background: radial-gradient(40% 50% at 15% 100%, rgba(61, 139, 255, .35), transparent 70%), radial-gradient(40% 50% at 85% 100%, rgba(61, 139, 255, .25), transparent 70%); }
.final h2 { font-size: clamp(30px, 4vw, 52px); font-weight: 800; max-width: 820px; margin: 0 auto; }
.final > p { margin: 20px auto 0; max-width: 640px; font-size: 18px; color: rgba(225, 233, 255, .75); }
.final__cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.final__phone { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; color: rgba(225, 233, 255, .7); font-weight: 600; }
.final__phone .i { width: 17px; height: 17px; }
.final__phone a:hover { color: #fff; }

/* ---------- Подвал ---------- */
.footer { background: var(--navy); color: rgba(225, 233, 255, .6); padding: 64px 0 28px; font-size: 14.5px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--line-d); }
.footer__brand p { margin-top: 14px; max-width: 320px; }
.footer__nav { display: grid; align-content: start; gap: 10px; }
.footer__nav b { color: #fff; font-weight: 600; margin-bottom: 4px; }
.footer__nav a:hover, .footer__legal a:hover { color: #fff; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; font-size: 13px; color: rgba(225, 233, 255, .45); }
.footer__legal { display: flex; flex-wrap: wrap; gap: 20px; }

/* ---------- Модалка заявки ---------- */
.modal { width: min(560px, 100% - 24px); max-height: calc(100% - 24px); padding: 0; border: 0; border-radius: 24px; background: #fff; color: var(--ink); box-shadow: var(--shadow-lg); overflow: auto; }
.modal::backdrop { background: rgba(4, 10, 28, .6); backdrop-filter: blur(6px); }
.modal[open] { animation: pop .35s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.dform { position: relative; padding: 34px; }
.dform h2 { font-size: 26px; font-weight: 800; padding-right: 40px; }
.dform__sub { color: var(--ink-2); margin: 8px 0 24px; font-size: 15px; }
.modal__close { position: absolute; top: 18px; right: 18px; width: 38px; height: 38px; border-radius: 10px; border: 0; background: var(--bg-tint); color: var(--ink-2); display: grid; place-items: center; cursor: pointer; }
.modal__close:hover { color: var(--ink); background: var(--line); }
.dform__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 22px; }
.field { display: grid; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field > span { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.field b { color: var(--bad); }
.field input:not([type=radio]), .field textarea { width: 100%; font: 400 15.5px/1.4 var(--font); color: var(--ink); padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg-tint); transition: border-color .2s, background .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(10, 99, 240, .12); }
.field input.is-invalid { border-color: var(--bad); box-shadow: 0 0 0 4px rgba(229, 72, 77, .12); }
.seg { display: inline-grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; background: var(--bg-tint); border: 1px solid var(--line); border-radius: var(--r-sm); max-width: 300px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.seg span { display: block; text-align: center; padding: 8px 0; border-radius: 9px; font-weight: 600; font-size: 14.5px; color: var(--ink-2); transition: background .2s, color .2s, box-shadow .2s; }
.seg input:checked + span { background: #fff; color: var(--blue); box-shadow: 0 1px 3px rgba(10, 20, 48, .12); }
.seg input:focus-visible + span { outline: 3px solid rgba(10, 99, 240, .45); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.dform__note { margin-top: 12px; font-size: 13.5px; color: var(--ink-3); text-align: center; }
.dform__note a { color: var(--blue); font-weight: 600; }
.dform__note.is-error { color: var(--bad); }
.btn.is-loading { pointer-events: none; opacity: .8; }
.btn.is-loading::after { content: ""; width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.dform__done { position: absolute; inset: 0; background: #fff; display: grid; place-content: center; text-align: center; padding: 32px; animation: pop .4s var(--ease); }
.dform__done[hidden] { display: none; }
.dform__done h3 { font-size: 24px; margin: 18px 0 8px; }
.dform__done p { color: var(--ink-2); }
.check { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; background: var(--ok-soft); display: grid; place-items: center; }
.check svg { width: 30px; height: 30px; fill: none; stroke: var(--ok); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; animation: check .6s .2s var(--ease) forwards; }
@keyframes check { to { stroke-dashoffset: 0; } }

/* ---------- Появление ---------- */
.js .reveal { opacity: 0; transform: translateY(20px); }
.js .reveal.is-in { opacity: 1; transform: none; transition: opacity .7s var(--ease) var(--d, 0ms), transform .8s var(--ease) var(--d, 0ms); }

/* ---------- Адаптив ---------- */
@media (max-width: 1180px) {
  .nav__links { gap: 20px; }
  .brand__tag { display: none; }
  .grid5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
  .hero__inner, .qr__inner, .split { grid-template-columns: 1fr; gap: 56px; }
  .split--rev .split__copy { order: 0; }
  .hero__copy { text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__cta { justify-content: center; }
  .hero__visual { max-width: 680px; margin: 0 auto; width: 100%; }
  .float--1 { left: -12px; }
  .float--2 { right: -8px; }
  .grid4 { grid-template-columns: repeat(2, 1fr); }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .owner__row { grid-template-columns: 1fr; }
  .qr__demo { max-width: 640px; }
}
@media (max-width: 900px) {
  .nav__links {
    position: fixed; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: rgba(7, 19, 48, .97); padding: 8px 16px 20px; border-bottom: 1px solid var(--line-d);
    opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .25s, transform .25s var(--ease);
  }
  .nav.is-open .nav__links { opacity: 1; transform: none; pointer-events: auto; }
  .nav__links a { padding: 14px 0; font-size: 16px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
  .nav__login-m { display: block; }
  .nav__burger { display: block; }
  .link-quiet { display: none; }
  .grid3, .plans { grid-template-columns: 1fr; }
  .plans { max-width: 480px; margin-inline: auto; }
  .plans-all { max-width: 480px; margin-inline: auto; padding: 24px; }
  .plans-all ul { grid-template-columns: 1fr; }
  .tl { grid-template-columns: 1fr; gap: 0; max-width: 420px; margin: 0 auto; }
  .tl::before, .tl::after { left: 27px; right: auto; top: 28px; bottom: 28px; width: 2px; height: auto; }
  .tl::after { transform: scaleY(0); transform-origin: top; background: linear-gradient(180deg, var(--blue), var(--warn) 75%, var(--bad)); }
  .tl.is-in::after { transform: scaleY(1); }
  .tl li { grid-template-columns: 56px 1fr; justify-items: start; text-align: left; column-gap: 18px; row-gap: 2px; padding: 10px 0; }
  .tl__dot { grid-row: span 2; margin: 0; }
  .tl b { align-self: end; }
  .tl small { align-self: start; }
  .flow { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .flow li:not(.flow__last)::after, .flow li:nth-child(3n)::after { display: block; right: 50%; top: auto; bottom: -13px; transform: rotate(135deg); margin: 0 -5px 0 0; }
  .vs { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .nav__inner { gap: 12px; }
  .nav__actions { gap: 8px; }
  .brand__name { font-size: 19px; }
  .brand img { width: 30px; height: 30px; }
  .nav__actions .btn--sm { padding: 9px 12px; font-size: 13px; }
  .hero { padding: 116px 0 96px; }
  .hero__lead, .lead, .head p:not(.kicker) { font-size: 16.5px; }
  .hero__cta .btn { width: 100%; }
  .section { padding: 84px 0; }
  .head { margin-bottom: 40px; }
  .dash__body { grid-template-columns: 1fr; }
  .dash__side { display: none; }
  .tiles { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .tile--wide { grid-column: 1 / -1; }
  .tile strong { font-size: 18px; }
  .float { position: relative; inset: auto; margin: 10px auto 0; width: max-content; max-width: 100%; animation: none; }
  .float--1 { display: none; }
  .grid4, .grid5 { grid-template-columns: 1fr; }
  .grid5 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .fcard { padding: 18px; }
  .fcard h3 { font-size: 16px; }
  .fcard p { font-size: 15px; }
  .qsteps { grid-template-columns: repeat(2, 1fr); }
  .qr__demo { grid-template-columns: 1fr; }
  .scanner { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 16px; padding: 14px; }
  .scanner__frame { padding: 22px; }
  .scanner__frame .c { width: 14px; height: 14px; }
  .scanner__cap { margin: 0; text-align: left; }
  .kv > div { grid-template-columns: 96px 1fr; }
  .wa { grid-template-columns: 1fr; min-height: 0; }
  .wa__list { display: none; }
  .prow { grid-template-columns: 1.4fr 1fr; row-gap: 4px; padding: 14px 16px; }
  .prow > span:nth-child(3) { display: none; }
  .prow > span:nth-child(4) { grid-column: 2; grid-row: 1; justify-self: end; }
  .prow > span:nth-child(2) { grid-column: 1; padding-left: 38px; color: var(--ink-3); font-size: 13px; }
  .prow--h { display: none; }
  .kpis { gap: 10px; }
  .kpi { padding: 16px; }
  .owner { padding: 12px; border-radius: 20px; }
  .tree { padding: 28px 14px; }
  .tree__leaves { gap: 8px; }
  .leaf { padding: 14px 6px; }
  .leaf b { font-size: 14px; }
  .scard { padding: 22px; }
  .final { padding: 64px 22px; border-radius: 24px; }
  .final__cta .btn { width: 100%; }
  .dform { padding: 26px 20px; }
  .dform__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal, .js .wa .msg, .js .alog li { opacity: 1; transform: none; }
}


/* ============ С НАМИ УЖЕ РАБОТАЮТ ============ */
/* Компактная полоса: карточки фиксированной ширины по центру — один партнёр
   выглядит так же собранно, как шесть. */
.partners { padding: 72px 0 64px; }
.partners .head { margin-bottom: 28px; }
.partners .head h2 { font-size: clamp(24px, 2.4vw, 32px); }
.partners__grid { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.partner { flex: 0 1 240px; }
.partner__in { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px 20px 20px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); color: inherit; text-decoration: none; text-align: center; transition: border-color .25s, transform .3s var(--ease), box-shadow .3s var(--ease); }
.partner__logo { height: 72px; width: 100%; display: flex; align-items: center; justify-content: center; }
.partner__logo img { max-height: 72px; max-width: 180px; object-fit: contain; }
.partner__logo b { font: 800 20px/1.2 var(--head); letter-spacing: -.01em; color: var(--ink); }
.partner__name { font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.partner__name small { display: block; font-size: 14px; font-weight: 500; color: var(--ink-2); }
@media (hover: hover) and (pointer: fine) {
  .partner__in:hover { border-color: #cfdaee; transform: translateY(-3px); box-shadow: var(--shadow); }
}
@media (max-width: 640px) {
  .partners { padding: 56px 0 48px; }
  .partners__grid { gap: 10px; }
  .partner { flex: 0 1 calc(50% - 5px); }
  .partner:only-child { flex-basis: min(100%, 280px); }
  .partner__in { padding: 18px 12px 16px; }
  .partner__logo { height: 56px; }
  .partner__logo img { max-height: 56px; max-width: 130px; }
}

/* ==========================================================================
   Моушен-слой (Emil Kowalski / Taste): одна сигнатура — заголовок из маски
   и дашборд, встающий из наклона; шторка тёмных секций и ролик по прокрутке;
   заголовки секций из маски; карточки из размытия; отклик под рукой.
   Только transform / opacity / filter / clip-path. Всё — под no-preference.
   ========================================================================== */
:root {
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.hero__title [data-line] { display: inline-block; }
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; background: var(--blue-2); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }
.pcard__ic, .fcard__ic, .scard__ic { transition: rotate 0.35s var(--ease-out), scale 0.35s var(--ease-out), background 0.3s, color 0.3s; }

@media (prefers-reduced-motion: no-preference) {
  /* 1. Сигнатура первого экрана */
  .js .hero__title [data-line] { transform: translateY(112%); animation: line-up 1s var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 120ms + 120ms); }
  .js .hero__visual.reveal { opacity: 0; transform: perspective(1400px) rotateX(14deg) translateY(56px) scale(0.94); transform-origin: 50% 100%; filter: blur(10px); }
  .js .hero__visual.reveal.is-in { opacity: 1; transform: none; filter: none; transition: opacity 0.9s var(--ease-out) 0.3s, transform 1.4s var(--ease-out) 0.3s, filter 1s var(--ease-out) 0.3s; }
  .js .hero__visual .float { opacity: 0; scale: 0.9; transition: opacity 0.5s var(--ease-out), scale 0.6s var(--ease-out); }
  .js .hero__visual.is-in .float { opacity: 1; scale: 1; }
  .js .hero__visual.is-in .float--2 { transition-delay: 1s; }
  .js .hero__visual.is-in .float--1 { transition-delay: 1.15s; }
  .js .hero__visual.is-in .float--3 { transition-delay: 1.3s; }
  /* параллакс по курсору: --mx/--my задаёт JS, слои двигаются на разную глубину */
  .hero__visual .dash { translate: calc(var(--mx, 0) * -10px) calc(var(--my, 0) * -8px); }
  .hero__visual .float { translate: calc(var(--mx, 0) * 16px) calc(var(--my, 0) * 12px); }

  /* 2. Заголовки секций — проявляются из маски */
  /* маска только у заголовка внутри наблюдаемого блока: элемент под clip-path невидим для IntersectionObserver */
  .js .head.reveal h2 { clip-path: inset(0 0 100% 0); }
  .js .head.reveal.is-in h2 { clip-path: inset(-10% -2% -20% -2%); transition: clip-path 1s var(--ease-in-out) 120ms; }

  /* 3. Блоки и карточки — из размытия в фокус, по очереди */
  .js .reveal:not(.hero__visual) { filter: blur(6px); }
  .js .reveal.is-in:not(.hero__visual) { filter: none; transition: opacity 0.7s var(--ease) var(--d, 0ms), transform 0.8s var(--ease) var(--d, 0ms), filter 0.8s var(--ease) var(--d, 0ms) }
  .js .final.reveal { transform: translateY(40px) scale(0.95); }
  .js .final.reveal.is-in { transform: none; }

  /* 4. Переходы по прокрутке (где браузер поддерживает scroll-driven animations) */
  @supports (animation-timeline: view()) {
    .section--dark { animation: curtain linear both; animation-timeline: view(); animation-range: entry 0% entry 85%; }
    .promo__frame { animation: frame-in linear both; animation-timeline: view(); animation-range: entry 0% cover 38%; }
    .progress { animation: read-progress linear both; animation-timeline: scroll(root); }
  }

  /* 5. Отклик под рукой */
  @media (hover: hover) and (pointer: fine) {
    .pcard:hover .pcard__ic, .fcard:hover .fcard__ic, .scard:hover .scard__ic { rotate: -8deg; scale: 1.1; }
    .btn:active { scale: 0.97; }
  }
}
@keyframes line-up { to { transform: none; } }
@keyframes curtain { from { clip-path: inset(0 3.5% round 40px); } to { clip-path: inset(0 0 round 0); } }
@keyframes frame-in { from { transform: perspective(1600px) rotateX(18deg) scale(0.86); opacity: 0.35; } to { transform: none; opacity: 1; } }
@keyframes read-progress { to { transform: scaleX(1); } }
