:root {
  --paper: #f5f6f8;
  --surface: #ffffff;
  --ink: #1c2430;
  --ink-2: #5a6472;
  --line: #e1e4ea;
  --sea: #0f5f66;
  --sea-deep: #0b4a50;
  --sea-soft: #e3f0f0;
  --saffron: #e3a21a;
  --saffron-soft: #fff4dc;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Unbounded', 'Manrope', system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #12171d;
    --surface: #1a2129;
    --ink: #e6ebf0;
    --ink-2: #98a3b0;
    --line: #2a333d;
    --sea: #4fb3b9;
    --sea-deep: #0f5f66;
    --sea-soft: #173236;
    --saffron: #f0b43a;
    --saffron-soft: #33290f;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.6 var(--font); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
a { color: var(--sea); }
:focus-visible { outline: 2px solid var(--sea); outline-offset: 3px; }
h1, h2, h3 { line-height: 1.15; margin: 0; }
h2 { font-family: var(--display); font-weight: 500; font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 28px; }
h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }

/* навигация */
.l-nav { display: flex; align-items: center; gap: 24px; padding: 18px clamp(16px, 5vw, 64px); max-width: 1240px; margin: 0 auto; }
.l-brand { font-family: var(--display); font-weight: 700; font-size: 19px; color: var(--sea); text-decoration: none; }
.l-links { display: flex; gap: 22px; flex: 1; }
.l-links a { color: var(--ink-2); text-decoration: none; font-weight: 500; }
.l-links a:hover { color: var(--ink); }
.l-nav-cta { display: flex; gap: 8px; }
.l-btn { display: inline-block; background: var(--sea); color: #fff; text-decoration: none; font-weight: 700; padding: 10px 18px; border-radius: 10px; border: 1px solid var(--sea); white-space: nowrap; }
.l-btn:hover { filter: brightness(1.08); }
.l-btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.l-btn.big { font-size: 17px; padding: 14px 26px; }
@media (prefers-color-scheme: dark) { .l-btn { color: #0b1a1c; } .l-btn.ghost { color: var(--ink); } }

main > section { max-width: 1240px; margin: 0 auto; padding: 64px clamp(16px, 5vw, 64px); }

/* первый экран */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding-top: 40px !important; }
.hero h1 { font-family: var(--display); font-weight: 700; font-size: clamp(32px, 4.8vw, 58px); letter-spacing: -0.015em; max-width: 15ch; }
.lead { font-size: 20px; color: var(--ink); margin: 22px 0 8px; max-width: 42ch; }
.hero-sub { color: var(--ink-2); max-width: 52ch; margin: 0 0 28px; }
.hero-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero-note { color: var(--ink-2); font-size: 14.5px; }

/* телефон с перепиской — главный элемент страницы */
.phone { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 12px; box-shadow: 0 30px 60px -30px rgba(15, 95, 102, .45); max-width: 420px; justify-self: center; width: 100%; }
.phone-head { display: flex; flex-direction: column; padding: 10px 14px 12px; border-bottom: 1px solid var(--line); }
.phone-head span { color: var(--ink-2); font-size: 13px; }
.phone-chat { display: flex; flex-direction: column; gap: 8px; padding: 14px 6px; background: var(--paper); border-radius: 18px; margin-top: 10px; min-height: 330px; }
.msg { max-width: 86%; padding: 8px 12px; border-radius: 14px; font-size: 14.5px; line-height: 1.45; background: var(--surface); box-shadow: 0 1px 0 var(--line); animation: pop .5s both; animation-delay: calc(var(--d) * .9s + .3s); }
.msg.in { align-self: flex-start; border-top-left-radius: 4px; }
.msg.out { align-self: flex-end; border-top-right-radius: 4px; }
.msg.bot { background: var(--saffron-soft); box-shadow: inset 3px 0 0 var(--saffron); }
.msg .who { display: block; font-size: 12.5px; font-weight: 700; color: var(--sea); }
.msg .quote { display: block; font-size: 12.5px; padding: 4px 8px; margin-bottom: 4px; border-radius: 6px; background: rgba(0, 0, 0, .05); border-left: 3px solid var(--sea); color: var(--ink-2); }
.msg .quote b { display: block; color: var(--sea); }
.msg .transcript { display: block; font-size: 13px; color: var(--ink-2); font-style: italic; }
.phone-source { font-size: 13px; color: var(--ink-2); padding: 10px 8px 4px; animation: pop .5s both; animation-delay: calc(var(--d) * .9s + .3s); }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .msg, .phone-source { animation: none; } html { scroll-behavior: auto; } }

/* как работает — настоящая последовательность шагов */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 56px; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--sea); color: #fff; font-family: var(--display); font-weight: 700; }
.steps li:not(:last-child)::after { content: ''; position: absolute; top: 20px; left: 52px; right: -20px; height: 2px; background: var(--line); }
.steps p { color: var(--ink-2); margin: 0; }

/* возможности */
.features { background: var(--surface); border-radius: 28px; }
.feature-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 40px; }
.feature-list article { border-top: 3px solid var(--saffron); padding-top: 16px; }
.feature-list p { color: var(--ink-2); margin: 0; }

/* тарифы */
.pricing-note { color: var(--ink-2); margin: -16px 0 24px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.plan.featured { border: 2px solid var(--sea); }
.plan h3 { font-size: 20px; }
.price { font-family: var(--display); font-size: 30px; font-weight: 500; }
.price small { font-family: var(--font); font-size: 15px; color: var(--ink-2); font-weight: 500; }
.plan ul { margin: 0; padding-left: 18px; color: var(--ink-2); }
.plan .l-btn { margin-top: auto; text-align: center; }

/* вопросы */
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; max-width: 780px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 17px; }
.faq details p { color: var(--ink-2); margin: 10px 0 0; max-width: 68ch; }

/* подвал */
.l-footer { max-width: 1240px; margin: 0 auto; padding: 40px clamp(16px, 5vw, 64px) 56px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; font-size: 14.5px; color: var(--ink-2); }
.l-footer p { margin: 8px 0 0; }
.details { white-space: pre-line; }
.legal-links { display: flex; gap: 18px; flex-wrap: wrap; }
.pay-cards { font-size: 13.5px; }

/* оферта и политика */
.legal-body { max-width: 780px; margin: 0 auto; padding: 24px clamp(16px, 5vw, 32px) 64px; }
.legal-body h1 { font-family: var(--display); font-weight: 500; font-size: 30px; margin: 12px 0 24px; }
.legal-body p { margin: 0 0 14px; }
.legal-body hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0 16px; }
.muted { color: var(--ink-2); }

@media (max-width: 900px) {
  .l-links { display: none; }
  .l-nav { justify-content: space-between; }
  .hero { grid-template-columns: 1fr; }
  .steps, .feature-list { grid-template-columns: 1fr; gap: 28px; }
  .steps li:not(:last-child)::after { display: none; }
  .features { border-radius: 0; }
  main > section { padding-top: 44px; padding-bottom: 44px; }
}
@media (max-width: 420px) {
  .l-nav-cta .ghost { display: none; }
}
