/* ═══════════════════════════════════════════════
   Rus tili boti — serious redesign (фиолетовый акцент,
   строгая типографика, реальное фото в hero)
   ═══════════════════════════════════════════════ */
:root {
  --bg: #ffffff;
  --bg-alt: #f6f4fb;
  --card: #f0edf9;
  --text: #14121a;
  --muted: #666074;
  --border: #e6e2f2;
  --p1: #0f766e;
  --p2: #10b981;
  --grad: linear-gradient(135deg, #0f766e, #10b981);
  --r: 14px;
  --r-lg: 20px;
  --container: 1140px;
  --shadow-sm: 0 1px 2px rgba(20, 18, 26, .06), 0 1px 3px rgba(20, 18, 26, .05);
  --shadow: 0 10px 28px rgba(20, 18, 26, .1);
  --shadow-lg: 0 22px 55px rgba(20, 18, 26, .16);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 760px; }
:where(a, button, summary):focus-visible { outline: 2px solid var(--p1); outline-offset: 3px; }

/* ─── Buttons ─── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .8rem 1.55rem; border: none; border-radius: 10px; font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap; transition: transform .16s, box-shadow .16s, filter .16s, background .16s; }
.btn--p { background: var(--grad); color: #fff; }
.btn--p:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn--white { background: #fff; color: var(--p1); box-shadow: var(--shadow); }
.btn--white:hover { background: #f8f6fd; transform: translateY(-1px); }
.btn--dark { background: #14121a; color: #fff; border-radius: 999px; }
.btn--dark:hover { background: #000; transform: translateY(-1px); }
.btn--lg { padding: .95rem 1.9rem; font-size: 1.02rem; }
.btn--block { width: 100%; white-space: normal; }
.btn--pulse { position: relative; animation: btnPulse 2.4s ease-out infinite; }
.btn--pulse::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(16, 185, 129, .5); animation: btnRingGreen 2.4s ease-out infinite; pointer-events: none; }
@keyframes btnPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.03); } }
@keyframes btnRingGreen { 0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, .5); } 70% { box-shadow: 0 0 0 18px rgba(16, 185, 129, 0); } 100% { box-shadow: 0 0 0 18px rgba(16, 185, 129, 0); } }

/* ─── Navbar ─── */
.nav { position: fixed; top: 16px; left: 0; right: 0; z-index: 100; padding: 0 16px; }
.nav__inner { max-width: var(--container); margin: 0 auto; display: flex; align-items: center; gap: 1rem; background: #fff; border-radius: 999px; padding: .55rem .6rem .55rem 1.4rem; box-shadow: var(--shadow); }
.brand { display: flex; align-items: center; gap: .5rem; font-weight: 800; color: var(--text); }
.brand__mark { display: inline-flex; }
.brand__name { font-size: 1.2rem; letter-spacing: -.02em; }
.nav__links { display: none; gap: 1.75rem; margin: 0 auto; }
.nav__links a { color: #48435a; font-weight: 500; font-size: .9rem; transition: color .15s; }
.nav__links a:hover { color: var(--text); }
.nav__actions { display: flex; align-items: center; gap: .6rem; margin-left: auto; }
.lang { position: relative; }
.lang__btn { display: inline-flex; align-items: center; gap: .4rem; background: transparent; border: none; border-radius: 999px; height: 44px; padding: 0 .5rem; cursor: pointer; transition: background .15s; }
.lang__btn:hover { background: var(--bg-alt); }
.lang__flag { width: 24px; height: 18px; border-radius: 3px; overflow: hidden; display: block; flex-shrink: 0; box-shadow: 0 0 0 1px rgba(20, 18, 26, .09); }
.lang__flag svg { display: block; width: 100%; height: 100%; }
.lang__chev { color: var(--muted); transition: transform .2s; }
.lang__btn[aria-expanded="true"] .lang__chev { transform: rotate(180deg); }
.lang__menu { position: absolute; top: calc(100% + 8px); right: 0; min-width: 194px; background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 200; }
.lang__menu[hidden] { display: none; }
.lang__opt { display: flex; align-items: center; gap: .65rem; width: 100%; background: transparent; border: none; border-radius: 10px; padding: .6rem .7rem; font: inherit; font-weight: 500; font-size: .95rem; color: var(--text); cursor: pointer; text-align: left; transition: background .12s, color .12s; }
.lang__opt:hover { background: var(--bg-alt); }
.lang__opt[aria-checked="true"] { color: var(--p1); font-weight: 700; background: rgba(15, 118, 110, .09); }
@media (min-width: 900px) { .nav__links { display: flex; } .brand { flex: 1 1 0; } .nav__actions { flex: 1 1 0; justify-content: flex-end; } }
.nav__actions .btn--dark .btn__pl { display: none; }
@media (max-width: 560px) { .nav__inner { padding: .5rem .5rem .5rem .9rem; gap: .5rem; } .brand__name { display: none; } .nav__actions { gap: .35rem; } .nav__actions .btn--dark { padding: .58rem .7rem; } .nav__actions .btn--dark .btn__txt { display: none; } .nav__actions .btn--dark .btn__pl { display: block; } }

/* ─── Hero: текст + фото сбоку (паттерн bot.html) ─── */
.hero { position: relative; overflow: hidden; padding: 150px 0 90px; background: var(--bg-alt); }
.hero__bg { position: absolute; inset: 0; background: radial-gradient(50% 55% at 92% 8%, rgba(16, 185, 129, .14), transparent 60%); }
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; gap: 2.6rem; align-items: center; }
@media (min-width: 900px) { .hero__inner { grid-template-columns: 1.08fr .92fr; gap: 3rem; } }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; color: var(--p1); font-weight: 700; font-size: .84rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 1.1rem; }
.eyebrow::before { content: ""; width: 20px; height: 2px; background: var(--p1); display: inline-block; }
.hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); font-weight: 800; line-height: 1.12; letter-spacing: -.02em; color: var(--text); text-wrap: balance; }
.hero h1 span { color: var(--p1); }
.hero__sub { color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.12rem); max-width: 460px; margin: 1.2rem 0 1.8rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; }
.hero__note { color: var(--muted); font-size: .88rem; margin-top: 1rem; }
.hero__badges { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: 1.1rem; }
.hero__badges .eyebrow { margin-bottom: 0; }
.herotag { display: inline-flex; align-items: center; background: var(--card); color: var(--p1); font-weight: 700; font-size: .76rem; letter-spacing: .02em; padding: .25rem .6rem; border-radius: 999px; }
.hero__chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.1rem; }
.herochip { display: inline-flex; align-items: center; gap: .4rem; background: var(--card); color: var(--text); font-weight: 600; font-size: .82rem; padding: .45rem .8rem; border-radius: 999px; }
.herochip svg { width: 15px; height: 15px; color: var(--p1); flex-shrink: 0; }
.hero__media { position: relative; }
.hero__photo { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 5; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(20, 18, 26, .45)); }
.hero__aitag { position: absolute; top: 1rem; right: 1rem; z-index: 1; background: var(--grad); color: #fff; font-weight: 800; font-size: .78rem; letter-spacing: .03em; padding: .4rem .8rem; border-radius: 999px; box-shadow: var(--shadow); }
.hero__stat { position: absolute; left: 1.2rem; right: 1.2rem; bottom: 1.2rem; z-index: 1; color: #fff; }
.hero__stat b { display: block; font-size: 1.5rem; font-weight: 800; letter-spacing: -.01em; }
.hero__stat span { font-size: .84rem; color: rgba(255, 255, 255, .82); }

/* ─── Sections ─── */
.section { padding: clamp(3rem, 7vw, 5.2rem) 0; }
.section--alt { background: var(--bg-alt); }
.head { max-width: 640px; margin: 0 auto clamp(2rem, 4vw, 3rem); }
.head--center { text-align: center; }
.head h2 { font-size: clamp(1.75rem, 3.8vw, 2.4rem); font-weight: 800; line-height: 1.16; letter-spacing: -.02em; text-wrap: balance; }
.head p { color: var(--muted); font-size: 1.02rem; margin-top: .6rem; }

/* ─── Метрики (строгие, без иконок-эмодзи) ─── */
.metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; max-width: 900px; margin: 0 auto; }
@media (min-width: 700px) { .metrics { grid-template-columns: repeat(4, 1fr); } }
.metric { border-radius: var(--r-lg); padding: 1.7rem 1.2rem; text-align: center; box-shadow: var(--shadow); }
.metric__ico { width: 38px; height: 38px; border-radius: 10px; background: rgba(255, 255, 255, .22); color: #fff; display: grid; place-items: center; margin: 0 auto .8rem; }
.metric__ico svg { width: 19px; height: 19px; }
.metric__val { font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.metric__lbl { color: rgba(255, 255, 255, .85); font-size: .85rem; font-weight: 600; margin-top: .3rem; }
.metric--m1 { background: linear-gradient(135deg, #0d9488, #14b8a6); }
.metric--m2 { background: linear-gradient(135deg, #0f766e, #10b981); }
.metric--m3 { background: linear-gradient(135deg, #059669, #34d399); }
.metric--m4 { background: linear-gradient(135deg, #047857, #2dd4bf); }

/* ─── Возможности — компактная сетка карточек ─── */
.featgrid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 620px) { .featgrid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .featgrid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) {
  .featgrid--bento { grid-template-columns: 1fr 1fr 1fr; grid-auto-rows: 1fr; align-items: stretch; }
  .featgrid--bento .featcard--f2 { grid-column: 1; grid-row: 1 / 3; height: 100%; }
  .featgrid--bento .featcard--f1 { grid-column: 2; grid-row: 1; }
  .featgrid--bento .featcard--f3 { grid-column: 2; grid-row: 2; }
  .featgrid--bento .featcard--f5 { grid-column: 3; grid-row: 1 / 3; height: 100%; }
}
.featcard--tall { display: flex; flex-direction: column; }
.featcard__photo { margin-top: auto; border-radius: 10px; width: 100%; max-height: 160px; height: auto; object-fit: cover; display: block; }
.featcard { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.4rem; }
.featcard__ico { width: 40px; height: 40px; border-radius: 10px; background: var(--card); color: var(--p1); display: grid; place-items: center; margin-bottom: .9rem; }
.featcard__ico svg { width: 20px; height: 20px; }
.featcard h3 { font-size: 1rem; font-weight: 800; margin-bottom: .3rem; }
.featcard p { color: var(--muted); font-size: .88rem; }
.featcard--f1 { background: linear-gradient(135deg, #0d9488, #14b8a6); border-color: transparent; }
.featcard--f2 { background: linear-gradient(135deg, #0f766e, #10b981); border-color: transparent; }
.featcard--f3 { background: linear-gradient(135deg, #059669, #34d399); border-color: transparent; }
.featcard--f4 { background: linear-gradient(135deg, #0e7490, #22d3ee); border-color: transparent; }
.featcard--f5 { background: linear-gradient(135deg, #065f46, #10b981); border-color: transparent; }
.featcard--f6 { background: linear-gradient(135deg, #047857, #2dd4bf); border-color: transparent; }
.featcard--f1 .featcard__ico, .featcard--f2 .featcard__ico, .featcard--f3 .featcard__ico,
.featcard--f4 .featcard__ico, .featcard--f5 .featcard__ico, .featcard--f6 .featcard__ico { background: rgba(255, 255, 255, .18); color: #fff; }
.featcard--f1 h3, .featcard--f2 h3, .featcard--f3 h3, .featcard--f4 h3, .featcard--f5 h3, .featcard--f6 h3,
.featcard--f1 p, .featcard--f2 p, .featcard--f3 p, .featcard--f4 p, .featcard--f5 p, .featcard--f6 p { color: #fff; }
.featcard--f1 p, .featcard--f2 p, .featcard--f3 p, .featcard--f4 p, .featcard--f5 p, .featcard--f6 p { color: rgba(255, 255, 255, .85); }

/* ─── Живое общение с AI — строгий блок с фото/чатом ─── */
.voice { display: grid; gap: 2.2rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .voice { grid-template-columns: 1fr 1fr; } }
.voice__text .eyebrow { margin-bottom: 1rem; }
.voice__text h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.18; margin-bottom: .9rem; }
.voice__text p { color: var(--muted); font-size: 1.02rem; margin-bottom: 1.3rem; }
.voice__list { list-style: none; display: flex; flex-direction: column; gap: .75rem; }
.voice__list li { display: flex; align-items: flex-start; gap: .7rem; font-size: .95rem; font-weight: 600; }
.voice__list .dash { flex-shrink: 0; width: 18px; height: 2px; background: var(--p1); margin-top: .55rem; }
.chatcard { background: linear-gradient(150deg, #065f46, #0d9488 55%, #10b981); border-radius: var(--r-lg); padding: 2rem; box-shadow: 0 30px 70px rgba(6, 95, 70, .38), 0 10px 25px rgba(6, 95, 70, .22); border: none; transform: scale(1.05); }
.chatcard__label { color: rgba(255, 255, 255, .75); font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 1.3rem; }
.chatline { display: flex; align-items: center; gap: .7rem; max-width: 94%; padding: .8rem 1.05rem; border-radius: 12px; font-size: .98rem; font-weight: 600; line-height: 1.45; margin-bottom: .8rem; }
.chatline--user { background: rgba(255, 255, 255, .16); color: #fff; margin-left: auto; flex-direction: row-reverse; }
.chatline--bot { background: #fff; color: var(--text); }
.chatline__mic { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, .22); color: #fff; display: grid; place-items: center; }
.chatline--bot .chatline__mic { background: var(--grad); }
.chatline__mic svg { width: 16px; height: 16px; }
.chatline__wave { flex-shrink: 0; display: flex; align-items: center; gap: 3px; height: 22px; }
.chatline__wave i { display: block; width: 3px; border-radius: 2px; background: #fff; animation: chatWave 1s ease-in-out infinite; }
.chatline--bot .chatline__wave i { background: var(--p1); }
.chatline__wave i:nth-child(1) { height: 40%; animation-delay: 0s; }
.chatline__wave i:nth-child(2) { height: 100%; animation-delay: .12s; }
.chatline__wave i:nth-child(3) { height: 60%; animation-delay: .24s; }
.chatline__wave i:nth-child(4) { height: 90%; animation-delay: .36s; }
.chatline__wave i:nth-child(5) { height: 45%; animation-delay: .48s; }
@keyframes chatWave { 0%, 100% { transform: scaleY(.4); } 50% { transform: scaleY(1); } }
@media (max-width: 900px) { .chatcard { transform: none; } }

/* ─── Как это работает — нумерованный список, не карточки ─── */
.steps { display: flex; flex-direction: column; max-width: 760px; margin: 0 auto; }
.stepr { display: grid; grid-template-columns: 48px 1fr; gap: 1.2rem; padding: 1.6rem 0; border-bottom: 1px solid var(--border); }
.stepr:first-child { border-top: 1px solid var(--border); }
.stepr__n { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--p1); color: var(--p1); display: grid; place-items: center; font-weight: 800; font-size: 1rem; }
.stepr h3 { font-size: 1.08rem; font-weight: 800; margin-bottom: .3rem; }
.stepr p { color: var(--muted); font-size: .95rem; }

/* ─── FAQ ─── */
.faq { display: flex; flex-direction: column; gap: .9rem; }
.faq__item { background: var(--card); border-radius: var(--r); }
.faq__item summary { list-style: none; cursor: pointer; padding: 1.15rem 1.5rem; font-weight: 700; font-size: 1rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-size: 1.5rem; font-weight: 300; color: var(--text); flex-shrink: 0; line-height: 1; }
.faq__item[open] summary::after { content: "×"; }
.faq__item p { padding: 0 1.5rem 1.3rem; color: var(--muted); }

/* ─── CTA ─── */
.ctaband { padding: 0; background: #14121a; }
.ctaband__box { padding: clamp(3rem, 6vw, 4.5rem) 0; text-align: center; color: #fff; }
.ctaband__box .eyebrow { color: #6ee7b7; justify-content: center; }
.ctaband__box .eyebrow::before { background: #6ee7b7; }
.ctaband__box h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; max-width: 600px; margin: .4rem auto 0; text-wrap: balance; }
.ctaband__box p { color: rgba(255, 255, 255, .68); margin: .8rem auto 1.7rem; max-width: 460px; }

/* ─── Footer ─── */
.foot { background: var(--bg-alt); padding: clamp(3rem, 6vw, 4.5rem) 0 0; border-top: 1px solid var(--border); }
.foot__grid { display: grid; grid-template-columns: 1fr; gap: 2.4rem; padding-bottom: 2.6rem; }
.foot__brand p { color: var(--muted); font-size: .9rem; margin-top: .5rem; max-width: 320px; }
.foot__social { display: flex; gap: .6rem; margin-top: 1.2rem; }
.foot__social-ico { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--border); color: var(--text); transition: background .15s, color .15s, transform .15s; }
.foot__social-ico:hover { background: #111318; color: #fff; transform: translateY(-2px); }
.foot__col { display: flex; flex-direction: column; gap: .85rem; }
.foot__title { font-size: .82rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: .2rem; }
.foot__col a { color: var(--text); font-size: .95rem; transition: color .15s; }
.foot__col a:hover { color: var(--blue); }
.foot__bottom { border-top: 1px solid var(--border); padding: 1.5rem 0; display: flex; flex-direction: column; gap: .6rem; }
.foot__copy { color: var(--muted); font-size: .86rem; }
@media (min-width: 640px) {
  .foot__grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .foot__bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}
@media (min-width: 980px) { .foot__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; } .btn:hover { transform: none; } .btn--pulse, .btn--pulse::after { animation: none; } }

/* ─── Кнопка «вверх» ─── */
.totop { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 46px; height: 46px; border: none; border-radius: 50%; background: var(--grad); color: #fff; cursor: pointer; box-shadow: var(--shadow); display: grid; place-items: center; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s, transform .2s, filter .2s; }
.totop.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.totop:hover { filter: brightness(1.06); transform: translateY(-2px); }

/* ─── Модалка «бот скоро» ─── */
.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(20, 18, 26, .6); }
.modal__dialog { position: relative; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); max-width: 420px; width: 100%; padding: 2.1rem; animation: modalIn .2s ease; }
@keyframes modalIn { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.modal__x { position: absolute; top: 1rem; right: 1rem; width: 34px; height: 34px; border: none; background: var(--card); border-radius: 50%; font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--text); }
.modal__x:hover { background: #e3ddf5; }
.modal__eyebrow { color: var(--p1); font-weight: 700; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: .7rem; }
.modal__title { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; }
.modal__sub { color: var(--muted); margin: .5rem 0 1.5rem; font-size: .95rem; }

/* ─── Появление при скролле ─── */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(20px); transition: opacity .5s cubic-bezier(.16, .8, .34, 1), transform .5s cubic-bezier(.16, .8, .34, 1); }
  .reveal.in { opacity: 1; transform: none; }
}