@font-face { font-family: "Onest"; font-weight: 100 900; font-display: swap; src: url("fonts/onest-cyrillic-wght-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-weight: 100 900; font-display: swap; src: url("fonts/onest-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #f6f7f4;
  --surface: #ffffff;
  --text: #17201a;
  --muted: #55625a;
  --border: #e1e5df;
  --primary: #137538;
  --primary-fg: #ffffff;
  --primary-soft: #e3f3e8;
  --danger: #b42318;
  --danger-soft: #fdeceb;
  --warn: #b54708;
  --warn-soft: #fef3e2;
  --band: #0f2a1a;
  --band-fg: #eaf5ee;
  --phone: #17201a;
  --shadow: 0 30px 60px -20px rgba(15, 42, 26, .35), 0 8px 20px -8px rgba(15, 42, 26, .2);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1411;
    --surface: #171e19;
    --text: #e9efe9;
    --muted: #9aa89e;
    --border: #27312a;
    --primary: #4ade80;
    --primary-fg: #052e14;
    --primary-soft: #143222;
    --danger: #f97066;
    --danger-soft: #3a1714;
    --warn: #fdb022;
    --warn-soft: #3a2a0d;
    --band: #0a1a11;
    --phone: #2b362e;
    --shadow: 0 30px 60px -20px rgba(0, 0, 0, .7), 0 8px 20px -8px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Onest", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -.02em; text-wrap: balance; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.section { padding: 88px 0; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); margin-bottom: 14px; }
.h2 { font-size: clamp(30px, 4.6vw, 48px); font-weight: 800; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 40em; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px; border-radius: 14px;
  background: var(--primary); color: var(--primary-fg);
  font: inherit; font-weight: 700; font-size: 17px; text-decoration: none;
  border: 2px solid var(--primary); transition: transform .15s, filter .15s;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn.ghost:hover { border-color: var(--primary); }
.btn.small { min-height: 42px; padding: 0 18px; font-size: 15px; border-radius: 12px; }

/* Шапка */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; text-decoration: none; }
.logo img { width: 32px; height: 32px; border-radius: 9px; }
.nav-links { display: flex; gap: 26px; font-size: 15px; font-weight: 500; }
.nav-links a { text-decoration: none; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
@media (max-width: 820px) { .nav-links { display: none; } }

/* Телефон: рамка и скругление считаются от ширины самого телефона (cqw), поэтому при любом размере выглядят одинаково. */
.phone {
  position: relative; width: 100%; max-width: 300px; margin-inline: auto;
  container-type: inline-size;
}
.phone::before {
  content: ""; position: absolute; inset: 0;
  background: var(--phone); border-radius: 14.5cqw; box-shadow: var(--shadow);
}
.phone img {
  position: relative; display: block; height: auto;
  width: calc(100% - 6cqw); margin: 3cqw; border-radius: 11.5cqw;
}

/* Hero */
.hero { padding: 64px 0 24px; overflow-x: clip; overflow-y: visible; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(38px, 6.4vw, 68px); font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero .lead { margin-top: 22px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--muted); }
.hero-phones { position: relative; height: 640px; }
.hero-phones .phone { position: absolute; width: 270px; }
.hero-phones .p1 { left: 4%; top: 40px; transform: rotate(-5deg); }
.hero-phones .p2 { right: 2%; top: -10px; transform: rotate(4deg); z-index: 1; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-phones { height: 520px; }
  .hero-phones .phone { width: 220px; }
  .hero-phones .p1 { left: 50%; margin-left: -215px; }
  .hero-phones .p2 { right: auto; left: 50%; margin-left: -5px; }
}
@media (max-width: 480px) {
  .hero-phones { height: 440px; }
  .hero-phones .phone { width: 180px; }
  .hero-phones .p1 { margin-left: -175px; }
  .hero-phones .p2 { margin-left: -5px; }
}

/* Цифры */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 56px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 22px; }
.stat b { display: block; font-size: 34px; font-weight: 800; letter-spacing: -.02em; color: var(--primary); }
.stat span { color: var(--muted); font-size: 15px; }
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 18px; }
  .stat b { font-size: 26px; }
}

