/* Общие стили лендингов ai-bot-chat.ru (/promo, /flowers). */
:root{
  --ink:#241f47; --body:#4c4768; --muted:#807b9c; --line:#e7e4f4; --bg:#faf9fd;
  --prim:#4b3e94; --prim-deep:#372c73; --lilac:#efecfb; --lilac-2:#e3defa;
  --warm:#ff7a59; --warm-deep:#f0674a;
  --card:#ffffff; --shadow:0 10px 30px rgba(55,44,115,.08);
  --head:"Unbounded", system-ui, sans-serif;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0; font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  color:var(--body); background:var(--bg); line-height:1.6; -webkit-font-smoothing:antialiased;}
.wrap{max-width:1120px; margin:0 auto; padding:0 22px}
a{color:inherit}
h1,h2{font-family:var(--head); color:var(--ink); letter-spacing:0; font-weight:600}

.btn{display:inline-flex; align-items:center; gap:9px; border:0; cursor:pointer;
  font-size:16px; font-weight:600; padding:15px 26px; border-radius:14px; text-decoration:none; transition:.16s; font-family:inherit}
.btn-warm{background:var(--warm); color:#fff; box-shadow:0 10px 24px rgba(255,122,89,.35)}
.btn-warm:hover{background:var(--warm-deep); transform:translateY(-2px); box-shadow:0 14px 28px rgba(255,122,89,.42)}
.btn-ghost{background:#fff; color:var(--prim); border:1.5px solid var(--lilac-2)}
.btn-ghost:hover{border-color:var(--prim); background:var(--lilac)}

/* ── шапка ── */
.top{display:flex; align-items:center; gap:11px; padding-top:20px; padding-bottom:20px}
.top .mascot-s{width:38px; height:38px; flex:none}
.top .name{font-family:var(--head); font-weight:600; font-size:18px; color:var(--ink)}
.top .tg{margin-left:auto; font-size:14.5px; color:var(--prim); text-decoration:none; font-weight:600}
.top .tg:hover{color:var(--warm-deep)}

/* ── hero ── */
.hero{position:relative; overflow:hidden}
.hero::before{content:""; position:absolute; right:-180px; top:-120px; width:640px; height:640px; border-radius:50%;
  background:radial-gradient(circle, var(--lilac-2) 0%, transparent 65%); pointer-events:none;
  animation:breathe 14s ease-in-out infinite}
@keyframes breathe{50%{transform:scale(1.14)}}
.hero-in{display:grid; grid-template-columns:1.05fr .95fr; gap:48px; align-items:center;
  padding-top:34px; padding-bottom:78px; /* только вертикаль — боковые 22px даёт .wrap */
  position:relative; z-index:1} /* контент выше фонового пятна — иначе оно «туманит» текст */
.pill{display:inline-flex; align-items:center; gap:8px; background:var(--lilac); color:var(--prim);
  border:1px solid var(--lilac-2); padding:7px 15px; border-radius:999px; font-size:13.5px; font-weight:600; margin-bottom:22px}
.pill .dot{width:8px; height:8px; border-radius:50%; background:#2fbf71; box-shadow:0 0 0 0 rgba(47,191,113,.5); animation:pulse 2s infinite}
@keyframes pulse{70%{box-shadow:0 0 0 9px rgba(47,191,113,0)}100%{box-shadow:0 0 0 0 rgba(47,191,113,0)}}
.hero h1{font-size:clamp(27px,3.6vw,44px); line-height:1.18; margin:0 0 20px}
.hero h1 em{font-style:normal; color:var(--prim)}
.hero .lead{font-size:clamp(16px,1.6vw,19px); max-width:520px; margin:0 0 30px}
.hero .cta{display:flex; flex-wrap:wrap; gap:13px}
.hero .hint{margin-top:18px; font-size:14px; color:var(--muted)}
.hero .hint b{color:var(--body)}

/* ── анимированный чат в hero ── */
.demo{position:relative; filter:drop-shadow(0 24px 40px rgba(55,44,115,.16))}
.demo .mascot-b{position:absolute; top:-46px; right:22px; width:84px; height:84px; z-index:2; animation:float 4s ease-in-out infinite}
@keyframes float{50%{transform:translateY(-7px)}}
.dc{background:#fff; border:1px solid var(--line); border-radius:20px; overflow:hidden}
.dc-head{display:flex; align-items:center; gap:10px; padding:14px 18px; background:var(--prim); color:#fff}
.dc-head .mascot-s{width:30px; height:30px; background:#fff; border-radius:50%; padding:2px}
.dc-head .t{font-weight:700; font-size:15px}
.dc-head .s{font-size:12px; color:#cfc8f5; display:flex; align-items:center; gap:5px}
.dc-head .s::before{content:""; width:7px; height:7px; border-radius:50%; background:#2fbf71}
.dc-body{padding:18px; height:342px; display:flex; flex-direction:column; gap:10px; overflow:hidden; justify-content:flex-end}
.msg{max-width:82%; padding:10px 14px; border-radius:15px; font-size:14.5px; line-height:1.45;
  opacity:0; transform:translateY(14px); animation:msg-in .35s ease forwards}
@keyframes msg-in{to{opacity:1; transform:none}}
.m-user{align-self:flex-end; background:var(--prim); color:#fff; border-bottom-right-radius:5px}
.m-bot{align-self:flex-start; background:var(--lilac); color:var(--ink); border-bottom-left-radius:5px}
.m-sys{align-self:center; background:#e9f8f0; color:#177a4c; font-size:13px; font-weight:600; padding:7px 14px; border-radius:999px}
.m-typing{align-self:flex-start; background:var(--lilac); padding:13px 16px; display:flex; gap:5px}
.m-typing i{width:7px; height:7px; border-radius:50%; background:var(--prim); opacity:.4; animation:tp 1s infinite}
.m-typing i:nth-child(2){animation-delay:.18s}
.m-typing i:nth-child(3){animation-delay:.36s}
@keyframes tp{40%{opacity:1; transform:translateY(-3px)}}
.dc-input{display:flex; align-items:center; gap:10px; border-top:1px solid var(--line); padding:13px 18px; color:var(--muted); font-size:14.5px}
.dc-input .send{margin-left:auto; width:34px; height:34px; border-radius:50%; background:var(--warm); flex:none;
  display:flex; align-items:center; justify-content:center}
.dc-input .send svg{width:16px; height:16px; fill:#fff}

/* ── цифры ── */
.stats{padding:0 0 10px}
.stats-in{display:grid; grid-template-columns:repeat(3,1fr); gap:18px}
.stat{background:var(--card); border:1px solid var(--line); border-radius:18px; padding:26px 24px; box-shadow:var(--shadow)}
.stat .n{font-family:var(--head); font-weight:600; font-size:clamp(28px,3.4vw,40px); color:var(--prim); line-height:1.1}
.stat .n small{font-size:.55em}
.stat p{margin:8px 0 0; font-size:14.5px; color:var(--muted)}

section{padding:66px 0}
.eyebrow{color:var(--warm-deep); font-weight:700; font-size:13px; letter-spacing:.06em; text-transform:uppercase; margin:0 0 12px}
h2{font-size:clamp(22px,2.8vw,31px); margin:0 0 14px; line-height:1.25}
.sub{color:var(--muted); font-size:16.5px; max-width:640px; margin:0 0 38px}
.sub b{color:var(--prim)}

.grid{display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); gap:18px}
.card{background:var(--card); border:1px solid var(--line); border-radius:18px; padding:26px 24px; box-shadow:var(--shadow); transition:.18s}
.card:hover{transform:translateY(-4px); box-shadow:0 18px 40px rgba(55,44,115,.13)}
.card .ic{width:46px; height:46px; border-radius:13px; display:flex; align-items:center; justify-content:center;
  background:var(--lilac); margin-bottom:15px}
.card .ic svg{width:23px; height:23px; stroke:var(--prim); fill:none; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round}
.card h3{font-size:16.5px; margin:0 0 7px; font-weight:700; color:var(--ink)}
.card p{margin:0; color:var(--muted); font-size:14.5px}
.card .big{font-family:var(--head); font-weight:600; font-size:25px; color:var(--prim)}

.steps{counter-reset:s; display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:22px; margin-top:36px}
.step .n{counter-increment:s; width:44px; height:44px; border-radius:13px; background:var(--warm); color:#fff;
  font-family:var(--head); font-weight:600; font-size:18px; display:flex; align-items:center; justify-content:center; margin-bottom:15px;
  box-shadow:0 8px 18px rgba(255,122,89,.3)}
.step .n::before{content:counter(s)}
.step h3{font-size:16.5px; margin:0 0 6px; font-weight:700; color:var(--ink)}
.step p{margin:0; color:var(--muted); font-size:14.5px}

.white{background:#fff; border-top:1px solid var(--line); border-bottom:1px solid var(--line)}

.shots{display:grid; grid-template-columns:1fr; justify-items:center; gap:24px; margin-top:38px}
.shots figure{margin:0; max-width:520px}
.shots img{width:100%; height:auto; border-radius:16px; border:1px solid var(--line);
  box-shadow:0 14px 36px rgba(55,44,115,.14); display:block; background:#fff}
.shots figcaption{margin-top:12px; color:var(--muted); font-size:14px; text-align:center}

/* ── цена ── */
.sec-center{text-align:center}
.price-card{background:var(--card); border:1.5px solid var(--lilac-2); border-radius:22px; padding:34px 32px;
  max-width:660px; margin:30px auto 0; text-align:left; box-shadow:var(--shadow); position:relative; overflow:visible}
.price-card .mascot-s{position:absolute; top:-34px; right:26px; width:64px; height:64px}
.price-card .lbl{margin:0 0 6px; font-size:14.5px; color:var(--muted)}
.price-card .val{font-family:var(--head); font-weight:600; font-size:clamp(28px,4vw,38px); color:var(--ink); margin:0 0 14px}
.price-card .val span{font-family:inherit; font-size:16px; color:var(--muted); font-weight:500}
.price-card .desc{margin:0 0 20px; color:var(--muted); font-size:15px}
.price-card .cta{display:flex; flex-wrap:wrap; gap:12px}

.faq{display:grid; gap:12px; max-width:800px; margin:0 auto; text-align:left}
details{background:#fff; border:1px solid var(--line); border-radius:15px; padding:4px 22px; box-shadow:var(--shadow)}
summary{cursor:pointer; font-weight:600; color:var(--ink); padding:16px 0; list-style:none; font-size:15.5px; display:flex; justify-content:space-between; align-items:center; gap:12px}
summary::-webkit-details-marker{display:none}
summary::after{content:"+"; color:var(--warm); font-size:23px; font-weight:400; line-height:1; transition:.2s}
details[open] summary::after{transform:rotate(45deg)}
details p{margin:0 0 17px; color:var(--muted); font-size:14.5px}

.final{background:linear-gradient(135deg,var(--prim-deep),var(--prim)); color:#fff; border-radius:26px;
  padding:52px 34px; text-align:center; position:relative; overflow:hidden}
.final::before{content:""; position:absolute; left:-90px; bottom:-140px; width:340px; height:340px; border-radius:50%;
  background:radial-gradient(circle, rgba(255,255,255,.12), transparent 70%)}
.final .mascot-b{width:82px; height:82px; margin:0 auto 16px; display:block; animation:float 4s ease-in-out infinite}
.final h2{color:#fff; margin-bottom:12px}
.final p{color:#cfc8f5; font-size:16.5px; max-width:520px; margin:0 auto 28px}
.final .btn-warm{box-shadow:0 12px 30px rgba(0,0,0,.3)}

footer{padding:36px 0 62px; color:var(--muted); font-size:14px; text-align:center}
footer a{color:var(--prim); font-weight:600}

/* ── появление при скролле (animation, а не transition — чтобы не тормозить hover-эффекты) ── */
.rv{opacity:0}
.rv.in{opacity:1; animation:rise .6s cubic-bezier(.22,.61,.36,1) backwards; animation-delay:var(--d,0s)}
@keyframes rise{from{opacity:0; transform:translateY(26px)}}
/* акценты при появлении: номера шагов и цена «выпрыгивают» */
@keyframes pop{0%{transform:scale(.4); opacity:0}70%{transform:scale(1.1)}100%{transform:scale(1); opacity:1}}
.step.rv.in .n{animation:pop .6s cubic-bezier(.34,1.56,.64,1) .25s both}
.price-card.rv.in .val{display:inline-block; animation:pop .6s cubic-bezier(.34,1.56,.64,1) .2s both}
@media (prefers-reduced-motion: reduce){
  .rv{opacity:1} .rv.in,.step.rv.in .n,.price-card.rv.in .val{animation:none}
  .demo .mascot-b,.final .mascot-b,.hero::before{animation:none}
}

@media(max-width:880px){
  .hero-in{grid-template-columns:1fr; gap:40px; padding-top:20px; padding-bottom:58px}
  .hero::before{width:360px; height:360px; right:-130px; top:-70px; opacity:.6}
  .price-card .val span{display:block; margin-top:2px}
  .demo{max-width:460px; margin:0 auto}
  .stats-in{grid-template-columns:1fr}
  section{padding:50px 0}
}
