/* Заметность: сайт. Светлая бумага, чернильный индиго, акцент-фиолет и золото из логотипа. */
:root {
  --paper: #f4f2fb;
  --white: #ffffff;
  --ink: #15122e;
  --muted: #5e5a7d;
  --line: #dcd7ee;
  --violet: #6a38f0;
  --violet-soft: #e8e0ff;
  --gold: #ffc83d;
  --pink: #f0467d;
  --night: #140f36;
  --night-2: #221860;
  --night-line: #3a2f86;
  --wa: #1c9f50;
  --wa-dark: #157a3d;
  --font-head: "Unbounded", "Golos Text", system-ui, sans-serif;
  --font-body: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1160px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(72px, 10vw, 136px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: calc(var(--section-y) * .6); }

/* ---- типографика ---- */
.h1, .h2, .h3 { font-family: var(--font-head); font-weight: 700; letter-spacing: -0.025em; }
.h1 { font-size: clamp(2.15rem, 5.4vw, 4.2rem); line-height: 1.04; }
.h2 { font-size: clamp(1.65rem, 3.6vw, 2.65rem); line-height: 1.1; font-weight: 600; max-width: 18ch; }
.h2--wide { max-width: 24ch; }
.h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.2; font-weight: 600; letter-spacing: -0.015em; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--muted); max-width: 46ch; }
.prose { max-width: 58ch; color: var(--muted); }
.prose + .prose { margin-top: 1em; }
.small { font-size: .9375rem; color: var(--muted); line-height: 1.5; }

/* ---- кнопки ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .65em;
  min-height: 56px; padding: 0 1.6em; border-radius: 16px; border: 0;
  font-weight: 600; font-size: 1.0625rem; text-decoration: none; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.btn svg { width: 1.35em; height: 1.35em; flex: none; }
.btn--wa { background: var(--wa); color: #fff; box-shadow: 0 10px 28px -10px rgba(28, 159, 80, .75); }
.btn--wa:hover { background: var(--wa-dark); transform: translateY(-2px); box-shadow: 0 16px 32px -12px rgba(28, 159, 80, .8); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--gold); }
.btn--sm { min-height: 44px; padding: 0 1.1em; font-size: .9375rem; border-radius: 12px; }
.link-arrow { font-weight: 600; text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 2px; }
.link-arrow:hover { color: var(--violet); }

/* ---- шапка ---- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(244, 242, 251, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: box-shadow .2s ease; }
.header.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.header__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; letter-spacing: -0.02em; }
.brand .eye { width: 46px; flex: none; }
.nav { display: none; gap: 30px; }
.nav a { text-decoration: none; font-weight: 500; font-size: .98rem; color: var(--muted); padding-block: 8px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.header__right { display: flex; align-items: center; gap: 10px; }
.menu-btn { width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; display: grid; place-items: center; cursor: pointer; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, background-color .2s ease; }
.menu-btn span { position: relative; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -7px; }
.menu-btn span::after { top: 7px; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav { display: none; padding: 8px 0 20px; }
.mobile-nav.is-open { display: block; }
.mobile-nav a { display: block; padding: 14px 0; font-family: var(--font-head); font-weight: 500; font-size: 1.15rem; text-decoration: none; border-top: 1px solid var(--line); }
.header .btn--wa-head { display: none; }

@media (min-width: 900px) {
  .nav { display: flex; }
  .menu-btn, .mobile-nav { display: none !important; }
  .header .btn--wa-head { display: inline-flex; }
}

/* ---- глаз ---- */
.eye { position: relative; aspect-ratio: 8 / 5; }
.eye svg { width: 100%; height: 100%; overflow: visible; }
.eye .eye-ball { transform-origin: 120px 76px; transition: transform .14s ease-in; }
.eye.is-blink .eye-ball { transform: scaleY(.06); }
.eye.is-closed .eye-ball { transform: scaleY(.04); transition: none; }
.eye .eye-iris { transition: transform .09s linear; }
.eye .eye-star { transform-origin: 120px 76px; transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.eye.is-excited .eye-star { transform: scale(1.35) rotate(45deg); }
.eye--glow { z-index: 0; }
.eye--glow::before {
  content: ""; position: absolute; inset: -55% -30%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(122, 64, 255, .55), rgba(122, 64, 255, 0));
}

