/* MPmetr — лендинг. Мобильная вёрстка по умолчанию, шире — через min-width. Палитра от логотипа: индиго + жёлтая стрелка. */
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(fonts/onest-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(fonts/onest-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(fonts/onest-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(fonts/onest-cyrillic-ext.woff2) format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }

:root {
  --indigo: #4338ca;
  --indigo-d: #3730a3;
  --indigo-50: #eef0ff;
  --indigo-100: #e0e3ff;
  --night: #0e0f2b;
  --yellow: #fbbf24;
  --yellow-50: #fef6dc;
  --ink: #14152b;
  --ink-2: #4a4c63;
  --muted: #7c7f96;
  --line: rgba(20, 21, 43, .08);
  --bg: #fafafc;
  --tint: #f3f3f9;
  --card: #fff;
  --r: 22px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow: 0 1px 1px rgba(20, 21, 43, .03), 0 12px 32px -12px rgba(20, 21, 43, .10);
  --font: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.025em; text-wrap: balance; }
p { margin: 0; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 30; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 8px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 18px;
  border-radius: 999px; background: var(--indigo); color: #fff; font-weight: 600; font-size: 15px; text-decoration: none;
  white-space: nowrap; transition: transform .4s var(--ease), background-color .3s var(--ease), box-shadow .4s var(--ease); }
.btn:hover { background: var(--indigo-d); }
.btn:active { transform: scale(.97); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn-lg { min-height: 54px; padding: 0 8px 0 24px; font-size: 16px; }
.btn-lg:not(:has(.btn-ic)) { padding: 0 24px; }
.btn-ic { width: 38px; height: 38px; border-radius: 999px; background: rgba(255, 255, 255, .16); display: grid; place-items: center; transition: transform .5s var(--ease); }
.btn-ic .ic { width: 18px; height: 18px; stroke-width: 2; }
.btn:hover .btn-ic { transform: translate(2px, -2px) scale(1.05); }
.btn-ghost { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { background: var(--card); box-shadow: inset 0 0 0 1px rgba(67, 56, 202, .35); }
.btn-ghost .ic { color: #229ed9; }
.btn-block { width: 100%; }
.btn-yellow { background: var(--yellow); color: var(--night); }
.btn-yellow:hover { background: #f5b20f; }
.btn-yellow .btn-ic { background: rgba(14, 15, 43, .1); }
.btn-ghost-dark { background: rgba(255, 255, 255, .06); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.btn-ghost-dark:hover { background: rgba(255, 255, 255, .12); }

/* шапка — плавающая «таблетка» */
.nav-wrap { position: sticky; top: 0; z-index: 20; padding: 10px 12px 0; }
.nav { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px;
  background: rgba(255, 255, 255, .78); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border-radius: 999px; box-shadow: 0 0 0 1px var(--line), 0 8px 24px -16px rgba(20, 21, 43, .3); }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-size: 18px; font-weight: 500; letter-spacing: -.01em; }
.brand b { color: var(--indigo); font-weight: 700; margin-left: 1px; }
.brand svg { border-radius: 8px; }
.nav-links { display: none; }
.lang { margin-left: auto; display: inline-flex; padding: 3px; border-radius: 999px; background: var(--tint); }
.lang a { min-width: 38px; min-height: 32px; display: grid; place-items: center; padding: 0 8px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; transition: background-color .3s var(--ease), color .3s; }
.lang a[aria-current] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(20, 21, 43, .12); }
.nav .btn-sm { display: none; }

/* первый экран */
.hero { position: relative; padding: 40px 0 56px; overflow: hidden; }
.hero-bg { position: absolute; inset: -120px 0 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(520px 340px at 85% 20%, rgba(67, 56, 202, .16), transparent 70%),
    radial-gradient(380px 260px at 10% 0%, rgba(251, 191, 36, .14), transparent 70%),
    linear-gradient(rgba(67, 56, 202, .045) 1px, transparent 1px) 0 0 / 100% 40px;
  -webkit-mask-image: linear-gradient(#000 40%, transparent); mask-image: linear-gradient(#000 40%, transparent); }
.hero-in { display: grid; gap: 40px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--indigo-50);
  color: var(--indigo); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 3px rgba(251, 191, 36, .25); }
.hero h1 { margin-top: 18px; font-size: clamp(34px, 9vw, 64px); line-height: 1.04; letter-spacing: -.035em; font-weight: 750; }
.hero h1 em { font-style: normal; color: var(--indigo); position: relative; white-space: nowrap; }
.hero h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .14em; border-radius: 4px; background: var(--yellow); z-index: -1; opacity: .9; }
.lead { margin-top: 18px; font-size: 17px; color: var(--ink-2); max-width: 36em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.cta-row .btn { flex: 1 1 auto; }
.hero-note { margin-top: 14px; font-size: 14px; color: var(--muted); }
.hero-visual { position: relative; justify-self: center; width: min(300px, 82vw); }
.phone { padding: 9px; border-radius: 46px; background: #15162f; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08) inset, 0 40px 80px -30px rgba(30, 27, 110, .55), 0 18px 36px -18px rgba(20, 21, 43, .4); }
.phone-screen { border-radius: 38px; overflow: hidden; background: #f5f6fa; aspect-ratio: 390 / 760; }
.phone-screen img { width: 100%; }
.gauge { position: absolute; left: -26px; bottom: 54px; padding: 10px; border-radius: 24px; background: rgba(255, 255, 255, .9);
  box-shadow: 0 0 0 1px var(--line), 0 20px 40px -18px rgba(20, 21, 43, .35); }
.gauge svg { display: block; border-radius: 16px; }
.gauge .needle { transform-origin: 256px 312px; animation: needle 5s var(--ease) infinite; }
@keyframes needle { 0%, 100% { transform: rotate(-95deg); } 35%, 70% { transform: rotate(0deg); } 50% { transform: rotate(-12deg); } }

/* цифры */
.stats { padding: 8px 0 24px; }
.stats-grid { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat { padding: 18px 16px; border-radius: 18px; background: var(--card); box-shadow: 0 0 0 1px var(--line); display: flex; flex-direction: column-reverse; gap: 4px; }
.stat:first-child { grid-column: 1 / -1; background: var(--night); color: #fff; box-shadow: none; }
.stat:first-child dt { color: rgba(255, 255, 255, .65); }
.stat:first-child dd { color: var(--yellow); }
.stat dd { margin: 0; font-size: 22px; line-height: 1.1; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat dt { font-size: 13.5px; line-height: 1.35; color: var(--muted); }
.stats-date { margin-top: 12px; font-size: 13px; color: var(--muted); }

/* секции */
.section { padding: 64px 0; }
.section-tint { background: var(--tint); }
.sec-head { max-width: 720px; margin-bottom: 32px; }
.sec-head h2 { margin-top: 14px; font-size: clamp(28px, 6.5vw, 46px); line-height: 1.08; }
.sec-sub { margin-top: 14px; color: var(--ink-2); font-size: 17px; }

/* возможности — бенто */
.bento { display: grid; grid-template-columns: 1fr; gap: 12px; }
.feat { position: relative; display: flex; flex-direction: column; gap: 20px; padding: 22px; border-radius: var(--r); background: var(--card);
  box-shadow: 0 0 0 1px var(--line); overflow: hidden; transition: box-shadow .5s var(--ease), transform .5s var(--ease); }
.feat:hover { box-shadow: 0 0 0 1px rgba(67, 56, 202, .18), var(--shadow); }
.feat-top { display: flex; align-items: center; justify-content: space-between; }
.feat-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--indigo-50); color: var(--indigo); }
.feat h3 { margin-top: 16px; font-size: 20px; line-height: 1.2; }
.feat p { margin-top: 8px; color: var(--ink-2); font-size: 15.5px; }
.badge-soon { padding: 4px 10px; border-radius: 999px; background: var(--yellow-50); color: #8a5a00; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.feat:has(.badge-soon) .feat-ic { background: var(--tint); color: var(--muted); }
.shot { margin: 0 -22px -22px; padding: 0 0 0 22px; }
.shot-bar, .shot img { border-radius: 14px 0 0 0; }
.shot { display: flex; flex-direction: column; }
.shot-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #ecedf4; border-bottom: 1px solid var(--line); }
.shot-bar i { width: 8px; height: 8px; border-radius: 50%; background: #d3d5e2; }
.shot-bar span { margin-left: 8px; font-size: 11.5px; color: var(--muted); }
.shot img { border-radius: 0; background: #f5f6fa; }
.f-wide .shot { max-height: 380px; overflow: hidden; }
/* на телефоне снимок десктопа не читается целиком — показываем увеличенный фрагмент */
@media (max-width: 959px) {
  .shot { overflow: hidden; }
  .shot img { width: 185%; max-width: none; }
  .f-s7 .shot img { width: 200%; margin-left: -100%; }
  .f-wide .shot { max-height: 330px; }
}
@media (max-width: 639px) {
  .f-s4 .feat-copy { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; }
  .f-s4 .feat-top { grid-row: span 2; flex-direction: column; align-items: flex-start; gap: 8px; }
  .f-s4 h3 { margin-top: 0; font-size: 18px; }
  .f-s4 p { margin-top: 6px; font-size: 15px; }
  .f-s4 .badge-soon { font-size: 10px; padding: 3px 6px; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-brand, .foot-copy { grid-column: 1 / -1; }
}

/* как работает */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: s; }
.step { position: relative; padding: 24px 22px; border-radius: var(--r); background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.step-n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--night); color: var(--yellow); font-weight: 700; font-variant-numeric: tabular-nums; }
.step h3 { margin-top: 18px; font-size: 20px; line-height: 1.25; }
.step p { margin-top: 8px; color: var(--ink-2); }

/* для кого */
.who { display: grid; gap: 12px; }
.who-card { padding: 24px 22px; border-radius: var(--r); background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.who-card h3 { margin-top: 18px; font-size: 20px; }
.who-card p { margin-top: 8px; color: var(--ink-2); }
.who-card:nth-child(2) .feat-ic { background: var(--yellow-50); color: #8a5a00; }
.who-card:nth-child(3) .feat-ic { background: #e7f6ee; color: #187244; }

/* тариф: карточка в «рамке» из градиента бренда */
.price-card { display: grid; gap: 4px; padding: 22px 10px 10px; border-radius: 30px; background: var(--card);
  box-shadow: 0 0 0 1px var(--line), 0 0 0 8px rgba(67, 56, 202, .06), var(--shadow); }
.badge-free { justify-self: start; margin: 0 12px; padding: 8px 14px; border-radius: 999px; background: var(--night); color: var(--yellow); font-weight: 600; font-size: 14px; }
.checks { list-style: none; margin: 0; padding: 18px 12px 22px; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.checks .ic { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--indigo); color: #fff; stroke-width: 2.4; margin-top: 1px; }

/* вопросы */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 2px; font-size: 17.5px; font-weight: 600; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.pm { position: relative; width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--tint); transition: background-color .3s, transform .5s var(--ease); }
.pm::before, .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.8px; margin: -.9px 0 0 -5.5px; border-radius: 2px; background: var(--ink); transition: transform .5s var(--ease); }
.pm::after { transform: rotate(90deg); }
details[open] .pm { background: var(--indigo); transform: rotate(180deg); }
details[open] .pm::before, details[open] .pm::after { background: #fff; }
details[open] .pm::after { transform: rotate(0); }
.faq details p { padding: 0 44px 22px 2px; color: var(--ink-2); }

/* финальный призыв */
.final { padding: 12px 12px 0; }
.final-in { position: relative; overflow: hidden; padding: 48px 22px; border-radius: 30px; background: var(--night); color: #fff; text-align: left; }
/* дуга прибора из логотипа, выглядывает из правого нижнего угла */
.final-in::before { content: ""; position: absolute; right: -150px; bottom: -330px; width: 460px; height: 460px; border-radius: 50%;
  border: 44px solid rgba(67, 56, 202, .55); border-bottom-color: transparent; border-right-color: transparent; transform: rotate(45deg); pointer-events: none; }
.final-in::after { content: ""; position: absolute; right: 70px; bottom: -10px; width: 12px; height: 150px; border-radius: 8px; background: var(--yellow);
  transform-origin: 50% 100%; transform: rotate(38deg); opacity: .9; pointer-events: none; }
.final h2 { position: relative; font-size: clamp(28px, 6.5vw, 48px); line-height: 1.08; max-width: 16em; }
.final p { position: relative; margin-top: 14px; color: rgba(255, 255, 255, .7); font-size: 17px; }
.final .cta-row { position: relative; }
.final .btn-ghost-dark .ic { color: #6cc3ee; }

/* подвал */
.foot { padding: 48px 0 40px; font-size: 14.5px; color: var(--ink-2); }
.foot-in { display: grid; gap: 28px; }
.foot-brand p { margin-top: 14px; max-width: 34em; color: var(--muted); }
.foot-col { display: grid; gap: 8px; align-content: start; }
.foot-col a { text-decoration: none; }
.foot-col a:hover { color: var(--indigo); }
.foot-h { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.foot-copy { color: var(--muted); }

/* появление при прокрутке (класс js ставит site.js — без JS всё видно сразу) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .gauge .needle { animation: none; }
}

/* ≥ 640 */
@media (min-width: 640px) {
  .wrap { padding: 0 28px; }
  .nav .btn-sm { display: inline-flex; }
  .lang { margin-left: auto; }
  .cta-row .btn { flex: 0 0 auto; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .stat:first-child { grid-column: span 1; }
  .who { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .feat { padding: 28px; }
  .shot { margin: 0 -28px -28px; padding-left: 28px; }
  .final-in { padding: 64px 48px; }
  .foot-in { grid-template-columns: 2fr 1fr 1fr; }
  .foot-copy { grid-column: 1 / -1; }
}

/* ≥ 960 */
@media (min-width: 960px) {
  .nav { padding-left: 18px; }
  .nav-links { display: flex; gap: 4px; margin-left: 24px; }
  .nav-links a { padding: 8px 12px; border-radius: 999px; font-size: 14.5px; color: var(--ink-2); text-decoration: none; transition: background-color .3s, color .3s; }
  .nav-links a:hover { background: var(--tint); color: var(--ink); }
  .hero { padding: 72px 0 88px; }
  .hero-in { grid-template-columns: 1.25fr .75fr; align-items: center; gap: 56px; }
  .hero-visual { width: 320px; }
  .gauge { left: -56px; }
  .stats-grid { grid-template-columns: 1.3fr repeat(4, 1fr); }
  .stat { padding: 22px 20px; }
  .stat dd { font-size: 26px; }
  .section { padding: 112px 0; }
  .sec-head { margin-bottom: 48px; }
  .bento { grid-template-columns: repeat(12, 1fr); gap: 16px; }
  .f-s4 { grid-column: span 4; }
  .f-s5 { grid-column: span 5; }
  .f-s7 { grid-column: span 7; }
  .f-wide { grid-column: 1 / -1; flex-direction: row; align-items: stretch; gap: 40px; padding: 36px 0 0 36px; }
  .f-wide .feat-copy { flex: 0 0 34%; padding-bottom: 36px; }
  .f-wide .shot { flex: 1; margin: 0; padding: 0; max-height: 420px; }
  .f-wide.f-rev { flex-direction: row-reverse; padding: 36px 36px 0 0; }
  .f-wide.f-rev .shot-bar { border-radius: 0 14px 0 0; }
  .f-wide h3 { font-size: 28px; }
  .f-wide p { font-size: 17px; }
  .f-s7 .shot { margin-top: auto; }
  .steps { gap: 16px; }
  .step { padding: 32px 28px; }
  .pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
  .pricing .sec-head { margin-bottom: 0; }
  .faq-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; align-items: start; }
  .final { padding: 0 28px; }
  .final-in { padding: 88px 72px; }
}

.brand-word { height: 28px; width: auto; display: block; }
.foot .brand-word { height: 24px; }
