/* BotFactory AI — стили сайта.
   Цвета и характер — из постов Instagram: светлый фон, чернильный текст, электрический синий. */

:root {
  --bg: #F7FAFF;
  --surface: #FFFFFF;
  --ink: #0C141F;
  --ink-2: #16202E;
  --text-2: #3A4656;
  --muted: #5C697C;
  --line: #DBE5F6;
  --line-2: #C9D7F0;
  --blue: #1454F4;
  --blue-deep: #0C37AC;
  --blue-hi: #3D74FF;
  --blue-soft: #EAF0FF;
  --green: #14A868;
  --red: #E5484D;

  --font: "Geologica", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --step: clamp(80px, 11vw, 140px);
  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 16px;
  --shadow: 0 1px 2px rgba(12, 20, 31, .04), 0 12px 32px -18px rgba(12, 32, 80, .22);
  --shadow-lg: 0 40px 80px -40px rgba(20, 84, 244, .45);
  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.55 var(--font);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (min-width: 900px) { body { font-size: 18px; } }

a { color: var(--blue); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-deep); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
img, svg { display: block; max-width: 100%; }

h1, h2, h3 { margin: 0; color: inherit; text-wrap: balance; letter-spacing: -.03em; overflow-wrap: break-word; }
h1 { font-size: clamp(2.35rem, 1.1rem + 3.6vw, 4.25rem); line-height: 1; font-weight: 700; }
h2 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.1rem); line-height: 1.04; font-weight: 700; }
h3 { font-size: 1.3rem; line-height: 1.2; font-weight: 650; letter-spacing: -.02em; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; padding: .7em 1.1em; background: var(--ink); color: #fff; border-radius: 12px; font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: .75em 1.45em;
  border: 1px solid var(--blue); border-radius: 999px;
  background: var(--blue); color: #fff;
  font: 600 1rem/1.15 var(--font); letter-spacing: -.01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  box-shadow: 0 10px 24px -12px rgba(20, 84, 244, .8);
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; transform: translateY(-1px); }
.btn:active { transform: none; }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); box-shadow: none; }
.btn--ghost:hover { background: var(--surface); color: var(--ink); border-color: var(--ink); }
.btn--dark { background: var(--ink); border-color: var(--ink); box-shadow: none; }
.btn--dark:hover { background: var(--ink-2); border-color: var(--ink-2); }
.btn--sm { min-height: 42px; padding: .5em 1.1em; font-size: .92rem; box-shadow: none; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ---------- Шапка: плавающая стеклянная панель ---------- */

.top { position: sticky; top: 10px; z-index: 50; padding: 10px var(--gutter) 0; }
.top__bar {
  max-width: var(--wrap); margin: 0 auto;
  display: flex; align-items: center; gap: 14px;
  padding: 7px 7px 7px 14px;
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid rgba(201, 215, 240, .8);
  border-radius: 999px;
  box-shadow: 0 10px 30px -16px rgba(12, 32, 80, .28);
}

.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 650; font-size: 1.08rem; letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.brand img { width: 40px; height: 40px; flex: none; }
.brand span { display: none; }
@media (min-width: 430px) { .brand span { display: inline; } }

.top__nav { display: none; gap: 4px; margin-left: auto; }
.top__nav a { padding: .45em .72em; border-radius: 999px; color: var(--text-2); text-decoration: none; font-size: .93rem; white-space: nowrap; }
.top__nav a:hover { color: var(--ink); background: var(--blue-soft); }
.top__nav a[aria-current="page"] { color: var(--ink); background: var(--blue-soft); }
@media (min-width: 1260px) { .top__nav { display: flex; } }

.top__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
@media (min-width: 1260px) { .top__actions { margin-left: 6px; } }

.lang { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--blue-soft); }
.lang a { padding: .38em .7em; border-radius: 999px; color: var(--muted); text-decoration: none; font-size: .8rem; font-weight: 600; line-height: 1.2; }
.lang a:hover { color: var(--ink); }
.lang a[aria-current="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(12, 20, 31, .12); }

/* Вход владельца в студию. На узком экране — в подвале */
.top__login { display: none; }
@media (min-width: 720px) { .top__login { display: inline-flex; } }

/* Меню для экранов, где разделы не помещаются в шапку */
.menu { position: relative; }
.menu__btn {
  list-style: none; display: grid; place-items: center; width: 42px; height: 42px;
  border-radius: 50%; background: var(--surface); border: 1px solid var(--line-2); cursor: pointer;
}
.menu__btn::-webkit-details-marker { display: none; }
.menu__btn span, .menu__btn span::before, .menu__btn span::after { display: block; width: 16px; height: 2px; border-radius: 2px; background: var(--ink); 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: -5px; }
.menu__btn span::after { top: 5px; }
.menu[open] .menu__btn span { background: transparent; }
.menu[open] .menu__btn span::before { transform: translateY(5px) rotate(45deg); }
.menu[open] .menu__btn span::after { transform: translateY(-5px) rotate(-45deg); }
.menu__panel {
  position: absolute; right: 0; top: calc(100% + 12px); z-index: 60;
  min-width: 240px; display: flex; flex-direction: column; padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line); border-radius: 22px;
  box-shadow: 0 24px 50px -20px rgba(12, 32, 80, .35);
}
.menu__panel a { padding: .75em 1em; border-radius: 14px; color: var(--ink); text-decoration: none; font-weight: 500; white-space: nowrap; }
.menu__panel a:hover, .menu__panel a[aria-current="page"] { background: var(--blue-soft); color: var(--ink); }
.menu__panel .menu__login { position: relative; margin-top: 9px; color: var(--blue); font-weight: 600; }
.menu__panel .menu__login::before { content: ""; position: absolute; left: 1em; right: 1em; top: -5px; height: 1px; background: var(--line); }
@media (prefers-reduced-motion: no-preference) { .menu[open] .menu__panel { animation: pop .2s ease both; } }
@media (min-width: 1260px) { .menu { display: none; } }

