/* ChatOwl - сайт-визитка. Белый фон, оттенки синего, плоские цвета: без градиентов и стекла.
   Шрифт Onest (OFL, landing/fonts). Анимации - только transform и opacity; при prefers-reduced-motion выключены. */

@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/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-weight: 100 900;
  font-display: swap;
  src: url(/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;
}

:root {
  --ink: #0a1630;
  --ink-2: #26344f;
  --muted: #56647d;
  --faint: #8692a8;
  --line: #e5eaf3;
  --line-2: #d4dcea;
  --bg: #ffffff;
  --bg-2: #f6f8fc;
  --tint: #eef3ff;
  --tint-2: #dce6ff;
  --blue: #1a4bff;
  --blue-2: #0e3ae6;
  --blue-ink: #1238c9;
  --navy: #0a1630;
  --navy-2: #111f40;
  --green: #1fbf62;
  --font: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.2, .75, .2, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --shadow-sm: 0 1px 2px rgba(10, 22, 48, .06);
  --shadow: 0 1px 2px rgba(10, 22, 48, .05), 0 10px 30px -12px rgba(10, 22, 48, .16);
  --shadow-lg: 0 1px 2px rgba(10, 22, 48, .04), 0 2px 6px rgba(10, 22, 48, .04), 0 30px 80px -24px rgba(10, 22, 48, .28);
  --wrap: 1200px;
  --gut: 32px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
::selection { background: var(--tint-2); color: var(--ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600;
  transition: transform .2s var(--ease);
}
.skip:focus { transform: translateY(76px); }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 44px; padding: 0 20px; border: 0; border-radius: 10px;
  font-size: 15px; font-weight: 560; letter-spacing: -.005em; line-height: 1; white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn .arr { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn-lg { height: 54px; padding: 0 26px; font-size: 16.5px; border-radius: 12px; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14.5px; border-radius: 9px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-2); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #1c2b4f; }
.btn-line { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-line:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--tint); }
.btn-ghost-w { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .26); }
.btn-ghost-w:hover { box-shadow: inset 0 0 0 1px #fff; }
.btn[disabled] { opacity: .7; cursor: default; }

/* ---------- шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 11px; border-radius: 8px; }
.logo .mark { width: 30px; height: 30px; flex: none; }
.logo .word { font-size: 20px; font-weight: 650; letter-spacing: -.03em; color: var(--ink); }
.nav { display: flex; align-items: center; gap: 34px; }
.nav a:not(.btn) { position: relative; font-size: 15px; font-weight: 500; color: var(--ink-2); transition: color .2s ease; }
.nav a:not(.btn)::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav a:not(.btn):hover { color: var(--ink); }
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav .btn { margin-left: 6px; }
.menu-btn {
  display: none; width: 44px; height: 44px; margin-right: -10px; border: 0; background: transparent; border-radius: 10px;
  align-items: center; justify-content: center;
}
.menu-ico { position: relative; width: 20px; height: 12px; }
.menu-ico i {
  position: absolute; left: 0; right: 0; height: 1.6px; background: var(--ink); border-radius: 2px;
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.menu-ico i:first-child { top: 0; }
.menu-ico i:last-child { top: 10.4px; }
.menu-btn[aria-expanded="true"] .menu-ico i:first-child { top: 5.2px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-ico i:last-child { top: 5.2px; transform: rotate(-45deg); }

/* ---------- общие заголовки секций ---------- */
.section { padding: clamp(96px, 11vw, 168px) 0; }
.kicker {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--muted);
}
.kicker .num { color: var(--blue); font-feature-settings: 'tnum'; display: inline-flex; align-items: center; gap: 12px; }
.kicker .num::after { content: ''; width: 28px; height: 1px; background: var(--line-2); }
h2 {
  margin-top: 22px;
  font-size: clamp(38px, 5.4vw, 72px); font-weight: 600; line-height: 1.0; letter-spacing: -.045em; color: var(--ink);
  text-wrap: balance;
}
.sec-head { max-width: 820px; }
.sec-lead { margin-top: 22px; max-width: 540px; font-size: 19px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }

/* ---------- первый экран ---------- */
.hero { position: relative; padding-top: clamp(40px, 5.6vw, 84px); }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.live { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.live::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--green);
  animation: ping 2.4s var(--ease) infinite;
}
.hero-title {
  margin-top: 22px;
  font-size: clamp(44px, 7.2vw, 104px); font-weight: 580; line-height: .96; letter-spacing: -.05em;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero-title .line > span { display: inline-block; animation: rise 1s var(--ease) both; }
.hero-title .line + .line > span { animation-delay: .09s; }
.hero-title .soft { color: var(--blue); }
.hero-foot {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 40px;
  margin-top: 40px; animation: fade-up .9s var(--ease) .25s both;
}
.hero-lead { max-width: 520px; font-size: 20px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-scene { position: relative; margin-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(72px, 9vw, 128px); }
.hero-scene::before {
  content: ''; position: absolute; left: 0; right: 0; top: 34%; bottom: 0;
  background: var(--bg-2) url(/img/dots.svg) repeat; background-position: center top;
  border-top: 1px solid var(--line);
}
.stage { position: relative; transform-origin: 50% 0; will-change: transform; }
.hero-browser { --c: var(--blue); }
.hero-browser { animation: lift 1.2s var(--ease) .35s both; }

/* ---------- окно браузера (макет) ---------- */
.browser {
  position: relative; background: #fff; border: 1px solid var(--line-2); border-radius: 14px;
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.b-bar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
  height: 46px; padding: 0 16px; border-bottom: 1px solid var(--line); background: #fbfcfe;
}
.b-dots { display: flex; gap: 7px; }
.b-dots i { width: 11px; height: 11px; border-radius: 50%; background: #e1e6ef; }
.b-url {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 280px; height: 28px; padding: 0 16px; border-radius: 8px; background: #f0f3f8;
  font-size: 13px; color: var(--muted); letter-spacing: .005em;
}
.b-url svg { width: 13px; height: 13px; color: var(--faint); }
.b-view { position: relative; overflow: hidden; }
.hero-browser .b-view { height: 620px; }
.hero-browser .site { padding-top: 22px; }

/* сайт-заглушка внутри браузера */
.site { padding: 26px 36px; }
.hero-browser .site-hero, .hero-browser .site-cards { margin-left: 250px; max-width: calc(100% - 250px - 380px); }
.hero-browser .site-hero { grid-template-columns: 1fr; }
.hero-browser .s-pic { display: none; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.s-logo { width: 26px; height: 26px; border-radius: 7px; background: #c7d3ec; }
.s-links { display: flex; gap: 22px; margin-left: auto; }
.s-links i { width: 54px; height: 8px; border-radius: 4px; background: #e4e9f2; }
.s-btn { width: 96px; height: 32px; border-radius: 8px; background: #e4e9f2; }
.site-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; margin-top: 52px; max-width: calc(100% - 330px); }
.s-copy i, .pv-copy i { display: block; height: 12px; border-radius: 6px; background: #e8edf5; margin-top: 12px; }
.s-copy i.h1, .pv-copy i.h1 { height: 30px; width: 92%; background: #d5def0; margin-top: 0; border-radius: 8px; }
.s-copy i.h2, .pv-copy i.h2 { height: 30px; width: 64%; background: #d5def0; margin: 12px 0 26px; border-radius: 8px; }
.s-copy i.short, .pv-copy i.short { width: 58%; }
.s-cta { display: block; width: 150px; height: 42px; margin-top: 30px; border-radius: 10px; background: #cfdbfb; }
.s-pic { border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; }
.s-pic svg { width: 100%; height: 100%; }
.site-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; max-width: calc(100% - 330px); }
.site-cards i { height: 120px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }

/* ---------- окно чата в первом экране ---------- */
.ava {
  position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%; font-size: 15px; font-weight: 600; letter-spacing: -.01em;
}
.ava.sm { width: 28px; height: 28px; font-size: 12px; }
.ava.xs { width: 20px; height: 20px; font-size: 10px; }
.ava .dot {
  position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 0 2px #fff;
}
.ava.sm .dot { width: 8px; height: 8px; }
.ava-anna { background: #dfe7ff; color: #1838b8; }
.ava-ilya { background: #d6efe5; color: #0b6448; }
.ava-maria { background: #ecdffd; color: #5b25b5; }
.ava-sergey { background: #e7ebf2; color: #56647d; }
.ava-g1 { background: #fde8d7; color: #9a4310; }
.ava-g2 { background: #e2ecf7; color: #2c4f7c; }
.ava-g3 { background: #f6e1ea; color: #973660; }
.ava-g4 { background: #eceff4; color: #56647d; }

.chat {
  position: absolute; right: 32px; bottom: 100px; z-index: 2;
  display: flex; flex-direction: column; width: 356px; height: 476px;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden;
  animation: pop .8s var(--ease) .75s both;
}
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--c); color: #fff; transition: background-color .8s ease; }
.chat-head .ava { background: #fff; color: var(--c); transition: color .8s ease; }
.chat-head .ava .dot { box-shadow: 0 0 0 2px #fff; }
.who { display: flex; flex-direction: column; line-height: 1.25; }
.who b { font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; }
.who small { font-size: 12.5px; opacity: .78; }
.chat-x { width: 20px; height: 20px; margin-left: auto; opacity: .85; }
.chat-body { position: relative; flex: 1; min-height: 0; padding: 14px 16px 0; overflow: hidden; }
.chat-stack { position: relative; display: flex; flex-direction: column; gap: 10px; padding-bottom: 14px; transition: transform .7s var(--ease); }
.chat-day { align-self: center; font-size: 11.5px; font-weight: 500; color: var(--faint); letter-spacing: .02em; margin-bottom: 2px; }
.msg { display: flex; align-items: flex-end; gap: 8px; max-width: 88%; }
.msg p { padding: 9px 13px; font-size: 14px; line-height: 1.42; border-radius: 15px; letter-spacing: -.003em; }
.msg.op p { background: #f1f4f9; color: var(--ink); border-bottom-left-radius: 5px; }
.msg.me { position: relative; flex-direction: column; align-items: flex-end; gap: 3px; align-self: flex-end; }
.msg.me p { background: var(--c); color: #fff; border-bottom-right-radius: 5px; transition: background-color .8s ease; }
.ticks { width: 17px; height: 12px; color: #b3bccb; transition: color .35s ease; }
.ticks.read { color: var(--c); }
.slot { position: relative; }
.slot .typing { position: absolute; left: 0; bottom: 0; display: flex; align-items: flex-end; gap: 8px; opacity: 0; }
.dots { display: inline-flex; gap: 4px; padding: 13px 14px; border-radius: 15px; border-bottom-left-radius: 5px; background: #f1f4f9; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: #8e9ab0; animation: blink 1.2s ease-in-out infinite; }
.dots i:nth-child(2) { animation-delay: .15s; }
.dots i:nth-child(3) { animation-delay: .3s; }
.chat-input {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin: 0 12px 12px; padding: 7px 7px 7px 14px; border: 1px solid var(--line); border-radius: 12px;
  font-size: 14px; color: var(--faint);
}
.send { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 9px; background: var(--c); color: #fff; transition: background-color .8s ease; }
.send svg { width: 18px; height: 18px; }
.launcher {
  position: absolute; right: 32px; bottom: 28px; z-index: 2;
  display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px;
  border-radius: 50%; background: var(--c); color: #fff; box-shadow: var(--shadow);
  animation: pop .7s var(--ease) .6s both; transition: background-color .8s ease;
}
.launcher svg { width: 26px; height: 26px; }

/* последовательность сообщений: включает js; без js видно всё сразу */
.js .chat [data-seq] { opacity: 0; transform: translateY(10px); transition: opacity .45s var(--ease), transform .55s var(--ease); }
.js .chat [data-seq].on { opacity: 1; transform: none; }
.js .chat .slot .msg { opacity: 0; transform: translateY(6px); transition: opacity .4s var(--ease), transform .5s var(--ease); }
.js .chat .slot .typing { transition: opacity .25s ease; }
.js .chat .slot.typing .typing { opacity: 1; }
.js .chat .slot.done .msg { opacity: 1; transform: none; }
.js .chat .slot.done .typing { opacity: 0; }
.chat.fade [data-seq] { opacity: 0 !important; transition-duration: .5s; }

/* телефон Анны: тот же разговор, ответ набирается в приложении */
.hero-phone {
  position: absolute; left: -40px; bottom: -56px; z-index: 3; width: 262px; padding: 9px;
  background: var(--navy); border-radius: 44px; box-shadow: 0 2px 6px rgba(10, 22, 48, .1), 0 40px 80px -24px rgba(10, 22, 48, .45);
  animation: phone-in 1.2s var(--ease) .85s both;
}
.hp-screen { position: relative; display: flex; flex-direction: column; height: 520px; border-radius: 36px; background: #fff; overflow: hidden; }
.hp-screen::before { content: ''; position: absolute; top: 10px; left: 50%; width: 84px; height: 24px; margin-left: -42px; border-radius: 14px; background: var(--navy); }
.hp-status { display: flex; align-items: center; justify-content: space-between; height: 46px; padding: 2px 24px 0 28px; font-size: 13.5px; font-weight: 600; letter-spacing: -.01em; }
.hp-sig { display: flex; align-items: flex-end; gap: 2px; }
.hp-sig i { width: 3px; border-radius: 1px; background: var(--ink); }
.hp-sig i:nth-child(1) { height: 5px; }
.hp-sig i:nth-child(2) { height: 7.5px; }
.hp-sig i:nth-child(3) { height: 10px; }
.hp-sig b { width: 21px; height: 10px; margin-left: 5px; border-radius: 3px; border: 1.3px solid var(--ink); box-shadow: inset -7px 0 0 #fff, inset 0 0 0 1.5px #fff; background: var(--ink); }
.hp-head { display: flex; align-items: center; gap: 9px; padding: 8px 14px 12px 10px; border-bottom: 1px solid var(--line); }
.hp-back { width: 20px; height: 20px; color: var(--blue); }
.hp-who { display: flex; flex-direction: column; line-height: 1.25; }
.hp-who b { font-size: 14px; font-weight: 600; }
.hp-who small { font-size: 11.5px; color: var(--muted); }
.hp-body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 12px; background: var(--bg-2); }
.hp-note { align-self: center; margin-bottom: 4px; font-size: 11px; font-weight: 500; color: var(--faint); }
.hm { max-width: 84%; padding: 8px 11px; border-radius: 14px; font-size: 12.5px; line-height: 1.4; }
.hm.in { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.hm.out { align-self: flex-end; background: var(--blue); color: #fff; border-bottom-right-radius: 4px; }
.hp-input {
  position: relative; display: flex; align-items: center; gap: 8px; min-height: 42px; margin: 10px 10px 18px; padding: 5px 5px 5px 13px;
  border: 1px solid var(--line-2); border-radius: 21px; font-size: 12.5px; line-height: 1.35;
}
.hp-typed { flex: 1; min-width: 0; color: var(--ink); }
.hp-typed:empty { display: none; }
.hp-typed:not(:empty)::after { content: ''; display: inline-block; width: 1.5px; height: 14px; margin-left: 1px; vertical-align: -2px; background: var(--blue); animation: caret 1s steps(1) infinite; }
.hp-ph { flex: 1; color: var(--faint); }
.hp-typed:not(:empty) + .hp-ph { display: none; }
.hp-send { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: #fff; }
.hp-send svg { width: 16px; height: 16px; }
.js .hero-phone [data-ph] { opacity: 0; transform: translateY(8px); transition: opacity .45s var(--ease), transform .55s var(--ease); }
.js .hero-phone [data-ph].on { opacity: 1; transform: none; }
.hero-phone.fade [data-ph] { opacity: 0 !important; }

/* ---------- конструктор окна ---------- */
.studio {
  display: grid; grid-template-columns: 384px minmax(0, 1fr); gap: 28px; margin-top: 64px; align-items: stretch;
}
.controls {
  display: flex; flex-direction: column; gap: 26px; padding: 30px;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm);
}
.ctl { margin: 0; padding: 0; border: 0; min-width: 0; }
.ctl legend, .ctl-label { display: block; padding: 0; margin-bottom: 12px; font-size: 13.5px; font-weight: 600; color: var(--ink); letter-spacing: -.003em; }
.ctl-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ctl input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.swatches { display: flex; flex-wrap: wrap; gap: 12px; }
.sw { position: relative; cursor: pointer; }
.sw-c {
  display: block; width: 34px; height: 34px; border-radius: 50%;
  box-shadow: 0 0 0 0 #fff, 0 0 0 0 var(--ink); transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}
.sw:hover .sw-c { transform: scale(1.06); }
.sw input:checked + .sw-c { box-shadow: 0 0 0 3px #fff, 0 0 0 4.5px var(--ink); }
.sw input:focus-visible + .sw-c { outline: 2px solid var(--blue); outline-offset: 6px; }
.c-blue { background: #1a4bff; }
.c-navy { background: #0a1630; }
.c-green { background: #0b7a5a; }
.c-violet { background: #6a3df0; }
.c-red { background: #d9363e; }
.c-amber { background: #c2570c; }
.seg {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; padding: 3px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 11px;
}
.seg label { position: relative; cursor: pointer; }
.seg label > span {
  display: flex; align-items: center; justify-content: center; gap: 6px; height: 38px; padding: 0 8px;
  border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--muted); white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.seg-4 label > span { flex-direction: column; gap: 4px; height: 62px; font-size: 12.5px; }
.seg svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.seg label:hover > span { color: var(--ink); }
.seg input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(10, 22, 48, .08), 0 0 0 1px var(--line); }
.seg input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 1px; }
.input {
  width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff;
  font-size: 15.5px; transition: border-color .2s ease, box-shadow .2s ease;
}
.input:hover { border-color: #b9c4d8; }
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--tint-2); }

.preview {
  --brand: #1a4bff;
  --w-bg: #ffffff; --w-bubble: #f1f4f9; --w-ink: #0a1630; --w-line: #e5eaf3; --w-faint: #8692a8; --w-r: 18px;
  position: relative; display: flex; align-items: center; justify-content: center;
  padding: clamp(20px, 3.4vw, 48px); border: 1px solid var(--line); border-radius: 18px;
  background: var(--bg-2) url(/img/dots.svg) repeat;
}
.preview[data-theme="dark"] { --w-bg: #0e1830; --w-bubble: #1b2745; --w-ink: #e8edf8; --w-line: #223152; --w-faint: #7d8bab; }
.preview[data-shape="rounded"] { --w-r: 14px; }
.preview[data-shape="square"] { --w-r: 4px; }
.preview[data-shape="tab"] { --w-r: 12px; }
.pv-browser { width: 100%; }
.pv-view { height: 520px; }
.site-mini { padding: 22px 28px; }
.site-mini .s-links i { width: 44px; }
.pv-copy { width: 52%; margin-top: 40px; }
.site-mini .site-cards { grid-template-columns: repeat(2, 1fr); width: 52%; max-width: none; margin-top: 36px; }
.site-mini .site-cards i { height: 108px; }
.pw { position: absolute; inset: 0; pointer-events: none; }
.pw-win {
  position: absolute; right: 24px; bottom: 96px; width: 300px;
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--w-bg); border: 1px solid var(--w-line); border-radius: var(--w-r); box-shadow: var(--shadow-lg);
  transition: background-color .4s ease, border-color .4s ease, border-radius .4s var(--ease), opacity .3s ease;
}
.pw-head { display: flex; align-items: center; gap: 11px; padding: 14px; background: var(--brand); color: #fff; transition: background-color .4s ease; }
.pw-logo { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: calc(var(--w-r) * .55); background: rgba(255, 255, 255, .16); transition: border-radius .4s var(--ease); }
.pw-logo svg { width: 26px; height: 26px; }
.pw-photo {
  position: relative; display: none; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%;
  background: #fff; color: var(--brand); font-size: 14px; font-weight: 600; transition: color .4s ease;
}
.pw-photo .dot { position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 2px #fff; }
.preview[data-head="photo"] .pw-photo { display: inline-flex; animation: pop .45s var(--ease) both; }
.preview[data-head="photo"] .pw-logo { display: none; }
.pw-who { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.pw-who b { font-size: 15px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pw-who small { font-size: 12px; opacity: .8; }
.pw-body { display: flex; flex-direction: column; gap: 9px; padding: 14px; }
.pw-msg { display: flex; align-items: flex-end; gap: 7px; max-width: 90%; }
.pw-msg p { padding: 8px 12px; font-size: 13px; line-height: 1.4; border-radius: calc(var(--w-r) * .75 + 3px); transition: background-color .4s ease, color .4s ease, border-radius .4s var(--ease); }
.pw-msg.op p { background: var(--w-bubble); color: var(--w-ink); border-bottom-left-radius: 4px; }
.pw-msg.me { align-self: flex-end; }
.pw-msg.me p { background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
.pw-input {
  display: flex; align-items: center; justify-content: space-between; margin: 2px 12px 12px; padding: 6px 6px 6px 12px;
  border: 1px solid var(--w-line); border-radius: calc(var(--w-r) * .6); font-size: 13px; color: var(--w-faint);
  transition: border-color .4s ease, border-radius .4s var(--ease);
}
.pw-send { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: calc(var(--w-r) * .45); background: var(--brand); color: #fff; transition: background-color .4s ease; }
.pw-send svg { width: 16px; height: 16px; }
.pw-btn {
  position: absolute; right: 24px; bottom: 24px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 58px; height: 58px; border-radius: 50%; background: var(--brand); color: #fff; box-shadow: var(--shadow);
  transition: background-color .4s ease, border-radius .4s var(--ease);
}
.pw-btn .i-chat { width: 26px; height: 26px; }
.pw-btn b { display: none; font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.preview[data-shape="rounded"] .pw-btn { border-radius: 17px; }
.preview[data-shape="square"] .pw-btn { border-radius: 4px; }
.preview[data-shape="tab"] .pw-btn {
  right: 0; bottom: auto; top: 50%; margin-top: -64px; width: 46px; height: 128px; flex-direction: column;
  border-radius: 12px 0 0 12px;
}
.preview[data-shape="tab"] .pw-btn .i-chat { width: 22px; height: 22px; }
.preview[data-shape="tab"] .pw-btn b { display: block; writing-mode: vertical-rl; transform: rotate(180deg); }
.preview[data-shape="tab"] .pw-win { right: 62px; bottom: 24px; }
.preview[data-side="left"] .pw-win { right: auto; left: 24px; }
.preview[data-side="left"] .pw-btn { right: auto; left: 24px; }
.preview[data-side="left"][data-shape="tab"] .pw-btn { left: 0; border-radius: 0 12px 12px 0; }
.preview[data-side="left"][data-shape="tab"] .pw-win { left: 62px; }
.pw-btn.pop { animation: pop .45s var(--ease) both; }

/* ---------- команда ---------- */
.team { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.team-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(40px, 5vw, 72px); align-items: center; margin-top: 64px; }
.steps { border-top: 1px solid var(--line-2); }
.step { position: relative; padding: 22px 0 24px; border-bottom: 1px solid var(--line-2); }
.step h3 { font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.step h3 button {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 0; border: 0; background: none; text-align: left;
  font: inherit; letter-spacing: inherit; color: var(--ink); border-radius: 6px; transition: color .3s ease;
}
.step h3 button::before { content: ''; position: absolute; inset: 0; }
.step-n {
  flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px;
  border: 1px solid var(--line-2); border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--muted); font-feature-settings: 'tnum';
  transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}
.step p { margin-top: 6px; padding-left: 42px; font-size: 15.5px; color: var(--muted); transition: color .3s ease; }
.step::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--blue);
  transform: scaleX(0); transform-origin: left;
}
.js .step:not(.is-active) h3 button { color: #8f9ab0; }
.js .step:not(.is-active) p { color: #a7b0c0; }
.js .step:not(.is-active):hover h3 button { color: var(--ink); }
.step.is-active .step-n { background: var(--blue); border-color: var(--blue); color: #fff; }
.step.is-active::after { transform: scaleX(1); }
.steps.playing .step.is-active::after { animation: progress 5200ms linear both; }
.steps.paused .step.is-active::after { animation-play-state: paused; }

.team-visual { position: relative; padding: 8px 0 48px; }
.app { background: #fff; border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden; }
.app-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 44px; padding: 0 14px; border-bottom: 1px solid var(--line); background: #fbfcfe; }
.app-title { font-size: 13px; font-weight: 600; }
.app-me { justify-self: end; }
.app-body { display: grid; grid-template-columns: 56px minmax(0, 1.2fr) minmax(0, 1fr) 196px; height: 440px; }
.app-rail { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 14px 0; border-right: 1px solid var(--line); background: #fbfcfe; }
.site-ico {
  display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 9px;
  font-size: 13px; font-weight: 650; color: #fff; transition: box-shadow .3s ease, transform .3s var(--ease);
}
.site-ico.s1 { background: #1a4bff; }
.site-ico.s2 { background: #0b7a5a; }
.site-ico.s3 { background: #6a3df0; }
.site-ico.on { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--ink); }
.app-list { border-right: 1px solid var(--line); overflow: hidden; }
.conv { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 13px 14px; border-bottom: 1px solid var(--line); }
.conv.on { background: var(--tint); box-shadow: inset 2px 0 0 var(--blue); }
.conv .ava { width: 36px; height: 36px; font-size: 13.5px; }
.conv-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.conv-t b { font-size: 13.5px; font-weight: 600; }
.conv-t small { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-m { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.conv-m small { font-size: 11px; color: var(--faint); }
.new-pill { padding: 2px 7px; border-radius: 6px; background: var(--blue); color: #fff; font-size: 10.5px; font-weight: 600; }
.app-chat { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-right: 1px solid var(--line); }
.ac-head { display: flex; flex-direction: column; line-height: 1.25; padding-bottom: 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.ac-head b { font-size: 13.5px; }
.ac-head small { font-size: 11.5px; color: var(--muted); }
.ac-msg { max-width: 92%; padding: 7px 11px; border-radius: 12px; font-size: 12.5px; line-height: 1.4; }
.ac-msg.in { background: #f1f4f9; border-bottom-left-radius: 4px; }
.ac-msg.out { align-self: flex-end; background: var(--blue); color: #fff; border-bottom-right-radius: 4px; }
.ac-input { margin-top: auto; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; font-size: 12.5px; color: var(--faint); }
.app-team { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 14px; }
.at-h, .ac-h { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; }
.mem { display: flex; align-items: center; gap: 10px; padding: 7px 8px; margin: 0 -8px; border-radius: 9px; transition: background-color .4s ease, opacity .5s var(--ease), transform .5s var(--ease); }
.mem > span:last-child { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.mem b { font-size: 13px; font-weight: 600; }
.mem small { font-size: 11.5px; color: var(--muted); }
.mem.off .dot { background: #c3cad6; }
.mem .st-inv { color: var(--blue); }
.mem .st-on { display: none; }
.access { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 7px; }
.acc { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); transition: opacity .4s ease, transform .4s var(--ease); }
.acc i { position: relative; width: 16px; height: 16px; border-radius: 5px; border: 1px solid var(--line-2); background: #fff; transition: background-color .3s ease, border-color .3s ease; }
.acc i::after {
  content: ''; position: absolute; left: 4.5px; top: 1.5px; width: 4.5px; height: 8px; border: solid #fff; border-width: 0 1.6px 1.6px 0;
  transform: rotate(45deg) scale(0); transition: transform .3s var(--ease);
}
.invite-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; margin-top: auto; height: 34px;
  border: 1px dashed #b9c6e0; border-radius: 9px; font-size: 12.5px; font-weight: 600; color: var(--blue);
  transition: background-color .3s ease, border-color .3s ease;
}
.invite-btn svg { width: 14px; height: 14px; }

/* состояния картинки «Команда»: 1 - приглашение, 2 - доступ к сайтам, 3 - ответ с телефона */
.team-visual .mem.invited { background: var(--tint); }
.team-visual[data-state="1"] .invite-btn { background: var(--tint); border-color: var(--blue); }
.team-visual[data-state="1"] .access { opacity: .35; }
.team-visual[data-state="1"] [data-assign] { opacity: 0; transform: scale(.5); }
[data-assign] { transition: opacity .4s ease, transform .4s var(--ease); }
.team-visual:not([data-state="1"]) .mem.invited { background: transparent; }
.team-visual:not([data-state="1"]) .mem .st-inv { display: none; }
.team-visual:not([data-state="1"]) .mem .st-on { display: block; }
.team-visual:not([data-state="1"]) .acc.a1 i, .team-visual:not([data-state="1"]) .acc.a2 i { background: var(--blue); border-color: var(--blue); }
.team-visual:not([data-state="1"]) .acc.a1 i::after, .team-visual:not([data-state="1"]) .acc.a2 i::after { transform: rotate(45deg) scale(1); }
.team-visual[data-state="2"] .access { background: none; }
.team-visual[data-state="2"] .app-rail .s1, .team-visual[data-state="2"] .app-rail .s2 { transform: scale(1.06); }
.team-visual[data-state="1"] .mem.invited .dot { background: #c3cad6; }

.phone {
  position: absolute; right: -18px; bottom: -6px; z-index: 2; width: 228px; padding: 9px;
  background: var(--navy); border-radius: 38px; box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(48px); transition: opacity .6s var(--ease), transform .8s var(--ease);
}
.team-visual[data-state="3"] .phone { opacity: 1; transform: none; }
.phone-screen {
  position: relative; display: flex; flex-direction: column; align-items: center; height: 420px; padding: 44px 10px 0;
  border-radius: 30px; background: #172a5c url(/img/dots-navy.svg) repeat; color: #fff; overflow: hidden;
}
.phone-screen::before { content: ''; position: absolute; top: 10px; left: 50%; width: 74px; height: 22px; margin-left: -37px; border-radius: 12px; background: var(--navy); }
.phone-time { font-size: 54px; font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.phone-date { margin-top: 6px; font-size: 12.5px; opacity: .75; }
.push {
  display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 9px; align-items: start; width: 100%; margin-top: 34px; padding: 10px 11px;
  background: #fff; color: var(--ink); border-radius: 16px; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .45);
  opacity: 0; transform: translateY(-14px) scale(.96); transition: opacity .5s var(--ease) .45s, transform .7s var(--ease) .45s;
}
.team-visual[data-state="3"] .push { opacity: 1; transform: none; }
.push-ico svg { width: 30px; height: 30px; }
.push-t { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.push-t b { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.push-t small { font-size: 12px; color: var(--ink-2); }
.push-time { font-size: 10.5px; color: var(--faint); }

/* ---------- коротко: четыре пункта ---------- */
.more-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line-2); }
.facts li { padding: 32px 32px 36px 0; border-bottom: 1px solid var(--line); }
.facts li:nth-child(even) { padding-left: 32px; border-left: 1px solid var(--line); }
.facts svg { width: 26px; height: 26px; fill: none; stroke: var(--blue); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.facts h3 { margin-top: 24px; font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.facts p { margin-top: 6px; font-size: 15.5px; color: var(--muted); }

/* ---------- тёмная полоса ---------- */
.band { position: relative; padding: clamp(88px, 10vw, 140px) 0; background: var(--navy) url(/img/dots-navy.svg) repeat; color: #fff; overflow: hidden; }
.band-in { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.band h2 { margin: 0; color: #fff; }
.band p { margin-top: 18px; font-size: 19px; color: #aebad4; }
.band-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- подвал ---------- */
.site-footer { border-top: 1px solid var(--line); }
.foot { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 48px; padding-top: 44px; padding-bottom: 44px; }
.foot-brand { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.foot-brand p { font-size: 14.5px; color: var(--muted); }
.foot-nav { display: flex; gap: 28px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); }
.foot-nav a:hover, .foot-nav a[aria-current="page"] { color: var(--blue); }
.copy { font-size: 14px; color: var(--faint); }
.band + .site-footer { border-top: 0; }

/* ---------- шапка внутренних страниц ---------- */
.page-head { padding: clamp(56px, 7vw, 112px) 0 clamp(48px, 5.5vw, 80px); }
.page-head-in { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px 48px; flex-wrap: wrap; }
.page-head h1, .lost h1 {
  margin-top: 22px; font-size: clamp(44px, 6.4vw, 92px); font-weight: 580; line-height: .98; letter-spacing: -.05em;
  text-wrap: balance; animation: fade-up .9s var(--ease) both;
}
.page-lead { margin-top: 22px; max-width: 560px; font-size: 20px; line-height: 1.5; color: var(--muted); animation: fade-up .9s var(--ease) .1s both; }

/* ---------- тарифы ---------- */
.period {
  position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; min-width: 320px; margin: 0; padding: 4px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); animation: fade-up .9s var(--ease) .15s both;
}
.period input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.period label {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px;
  border-radius: 9px; font-size: 15px; font-weight: 560; color: var(--muted); cursor: pointer; transition: color .25s ease;
}
.period input:checked + label { color: var(--ink); }
.period input:focus-visible + label { outline: 2px solid var(--blue); outline-offset: -2px; }
.period .thumb {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 9px; background: #fff;
  box-shadow: 0 1px 2px rgba(10, 22, 48, .08), 0 0 0 1px var(--line); transition: transform .5s var(--ease);
}
#per-year:checked ~ .thumb { transform: translateX(100%); }
.save { padding: 2px 6px; border-radius: 6px; background: var(--tint); color: var(--blue-ink); font-size: 12px; font-weight: 650; }

.plans-sec { padding-bottom: clamp(88px, 9vw, 136px); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line-2); border-radius: 20px; background: #fff; }
.plan { position: relative; display: flex; flex-direction: column; padding: 38px 34px 40px; }
.plan + .plan { border-left: 1px solid var(--line); }
.plan.popular {
  z-index: 1; margin: -14px -1px; padding-top: 52px; padding-bottom: 54px; border-left: 0; border-radius: 20px;
  background: var(--navy) url(/img/dots-navy.svg) repeat; color: #fff; box-shadow: var(--shadow-lg);
}
.plan.popular + .plan { border-left: 0; }
.plan h2 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; color: inherit; }
.badge {
  position: absolute; top: 22px; right: 22px; padding: 4px 9px; border-radius: 7px; background: var(--blue); color: #fff;
  font-size: 12px; font-weight: 600; letter-spacing: .02em;
}
.for { margin-top: 8px; font-size: 15.5px; color: var(--muted); }
.price { display: flex; align-items: baseline; gap: 8px; margin-top: 34px; }
.amount { display: inline-block; font-size: 64px; font-weight: 580; line-height: 1; letter-spacing: -.045em; }
.amount.tick { animation: tick .5s var(--ease) both; }
.per { font-size: 16px; color: var(--muted); }
.billed { min-height: 22px; margin-top: 10px; font-size: 14px; color: var(--muted); }
.plan .btn { margin-top: 28px; }
.list { margin-top: 32px; padding-top: 26px; border-top: 1px solid var(--line); }
.list li, .included li { display: flex; align-items: center; gap: 12px; padding: 7px 0; font-size: 15.5px; color: var(--ink-2); }
.list li::before, .included li::before { content: ''; flex: none; width: 20px; height: 20px; background: url(/img/check.svg) no-repeat center / 20px; }
.list b { font-weight: 650; color: var(--ink); }
.popular .for, .popular .per, .popular .billed { color: #a7b4d0; }
.popular .list { border-top-color: #22335f; }
.popular .list li { color: #dbe3f5; }
.popular .list b { color: #fff; }
.popular .list li::before { background-image: url(/img/check-w.svg); }

.plan-wide {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 24px 48px; margin-top: 40px; padding: 30px 34px;
  border: 1px solid var(--line-2); border-radius: 20px;
}
.plan-wide h2 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.ent-main p { margin-top: 6px; font-size: 15.5px; color: var(--muted); }
.ent-price { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.included { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 40px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.included-h { font-size: 13px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.included ul { display: flex; flex-wrap: wrap; gap: 4px 32px; }
.included li { font-size: 15px; }

.faq-sec { padding: clamp(72px, 7vw, 104px) 0; background: var(--bg-2); border-top: 1px solid var(--line); }
.faq-title { margin: 0; font-size: clamp(34px, 4vw, 52px); }
.faq { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin: 48px 0 0; }
.faq > div { padding-top: 24px; border-top: 1px solid var(--line-2); }
.faq dt { font-size: 18px; font-weight: 600; letter-spacing: -.015em; }
.faq dd { margin: 8px 0 0; font-size: 15.5px; color: var(--muted); }
.faq-sec + .site-footer { border-top-color: var(--line); }

/* ---------- окно заказа ---------- */
.modal-open { overflow: hidden; }
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(10, 22, 48, .55); animation: fade .3s ease both; }
.modal-card {
  position: relative; width: min(468px, 100%); max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); overflow: auto;
  padding: 36px 34px 30px; background: #fff; border-radius: 20px; box-shadow: 0 40px 100px -20px rgba(5, 12, 30, .5);
  animation: pop .45s var(--ease) both;
}
.modal-x {
  position: absolute; top: 14px; right: 14px; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border: 0; border-radius: 10px; background: transparent; color: var(--muted); transition: background-color .2s ease, color .2s ease;
}
.modal-x:hover { background: var(--bg-2); color: var(--ink); }
.modal-x svg { width: 20px; height: 20px; }
.modal-plan {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px; border-radius: 8px; background: var(--tint);
  font-size: 13.5px; font-weight: 560; color: var(--blue-ink);
}
.modal-plan::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.modal-card h2 { margin-top: 18px; font-size: 30px; font-weight: 600; letter-spacing: -.035em; line-height: 1.1; }
.modal-card .sub { margin-top: 10px; font-size: 15.5px; color: var(--muted); }
.form { margin-top: 26px; }
.field + .field { margin-top: 16px; }
.field label { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 600; }
.field input, .field select {
  width: 100%; height: 50px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 11px; background: #fff;
  font-size: 16px; color: var(--ink); transition: border-color .2s ease, box-shadow .2s ease;
}
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background: #fff url(/img/chevron.svg) no-repeat right 14px center / 16px;
}
.field input::placeholder { color: #9aa5b8; }
.field input:hover, .field select:hover { border-color: #b9c4d8; }
.field input:focus, .field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--tint-2); }
.field [aria-invalid="true"] { border-color: #d6404a; }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 3px #fbe0e2; }
.err { margin-top: 6px; font-size: 13.5px; color: #c22f39; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-error { margin-top: 18px; padding: 11px 14px; border: 1px solid #f2c4c8; border-radius: 10px; background: #fff5f5; font-size: 14px; color: #a3262f; }
.form .btn[type="submit"] { margin-top: 24px; }
.fine { margin-top: 14px; font-size: 12.5px; line-height: 1.5; color: var(--faint); text-align: center; }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: spin .8s linear infinite; }
.modal-card .done { padding: 8px 0 4px; text-align: center; }
.modal-card .done .ok { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 50%; background: var(--tint); color: var(--blue); animation: pop .5s var(--ease) both; }
.modal-card .done .ok svg { width: 30px; height: 30px; }
.modal-card .done h2 { margin-top: 20px; outline: none; }
.modal-card .done p { margin: 12px auto 0; max-width: 340px; font-size: 15.5px; color: var(--muted); overflow-wrap: anywhere; }
.modal-card .done b { display: inline-block; max-width: 100%; color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.modal-card .done .btn { margin-top: 26px; min-width: 140px; }

/* ---------- кейсы ---------- */
.cases-sec { padding-bottom: clamp(96px, 10vw, 152px); }
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 64px 32px; counter-reset: c; }
.case-art {
  --k: #1a4bff;
  position: relative; aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  background: var(--bg-2) url(/img/dots.svg) repeat;
}
.k-red { --k: #d9363e; }
.k-green { --k: #0b7a5a; }
.k-gold { --k: #b98a2c; }
.k-blue { --k: #1a4bff; }
.k-violet { --k: #6a3df0; }
.ca-site {
  position: absolute; inset: 26px 26px 0; padding: 16px 18px; border: 1px solid var(--line); border-bottom: 0;
  border-radius: 11px 11px 0 0; background: #fff;
}
.ca-site i { display: block; height: 7px; margin-top: 9px; border-radius: 4px; background: #e8edf5; }
.ca-site i:first-child { width: 46%; height: 12px; margin-top: 0; background: #d8e0ef; }
.ca-site i:nth-child(2) { width: 64%; }
.ca-site i:nth-child(3) { width: 40%; }
.ca-win {
  position: absolute; right: 42px; bottom: 70px; display: flex; flex-direction: column; gap: 7px; width: 46%; padding-bottom: 12px;
  border: 1px solid var(--line); border-radius: 11px; background: #fff; box-shadow: var(--shadow); overflow: hidden;
}
.ca-head { height: 26px; background: var(--k); margin-bottom: 4px; }
.ca-b { width: 64%; height: 13px; margin: 0 11px; border-radius: 7px; background: #eef1f6; }
.ca-b.me { align-self: flex-end; width: 50%; background: var(--k); }
.ca-b.short { width: 40%; }
.ca-btn { position: absolute; right: 42px; bottom: 22px; width: 36px; height: 36px; border-radius: 50%; background: var(--k); box-shadow: var(--shadow); }
.case-art.left .ca-win, .case-art.left .ca-btn { right: auto; left: 42px; }
.case-art.rounded .ca-btn { border-radius: 11px; }
.case-art.square .ca-btn, .case-art.square .ca-win { border-radius: 3px; }
.case-art.tab .ca-btn { right: 27px; bottom: auto; top: 46%; width: 16px; height: 54px; border-radius: 7px 0 0 7px; }
.case-art.tab .ca-win { right: 56px; bottom: 22px; }
.case-art.dark .ca-site { background: #0f1a33; border-color: #1f2d4d; }
.case-art.dark .ca-site i { background: #1e2b4a; }
.case-art.dark .ca-site i:first-child { background: #2a3a60; }
.case-art.dark .ca-win { background: #0e1830; border-color: #223152; }
.case-art.dark .ca-b { background: #1d2a49; }
.case-art.dark .ca-b.me { background: var(--k); }
.case-art.multi { display: flex; align-items: center; justify-content: center; gap: 16px; }
.mini {
  position: relative; width: 26%; aspect-ratio: 3 / 4; border: 1px solid var(--line); border-radius: 11px; background: #fff; box-shadow: var(--shadow-sm);
}
.mini:nth-child(2) { transform: translateY(-10px); }
.mini i { position: absolute; top: 14px; left: 12px; right: 30%; height: 9px; border-radius: 5px; background: #dde4f1; }
.mini i::after { content: ''; position: absolute; top: 17px; left: 0; width: 140%; height: 6px; border-radius: 3px; background: #edf0f6; }
.mini b { position: absolute; right: 10px; bottom: 10px; width: 22px; height: 22px; border-radius: 50%; background: var(--k); }
.case-tag { margin-top: 24px; font-size: 12.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--blue); }
.case h2 { margin-top: 10px; font-size: 23px; font-weight: 600; line-height: 1.2; letter-spacing: -.025em; }
.case h2 + p { margin-top: 8px; font-size: 15.5px; line-height: 1.55; color: var(--muted); }

/* ---------- 404 ---------- */
.lost { padding: clamp(72px, 10vw, 150px) 0 clamp(96px, 12vw, 180px); }
.lost-code {
  font-size: clamp(110px, 18vw, 240px); font-weight: 600; line-height: .85; letter-spacing: -.07em;
  color: transparent; -webkit-text-stroke: 1.5px var(--blue); animation: fade-up .9s var(--ease) both;
}
.lost .btn { margin-top: 36px; animation: fade-up .9s var(--ease) .2s both; }

@keyframes tick { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1080px) {
  .cases { grid-template-columns: repeat(2, 1fr); }
  .plan { padding: 34px 26px 36px; }
  .amount { font-size: 54px; }
}
@media (max-width: 860px) {
  .plans { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .plan + .plan { border-left: 0; border-top: 1px solid var(--line); }
  .plan.popular { margin: 0 -1px; padding-top: 44px; padding-bottom: 44px; }
  .plan.popular + .plan { border-top: 0; }
  .plan-wide { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
  .plan-wide .btn { justify-self: start; }
  .included { max-width: 560px; margin-left: auto; margin-right: auto; }
  .faq { grid-template-columns: 1fr; gap: 0; }
  .faq > div { padding: 22px 0; }
}
@media (max-width: 620px) {
  .cases { grid-template-columns: 1fr; gap: 48px; }
  .case-art { aspect-ratio: 16 / 10; }
  .ca-win { bottom: 64px; width: 42%; }
  .period { width: 100%; min-width: 0; }
  .page-lead { font-size: 18px; }
  .modal { padding: 12px; align-items: end; }
  .modal-card { padding: 30px 22px 22px; border-radius: 18px; }
  .modal-card h2 { font-size: 26px; }
}

/* ---------- появление при прокрутке ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js [data-reveal].stagger { opacity: 1; transform: none; }
.js [data-reveal].stagger > * { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease) var(--d, 0s), transform 1s var(--ease) var(--d, 0s); }
.js [data-reveal].stagger.in > * { opacity: 1; transform: none; }

/* ---------- анимации ---------- */
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes lift { from { opacity: 0; transform: translateY(56px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes phone-in { from { opacity: 0; transform: translateY(64px) rotate(-2deg); } to { opacity: 1; transform: none; } }
@keyframes caret { 0% { opacity: 1; } 50% { opacity: 0; } }
@keyframes blink { 0%, 80%, 100% { opacity: .35; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-2px); } }
@keyframes ping { 0% { opacity: .9; transform: scale(.6); } 80%, 100% { opacity: 0; transform: scale(1.6); } }
@keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- адаптив ---------- */
@media (max-width: 1180px) {
  .hero-phone { left: 16px; }
  .app-body { grid-template-columns: 52px minmax(0, 1.3fr) minmax(0, 1fr) 176px; }
}
@media (max-width: 1080px) {
  .studio { grid-template-columns: 340px minmax(0, 1fr); }
  .controls { padding: 24px; }
  .team-grid { grid-template-columns: 1fr; }
  .team-copy { max-width: 640px; }
  .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; border-top: 0; margin-top: 40px; }
  .step { border-top: 1px solid var(--line-2); border-bottom: 0; }
  .step::after { top: -1px; bottom: auto; }
  .step p { padding-left: 0; margin-top: 10px; }
  .team-copy { max-width: none; }
  .team-visual { margin-right: 24px; }
}
@media (max-width: 900px) {
  :root { --gut: 24px; }
  .menu-btn { display: inline-flex; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0; display: flex; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gut) 24px; background: #fff; border-bottom: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s ease, transform .3s var(--ease), visibility 0s linear .3s;
  }
  .nav.open { opacity: 1; visibility: visible; transform: none; transition: opacity .25s ease, transform .3s var(--ease); }
  .nav a:not(.btn) { padding: 15px 0; font-size: 18px; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin: 18px 0 0; height: 50px; font-size: 16px; }
  .hero-foot { flex-direction: column; align-items: flex-start; gap: 28px; }
  .hero-phone { display: none; }
  .hero-browser .site-hero, .hero-browser .site-cards { margin-left: 0; max-width: calc(100% - 390px); }
  .hero-browser .site-cards { grid-template-columns: 1fr 1fr; }
  .hero-browser .site-cards i:nth-child(3) { display: none; }
  .studio { grid-template-columns: 1fr; }
  .controls { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; row-gap: 22px; }
  .controls > .ctl:first-child { grid-column: 1 / -1; }
  .app-body { grid-template-columns: 52px minmax(0, 1fr) 176px; }
  .app-chat { display: none; }
  .more-grid { grid-template-columns: 1fr; gap: 48px; }
  .foot { grid-template-columns: 1fr auto; }
  .copy { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .hero-browser .b-view { height: 540px; }
  .site { padding: 20px; }
  .site-hero { grid-template-columns: 1fr; margin-top: 32px; }
  .s-pic { display: none; }
  .site-cards { display: none; }
  .s-links { display: none; }
  .b-url { min-width: 0; width: 100%; max-width: 240px; }
  .chat { left: 14px; right: 14px; bottom: 86px; width: auto; height: calc(100% - 104px); }
  .launcher { right: 14px; bottom: 18px; width: 52px; height: 52px; }
  .hero-phone { display: none; }
  .controls { grid-template-columns: 1fr; padding: 22px; row-gap: 20px; }
  .preview { order: -1; padding: 14px; }
  .pv-view { height: 430px; }
  .pv-browser .b-bar { height: 40px; }
  .pv-copy, .site-mini .site-cards { width: 100%; }
  .pw-win { width: auto; left: 16px; right: 16px; bottom: 90px; }
  .pw-btn { right: 16px; bottom: 18px; }
  .preview[data-side="left"] .pw-win { left: 16px; right: 16px; }
  .preview[data-side="left"] .pw-btn { left: 16px; }
  .preview[data-shape="tab"] .pw-win { right: 56px; left: 16px; bottom: 16px; }
  .preview[data-side="left"][data-shape="tab"] .pw-win { left: 56px; right: 16px; }
  .steps { grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line-2); }
  .step { border-top: 0; border-bottom: 1px solid var(--line-2); }
  .step::after { top: auto; bottom: -1px; }
  .step p { padding-left: 42px; margin-top: 6px; }
  .team-visual { margin-right: 0; padding-bottom: 24px; }
  .app-body { grid-template-columns: minmax(0, 1fr) 156px; height: auto; min-height: 400px; }
  .invite-btn { margin-top: 16px; }
  .app-rail { display: none; }
  .conv { grid-template-columns: 32px minmax(0, 1fr); padding: 12px; }
  .conv .ava { width: 32px; height: 32px; }
  .conv-m { display: none; }
  .app-team { padding: 12px; }
  .phone { right: -6px; width: 196px; }
  .phone-screen { height: 360px; }
  .phone-time { font-size: 46px; }
  .band-in { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  :root { --gut: 20px; }
  body { font-size: 16px; }
  .bar { height: 64px; }
  .nav { top: 64px; }
  .hero-title { font-size: clamp(40px, 11.6vw, 56px); }
  .hero-lead { font-size: 18px; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1 1 auto; }
  .sec-lead { font-size: 17px; }
  .facts { grid-template-columns: 1fr; }
  .facts li, .facts li:nth-child(even) { padding: 24px 0 26px; border-left: 0; }
  .facts h3 { margin-top: 16px; }
  .seg-4 label > span { height: 58px; font-size: 12px; padding: 0 4px; }
  .foot { grid-template-columns: 1fr; gap: 24px; }
  .band-actions, .band-actions .btn { width: 100%; }
}
@media (max-width: 380px) {
  :root { --gut: 16px; }
  .swatches { gap: 10px; }
  .sw-c { width: 32px; height: 32px; }
  .app-body { grid-template-columns: minmax(0, 1fr) 132px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal], .js [data-reveal].stagger > * { opacity: 1; transform: none; }
  .stage { transform: none !important; }
}

/* ---------- тариф один: тёмная карточка «всё включено» (pricing.html) ---------- */
.offer {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px 64px; padding: 56px;
  border-radius: 24px; background: var(--navy) url(/img/dots-navy.svg) repeat; color: #fff; box-shadow: var(--shadow-lg);
}
.offer-tag { font-size: 13px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: #8fa6ff; }
.offer h2 { margin: 18px 0 0; font-size: 26px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; color: #fff; }
.offer-price { margin-top: 30px; font-size: clamp(44px, 5.2vw, 68px); font-weight: 580; line-height: 1; letter-spacing: -.045em; }
.offer-note { margin-top: 16px; max-width: 360px; font-size: 16.5px; line-height: 1.5; color: #b9c5e2; }
.offer .btn { margin-top: 36px; }
.offer-list {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: center; gap: 2px 32px;
  margin-top: 0; padding: 0 0 0 56px; border-top: 0; border-left: 1px solid #22335f;
}
.offer-list li { color: #dbe3f5; }
.offer-list li::before { background-image: url(/img/check-w.svg); }

@media (max-width: 900px) {
  .offer { grid-template-columns: 1fr; padding: 40px 28px; }
  .offer-list { padding: 28px 0 0; border-left: 0; border-top: 1px solid #22335f; }
}
@media (max-width: 560px) {
  .offer { padding: 34px 22px; border-radius: 20px; }
  .offer-list { grid-template-columns: 1fr; }
  .offer .btn { width: 100%; justify-content: center; }
}
