:root {
  --bg: #FAF7F2;
  --surface: #fff;
  --ink: #13201A;
  --muted: #5A6A62;
  --line: #E7E1D6;
  --green: #1A955B;
  --green-d: #127245;
  --mint: #E1F3E9;
  --coral: #FF7657;
  --peach: #FFECE5;
  --sun: #FFC857;
  --r: 22px;
  --shadow: 0 1px 2px rgba(19, 32, 26, .05), 0 10px 30px rgba(19, 32, 26, .07);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--green-d); text-underline-offset: 3px; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.12; letter-spacing: -.025em; }
h1 { font-size: clamp(2.2rem, 5.2vw + .6rem, 3.9rem); font-weight: 850; }
h2 { font-size: clamp(1.75rem, 2.8vw + .9rem, 2.75rem); font-weight: 800; max-width: 22ch; }
h3 { font-size: 1.18rem; font-weight: 750; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 8px; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(800px, 100% - 40px); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 12px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { left: 12px; }

/* Шапка */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(250, 247, 242, .86);
  -webkit-backdrop-filter: saturate(1.5) blur(14px);
  backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid rgba(231, 225, 214, .7);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 850; font-size: 1.3rem; letter-spacing: -.03em; }
.menu { display: none; }
.menu a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .96rem; }
.menu a:hover { color: var(--ink); }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 24px; border: 0; border-radius: 999px;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 8px 20px -6px rgba(26, 149, 91, .55); }
.btn-primary:hover { background: var(--green-d); }
.btn-ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px #CFC6B6; }
.btn-light { background: #fff; color: var(--green-d); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: .95rem; }

/* Первый экран */
.hero { position: relative; overflow: hidden; padding: 40px 0 64px; }
.hero::before {
  content: ""; position: absolute; inset: -10% -20% auto auto; width: 760px; height: 760px; z-index: -1;
  background: radial-gradient(closest-side, rgba(255, 200, 87, .35), transparent),
              radial-gradient(closest-side at 30% 70%, rgba(26, 149, 91, .18), transparent);
}
.hero-grid { display: grid; gap: 48px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px; padding: 7px 14px;
  background: var(--surface); border-radius: 999px; box-shadow: var(--shadow);
  font-size: .88rem; font-weight: 600; color: var(--muted);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--mint); }