/* Телефон: логотип, язык, заявка и меню в одну строку */
@media (max-width: 480px) {
  .top { padding-top: 8px; }
  .top__bar { gap: 6px; padding: 6px 6px 6px 10px; }
  .brand img { width: 36px; height: 36px; }
  .top__actions { gap: 6px; }
  .lang a { padding: .36em .55em; }
  .top__actions > .btn--sm { min-height: 40px; padding: .5em .85em; font-size: .86rem; }
  .menu__btn { width: 40px; height: 40px; }
}
@media (max-width: 359px) { .top .lang { display: none; } }
/* В документах три языка — на телефоне уступаем им место кнопки заявки */
@media (max-width: 480px) { .top__bar:has(.lang a:nth-child(3)) .top__actions > .btn--sm:not(.top__login) { display: none; } }

/* ---------- Первый экран ---------- */

.hero { position: relative; padding: clamp(40px, 7vw, 88px) 0 var(--step); overflow: hidden; }

/* Сетка шестиугольников — отсылка к логотипу */
.hero::before {
  content: ""; position: absolute; inset: -10% -10% 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='55.4' height='96' viewBox='0 0 27.7 48'%3E%3Cpath d='M13.86 0 27.71 8v16l-13.85 8L0 24V8ZM13.86 32v16' fill='none' stroke='%231454F4' stroke-opacity='.13' stroke-width='.6'/%3E%3C/svg%3E");
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 72% 40%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse 60% 70% at 72% 40%, #000 10%, transparent 70%);
  pointer-events: none;
}
.hero__glow {
  position: absolute; z-index: 0; width: 720px; height: 720px; right: -160px; top: -40px;
  background:
    radial-gradient(closest-side, rgba(20, 84, 244, .28), transparent 70%),
    radial-gradient(closest-side at 30% 70%, rgba(20, 168, 104, .16), transparent 70%);
  filter: blur(20px); pointer-events: none;
}

.hero__grid { position: relative; z-index: 1; display: grid; gap: 56px; align-items: center; }
@media (min-width: 1000px) { .hero__grid { grid-template-columns: minmax(0, 1.22fr) minmax(0, .78fr); gap: 32px; } }

.say {
  display: inline-flex; align-items: center; gap: .6em;
  margin: 0 0 1.5rem; padding: .5em 1em .5em .75em;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  font-size: .95rem; font-weight: 500; box-shadow: var(--shadow);
}
@media (max-width: 400px) { .say { font-size: .86rem; padding: .45em .85em .45em .65em; } }
.say__dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--green); flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .say__dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--green); opacity: 0; animation: pulse 2.4s ease-out infinite; }
  @keyframes pulse { 0% { transform: scale(.6); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }
}

.hero h1 { max-width: 16ch; overflow-wrap: break-word; }
/* Кыргызские слова длинные («Кардарларыңызга») — на узких телефонах шрифт чуть меньше */
@media (max-width: 360px) { h1 { font-size: 2.05rem; } }
.lead { margin-top: 1.4rem; font-size: clamp(1.08rem, 1rem + .3vw, 1.25rem); line-height: 1.5; color: var(--text-2); max-width: 40ch; }

.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.hero__facts { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 1.6rem 0 0; padding: 0; color: var(--muted); font-size: .95rem; }
.hero__facts li { display: inline-flex; align-items: center; gap: .5em; }
.hero__facts li::before {
  content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%;
  background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='m5 9.2 2.6 2.6L13 6.4' fill='none' stroke='%231454F4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat;
}