/* ---- первый экран ---- */
.hero { padding-block: clamp(28px, 5vw, 64px) clamp(56px, 8vw, 110px); overflow: clip; }
.hero__grid { display: grid; gap: 44px; align-items: center; }
.hero__text > * + * { margin-top: 24px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero__note { color: var(--muted); font-size: .98rem; max-width: 40ch; }
.hero__stage { position: relative; justify-self: center; width: min(100%, 360px); padding: 56px 0 12px; }
.hero__stage .eye { position: absolute; z-index: 3; width: clamp(140px, 46%, 180px); top: 0; left: 0; transform: rotate(-8deg); }
.phone { position: relative; z-index: 2; width: min(78%, 280px); margin-left: auto; border-radius: 38px; padding: 9px; background: var(--ink); box-shadow: 0 40px 70px -28px rgba(21, 18, 46, .55), 0 0 0 1px rgba(255, 255, 255, .08) inset; }
.phone__screen { position: relative; overflow: hidden; border-radius: 30px; aspect-ratio: 720 / 1220; background: var(--night); }
.phone__screen video, .phone__screen img { width: 100%; height: 100%; object-fit: cover; }
.phone__sound { position: absolute; left: 10px; top: 10px; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: rgba(20, 15, 54, .78); color: #fff; cursor: pointer; backdrop-filter: blur(6px); }
.phone__sound span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.phone__sound.is-on { background: var(--violet); }
.phone__sound:hover { background: var(--violet); }
.phone__sound svg { width: 18px; height: 18px; }
.phone__cap { position: absolute; z-index: 4; right: 0; bottom: -18px; max-width: 220px; padding: 12px 16px; border-radius: 16px 16px 16px 4px; background: var(--white); box-shadow: 0 20px 40px -20px rgba(21, 18, 46, .4); font-size: .9rem; line-height: 1.4; }
.phone__cap strong { display: block; font-weight: 600; }

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.08fr .92fr; gap: 56px; }
  .hero__stage { width: 100%; max-width: 440px; padding-top: 70px; }
  .hero__stage .eye { width: 50%; left: -6%; top: 0; }
  .phone { width: 72%; }
  .phone__cap { right: -8%; bottom: -34px; }
}