.hl { color: var(--green); }
.lead { font-size: clamp(1.08rem, .5vw + 1rem, 1.28rem); color: var(--muted); max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 26px; }
.cta .btn { flex: 1 1 220px; }
.ticks { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: .95rem; font-weight: 600; }
.ticks li { display: flex; align-items: center; gap: 8px; }
.ticks li::before {
  content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.2l2.6 2.6L13 6.4' fill='none' stroke='%23127245' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}

/* Телефон */
.hero-phone { position: relative; display: flex; justify-content: center; padding: 8px 0; }
.phone {
  position: relative; width: min(318px, 84vw); aspect-ratio: 9 / 18.6;
  padding: 11px; border-radius: 48px; background: #0F1613;
  box-shadow: 0 40px 80px -30px rgba(19, 32, 26, .55), inset 0 0 0 2px #2B3430;
}
.phone::before {
  content: ""; position: absolute; z-index: 2; top: 20px; left: 50%; width: 92px; height: 26px;
  margin-left: -46px; border-radius: 20px; background: #0F1613;
}
.screen { display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 38px; background: #F2EEE6; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 52px 16px 12px; background: #fff; border-bottom: 1px solid var(--line); }
.chat-head .ava { width: 36px; height: 36px; border-radius: 11px; }
.chat-head b { display: block; font-size: .93rem; line-height: 1.2; }
.chat-head small { color: var(--green); font-size: .78rem; font-weight: 600; }
.chat {
  flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px;
  min-height: 0; overflow: hidden; padding: 12px; transition: opacity .4s ease;
}
.chat.fade { opacity: 0; }
.msg {
  max-width: 86%; padding: 9px 12px; border-radius: 18px;
  font-size: .82rem; line-height: 1.42; box-shadow: 0 1px 1px rgba(19, 32, 26, .05);
}
.msg.me { align-self: flex-end; background: var(--green); color: #fff; border-bottom-right-radius: 6px; }
.msg.bot { align-self: flex-start; background: #fff; border-bottom-left-radius: 6px; }
.msg.photo { flex: none; width: 64%; padding: 4px; }
.msg.photo svg { width: 100%; height: auto; border-radius: 14px; }
.kbju { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 8px 0 7px; }
.kbju span { display: flex; flex-direction: column; align-items: center; padding: 5px 0; border-radius: 10px; background: #F4F1EA; font-size: .64rem; color: var(--muted); }
.kbju b { font-size: .9rem; color: var(--ink); }
.kbju span:first-child { background: var(--mint); }
.bar { display: block; height: 6px; border-radius: 6px; background: #EFEAE1; overflow: hidden; }
.bar i { display: block; width: 52%; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--green), #48C385); }
.left { display: block; margin-top: 5px; color: var(--muted); font-size: .7rem; }
.quick { display: flex; gap: 6px; margin-top: 8px; }
.quick span { padding: 4px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--green); color: var(--green-d); font-size: .74rem; font-weight: 700; }
.typing { display: none; align-self: flex-start; gap: 4px; padding: 12px 14px; border-radius: 18px; background: #fff; }
.typing.on { display: flex; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #A7B3AD; animation: blink 1s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
.js .chat .msg { display: none; }
.js .chat .msg.on { display: block; animation: pop .35s ease-out both; }
.chat-input {
  display: flex; align-items: center; justify-content: space-between;
  margin: 0 10px 14px; padding: 10px 14px; border-radius: 999px; background: #fff;
  color: #9AA59F; font-size: .82rem;
}
.chip {
  position: absolute; z-index: 3; display: flex; flex-direction: column; padding: 10px 14px;
  border-radius: 16px; background: #fff; box-shadow: var(--shadow); line-height: 1.25;
  animation: float 6s ease-in-out infinite;
}
.chip b { font-size: 1.02rem; }
.chip span { color: var(--muted); font-size: .76rem; }
.chip-a { top: 16%; left: 0; }
.chip-a b { color: var(--green); }
.chip-b { bottom: 18%; right: 0; animation-delay: -3s; }
.chip-b b { color: var(--coral); }

@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes blink { 0%, 80%, 100% { opacity: .35; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Цифры */
.stats { padding: 8px 0 24px; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; overflow: hidden; border-radius: var(--r); background: var(--line); box-shadow: var(--shadow); }
.stats-grid div { display: flex; flex-direction: column; gap: 2px; padding: 20px; background: var(--surface); }
.stats-grid b { font-size: 1.6rem; letter-spacing: -.03em; }
.stats-grid span { color: var(--muted); font-size: .9rem; line-height: 1.35; }

/* Разделы */
.section { padding: 72px 0; }
.section.alt { background: #F3EEE5; }
.eyebrow { margin-bottom: 10px; color: var(--green); font-size: .82rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.sub { color: var(--muted); font-size: 1.05rem; max-width: 40em; }
.note { margin-top: 18px; color: var(--muted); font-size: .85rem; }
.center { text-align: center; }
.center h2 { margin-inline: auto; }
.center .plans { margin-inline: auto; text-align: left; }

.steps { display: grid; gap: 16px; margin: 36px 0 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { position: relative; padding: 26px; border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); }
.steps p { margin: 0; color: var(--muted); }
.num {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px;
  border-radius: 14px; background: var(--peach); color: var(--coral); font-size: 1.2rem; font-weight: 850;
}

.features, .reviews { display: grid; gap: 16px; margin-top: 36px; }
.card { margin: 0; padding: 26px; border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); }
.card p { margin: 0; color: var(--muted); }
.ico { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 18px; border-radius: 15px; background: var(--mint); color: var(--green-d); }
.ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.review { display: flex; flex-direction: column; justify-content: space-between; gap: 22px; }
.review blockquote { margin: 0; font-size: 1.04rem; line-height: 1.6; }
.review figcaption { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .9rem; line-height: 1.3; }
.review figcaption b { display: block; color: var(--ink); }
.ava-t { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; font-weight: 800; }
.a1 { background: var(--peach); color: #D8502F; }
.a2 { background: var(--mint); color: var(--green-d); }
.a3 { background: #FFF3D6; color: #B07A00; }

/* Тарифы */
.plans { display: grid; gap: 18px; margin-top: 36px; }
.plan { position: relative; display: flex; flex-direction: column; padding: 30px 26px; border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); }
.plan ul { flex: 1; margin: 8px 0 26px; padding: 0; list-style: none; }
.plan li { position: relative; padding: 7px 0 7px 30px; }
.plan li::before { content: ""; position: absolute; left: 0; top: 11px; width: 18px; height: 18px; border-radius: 50%; background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.2l2.6 2.6L13 6.4' fill='none' stroke='%23127245' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.price { display: flex; align-items: baseline; gap: 8px; margin: 4px 0 6px; }
.price b { font-size: 2.6rem; letter-spacing: -.04em; }
.price span { color: var(--muted); }
.year { color: var(--muted); font-size: .93rem; }
.plan.pro { background: var(--ink); color: #fff; box-shadow: 0 30px 60px -30px rgba(19, 32, 26, .6); }
.plan.pro .price span, .plan.pro .year { color: #B5C2BB; }
.plan.pro li::before { background-color: rgba(255, 255, 255, .12); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.2l2.6 2.6L13 6.4' fill='none' stroke='%2367D99B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.badge { align-self: flex-start; margin-bottom: 16px; padding: 6px 12px; border-radius: 999px; background: var(--sun); color: var(--ink); font-size: .8rem; font-weight: 800; }

/* Вопросы */
.faq { margin-top: 30px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative; padding: 20px 44px 20px 0; cursor: pointer; list-style: none;
  font-size: 1.07rem; font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 28px; height: 28px; margin-top: -14px;
  border-radius: 50%; background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Cpath d='M14 9v10M9 14h10' stroke='%23127245' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 28px no-repeat;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--muted); max-width: 44em; }

/* Ранний доступ */
.early {
  display: grid; gap: 26px; padding: 34px 24px; border-radius: 30px; color: #fff;
  background: radial-gradient(120% 140% at 100% 0, #2FB877 0, transparent 55%), linear-gradient(135deg, #168A53, #0E5E39);
  box-shadow: 0 30px 70px -30px rgba(18, 114, 69, .65);
}
.early h2 { color: #fff; }
.early p { color: rgba(255, 255, 255, .86); }
.early a { color: #fff; }
.early .row { display: flex; flex-direction: column; gap: 10px; }

/* Формы */
.form { margin: 0; }
.form label { display: block; margin: 0 0 6px; font-weight: 700; font-size: .95rem; }
.form input, .form textarea {
  width: 100%; min-height: 52px; padding: 13px 18px; border: 1.5px solid var(--line); border-radius: 16px;
  font: inherit; color: var(--ink); background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: 0; border-color: var(--green); box-shadow: 0 0 0 4px rgba(26, 149, 91, .15); }
.early .form input { border-color: transparent; border-radius: 999px; padding-inline: 22px; }
.early .form input:focus { box-shadow: 0 0 0 4px rgba(255, 255, 255, .35); }
.contact { display: grid; gap: 6px; margin-top: 28px; }
.contact input { margin-bottom: 12px; }
.contact textarea { margin-bottom: 16px; }
.contact .btn { justify-self: start; }
.hp { position: absolute !important; left: -9999px; width: 1px !important; height: 1px; opacity: 0; }
.form-msg { min-height: 1.5em; margin: 12px 0 0; font-weight: 700; }
.form-msg.ok { color: var(--green-d); }
.form-msg.err { color: #C2412A; }
.early .form-msg.ok, .early .form-msg.err { color: #fff; }
.form.done .row, .form.done.contact input, .form.done.contact textarea, .form.done.contact label, .form.done.contact .btn { display: none; }
.flash { display: none; margin: 12px 0 0; font-weight: 700; }
.flash:target { display: block; }
.flash.ok { color: var(--green-d); }
.flash.err { color: #C2412A; }
.early .flash { color: #fff; }
.fine { margin: 10px 0 0; font-size: .82rem; }

/* Подвал */
.foot { padding: 56px 0 36px; background: var(--ink); color: #C7D1CC; }
.foot .logo { color: #fff; }
.foot-grid { display: grid; gap: 26px; }
.foot-grid p { margin: 14px 0 0; font-size: .95rem; }
.foot nav { display: flex; flex-direction: column; gap: 10px; }
.foot a { color: #C7D1CC; text-decoration: none; }
.foot nav a:hover { color: #fff; }
.foot-legal { display: grid; gap: 6px; margin-top: 36px; padding-top: 22px; border-top: 1px solid #2A3832; font-size: .84rem; color: #8FA097; }
.foot-legal p { margin: 0; }

/* Простые страницы: политика и 404 */
.page { padding: 56px 0 80px; }
.page h1 { font-size: clamp(2rem, 3vw + 1rem, 3rem); }
.page h2 { margin-top: 1.6em; font-size: 1.4rem; max-width: none; }
.page p, .page li { color: #33433B; }
.page ul { padding-left: 1.2em; }
.page li { margin: .35em 0; }
.meta { color: var(--muted); }
.lost { display: grid; justify-items: center; gap: 8px; padding: 72px 0 96px; text-align: center; }
.lost svg { width: 180px; height: 180px; margin-bottom: 12px; }
.lost p { color: var(--muted); max-width: 30em; }
.lost .btn { margin-top: 12px; }

@media (min-width: 640px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .features, .reviews { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: repeat(2, 1fr); max-width: 860px; }
  .early .row { flex-direction: row; }
  .early .row input { flex: 1; }
  .cta .btn { flex: 0 0 auto; }
  .foot-grid { grid-template-columns: 1.4fr 1fr; }
  .foot-legal { grid-template-columns: auto 1fr; gap: 24px; }
  .foot-legal p + p { text-align: right; }
}

@media (min-width: 960px) {
  .menu { display: flex; gap: 30px; }
  .hero { padding: 64px 0 88px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; }
  .section { padding: 104px 0; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .features, .reviews { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .early { grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; padding: 56px; }
  .early h2 { margin-bottom: .4em; }
  .chip-a { left: 2%; }
  .chip-b { right: 2%; }
}

@media (max-width: 380px) {
  .chip { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