/* Боль */
.pain { background: var(--band); color: var(--band-fg); }
.pain .eyebrow { color: #7be3a0; }
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.pain-card { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: 20px; padding: 24px; }
.pain-card q { display: block; font-size: 20px; font-weight: 700; quotes: "«" "»"; line-height: 1.3; }
.pain-card p { margin-top: 10px; color: #b7cabd; font-size: 15px; }
.pain-card .fix { margin-top: 14px; color: #7be3a0; font-weight: 600; font-size: 15px; }
@media (max-width: 820px) { .pain-grid { grid-template-columns: 1fr; } }

/* Фичи */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 56px 0; }
.feature.flip .feature-text { order: 2; }
.feature h3 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; }
.feature .lead { margin-top: 16px; font-size: 18px; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 34px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23137538' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.pro-tag { display: inline-block; margin-left: 8px; padding: 2px 10px; border-radius: 999px; background: var(--warn-soft); color: var(--warn); font-size: 13px; font-weight: 700; letter-spacing: 0; vertical-align: middle; }
.duo { display: flex; justify-content: center; align-items: flex-start; gap: 18px; }
.duo .phone { max-width: 250px; }
.duo .phone:nth-child(2) { margin-top: 48px; }
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; gap: 32px; padding: 36px 0; }
  .feature.flip .feature-text { order: 0; }
  .duo .phone { max-width: 46%; }
}

/* Мелкие фичи */
.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.mini { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 26px; }
.mini .ic { width: 46px; height: 46px; border-radius: 14px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; margin-bottom: 18px; }
.mini .ic svg { width: 24px; height: 24px; }
.mini h3 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.mini p { margin-top: 8px; color: var(--muted); font-size: 16px; }
@media (max-width: 900px) { .mini-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .mini-grid { grid-template-columns: 1fr; } }

/* Шаги */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; counter-reset: s; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 28px; counter-increment: s; }
.step::before { content: counter(s); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: var(--primary-fg); font-weight: 800; font-size: 20px; margin-bottom: 18px; }
.step h3 { font-size: 22px; font-weight: 700; }
.step p { margin-top: 8px; color: var(--muted); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* Для кого */
.roles { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; }
.role { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 32px; }
.role.accent { background: var(--primary-soft); border-color: transparent; }
.role h3 { font-size: 26px; font-weight: 800; }
.role .ticks { margin-top: 18px; }
@media (max-width: 760px) { .roles { grid-template-columns: 1fr; } }

/* Тёмная тема */
.theme { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 900px) { .theme { grid-template-columns: 1fr; gap: 32px; } }

/* Тарифы */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 48px; max-width: 860px; margin-inline: auto; }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; }
.plan.pro { border: 2px solid var(--primary); position: relative; }
.plan .badge { position: absolute; top: -14px; right: 24px; background: var(--primary); color: var(--primary-fg); font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.plan h3 { font-size: 24px; font-weight: 800; }
.price { margin: 10px 0 4px; font-size: 40px; font-weight: 800; letter-spacing: -.02em; }
.price small { font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan .sub { color: var(--muted); font-size: 15px; }
.plan .ticks { margin: 22px 0 28px; flex: 1; }
.plan .btn { width: 100%; }
.plans-note { text-align: center; margin-top: 24px; color: var(--muted); font-size: 15px; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 760px; margin: 40px auto 0; display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 700; font-size: 18px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; line-height: 1; color: var(--primary); flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 20px; color: var(--muted); }

/* Финал */
.final { background: var(--primary); color: var(--primary-fg); border-radius: 32px; padding: 64px 24px; text-align: center; }
.final .h2 { color: inherit; }
.final p { margin: 16px auto 0; max-width: 34em; font-size: 19px; opacity: .92; }
.final .btn { margin-top: 30px; background: var(--primary-fg); color: var(--primary); border-color: var(--primary-fg); }
footer { padding: 40px 0 56px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