/* ---- блоки с предложениями ---- */
.offers { display: grid; gap: 20px; margin-top: 44px; }
.offer { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding: clamp(26px, 4vw, 44px); border-radius: 32px; overflow: hidden; }
.offer--light { background: var(--white); box-shadow: 0 1px 0 var(--line); }
.offer--dark { background: var(--night); color: #fff; border-radius: 32px 32px 32px 90px; }
.offer .h3 { max-width: 20ch; }
.offer p { max-width: 44ch; }
.offer--dark p { color: #cfc8f5; }
.offer__price { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; letter-spacing: -0.02em; }
.offer__price b { font-size: 1.9em; font-weight: 700; margin-right: .1em; }
.offer--dark .link-arrow:hover { color: var(--gold); }
.mini-chat { display: grid; gap: 8px; max-width: 320px; }
.bubble { width: fit-content; max-width: 88%; padding: 10px 14px; border-radius: 16px; font-size: .95rem; line-height: 1.4; }
.bubble--in { background: rgba(255, 255, 255, .1); border-bottom-left-radius: 4px; }
.bubble--out { background: var(--violet); color: #fff; border-bottom-right-radius: 4px; margin-left: auto; }
@media (min-width: 900px) {
  .offers { grid-template-columns: 7fr 5fr; }
}

/* ---- пример (кадры) ---- */
.proof { display: grid; gap: 40px; align-items: center; }
.frames { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.frames figure { border-radius: 16px; overflow: hidden; background: var(--night); box-shadow: 0 18px 30px -20px rgba(21, 18, 46, .5); }
.frames figure:nth-child(even) { transform: translateY(18px); }
.frames img { width: 100%; height: auto; aspect-ratio: 360 / 610; object-fit: cover; }
.proof__text > * + * { margin-top: 20px; }
@media (min-width: 900px) {
  .proof { grid-template-columns: 1.2fr .8fr; gap: 64px; }
}

/* ---- шаги ---- */
.steps-wrap { display: grid; gap: 40px; }
.steps { position: relative; display: grid; gap: 34px; padding-left: 58px; --p: 0; }
.steps::before { content: ""; position: absolute; left: 21px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--line); }
.steps::after { content: ""; position: absolute; left: 21px; top: 8px; width: 3px; height: calc((100% - 16px) * var(--p)); border-radius: 3px; background: var(--violet); }
.step { position: relative; }
.step__n { position: absolute; left: -58px; top: -4px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 2px var(--line); font-family: var(--font-head); font-weight: 600; font-size: 1rem; transition: background-color .3s ease, color .3s ease, box-shadow .3s ease; }
.step.is-on .step__n { background: var(--violet); color: #fff; box-shadow: none; }
.step h3 { font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; letter-spacing: -0.015em; line-height: 1.25; }
.step p { margin-top: 8px; color: var(--muted); max-width: 48ch; }
@media (min-width: 900px) {
  .steps-wrap { grid-template-columns: 5fr 6fr; gap: 80px; align-items: start; }
  .steps-wrap__head { position: sticky; top: 110px; }
}

/* ---- чат-демо ---- */
.night { background: var(--night); color: #fff; }
.night .h2 { color: #fff; }
.night .lead, .night .prose { color: #cfc8f5; }
.demo { display: grid; gap: 44px; align-items: center; }
.demo__facts { margin-top: 28px; display: grid; gap: 14px; max-width: 46ch; }
.demo__facts li { padding-left: 22px; position: relative; color: #e6e1ff; }
.demo__facts li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.tabs { display: flex; gap: 8px; margin-top: 30px; flex-wrap: wrap; }
.tab { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .08); color: #e6e1ff; font-weight: 500; cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.tab:hover { background: rgba(255, 255, 255, .16); }
.tab[aria-selected="true"] { background: var(--gold); color: var(--ink); }
.chat { width: 100%; max-width: 420px; justify-self: center; border-radius: 28px; overflow: hidden; background: #0e0a29; box-shadow: 0 0 0 1px var(--night-line), 0 40px 80px -30px rgba(0, 0, 0, .7); }
.chat__top { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--night-2); }
.chat__top .eye { width: 40px; flex: none; }
.chat__title { font-weight: 600; line-height: 1.2; }
.chat__title small { display: block; font-weight: 400; font-size: .8rem; color: #a9a1dd; }
.chat__body { height: 440px; padding: 18px 16px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; scrollbar-width: none; }
.chat__body::-webkit-scrollbar { display: none; }
.msg { max-width: 84%; padding: 10px 14px; border-radius: 18px; font-size: .96rem; line-height: 1.42; animation: pop .28s ease both; }
.msg--client { align-self: flex-start; background: #2a2078; border-bottom-left-radius: 5px; }
.msg--bot { align-self: flex-end; background: var(--violet); border-bottom-right-radius: 5px; }
.msg--typing { display: inline-flex; gap: 5px; align-items: center; padding: 14px 16px; }
.msg--typing i { width: 7px; height: 7px; border-radius: 50%; background: #fff; opacity: .5; animation: dots 1s infinite ease-in-out; }
.msg--typing i:nth-child(2) { animation-delay: .15s; }
.msg--typing i:nth-child(3) { animation-delay: .3s; }
.note { align-self: center; max-width: 92%; padding: 10px 14px; border-radius: 14px; background: rgba(255, 200, 61, .14); color: #ffe39a; font-size: .875rem; line-height: 1.4; animation: pop .3s ease both; }
.chat__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--night-line); font-size: .85rem; color: #a9a1dd; }
.chat__replay { border: 0; background: transparent; color: var(--gold); font-weight: 600; cursor: pointer; padding: 6px 4px; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes dots { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }
@media (min-width: 900px) {
  .demo { grid-template-columns: 1fr 420px; gap: 88px; }
}

/* ---- цены ---- */
.prices { display: grid; gap: 20px; margin-top: 44px; }
.price { padding: clamp(26px, 4vw, 44px); border-radius: 32px; background: var(--white); box-shadow: 0 1px 0 var(--line); display: flex; flex-direction: column; gap: 22px; }
.price--hi { background: var(--violet); color: #fff; border-radius: 32px 90px 32px 32px; }
.price__num { font-family: var(--font-head); font-weight: 700; font-size: clamp(2.3rem, 4.6vw, 3.5rem); letter-spacing: -0.04em; line-height: 1; white-space: nowrap; }
.price__num small { display: block; margin: .55em 0 0; font-size: .34em; font-weight: 500; letter-spacing: -0.01em; white-space: normal; }
.price__then { font-family: var(--font-head); font-weight: 500; font-size: 1.1rem; letter-spacing: -0.02em; }
.price p { color: var(--muted); max-width: 44ch; }
.price--hi p { color: #e6dcff; }
.price--hi .small { color: #e6dcff; }
.price ul { display: grid; gap: 10px; }
.price li { padding-left: 22px; position: relative; }
.price li::before { content: ""; position: absolute; left: 0; top: .66em; width: 10px; height: 2px; background: currentColor; opacity: .6; }
.prices__after { margin-top: 28px; }
@media (min-width: 900px) {
  .prices { grid-template-columns: 5fr 6fr; align-items: stretch; }
}

/* ---- обещания ---- */
.pair { display: grid; gap: 28px; margin-top: 44px; }
.pair__col { padding: clamp(26px, 4vw, 40px); border-radius: 28px; }
.pair__col--yes { background: var(--white); box-shadow: 0 1px 0 var(--line); }
.pair__col--no { background: transparent; box-shadow: inset 0 0 0 2px var(--line); }
.pair__col h3 { margin-bottom: 18px; }
.pair__col li { padding: 10px 0 10px 28px; position: relative; border-top: 1px solid var(--line); }
.pair__col li:first-child { border-top: 0; }
.pair__col li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 14px; height: 14px; border-radius: 50%; }
.pair__col--yes li::before { background: var(--violet); }
.pair__col--no li::before { box-shadow: inset 0 0 0 2px var(--muted); }
.about { margin-top: 56px; padding: clamp(26px, 4vw, 44px); border-radius: 32px; background: var(--violet-soft); display: grid; gap: 14px; }
@media (min-width: 900px) {
  .pair { grid-template-columns: 1fr 1fr; }
  .about { grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; }
}

/* ---- вопросы ---- */
.faq { margin-top: 40px; border-top: 2px solid var(--ink); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; padding: 18px 0; cursor: pointer; list-style: none; font-family: var(--font-head); font-weight: 500; font-size: 1.05rem; letter-spacing: -0.015em; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(var(--ink), var(--ink)) center / 12px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 12px no-repeat; box-shadow: inset 0 0 0 2px var(--line); transition: transform .25s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--violet); }
.faq .faq__a { padding: 0 0 22px; max-width: 62ch; color: var(--muted); }

/* ---- финальный призыв ---- */
.final { position: relative; overflow: clip; text-align: center; }
.final .eye { width: min(300px, 62%); margin: 0 auto 36px; }
.final .h2 { margin-inline: auto; max-width: 20ch; }
.final .lead { margin: 20px auto 0; }
.final__actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.final__links { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: center; }
.final__links a { display: inline-flex; align-items: center; gap: 8px; color: #e6e1ff; text-decoration: none; font-weight: 500; }
.final__links a:hover { color: var(--gold); }
.final__links svg { width: 20px; height: 20px; }

/* ---- подвал ---- */
.footer { padding-block: 40px 100px; color: var(--muted); font-size: .95rem; }
.footer__row { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: flex-start; }
.footer__links { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--violet); }
.footer .brand { color: var(--ink); }

/* ---- липкая кнопка на телефоне ---- */
.sticky-wa { position: fixed; z-index: 60; left: 16px; right: 16px; bottom: 16px; transform: translateY(150%); transition: transform .3s ease; }
.sticky-wa.is-on { transform: none; }
.sticky-wa .btn { width: 100%; box-shadow: 0 16px 36px -10px rgba(21, 18, 46, .5); }
@media (min-width: 900px) { .sticky-wa { display: none; } .footer { padding-bottom: 40px; } }

/* ---- страницы услуг ---- */
.cols { display: grid; gap: 28px; margin-top: 44px; }
@media (min-width: 900px) { .cols { grid-template-columns: 1fr 1fr; gap: 56px; } }
.hero--inner .hero__grid { align-items: center; }
.eye--inline { width: 84px; }
.hero__chat { position: relative; justify-self: center; width: 100%; max-width: 440px; padding-top: 44px; }
.hero__chat .eye { position: absolute; top: 0; right: -4%; width: 130px; z-index: 3; transform: rotate(6deg); }
.hero__chat .chat { max-width: none; }

/* ---- движение и доступность ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* вкладки на светлом фоне (страница администратора) */
.hero__chat .tabs { margin-top: 18px; }
.hero__chat .tab { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.hero__chat .tab:hover { box-shadow: inset 0 0 0 2px var(--ink); background: var(--white); }
.hero__chat .tab[aria-selected="true"] { background: var(--ink); color: #fff; box-shadow: none; }

.nw { white-space: nowrap; }

@media (max-width: 899px) { .phone__cap { max-width: 168px; padding: 9px 12px; font-size: .8rem; right: 2%; bottom: -26px; } }
.chat { color: #fff; }
