:root {
  --ink: #0b1f2a;
  --ink-2: #44606e;
  --line: #dfe9ec;
  --bg: #ffffff;
  --tint: #f2f8f8;
  --brand: #0e9f8e;
  --brand-dark: #0a7d70;
  --brand-soft: #dff5f1;
  --navy: #082a36;
  --wa: #25d366;
  --radius: 18px;
  --shadow: 0 18px 50px -20px rgba(8, 42, 54, .28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

.container { width: min(1160px, 100% - 40px); margin-inline: auto; }
.container--narrow { width: min(820px, 100% - 40px); }

h1 { font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1.12; font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.18; font-weight: 800; letter-spacing: -.015em; }
h3 { font-size: 1.12rem; font-weight: 700; }

.eyebrow {
  display: inline-block; margin-bottom: 14px; padding: 6px 12px;
  font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--brand-dark); background: var(--brand-soft); border-radius: 999px;
}
.eyebrow--light { color: #bff3ea; background: rgba(255, 255, 255, .1); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 26px; border: 0; border-radius: 14px; cursor: pointer;
  font-weight: 700; font-size: 1rem; transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn--sm { padding: 10px 18px; font-size: .92rem; border-radius: 12px; }
.btn--primary { color: #fff; background: var(--brand); box-shadow: 0 10px 24px -10px var(--brand); }
.btn--primary:hover { background: var(--brand-dark); }
.btn--ghost { background: #fff; border: 1.5px solid var(--line); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand-dark); }
.btn--light { background: #fff; color: var(--navy); }
.btn--wa { width: 100%; color: #fff; background: var(--wa); box-shadow: 0 10px 24px -12px var(--wa); }

/* ---------- header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .88); backdrop-filter: blur(12px); transition: box-shadow .2s; }
.header.is-scrolled { box-shadow: 0 6px 24px -14px rgba(8, 42, 54, .35); }
.header__inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.15rem; }
.logo__mark { padding: 4px 9px; color: #fff; background: var(--brand); border-radius: 9px; }
.logo--light { color: #fff; }
.nav { display: flex; gap: 24px; margin-left: auto; font-weight: 600; font-size: .95rem; color: var(--ink-2); }
.nav a:hover { color: var(--brand-dark); }
.header__actions { display: flex; align-items: center; gap: 16px; }
.header__phone { font-weight: 700; white-space: nowrap; }
.burger { display: none; width: 42px; height: 42px; padding: 11px 9px; background: none; border: 0; cursor: pointer; }
.burger span { display: block; height: 2px; margin-bottom: 6px; background: var(--ink); border-radius: 2px; }

/* ---------- hero ---------- */
.hero { padding: 64px 0 88px; background: radial-gradient(900px 480px at 85% 0%, var(--brand-soft), transparent 70%), linear-gradient(#fff, var(--tint)); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.lead { margin-top: 20px; font-size: 1.13rem; color: var(--ink-2); max-width: 56ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.chips li { padding: 7px 14px; font-size: .88rem; font-weight: 600; background: #fff; border: 1px solid var(--line); border-radius: 999px; }
.chips li::before { content: '✓ '; color: var(--brand); font-weight: 800; }

.hero__visual { position: relative; }
.mock { background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; }
.mock__bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: #f6fafb; border-bottom: 1px solid var(--line); font-size: .78rem; color: var(--ink-2); }
.mock__bar i { width: 10px; height: 10px; border-radius: 50%; background: #d5e2e6; }
.mock__bar span { margin-left: 8px; }
.mock__body { padding: 18px; }
.mock__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock__stats div { padding: 12px; background: var(--tint); border-radius: 12px; }
.mock__stats small { display: block; font-size: .72rem; color: var(--ink-2); }
.mock__stats b { font-size: 1.5rem; font-weight: 800; }
.mock__title { margin: 18px 0 8px; font-weight: 700; font-size: .92rem; }
.mock__list li { display: grid; grid-template-columns: 46px 34px 1fr auto; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: .86rem; }
.mock__list time { font-weight: 700; color: var(--ink-2); }
.mock__list small { display: block; color: var(--ink-2); font-size: .76rem; }
.ava { display: grid; place-items: center; width: 34px; height: 34px; font-size: .72rem; font-weight: 700; color: var(--brand-dark); background: var(--brand-soft); border-radius: 50%; }
.tag { padding: 4px 10px; font-style: normal; font-size: .72rem; font-weight: 700; color: var(--ink-2); background: #eef3f5; border-radius: 999px; }
.tag--ok { color: #0a7d70; background: var(--brand-soft); }
.tag--now { color: #9a5b00; background: #fff1d6; }

.float { position: absolute; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); font-size: .84rem; animation: bob 5s ease-in-out infinite; }
.float small { color: var(--ink-2); font-size: .74rem; }
.float--msg { left: -34px; bottom: -34px; max-width: 250px; }
.float--msg p { font-weight: 700; }
.float--msg .float__reply { margin-top: 6px; font-weight: 600; font-size: .78rem; color: var(--brand-dark); }
.float--remind { right: -18px; top: -26px; display: flex; align-items: center; gap: 10px; animation-delay: -2.5s; }
.float--remind small { display: block; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--wa); box-shadow: 0 0 0 5px rgba(37, 211, 102, .18); }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* ---------- sections ---------- */
.section { padding: 88px 0; }
.section--tint { background: var(--tint); }
.section--dark { color: #fff; background: linear-gradient(135deg, var(--navy), #0b4a4f); }
.section__head { max-width: 720px; margin-bottom: 44px; }
.section__head p { margin-top: 14px; font-size: 1.05rem; color: var(--ink-2); }

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

.card { padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: transform .2s, box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card p { margin-top: 10px; color: var(--ink-2); font-size: .95rem; }
.card--accent { border-color: var(--brand); background: linear-gradient(#fff, #f3fbfa); }
.icon { font-size: 2rem; margin-bottom: 14px; }
.icon--sq { display: grid; place-items: center; width: 52px; height: 52px; font-size: 1.5rem; background: var(--brand-soft); border-radius: 14px; }
.ticks { margin-top: 14px; }
.ticks li { position: relative; padding: 5px 0 5px 26px; color: var(--ink-2); font-size: .95rem; }
.ticks li::before { content: '✓'; position: absolute; left: 0; color: var(--brand); font-weight: 800; }

.pain { padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.pain__before { padding-bottom: 16px; color: var(--ink-2); border-bottom: 1px dashed var(--line); }
.pain__before::before { content: 'Было'; display: block; margin-bottom: 6px; font-size: .74rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #c2543f; }
.pain__after { padding-top: 16px; font-weight: 700; }
.pain__after::before { content: 'Стало'; display: block; margin-bottom: 6px; font-size: .74rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--brand-dark); }

/* ---------- calculator ---------- */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.calc__copy p { margin: 16px 0 28px; color: #b9d3d6; font-size: 1.05rem; }
.calc__panel { padding: 30px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-radius: 22px; }
.range { display: block; margin-bottom: 22px; }
.range span { display: flex; justify-content: space-between; margin-bottom: 10px; font-weight: 600; }
.range output { font-weight: 800; color: #7fe6d6; }
.range input { width: 100%; accent-color: #2fd4bd; }
.calc__result { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .14); }
.calc__result small { display: block; margin-bottom: 6px; color: #b9d3d6; font-size: .82rem; }
.calc__result b { font-size: clamp(1.3rem, 2.4vw, 1.75rem); font-weight: 800; }
.calc__result .accent { color: #7fe6d6; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: s; }
.steps li { padding: 24px 20px; background: var(--tint); border-radius: var(--radius); }
.steps span { display: block; margin-bottom: 14px; font-size: 1.6rem; font-weight: 800; color: var(--brand); }
.steps p { margin-top: 8px; font-size: .92rem; color: var(--ink-2); }

.price { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; padding: 44px; background: linear-gradient(135deg, var(--brand-soft), #fff); border: 1px solid var(--line); border-radius: 26px; }
.price p { margin-top: 14px; color: var(--ink-2); font-size: 1.05rem; max-width: 52ch; }
.price__box { display: grid; justify-items: center; gap: 2px; min-width: 250px; padding: 30px; text-align: center; background: #fff; border-radius: 22px; box-shadow: var(--shadow); }
.price__box small { font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--brand-dark); font-size: .78rem; }
.price__box b { font-size: 2.5rem; font-weight: 800; line-height: 1.15; }
.price__box span { margin-bottom: 16px; color: var(--ink-2); }

.mini { padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.mini p { margin-top: 8px; font-size: .93rem; color: var(--ink-2); }

/* ---------- faq ---------- */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; font-weight: 700; font-size: 1.05rem; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.5rem; line-height: 1; color: var(--brand); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 0 20px; color: var(--ink-2); max-width: 64ch; }

/* ---------- contacts ---------- */
.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contacts__info > p { margin-top: 14px; color: var(--ink-2); font-size: 1.05rem; }
.contacts__list { margin-top: 28px; display: grid; gap: 18px; }
.contacts__list li { display: flex; align-items: center; gap: 14px; }
.contacts__list li > span { display: grid; place-items: center; width: 46px; height: 46px; font-size: 1.2rem; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.contacts__list small { display: block; color: var(--ink-2); font-size: .8rem; }
.contacts__list a:hover b { color: var(--brand-dark); }
.form { padding: 30px; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.form h3 { margin-bottom: 18px; font-size: 1.25rem; }
.form label { display: block; margin-bottom: 14px; font-size: .86rem; font-weight: 600; color: var(--ink-2); }
.form input, .form select, .form textarea { display: block; width: 100%; margin-top: 6px; padding: 13px 14px; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 12px; outline: none; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--brand); }
.form__note { display: block; margin-top: 12px; text-align: center; color: var(--ink-2); font-size: .8rem; }

/* ---------- footer ---------- */
.footer { padding: 40px 0; color: #b9d3d6; background: var(--navy); font-size: .92rem; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.footer__copy { margin-left: auto; }
.footer a:hover { color: #fff; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s, transform .6s; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- chat ---------- */
.chat-fab { position: fixed; right: 22px; bottom: 22px; z-index: 60; display: grid; place-items: center; width: 62px; height: 62px; color: #fff; background: var(--wa); border: 0; border-radius: 50%; cursor: pointer; box-shadow: 0 14px 30px -10px rgba(37, 211, 102, .8); transition: transform .15s; }
.chat-fab:hover { transform: scale(1.06); }
.chat-fab__badge { position: absolute; top: -2px; right: -2px; display: grid; place-items: center; width: 22px; height: 22px; font-size: .74rem; font-weight: 800; background: #ef4f4f; border: 2px solid #fff; border-radius: 50%; }
.chat-fab.is-open .chat-fab__badge { display: none; }

.chat { position: fixed; right: 22px; bottom: 98px; z-index: 60; display: flex; flex-direction: column; width: min(370px, calc(100vw - 24px)); height: min(540px, calc(100vh - 120px)); background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 30px 70px -20px rgba(8, 42, 54, .5); overflow: hidden; }
.chat[hidden] { display: none; }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; color: #fff; background: linear-gradient(135deg, var(--navy), #0b4a4f); }
.chat__head small { display: block; font-size: .76rem; color: #b9d3d6; }
.chat__ava { display: grid; place-items: center; width: 40px; height: 40px; font-weight: 800; font-size: .82rem; background: var(--brand); border-radius: 50%; }
.chat__close { margin-left: auto; width: 34px; height: 34px; font-size: 1.5rem; line-height: 1; color: #fff; background: none; border: 0; cursor: pointer; }
.chat__log { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 16px; overflow-y: auto; background: #f4f8f9; }
.msg { max-width: 84%; padding: 10px 14px; font-size: .92rem; border-radius: 16px; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg--bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg--user { align-self: flex-end; color: #fff; background: var(--brand); border-bottom-right-radius: 4px; }
.msg--typing { color: var(--ink-2); letter-spacing: 3px; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .4; } }
.options { display: flex; flex-wrap: wrap; gap: 8px; }
.options button { padding: 8px 14px; font-size: .86rem; font-weight: 600; color: var(--brand-dark); background: #fff; border: 1.5px solid var(--brand); border-radius: 999px; cursor: pointer; }
.options button:hover { color: #fff; background: var(--brand); }
.wa-cta { align-self: stretch; padding: 13px; text-align: center; font-weight: 700; color: #fff; background: var(--wa); border-radius: 14px; }
.chat__form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat__form input { flex: 1; min-width: 0; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 12px; outline: none; }
.chat__form input:focus { border-color: var(--brand); }
.chat__form button { width: 44px; color: #fff; background: var(--brand); border: 0; border-radius: 12px; cursor: pointer; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero__grid, .calc, .contacts { grid-template-columns: 1fr; gap: 44px; }
  .price { grid-template-columns: 1fr; padding: 28px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .float--msg { left: 8px; }
  .float--remind { right: 8px; }
  .header__phone { display: none; }
  .burger { display: block; }
  .nav { position: absolute; top: 72px; left: 0; right: 0; display: none; flex-direction: column; gap: 0; margin: 0; padding: 8px 20px 16px; background: #fff; box-shadow: 0 20px 30px -20px rgba(8, 42, 54, .35); }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .header__actions { margin-left: auto; }
}
@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .hero { padding: 36px 0 70px; }
  .grid--3, .grid--4, .steps, .calc__result { grid-template-columns: 1fr; }
  .mock__stats small { font-size: .66rem; }
  .mock__list li { grid-template-columns: 40px 30px 1fr; }
  .mock__list .tag { display: none; }
  .float--remind { display: none; }
  .footer__copy { margin-left: 0; }
  .btn { width: 100%; }
  .btn--sm { width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .float { animation: none; }
  html { scroll-behavior: auto; }
}