/* Телефон с перепиской в Instagram */

.stage { position: relative; justify-self: center; width: min(100%, 420px); padding: 0 34px; }

.phone {
  position: relative; width: 100%; max-width: 330px; margin: 0 auto;
  aspect-ratio: 330 / 660;
  background: #fff; border: 11px solid var(--ink); border-radius: 52px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(12, 20, 31, .08);
  overflow: hidden; display: flex; flex-direction: column;
  font-size: 14px; line-height: 1.38;
}
.phone__island { position: absolute; top: 9px; left: 50%; width: 92px; height: 26px; margin-left: -46px; background: var(--ink); border-radius: 20px; z-index: 2; }
.phone__status { display: flex; justify-content: space-between; align-items: center; padding: 12px 22px 4px 26px; font-size: 12.5px; font-weight: 600; }
.phone__status span:last-child { letter-spacing: .1em; font-size: 10px; }

.dm__head { display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 12px; border-bottom: 1px solid #EEF1F6; }
.dm__back { width: 10px; height: 10px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); margin: 0 4px 0 6px; flex: none; }
.dm__avatar { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #F6B24A, #E8604C); color: #fff; font-weight: 700; font-size: 15px; }
.dm__name { display: block; font-weight: 650; font-size: 14.5px; line-height: 1.2; }
.dm__status { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--green); }
.dm__status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

.dm__log { list-style: none; margin: 0; padding: 12px 12px 6px; display: flex; flex-direction: column; gap: 6px; flex: 1; overflow: hidden; }
.dm__day { align-self: center; margin: 2px 0 6px; font-size: 11px; color: var(--muted); font-weight: 500; }
.b { max-width: 82%; padding: 8px 12px; border-radius: 20px; }
.b--in { align-self: flex-start; background: #EFF1F5; border-bottom-left-radius: 6px; }
.b--out { align-self: flex-end; background: linear-gradient(135deg, var(--blue-hi), var(--blue)); color: #fff; border-bottom-right-radius: 6px; }
.b small { display: block; margin-top: 2px; font-size: 10.5px; opacity: .7; text-align: right; }
.dm__typing { align-self: flex-end; display: inline-flex; gap: 4px; padding: 11px 13px; background: var(--blue-soft); border-radius: 20px; border-bottom-right-radius: 6px; }
.dm__typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); opacity: .5; }

.dm__input { display: flex; align-items: center; gap: 8px; margin: 6px 10px 12px; padding: 9px 14px; border: 1px solid #E3E8F0; border-radius: 999px; color: #8D97A6; font-size: 13px; }
.dm__input::after { content: ""; margin-left: auto; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #C5CDD9; }

/* Всплывающие подписи вокруг телефона */
.float {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px 10px 10px;
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(201, 215, 240, .9); border-radius: 18px;
  box-shadow: 0 18px 40px -20px rgba(12, 32, 80, .45);
  font-size: .84rem; line-height: 1.25; font-weight: 600; white-space: nowrap;
}
.float small { display: block; font-weight: 400; color: var(--muted); font-size: .76rem; }
.float__ico { width: 32px; height: 32px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); font-weight: 700; font-size: .8rem; }
.float__ico--green { background: #E3F6EE; color: var(--green); }
.float--a { top: 69%; left: -6px; }
.float--b { top: 80%; right: -8px; }
.float--c { top: 2%; right: -12px; }
@media (max-width: 480px) { .float--c { display: none; } .stage { padding: 0 12px; } }

@media (prefers-reduced-motion: no-preference) {
  .dm__log > li, .float { animation: pop .5s cubic-bezier(.2, .8, .2, 1) both; animation-delay: var(--d, 0s); }
  .dm__typing { animation: typing 1s ease both; animation-delay: var(--d, 0s); }
  .dm__typing i { animation: dots 1s infinite; }
  .dm__typing i:nth-child(2) { animation-delay: .15s; }
  .dm__typing i:nth-child(3) { animation-delay: .3s; }
  @keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
  @keyframes typing { 0% { opacity: 0; max-height: 0; padding-block: 0; } 15%, 80% { opacity: 1; max-height: 40px; } 100% { opacity: 0; max-height: 0; padding-block: 0; margin-top: -6px; } }
  @keyframes dots { 0%, 100% { opacity: .35; transform: none; } 50% { opacity: 1; transform: translateY(-2px); } }
}
@media (prefers-reduced-motion: reduce) { .dm__typing { display: none; } }

.stage__cap { margin: 22px 0 0; text-align: center; font-size: .8rem; color: var(--muted); }

/* ---------- Секции ---------- */

.sec { padding: var(--step) 0; }
.sec--tight { padding-top: 0; }
.sec__head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 56px); }
@media (min-width: 900px) { .sec__head--split { grid-template-columns: 1.1fr .9fr; align-items: end; gap: 48px; } }
.sec__head p { margin: 0; color: var(--text-2); font-size: 1.08rem; max-width: 52ch; }
.sec__head h2 { max-width: 20ch; }

