:root {
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --text: #0f1b2d;
  --muted: #5b6b80;
  --border: #e2e8f0;
  --primary: #0d9488;
  --primary-dark: #0b7a70;
  --primary-soft: #ccfbf1;
  --navy: #0f1b2d;
  --accent: #f59e0b;
  --wa: #25d366;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(15, 27, 45, .08);
  --container: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--primary); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.3rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -.01em; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 820px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .9em 1.6em; border-radius: 999px; border: 2px solid var(--primary);
  background: var(--primary); color: #fff; font: inherit; font-weight: 700;
  text-decoration: none; cursor: pointer; transition: background .2s, transform .2s, box-shadow .2s;
}
.btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(13,148,136,.25); }
.btn--ghost { background: transparent; color: var(--primary); }
.btn--ghost:hover { background: var(--primary-soft); color: var(--primary-dark); }
.btn--small { padding: .55em 1.1em; font-size: .9rem; }
.btn--whatsapp { background: var(--wa); border-color: var(--wa); color: #06341a; }
.btn--whatsapp:hover { background: #1fb457; border-color: #1fb457; color: #fff; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { font-weight: 800; font-size: 1.2rem; color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: .4em; }
.logo__mark { color: var(--primary); }
.logo__sub { font-weight: 600; font-size: .8rem; color: var(--muted); letter-spacing: .01em; }
.price__note { margin: 10px 0 0; font-size: .8rem; color: var(--muted); text-align: center; }
.contact__company { color: #c6d2e1; font-size: .9rem !important; margin: 8px 0 0; }
.contact__company a, .contact__link { color: #fff; }
.footer a { color: var(--muted); }
.form-status.is-error { color: #c62828; }
@media (max-width: 420px) { .logo__sub { display: none; } }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:not(.btn):hover { color: var(--primary); }
.nav .btn { color: #fff; }
.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: .3s; }

/* Hero */
.hero { padding: 72px 0 88px; background: radial-gradient(1200px 500px at 85% -10%, var(--primary-soft), transparent 60%); }
.hero__inner { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-block; font-weight: 700; color: var(--primary-dark); background: var(--primary-soft); padding: .35em .9em; border-radius: 999px; font-size: .85rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 600px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 36px; }
.hero__facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 28px; }
.hero__facts li { display: flex; flex-direction: column; }
.hero__facts strong { font-size: 1.3rem; }
.hero__facts span { color: var(--muted); font-size: .9rem; }

.chat-preview { background: #efeae2; border-radius: 22px; padding: 18px; box-shadow: var(--shadow); max-width: 420px; margin-left: auto; }
.chat-preview__head, .bot__head { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9rem; margin-bottom: 14px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--wa); box-shadow: 0 0 0 4px rgba(37,211,102,.2); }
.bubble { padding: 10px 14px; border-radius: 14px; margin-bottom: 10px; max-width: 85%; font-size: .93rem; box-shadow: 0 1px 1px rgba(0,0,0,.06); }
.bubble--in { background: #fff; border-top-left-radius: 4px; }
.bubble--out { background: #d9fdd3; margin-left: auto; border-top-right-radius: 4px; }
.chat-preview__crm { margin-top: 12px; font-size: .8rem; font-weight: 600; color: var(--primary-dark); background: #fff; border-radius: 10px; padding: 8px 12px; }

/* Sections */
.section { padding: 88px 0; }
.section--alt { background: var(--bg-alt); }
.section--accent { background: var(--navy); color: #fff; }
.section__title { text-align: center; }
.section__lead { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto 40px; }
.section__title + .grid, .section__title + .tabs, .section__title + .steps { margin-top: 36px; }

.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.card--pain { border-left: 4px solid var(--accent); }
.card--pain p { color: var(--muted); margin: 0; }

.service { transition: transform .2s, box-shadow .2s; }
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service__icon { font-size: 2rem; margin-bottom: 10px; }
.service ul { padding-left: 1.1em; margin: 0; color: var(--muted); }
.service li { margin-bottom: .35em; }

.platforms { margin-top: 56px; text-align: center; }
.platforms__title { font-weight: 700; }
.platforms__list { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.platforms__list li { padding: .45em 1em; border: 1px solid var(--border); border-radius: 999px; font-weight: 600; font-size: .9rem; background: var(--bg-alt); }
.platforms__note { font-size: .78rem; color: var(--muted); }

/* Tabs */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 28px; }
.tab { font: inherit; font-weight: 600; padding: .6em 1.2em; border-radius: 999px; border: 1px solid var(--border); background: #fff; cursor: pointer; color: var(--text); }
.tab.is-active, .tab:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.tab-panel { display: none; max-width: 720px; margin: 0 auto; background: #fff; border-radius: var(--radius); padding: 32px; border: 1px solid var(--border); }
.tab-panel.is-active { display: block; animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.checklist { list-style: none; padding: 0; margin: 0 0 1.2em; }
.checklist li { position: relative; padding-left: 1.8em; margin-bottom: .55em; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 800; }

/* Demo bot */
.demo { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.demo .section__title { text-align: left; }
.bot { background: #fff; border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow); padding: 18px; display: flex; flex-direction: column; height: 480px; }
.bot__messages { flex: 1; overflow-y: auto; padding: 4px; background: #f7f9fc; border-radius: 14px; padding: 12px; }
.bot__messages .bubble--in { background: #fff; border: 1px solid var(--border); }
.bot__messages .bubble--out { background: var(--primary); color: #fff; }
.bot__quick { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.bot__quick button { font: inherit; font-size: .8rem; padding: .35em .8em; border-radius: 999px; border: 1px solid var(--primary); background: #fff; color: var(--primary-dark); cursor: pointer; }
.bot__quick button:hover { background: var(--primary-soft); }
.bot__form { display: flex; gap: 8px; }
.bot__form input { flex: 1; min-width: 0; font: inherit; padding: .7em 1em; border: 1px solid var(--border); border-radius: 999px; }
.bot__form input:focus { outline: 2px solid var(--primary); border-color: transparent; }
.typing { display: inline-flex; gap: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }

/* Calculator */
.calc { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.calc .section__title { text-align: left; }
.calc__form label, .contact__form label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 16px; }
.calc__form input, .contact__form input:not([type="checkbox"]), .contact__form textarea {
  display: block; width: 100%; margin-top: 6px; font: inherit; padding: .75em 1em;
  border: 1px solid var(--border); border-radius: 12px; background: #fff; color: var(--text);
}
.calc__form input:focus, .contact__form input:focus, .contact__form textarea:focus { outline: 2px solid var(--primary); border-color: transparent; }
.calc__result { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 8px 0 12px; }
.calc__result div { background: var(--bg-alt); border-radius: 12px; padding: 14px; text-align: center; }
.calc__result span { display: block; font-size: .8rem; color: var(--muted); }
.calc__result strong { font-size: 1.25rem; }
.calc__result div:last-child { background: var(--primary-soft); }
.calc__result div:last-child strong { color: var(--primary-dark); }

/* Steps */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: s; }
.steps li { background: var(--bg-alt); border-radius: var(--radius); padding: 24px; position: relative; }
.steps__num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; margin-bottom: 14px; }
.steps p { color: var(--muted); margin: 0; font-size: .93rem; }

/* Pricing */
.price { display: flex; flex-direction: column; position: relative; }
.price .btn { margin-top: auto; }
.price__value { font-size: 1.05rem; margin-bottom: .3em; }
.price__value strong { font-size: 2rem; }
.price--featured { border: 2px solid var(--primary); box-shadow: var(--shadow); }
.price__badge { position: absolute; top: -13px; left: 28px; background: var(--accent); color: #fff; font-weight: 700; font-size: .78rem; padding: .3em .9em; border-radius: 999px; }

/* FAQ */
.faq { border-bottom: 1px solid var(--border); padding: 18px 0; }
.faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-size: 1.4rem; line-height: 1; transition: transform .2s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); margin: 12px 0 0; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.contact__text p { color: #c6d2e1; font-size: 1.1rem; }
.contact__links { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 24px; }
.contact__link { color: #fff; font-weight: 600; }
.contact__form { color: var(--text); }
.contact__form .consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: .85rem; }
.contact__form .consent input { margin-top: 4px; }
.contact__form .btn { width: 100%; }
.form-status { margin: 12px 0 0; font-weight: 600; color: var(--primary-dark); min-height: 1.5em; }

/* Footer */
.footer { padding: 40px 0; border-top: 1px solid var(--border); }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.footer__nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer__nav a { color: var(--muted); font-size: .9rem; }

/* WhatsApp float */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--wa); color: #fff; box-shadow: 0 8px 24px rgba(37,211,102,.45); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }

/* Legal pages */
.legal { padding: 56px 0 88px; }
.legal h1 { font-size: 2rem; }
.legal h2 { font-size: 1.3rem; margin-top: 1.8em; }

/* Responsive */
@media (max-width: 1000px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li:last-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .hero__inner, .demo, .calc, .contact { grid-template-columns: 1fr; }
  .chat-preview { margin: 0 auto; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .demo .section__title, .calc .section__title { text-align: center; }
  .demo__text, .calc__text { text-align: center; }
}
@media (max-width: 820px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--border); padding: 8px 20px 20px;
    transform: translateY(-120%); transition: transform .3s ease; box-shadow: var(--shadow);
  }
  .nav.is-open { transform: none; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .nav .btn { margin-top: 14px; }
  .burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger.is-open span:nth-child(2) { opacity: 0; }
  .burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .section { padding: 64px 0; }
  .hero { padding: 48px 0 64px; }
  .grid--3, .steps { grid-template-columns: 1fr; }
  .calc__result { grid-template-columns: 1fr; }
  .card, .tab-panel { padding: 22px; }
  .bot { height: 440px; }
}
.bot__note { font-size: .75rem; color: var(--muted); margin: -4px 0 10px; }
.bot__note a { color: var(--muted); }

/* Form success banner (как в portfolio_AM) */
.form-wrap { position: relative; color: var(--text); }
.form-success {
  display: none; position: absolute; inset: 0; z-index: 5;
  flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  text-align: center; padding: 32px; border-radius: var(--radius);
  background: linear-gradient(160deg, #fff 0%, var(--primary-soft) 100%);
}
.form-success.is-visible { display: flex; animation: fade .4s ease; }
.form-success__icon {
  width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy); color: var(--primary); font-size: 2rem; box-shadow: var(--shadow);
}
.form-success__label { margin: 0; font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.form-success__title { margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; line-height: 1.2; }
.form-success__title em { font-style: normal; color: var(--primary); }
.form-success__text { margin: 0; color: var(--muted); }
