/* chatb24 — лендинг. Светлая тема, mobile-first.
   Акценты: WhatsApp #25D366 + тёмно-синий Б24. */

:root {
  --green: #25D366;
  --green-dark: #1da851;
  --navy: #11243f;
  --navy-soft: #1c3a63;
  --ink: #16202e;
  --muted: #5a6b80;
  --line: #e4e9f0;
  --bg: #ffffff;
  --bg-soft: #f5f8fc;
  --bg-card: #ffffff;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(17, 36, 63, .08);
  --maxw: 1100px;
}

* { 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(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--navy-soft); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); letter-spacing: -.01em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.section { padding: 64px 0; }
.section--soft { background: var(--bg-soft); }
.section__lead { color: var(--muted); max-width: 640px; margin-bottom: 36px; }
.center { text-align: center; }
.center .section__lead { margin-left: auto; margin-right: auto; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .08s ease, background .15s ease;
  text-align: center;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--green); color: #06351b; }
.btn--primary:hover { background: var(--green-dark); color: #fff; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-soft); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--navy); }
.btn--sm { padding: 9px 16px; font-size: .95rem; }
.btn--block { display: block; width: 100%; }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 18px;
  height: 64px;
}
.logo {
  font-weight: 800; font-size: 1.35rem; color: var(--navy);
  display: inline-flex; align-items: center; gap: 8px; letter-spacing: -.02em;
}
.logo:hover { text-decoration: none; }
.logo b { color: var(--green); }
.logo img { height: 44px; width: auto; display: block; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { color: var(--ink); font-weight: 500; font-size: .98rem; }
.nav a:hover { color: var(--green-dark); text-decoration: none; }
.header-cta { margin-left: 8px; }
.nav-toggle {
  display: none; margin-left: auto;
  background: none; border: 1px solid var(--line); border-radius: 8px;
  width: 42px; height: 38px; cursor: pointer; font-size: 1.3rem; color: var(--navy);
}

/* ---- Hero ---- */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero__sub { font-size: 1.18rem; color: var(--muted); max-width: 540px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 12px; }
.hero__note { color: var(--muted); font-size: .95rem; }
.hero__art { box-shadow: var(--shadow); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }

.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--green-dark); margin-bottom: 14px;
  background: #e8faf0; padding: 5px 12px; border-radius: 999px;
}

/* ---- Grid cards ---- */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); margin-bottom: 0; }
.card__ico {
  width: 44px; height: 44px; border-radius: 11px; background: #e8faf0;
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.card__ico svg { width: 24px; height: 24px; }

/* pain card variant */
.pain h3 { color: #b23b3b; }
.pain .fix { color: var(--ink); font-weight: 600; margin-top: 10px; display: block; }

/* ---- Steps ---- */
.steps { counter-reset: step; display: grid; gap: 22px; grid-template-columns: repeat(4, 1fr); }
.step { position: relative; padding-top: 8px; }
.step__num {
  counter-increment: step; width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 700; display: flex;
  align-items: center; justify-content: center; margin-bottom: 14px;
}
.step__num::before { content: counter(step); }
.step h3 { font-size: 1.05rem; }
.step p { color: var(--muted); font-size: .96rem; margin: 0; }

/* ---- Pricing ---- */
.pricing { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); align-items: stretch; }
.plan {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.plan--featured { border: 2px solid var(--green); position: relative; }
.plan__badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--green); color: #06351b; font-weight: 700; font-size: .8rem;
  padding: 4px 14px; border-radius: 999px;
}
.plan h3 { margin-bottom: 4px; }
.plan__price { font-size: 2.1rem; font-weight: 800; color: var(--navy); }
.plan__price span { font-size: 1rem; font-weight: 500; color: var(--muted); }
.plan__desc { color: var(--muted); margin: 8px 0 18px; flex-grow: 1; }
.pricing-note { text-align: center; color: var(--muted); margin-top: 26px; }

/* ---- Roadmap chips ---- */
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 18px; font-weight: 600; color: var(--navy); font-size: .95rem;
}
.chip:hover { border-color: var(--green); color: var(--green-dark); text-decoration: none; }
.chip--soon::after { content: "скоро"; font-size: .72rem; font-weight: 700; color: var(--green-dark);
  background: #e8faf0; padding: 2px 8px; border-radius: 999px; }

/* ---- FAQ ---- */
.faq { max-width: 800px; margin: 0 auto; }
.faq details {
  border: 1px solid var(--line); border-radius: 10px; margin-bottom: 14px;
  background: #fff; padding: 0 22px;
}
.faq summary {
  cursor: pointer; font-weight: 600; color: var(--navy); padding: 18px 0;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--green-dark); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq__body { color: var(--muted); padding: 16px 0 20px; }
.faq__body p:last-child { margin-bottom: 0; }

/* ---- Final CTA ---- */
.cta-band {
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
  color: #fff; border-radius: 20px; padding: 56px 40px; text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #cfe0f5; max-width: 560px; margin: 0 auto 28px; }

/* ---- Waitlist banner (integration pages) ---- */
.banner {
  border: 2px dashed var(--green); background: #f0fdf5; border-radius: var(--radius);
  padding: 28px; margin: 32px 0; text-align: center;
}
.banner h2 { color: var(--green-dark); margin-bottom: .4em; }
.banner p { color: var(--ink); margin-bottom: 18px; }
.notice {
  background: #fff7e6; border: 1px solid #ffd98a; color: #7a5400;
  padding: 14px 18px; border-radius: 10px; font-weight: 600; margin: 0 0 28px;
}

/* ---- Integration matrix ---- */
.matrix-group { margin-bottom: 44px; }
.matrix-group h2 { margin-bottom: 6px; }
.matrix-group__lead { color: var(--muted); margin-bottom: 22px; }
.tile {
  display: block; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
}
a.tile:hover { border-color: var(--green); text-decoration: none; transform: translateY(-2px); transition: .12s; }
.tile h3 { font-size: 1.05rem; margin-bottom: 4px; }
.tile p { color: var(--muted); font-size: .92rem; margin: 0; }
.tile--plan { opacity: .6; box-shadow: none; }
.badge {
  display: inline-block; font-size: .72rem; font-weight: 700; border-radius: 999px;
  padding: 3px 10px; margin-bottom: 12px;
}
.badge--live { background: #e8faf0; color: var(--green-dark); }
.badge--soon { background: #eef3fb; color: var(--navy-soft); }

/* ---- Legal / prose pages ---- */
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.3em; }
.prose ul { color: var(--ink); padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose p { color: var(--ink); }

/* ---- Footer ---- */
.site-footer { background: var(--navy); color: #c4d3e8; padding: 52px 0 32px; margin-top: 24px; }
.site-footer a { color: #c4d3e8; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.footer-grid h4 { color: #fff; font-size: .95rem; margin: 0 0 14px; text-transform: uppercase; letter-spacing: .05em; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 9px; font-size: .94rem; }
.footer__about { font-size: .92rem; color: #94a9c6; max-width: 280px; }
.footer__logo { color: #fff; font-weight: 800; font-size: 1.3rem; margin-bottom: 12px; display: inline-block; }
.footer__logo b { color: var(--green); }
.footer-logo { height: 41px; width: auto; display: block; margin-bottom: 12px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 22px;
  font-size: .88rem; color: #94a9c6; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}

/* ---- Responsive ---- */
@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero__art { order: -1; max-width: 460px; margin: 0 auto; }
  .grid--3, .grid--2, .pricing { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 20px 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); width: 100%; }
  .header-cta { margin: 12px 0 0; }
  .nav-toggle { display: block; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 22px; }
}