/* Бегущая лента вопросов клиентов */

.ticker { padding: var(--step) 0 0; overflow: hidden; }
.ticker h2 { max-width: none; }
.ticker__rows { display: grid; gap: 14px; margin-top: 44px; }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; gap: 12px; width: max-content; }
.marquee__track span {
  padding: .7em 1.2em; border-radius: 22px 22px 22px 6px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: clamp(1rem, .9rem + .5vw, 1.3rem); font-weight: 500; white-space: nowrap;
}
.marquee--b .marquee__track span { border-radius: 22px 22px 6px 22px; background: var(--blue); border-color: var(--blue); color: #fff; }
@media (prefers-reduced-motion: no-preference) {
  .marquee__track { animation: marquee 48s linear infinite; }
  .marquee--b .marquee__track { animation-direction: reverse; animation-duration: 56s; }
  .marquee:hover .marquee__track { animation-play-state: paused; }
  @keyframes marquee { to { transform: translateX(-50%); } }
}
@media (prefers-reduced-motion: reduce) { .marquee__track { flex-wrap: wrap; width: auto; } .marquee__track [aria-hidden] { display: none; } }

/* Bento: что умеет бот */

.bento { display: grid; gap: 16px; }
@media (min-width: 680px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .bento { grid-template-columns: repeat(6, 1fr); } }

.card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  padding: clamp(22px, 2.6vw, 32px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .55rem; }
.card p { margin: 0; color: var(--text-2); }
.card--blue { background: linear-gradient(150deg, var(--blue-hi) 0%, var(--blue) 45%, var(--blue-deep) 100%); border-color: transparent; color: #fff; }
.card--blue p { color: rgba(255, 255, 255, .86); }
.card--ink { background: var(--ink); border-color: transparent; color: #fff; }
.card--ink p, .card--ink li { color: rgba(255, 255, 255, .78); }

@media (min-width: 1000px) {
  .span-2 { grid-column: span 2; }
  .span-3 { grid-column: span 3; }
  .span-4 { grid-column: span 4; }
  .span-6 { grid-column: span 6; }
  .span-6 .nos { grid-template-columns: repeat(4, 1fr); }
  .row-2 { grid-row: span 2; }
}
@media (min-width: 680px) and (max-width: 999px) { .wide-md { grid-column: 1 / -1; } }

/* Значки карточек — в стиле значков интеграций: цветной квадрат, белый знак */
.bico { flex: none; width: 44px; height: 44px; margin-bottom: 18px; border-radius: 14px; display: grid; place-items: center; color: #fff; }
.bico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bico--lang { background: linear-gradient(135deg, var(--blue-hi), var(--blue)); }
.bico--speed { background: #fff; color: var(--blue); }
.bico--night { background: var(--ink); }
.bico--orders { background: var(--green); }
.bico--hot { background: linear-gradient(135deg, #FF8A3D, var(--red)); }
.bico--photo { background: linear-gradient(135deg, #9B6BFF, #6C47FF); }
.bico--no { background: var(--red); }

.stat { display: block; font-size: clamp(3.4rem, 2.4rem + 3vw, 5rem); line-height: .9; font-weight: 700; letter-spacing: -.05em; margin: auto 0 .9rem; }
.card--blue .stat { color: #fff; }
.stat--blue { color: var(--blue); }
.stat small { font-size: .38em; letter-spacing: -.01em; font-weight: 600; margin-left: .15em; }

.lang-demo { display: grid; gap: 8px; margin-top: auto; padding-top: 26px; font-size: 1rem; }
.lang-demo .b { max-width: 78%; padding: 10px 15px; }
.lang-demo .b--in { justify-self: start; background: var(--blue-soft); }
.lang-demo .b--out { justify-self: end; }
.lang-demo__tag { justify-self: center; margin: 6px 0; padding: .3em .8em; border-radius: 999px; background: #E3F6EE; color: #0B7A4B; font-size: .78rem; font-weight: 600; }

.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; }
.tags li { padding: .4em .85em; border-radius: 999px; background: var(--blue-soft); color: var(--blue-deep); font-size: .88rem; font-weight: 600; }

.nos { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px 28px; }
@media (min-width: 680px) { .nos { grid-template-columns: 1fr 1fr; } }
.nos li { position: relative; padding-left: 1.7em; }
.nos li::before { content: ""; position: absolute; left: 0; top: .5em; width: 1em; height: 2px; border-radius: 2px; background: var(--red); transform: rotate(-45deg); }
.nos li::after { content: ""; position: absolute; left: 0; top: .5em; width: 1em; height: 2px; border-radius: 2px; background: var(--red); transform: rotate(45deg); }

/* Голосовые и медиа */

.media { display: grid; gap: 44px; align-items: center; }
@media (min-width: 960px) { .media { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 64px; } }
.media h2 { max-width: 16ch; }
.media__lead { margin: 1.1rem 0 0; color: var(--text-2); font-size: 1.08rem; max-width: 50ch; }
.feats { list-style: none; margin: 2.2rem 0 0; padding: 0; display: grid; gap: 22px; }
.feats li { display: flex; gap: 16px; align-items: flex-start; }
.feats .bico { margin: 0; }
.feats h3 { font-size: 1.12rem; margin-bottom: .3rem; }
.feats p { margin: 0; color: var(--text-2); font-size: .98rem; }
.bico--voice { background: linear-gradient(135deg, var(--blue-hi), var(--blue)); }
.bico--files { background: var(--ink); }

.mchat { margin: 0; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); }
.mchat__log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: .95rem; line-height: 1.4; }
.mchat figcaption { margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: .8rem; color: var(--muted); }
.mchat__note { align-self: flex-start; max-width: 86%; margin: -2px 0 4px; padding: 8px 12px; border-left: 2px solid var(--blue); background: var(--blue-soft); border-radius: 0 12px 12px 0; font-size: .86rem; color: var(--text-2); }
.mchat__note b { color: var(--blue-deep); font-weight: 600; }

.voice { display: flex; align-items: center; gap: 10px; width: min(250px, 82%); }
.voice__play { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--blue); }
.voice__play::after { content: ""; position: absolute; left: 12px; top: 10px; border-left: 10px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.voice__wave { flex: 1; display: flex; align-items: center; gap: 2px; height: 28px; }
.voice__wave i { flex: 1; max-width: 3px; border-radius: 2px; background: #8D97A6; }
.voice__time { font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }

.photo { display: grid; gap: 6px; padding: 6px; }
.photo__img { display: grid; place-items: center; width: 170px; height: 124px; border-radius: 15px; background: linear-gradient(135deg, #2B2F3A, #535B70); color: rgba(255, 255, 255, .92); }
.photo__img svg { width: 46px; height: 46px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.photo__cap { padding: 0 6px 3px; }

/* Интеграции: каналы → бот → CRM */

.hub { display: grid; gap: 28px; }
@media (min-width: 1000px) { .hub { grid-template-columns: 1fr minmax(230px, .72fr) 1fr; gap: 56px; align-items: stretch; } }
.hub__col h3 { margin: 0 0 14px; font-size: 1rem; font-weight: 600; color: var(--muted); letter-spacing: -.01em; }
.hub__col--out { align-self: center; }
.hub__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 640px) and (max-width: 999px) { .hub__list { grid-template-columns: 1fr 1fr; } }

.tile { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.tile b { display: block; margin-bottom: 2px; font-weight: 650; }
.tile__txt { display: block; color: var(--text-2); font-size: .92rem; line-height: 1.4; }
.tile__ico { flex: none; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: .8rem; letter-spacing: -.02em; }
.tile__ico img { display: block; }
/* Настоящие знаки сервисов: WhatsApp и Instagram — как иконки приложений, остальные — их собственные значки */
.tile__ico--wa { background: #25D366; }
.tile__ico--ig { background: radial-gradient(circle at 30% 107%, #FDF497 0%, #FDF497 5%, #FD5949 45%, #D6249F 60%, #285AEB 90%); }
.tile__ico--wa img, .tile__ico--ig img { width: 24px; height: 24px; }
.tile__ico--tg, .tile__ico--b24, .tile__ico--alt { background: none; }
.tile__ico--tg img, .tile__ico--b24 img, .tile__ico--alt img { width: 42px; height: 42px; }
.tile__ico--amo { background: var(--surface); border: 1px solid var(--line); }
.tile__ico--amo img { width: 26px; height: 26px; }

.hub__core {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 36px 24px; text-align: center;
  background: var(--ink); color: #fff; border-radius: var(--r-xl);
  box-shadow: 0 40px 70px -40px rgba(12, 20, 31, .7);
}
.hub__core::before { content: ""; position: absolute; width: 360px; height: 360px; left: 50%; top: 50%; margin: -180px 0 0 -180px; background: radial-gradient(closest-side, rgba(20, 84, 244, .55), transparent 70%); pointer-events: none; }
.hub__core > * { position: relative; }
.hub__core img { width: 92px; height: 92px; }
.hub__core b { font-size: 1.3rem; font-weight: 650; letter-spacing: -.02em; }
.hub__core span { max-width: 24ch; color: rgba(255, 255, 255, .75); font-size: .95rem; }

/* Линии-«контакты», как в логотипе: от каналов к боту и от бота к CRM. Данные бегут слева направо */
@media (min-width: 1000px) {
  .hub__col--in .tile::after, .hub__col--out .tile::before {
    content: ""; position: absolute; top: 50%; width: 56px; height: 2px; margin-top: -1px;
    background: repeating-linear-gradient(90deg, var(--blue) 0 6px, transparent 6px 12px); opacity: .6;
  }
  .hub__col--in .tile::after { left: 100%; }
  .hub__col--out .tile::before { right: 100%; }
  .hub__col--in .tile::before, .hub__col--out .tile::after {
    content: ""; position: absolute; top: 50%; width: 11px; height: 11px; margin-top: -5.5px;
    border-radius: 50%; background: var(--surface); border: 2px solid var(--blue); z-index: 1;
  }
  .hub__col--in .tile::before { right: -6px; }
  .hub__col--out .tile::after { left: -6px; }
}
@media (min-width: 1000px) and (prefers-reduced-motion: no-preference) {
  .hub__col--in .tile::after, .hub__col--out .tile::before { animation: flow .9s linear infinite; }
  @keyframes flow { to { background-position: 12px 0; } }
}

/* Сравнение: администратор и бот */

.vs { display: grid; gap: 16px; }
@media (min-width: 860px) { .vs { grid-template-columns: 1fr 1fr; } }
.vs__card { padding: clamp(26px, 3vw, 40px); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.vs__card--bot { background: linear-gradient(155deg, var(--blue-hi), var(--blue) 50%, var(--blue-deep)); border-color: transparent; color: #fff; box-shadow: var(--shadow-lg); }
.vs__who { font-weight: 600; color: var(--muted); }
.vs__card--bot .vs__who { color: rgba(255, 255, 255, .8); }
.vs__price { display: block; margin: .5rem 0 1.4rem; font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem); font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.vs__price small { font-size: .4em; font-weight: 500; letter-spacing: 0; margin-left: .2em; }
.vs__rows { list-style: none; margin: 0; padding: 0; }
.vs__rows li { display: flex; justify-content: space-between; gap: 16px; padding: .8em 0; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.vs__card--bot .vs__rows li { border-top-color: rgba(255, 255, 255, .22); }
.vs__rows span { color: var(--muted); }
.vs__card--bot .vs__rows span { color: rgba(255, 255, 255, .78); }
.vs__rows b { font-weight: 600; text-align: right; }
.vs__rows .bad { color: var(--red); }
.vs__note { margin: 26px 0 0; color: var(--text-2); max-width: 60ch; }

/* Шаги — настоящая последовательность */

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 620px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; position: relative; padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
/* Номер шага — кружок в углу; слева значок в стиле карточек */
.steps li::before {
  content: counter(step); position: absolute; top: 22px; right: 22px;
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--blue-soft); color: var(--blue); font-weight: 700; font-size: .88rem;
}
.steps li:first-child::before { background: var(--blue); color: #fff; }
.steps .bico { margin-bottom: 20px; }
.bico--demo { background: linear-gradient(135deg, var(--blue-hi), var(--blue)); }
.bico--call { background: var(--green); }
.bico--launch { background: linear-gradient(135deg, #9B6BFF, #6C47FF); }
.bico--monthly { background: var(--ink); }
.steps h3 { margin-bottom: .45rem; font-size: 1.15rem; }
.steps p { margin: 0; color: var(--text-2); font-size: .97rem; }
.steps__free { display: inline-block; margin-left: .4em; padding: .15em .55em; border-radius: 999px; background: #E3F6EE; color: #0B7A4B; font-size: .75rem; font-weight: 600; vertical-align: middle; letter-spacing: 0; }

/* Тарифы */

.plans { display: grid; gap: 16px; align-items: stretch; }
@media (min-width: 680px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1120px) { .plans { grid-template-columns: repeat(4, 1fr); } }

.plan { display: flex; flex-direction: column; padding: 28px 26px 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow); }
.plan--focus { background: var(--ink); color: #fff; border-color: transparent; box-shadow: 0 40px 70px -40px rgba(12, 20, 31, .7); }
.plan__name { font-size: 1.15rem; font-weight: 650; }
.plan__price { margin: 18px 0 2px; font-size: 2.5rem; line-height: 1; font-weight: 700; letter-spacing: -.045em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.plan__price small { display: block; margin-top: 8px; font-size: .9rem; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.plan__from { font-size: .5em; font-weight: 600; letter-spacing: 0; margin-right: .15em; }
.plan--focus .plan__price small { color: rgba(255, 255, 255, .7); }
.plan__vol { margin: 0; color: var(--text-2); }
.plan--focus .plan__vol { color: rgba(255, 255, 255, .82); }
.plan__unit { display: inline-block; margin-top: 14px; padding: .3em .75em; border-radius: 999px; background: var(--blue-soft); color: var(--blue-deep); font-size: .84rem; font-weight: 600; align-self: flex-start; }
.plan--focus .plan__unit { background: rgba(61, 116, 255, .22); color: #BFD0FF; }
.plan ul { list-style: none; margin: 22px 0 26px; padding: 0; font-size: .95rem; }
.plan li { display: grid; gap: 1px; padding: .6em 0; border-top: 1px solid var(--line); }
.plan--focus li { border-top-color: rgba(255, 255, 255, .14); }
.plan li span { color: var(--muted); font-size: .82rem; }
.plan--focus li span { color: rgba(255, 255, 255, .62); }
.plan li b { font-weight: 600; }
.plan .btn { margin-top: auto; }
.plan--focus .btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.plan--focus .btn--ghost:hover { border-color: #fff; color: #fff; }

.notes { display: grid; gap: 16px; margin-top: 16px; }
@media (min-width: 860px) { .notes { grid-template-columns: repeat(3, 1fr); } }
.notes > div { padding: 22px 24px; border-radius: var(--r-lg); background: var(--blue-soft); }
.notes b { display: block; margin-bottom: .3rem; font-weight: 650; }
.notes p { margin: 0; color: var(--text-2); font-size: .97rem; }
.extras { margin: 22px 0 0; color: var(--muted); font-size: .97rem; }

/* Кому бот не нужен */

.honest { display: grid; gap: 16px; }
@media (min-width: 860px) { .honest { grid-template-columns: repeat(3, 1fr); } }
.honest > div { padding: 26px; border-radius: var(--r-lg); border: 1px dashed var(--line-2); background: rgba(255, 255, 255, .55); }
.honest b { display: block; margin-bottom: .45rem; font-size: 1.08rem; font-weight: 650; }
.honest p { margin: 0; color: var(--text-2); }
.honest__after { margin: 26px 0 0; color: var(--text-2); }

/* Вопросы */

.faq { display: grid; gap: 10px; max-width: 900px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  padding: 1.1em 1.3em; cursor: pointer; list-style: none; font-weight: 600; font-size: 1.04rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath d='M15 9v12M9 15h12' stroke='%231454F4' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/30px no-repeat;
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 1.3em 1.3em; color: var(--text-2); max-width: 70ch; }

/* ---------- Заявка: тёмный блок ---------- */

.apply-band { padding: 0 var(--gutter) var(--step); }
.apply {
  position: relative; overflow: hidden;
  max-width: calc(var(--wrap) + 80px); margin: 0 auto;
  padding: clamp(32px, 6vw, 72px) clamp(20px, 5vw, 64px);
  background: var(--ink); color: #fff; border-radius: 40px;
  display: grid; gap: 40px; align-items: start;
}
.apply::before {
  content: ""; position: absolute; width: 700px; height: 700px; left: -200px; top: -300px;
  background: radial-gradient(closest-side, rgba(20, 84, 244, .55), transparent 70%); pointer-events: none;
}
.apply > * { position: relative; }
@media (min-width: 980px) { .apply { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 56px; } }
.apply h2 { max-width: 18ch; }
.apply__lead { margin: 1.2rem 0 0; color: rgba(255, 255, 255, .78); font-size: 1.08rem; max-width: 40ch; }
.contacts { margin: 2.2rem 0 0; display: grid; gap: 12px; font-size: .97rem; }
.contacts div { display: grid; grid-template-columns: 7rem 1fr; gap: 12px; }
.contacts dt { color: rgba(255, 255, 255, .55); }
.contacts dd { margin: 0; }
.contacts a { color: #fff; }
.contacts a:hover { color: #BFD0FF; }

.form { background: var(--surface); color: var(--ink); border-radius: 28px; padding: clamp(20px, 3.5vw, 36px); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6); }
.form__grid { display: grid; gap: 18px; }
@media (min-width: 620px) { .form__grid { grid-template-columns: 1fr 1fr; } .field--wide { grid-column: 1 / -1; } }

.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > label, .field legend { font-weight: 600; font-size: .93rem; padding: 0; }
.field .hint { font-size: .83rem; font-weight: 400; color: var(--muted); margin: 0; }
fieldset.field { border: 0; margin: 0; padding: 0; }

.input {
  width: 100%; min-height: 52px; padding: .75em 1em;
  background: var(--bg); color: var(--ink);
  border: 1px solid var(--line); border-radius: 14px;
  font: inherit; font-size: 1rem;
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.input::placeholder { color: #8D97A6; }
.input:hover { border-color: var(--line-2); }
.input:focus { outline: none; background: #fff; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(20, 84, 244, .14); }
textarea.input { min-height: 96px; resize: vertical; }
select.input {
  appearance: none; -webkit-appearance: none; padding-right: 2.6em;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 21px) 52%, calc(100% - 15px) 52%;
  background-size: 6px 6px; background-repeat: no-repeat;
}
.input[aria-invalid="true"] { border-color: var(--red); background: #FFF6F6; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: .5em 1.05em;
  border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--text-2);
  transition: background-color .15s, border-color .15s, color .15s;
}
.chip input:hover + span { border-color: var(--line-2); color: var(--ink); }
.chip input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 600; }
.chip input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 3px; }
.tariff-hint { min-height: 1.3em; font-size: .86rem; color: #0B7A4B; font-weight: 500; margin: 2px 0 0; }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--text-2); }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--blue); }

.err { margin: 0; font-size: .84rem; color: var(--red); }
.err:empty { display: none; }

.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 10px; }
.form__foot .note { margin: 0; color: var(--muted); font-size: .9rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__status { margin: 16px 0 0; font-size: .95rem; }
.form__status:empty { display: none; }
.form__status--ok { color: var(--green); }
.form__status--fail { color: var(--red); }
.form__done h3 { font-size: 1.5rem; margin-bottom: .6rem; }
.form__done p { color: var(--text-2); }

/* ---------- Подвал ---------- */

.foot { padding: 56px 0 40px; color: var(--muted); font-size: .92rem; }
.foot__grid { display: grid; gap: 28px; }
@media (min-width: 860px) { .foot__grid { grid-template-columns: 1.2fr 1fr 1fr; } }
.foot p { margin: 0 0 .4em; }
.foot b { color: var(--ink); }
.foot__brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--ink); font-weight: 650; font-size: 1.05rem; }
.foot__brand img { width: 40px; height: 40px; }
.foot nav { display: flex; flex-direction: column; gap: 9px; }
.foot nav a, .foot a { color: var(--text-2); text-decoration: none; }
.foot nav a:hover, .foot a:hover { color: var(--blue); text-decoration: underline; }
.foot__tm { grid-column: 1 / -1; padding-top: 22px; border-top: 1px solid var(--line); font-size: .8rem; color: #7A8597; }

/* ---------- Появление при прокрутке (где браузер умеет) ---------- */

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% cover 22%; }
    @keyframes reveal { from { opacity: 0; transform: translateY(28px) scale(.985); } to { opacity: 1; transform: none; } }
  }
}

/* ---------- Документы ---------- */

.doc { padding: clamp(36px, 6vw, 72px) 0 var(--step); }
.doc__body { max-width: 74ch; }
.doc h1 { font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.3rem); line-height: 1.02; margin-bottom: .6rem; }
.doc h2 { font-size: 1.4rem; margin: 2.3em 0 .7em; letter-spacing: -.02em; line-height: 1.2; }
.doc p, .doc li { color: var(--text-2); }
.doc strong { color: var(--ink); font-weight: 600; }
.doc ul, .doc ol { padding-left: 1.3em; margin: 0 0 1em; }
.doc li { margin-bottom: .45em; }
.doc li::marker { color: var(--blue); }
.doc__meta { color: var(--muted); font-size: .95rem; margin-bottom: 1.6rem; }
.doc__langs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 1.8rem; }

.toc { margin: 2rem 0 0; padding: 1.3em 1.5em; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.toc ol { margin: 0; columns: 1; }
@media (min-width: 700px) { .toc ol { columns: 2; column-gap: 40px; } }
.toc li { break-inside: avoid; }
.toc a { color: var(--text-2); text-decoration: none; }
.toc a:hover { color: var(--blue); text-decoration: underline; }

.callout { margin: 1.4em 0; padding: 1.1em 1.3em; border-radius: var(--r-md); background: var(--blue-soft); border-left: 3px solid var(--blue); }
.callout p:last-child { margin: 0; }

@media print {
  body { background: #fff; color: #000; font-size: 11pt; }
  .top, .foot nav, .skip, .toc, .doc__langs { display: none; }
  .doc p, .doc li, .doc strong, .foot, .foot b { color: #000; }
  a { color: #000; }
  .callout { background: none; border-left-color: #000; }
}
