/* ===== Tokens (из mitrapulse.pen) ===== */
:root {
  --bg: #F4F1EA;
  --dark: #10292D;
  --card: #FFFDF8;
  --accent: #B8431F;
  --accent-2: #E8643C;
  --teal: #2F8F83;
  --ok-bg: #DDEFEA;
  --ok-text: #1F5F55;
  --alert-bg: #FBE4DA;
  --warn-bg: #EFEAE0;
  --text-1: #10292D;
  --text-2: #55666A;
  --line: #E3DDD0;
  --on-dark: #F4F1EA;
  --on-dark-2: #A9BDBC;
  --sand: #EAE4D8;
  --muted: #8E9A9B;

  --font-head: "Unbounded", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-hand: "Caveat", cursive;
  --radius: 24px;

  --pad-x: clamp(20px, 8.33vw, 120px);
  --pad-y: clamp(64px, 8.33vw, 120px);
  --max: 1440px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-1);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
svg.lucide { flex: none; width: 1em; height: 1em; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
body.is-locked { overflow: hidden; }
[hidden] { display: none !important; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.nowrap { white-space: nowrap; }

section, .hero, .footer { scroll-margin-top: 16px; }
section > *, .hero > *, .footer > * { max-width: calc(var(--max) - 240px); margin-inline: auto; }

@media (min-width: 900px) { .m-only { display: none !important; } }

.c-accent { color: var(--accent) !important; }
.c-accent2 { color: var(--accent-2); }
.c-teal { color: var(--teal); }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); flex: none; }
.dot--teal { background: var(--teal); }
.dot--accent2 { background: var(--accent-2); }
.dot--amber { background: #E8A33C; }

/* ===== Typography helpers ===== */
.eyebrow {
  color: var(--accent);
  font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
}
.eyebrow--light { color: var(--accent-2); }
.h2 {
  font-family: var(--font-head);
  font-size: 44px; font-weight: 600; line-height: 1.2; letter-spacing: -1px;
}
.sec-head { display: flex; flex-direction: column; gap: 16px; }
.sec-sub { color: var(--text-2); font-size: 18px; line-height: 1.5; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 999px; font-weight: 700; font-size: 15px; white-space: nowrap;
  transition: background-color .2s, color .2s, transform .15s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn svg.lucide { width: 20px; height: 20px; transition: transform .2s; }
.btn:hover svg.lucide { transform: translateX(3px); }
.btn--primary { background: var(--accent); color: #fff; padding: 20px 32px; font-size: 17px; }
.btn--primary:hover { background: #A33A1A; box-shadow: 0 10px 24px -10px rgba(184, 67, 31, .6); }
.btn--outline { border: 1.5px solid var(--text-1); padding: 12px 22px; color: var(--text-1); }
.btn--outline:hover { background: var(--text-1); color: var(--bg); }
.btn--block { width: 100%; padding: 20px; }

/* ===== Logo ===== */
.logo { display: inline-flex; align-items: center; gap: 9px; }
.logo__mark { width: 46px; height: 28px; overflow: visible; }
.logo__mark path { fill: none; stroke-width: 3.3; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.logo__m { stroke: var(--dark); }
.logo__pulse { stroke: var(--accent-2); }
.logo__word { font-family: var(--font-head); font-weight: 600; font-size: 19px; letter-spacing: -.4px; color: var(--dark); }
.logo__word span { color: var(--accent-2); }
.logo--light .logo__m { stroke: var(--on-dark); }
.logo--light .logo__word { color: var(--on-dark); }

/* ===== Pulse lines ===== */
.pulse { position: absolute; overflow: visible; pointer-events: none; }
.pulse path { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }

/* ===== Hero ===== */
.hero { padding: 28px var(--pad-x) 96px; position: relative; }
.nav { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 20; }
.nav__links { display: flex; gap: 36px; }
.nav__links a { color: var(--text-2); font-size: 15px; font-weight: 500; transition: color .2s; }
.nav__links a:hover { color: var(--text-1); }
.nav__menu {
  display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  align-items: center; justify-content: center;
}
.nav__menu svg.lucide { width: 20px; height: 20px; }
.mobile-menu { display: none; }

.hero__body {
  margin-top: 72px; position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
}
.pulse--hero { left: calc(100% - 720px); top: 200px; width: 720px; height: 180px; }

.hero__copy { position: relative; z-index: 1; flex: 0 1 620px; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  color: var(--text-2); font-size: 14px; font-weight: 600;
}
.hero__title {
  font-family: var(--font-head); font-size: 62px; font-weight: 600; line-height: 1.1; letter-spacing: -1.5px;
}
.hero__sub { max-width: 540px; color: var(--text-2); font-size: 21px; line-height: 1.5; }
.hero__ctas { display: flex; align-items: center; gap: 24px; padding-top: 12px; }
.hero__play { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; }
.hero__play svg.lucide { width: 20px; height: 20px; }
.hero__play:hover { color: var(--accent); }
.trust { display: flex; gap: 20px; padding-top: 20px; flex-wrap: wrap; }
.trust li { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 14px; font-weight: 500; }
.trust svg.lucide { width: 18px; height: 18px; color: var(--teal); }

.hero__visual {
  position: relative; flex: none; width: 480px; height: 640px;
  display: flex; align-items: center; justify-content: center;
}
.glow {
  position: absolute; left: 20px; top: 80px; width: 440px; height: 440px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(232, 100, 60, .2), rgba(232, 100, 60, 0));
}

/* ===== Phone mock ===== */
.phone {
  position: relative; width: 300px; height: 620px; padding: 10px; flex: none;
  background: var(--dark); border-radius: 48px;
  box-shadow: 0 24px 50px rgba(16, 41, 45, .15);
}
.phone--hero { box-shadow: 0 30px 60px rgba(16, 41, 45, .2); }
.screen {
  height: 100%; overflow: hidden; border-radius: 38px; background: var(--card);
  padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 14px;
}
.screen--dark { background: var(--dark); color: var(--on-dark); }
.status { display: flex; justify-content: space-between; align-items: center; padding: 0 6px; font-size: 13px; }
.status span { display: flex; gap: 4px; }
.status svg.lucide { width: 14px; height: 14px; }

.ph-head { display: flex; align-items: center; gap: 10px; padding-top: 6px; }
.ph-head > svg.lucide { width: 20px; height: 20px; }
.ph-avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--ok-bg); color: var(--ok-text);
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 600; font-size: 16px; flex: none;
}
.ph-names { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.ph-names b { font-size: 16px; font-weight: 800; }
.ph-names { min-width: 0; }
.ph-names span { font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.bp-card { background: var(--bg); border-radius: 22px; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.bp-card__top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600; color: var(--text-2); }
.bp-card__value { font-family: var(--font-head); font-weight: 600; font-size: 46px; letter-spacing: -1.5px; line-height: 1.15; }
.bp-card__unit { font-size: 12px; color: var(--text-2); }

.pill { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; font-style: normal; white-space: nowrap; }
.pill .dot { width: 7px; height: 7px; }
.pill--ok { background: var(--ok-bg); color: var(--ok-text); }
.pill--alert { background: var(--alert-bg); color: var(--accent); }
.pill--warn { background: var(--warn-bg); color: var(--text-2); }

.mini-row { display: flex; gap: 10px; }
.mini { flex: 1; border: 1px solid var(--line); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.mini__top { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--text-2); }
.mini__top svg.lucide { width: 14px; height: 14px; }
.mini__val { display: flex; align-items: flex-end; gap: 4px; }
.mini__val b { font-family: var(--font-head); font-weight: 600; font-size: 24px; line-height: 1.1; }
.mini__val span { white-space: nowrap; font-size: 11px; color: var(--text-2); padding-bottom: 3px; }

.week { border: 1px solid var(--line); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.week > span { font-size: 12px; font-weight: 600; color: var(--text-2); }
.bars { display: flex; gap: 8px; height: 64px; align-items: flex-end; }
.bars i { flex: 1; height: var(--h); background: var(--ok-bg); border-radius: 6px; }
.bars i.is-today { background: var(--teal); }
.ph-foot { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 11px; color: var(--text-2); }
.ph-foot svg.lucide { width: 12px; height: 12px; }

.doc-chip {
  position: absolute; left: -56px; top: 456px; z-index: 2;
  display: flex; align-items: center; gap: 12px; padding: 14px 18px 14px 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 12px 30px rgba(16, 41, 45, .12);
}
.doc-chip__icon { width: 40px; height: 40px; border-radius: 14px; background: var(--dark); color: var(--on-dark); display: grid; place-items: center; flex: none; }
.doc-chip__icon svg.lucide { width: 20px; height: 20px; }
.doc-chip div:last-child { display: flex; flex-direction: column; gap: 2px; }
.doc-chip b { font-size: 14px; font-weight: 700; }
.doc-chip span { font-size: 12px; color: var(--text-2); }

/* ===== Problem ===== */
.problem { background: var(--dark); padding: var(--pad-y) var(--pad-x); display: flex; flex-direction: column; gap: 88px; }
.problem__story { display: flex; align-items: center; gap: 80px; width: 100%; }
.problem__text { flex: 1; display: flex; flex-direction: column; gap: 28px; }
.problem__lead, .problem__punch { font-family: var(--font-head); font-size: 36px; line-height: 1.3; }
.problem__lead { color: var(--on-dark-2); font-weight: 500; }
.problem__punch { color: var(--on-dark); font-weight: 600; }

.notebook-wrap { width: 360px; height: 470px; flex: none; position: relative; }
.notebook {
  position: absolute; left: 31px; top: 20px; width: 320px;
  padding: 28px 28px 32px; background: var(--card); border-radius: 20px;
  transform: rotate(-3deg); transform-origin: 0 0;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .18);
}
.notebook__title { font-family: var(--font-hand); font-weight: 700; font-size: 28px; color: #2B3A55; line-height: 1.25; }
.notebook__line { display: flex; gap: 24px; padding: 10px 0; border-bottom: 1px solid #C9D6E8; font-family: var(--font-hand); align-items: baseline; }
.notebook__line span { width: 80px; flex: none; font-size: 24px; color: var(--text-2); line-height: 1.25; }
.notebook__line b { font-size: 26px; font-weight: 700; color: #2B3A55; line-height: 1.25; }

.stats { display: flex; gap: 48px; width: 100%; }
.stat { flex: 1; display: flex; flex-direction: column; gap: 14px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .15); }
.stat b { font-family: var(--font-head); font-weight: 600; font-size: 64px; letter-spacing: -2px; color: var(--accent-2); line-height: 1.15; }
.stat span { max-width: 300px; font-size: 18px; line-height: 1.5; color: var(--on-dark-2); }

/* ===== How it works ===== */
.how { padding: var(--pad-y) var(--pad-x); display: flex; flex-direction: column; gap: 64px; }
.how__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; width: 100%; }
.how__aside { max-width: 360px; color: var(--text-2); font-size: 17px; line-height: 1.55; }
.steps { display: flex; gap: 20px; width: 100%; }
.step {
  flex: 1; display: flex; flex-direction: column; gap: 20px; padding: 28px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .25s, box-shadow .25s;
}
.step:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -20px rgba(16, 41, 45, .25); }
.step__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 44px; }
.step__icon { width: 56px; height: 56px; border-radius: 18px; background: var(--ok-bg); color: var(--ok-text); display: grid; place-items: center; flex: none; }
.step__icon svg.lucide { width: 26px; height: 26px; }
.step__num { font-family: var(--font-head); font-weight: 600; font-size: 18px; color: #B9B2A3; }
.step__text { display: flex; flex-direction: column; gap: 20px; }
.step h3 { font-family: var(--font-head); font-weight: 600; font-size: 20px; line-height: 1.3; }
.step p { color: var(--text-2); font-size: 15px; line-height: 1.55; }
.step--dark { background: var(--dark); border-color: var(--dark); color: var(--on-dark); }
.step--dark .step__icon { background: var(--accent-2); color: #fff; }
.step--dark .step__num, .step--dark p, .step--dark .step__label { color: var(--on-dark-2); }

/* ===== App screens ===== */
.screens { background: var(--sand); padding: var(--pad-y) var(--pad-x); display: flex; flex-direction: column; align-items: center; gap: 64px; }
.screens__head { align-items: center; text-align: center; }
.carousel { display: flex; justify-content: space-between; width: 100%; }
.shot { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.shot--family, .shot--doctor { padding-top: 40px; }
.shot figcaption { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.shot figcaption b { font-family: var(--font-head); font-weight: 600; font-size: 18px; }
.shot figcaption span { color: var(--text-2); font-size: 15px; }

.ph-title { display: flex; justify-content: space-between; align-items: center; padding-top: 6px; }
.ph-title b { font-family: var(--font-head); font-weight: 600; font-size: 22px; }
.ph-title svg.lucide { width: 20px; height: 20px; }
.ok-card { background: var(--ok-bg); color: var(--ok-text); border-radius: 22px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.ok-card__top { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; }
.ok-card__top svg.lucide { width: 18px; height: 18px; }
.ok-card__vals { display: flex; align-items: flex-end; gap: 16px; }
.ok-card__vals b { font-family: var(--font-head); font-weight: 600; font-size: 38px; letter-spacing: -1px; line-height: 1.1; }
.ok-card__vals span { white-space: nowrap; font-size: 18px; font-weight: 700; padding-bottom: 4px; }
.ok-card__meta { font-size: 12px; }
.list-title { font-size: 13px; font-weight: 700; color: var(--text-2); }
.readings, .patients { display: flex; flex-direction: column; gap: 14px; }
.readings li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.readings span { width: 44px; font-size: 13px; color: var(--text-2); }
.readings b { flex: 1; font-size: 16px; font-weight: 800; }
.readings em { white-space: nowrap; font-style: normal; font-size: 13px; font-weight: 600; color: var(--text-2); }

.alert-card { background: var(--accent); color: #fff; border-radius: 24px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.alert-card__top { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; }
.alert-card__top svg.lucide { width: 18px; height: 18px; }
.alert-card__bp { font-family: var(--font-head); font-weight: 600; font-size: 40px; letter-spacing: -1.5px; line-height: 1.1; }
.alert-card p { color: #FFE3D8; font-size: 13px; line-height: 1.5; }
.ph-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 16px; border-radius: 999px; font-size: 15px; font-weight: 800; }
.ph-btn svg.lucide { width: 18px; height: 18px; }
.ph-btn--light { background: var(--on-dark); color: var(--text-1); }
.ph-btn--ghost { border: 1.5px solid rgba(255, 255, 255, .3); padding: 14.5px; }
.doc-note { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 18px; background: rgba(255, 255, 255, .08); color: var(--on-dark-2); font-size: 12px; line-height: 1.4; }
.doc-note svg.lucide { width: 18px; height: 18px; }
.recent { padding: 6px 2px 0; }
.recent__title { font-size: 12px; font-weight: 700; color: var(--on-dark-2); }
.recent__row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.recent__row span { width: 40px; font-size: 12px; color: var(--on-dark-2); }
.recent__row b { flex: 1; font-size: 14px; font-weight: 800; }

.doc-head { display: flex; flex-direction: column; gap: 2px; padding-top: 6px; }
.doc-head b { font-family: var(--font-head); font-weight: 600; font-size: 20px; }
.doc-head span { font-size: 12px; color: var(--text-2); }
.search { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--bg); border-radius: 14px; color: var(--text-2); font-size: 13px; }
.search svg.lucide { width: 15px; height: 15px; }
.patients li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.patients .ini { width: 34px; height: 34px; border-radius: 50%; background: var(--bg); color: var(--text-2); display: grid; place-items: center; font-size: 11px; font-weight: 800; flex: none; }
.patients div { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.patients b { font-size: 13px; font-weight: 800; }
.patients div span { font-size: 12px; color: var(--text-2); }
.patients .pill { font-size: 11px; padding: 5px 9px; }
.dots { display: flex; gap: 6px; justify-content: center; }
.dots i { width: 8px; height: 8px; border-radius: 4px; background: #C9C1B0; transition: width .25s, background-color .25s; }
.dots i.is-active { width: 24px; background: var(--dark); }

/* ===== For whom ===== */
.for-whom { padding: var(--pad-y) var(--pad-x) 60px; display: flex; flex-direction: column; gap: 56px; }
.for-whom > .sec-head { width: 100%; }
.audience { display: flex; gap: 24px; width: 100%; }
.aud {
  flex: 1; min-height: 520px; display: flex; flex-direction: column; gap: 28px; padding: 48px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
}
.aud__tag { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; color: var(--text-2); }
.aud__icon { width: 44px; height: 44px; border-radius: 14px; background: var(--ok-bg); color: var(--ok-text); display: grid; place-items: center; }
.aud__icon svg.lucide { width: 22px; height: 22px; }
.aud h3 { font-family: var(--font-head); font-weight: 600; font-size: 30px; line-height: 1.25; letter-spacing: -.5px; }
.checks { display: flex; flex-direction: column; gap: 14px; }
.checks li { display: flex; gap: 12px; color: var(--text-2); font-size: 16px; line-height: 1.5; }
.checks svg.lucide { width: 20px; height: 20px; color: var(--teal); margin-top: 2px; }
.aud__link { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; color: var(--accent); font-size: 16px; font-weight: 800; }
.aud__link svg.lucide { width: 18px; height: 18px; transition: transform .2s; }
.aud__link:hover svg.lucide { transform: translateX(4px); }
.aud--dark { background: var(--dark); border-color: var(--dark); color: var(--on-dark); }
.aud--dark .aud__tag, .aud--dark .checks li { color: var(--on-dark-2); }
.aud--dark .aud__icon { background: rgba(255, 255, 255, .08); color: var(--accent-2); }
.aud--dark .checks svg.lucide, .aud--dark .aud__link { color: var(--accent-2); }

/* ===== Pricing ===== */
.pricing { padding: 60px var(--pad-x) var(--pad-y); }
.price-card {
  display: flex; align-items: center; gap: 56px; padding: 56px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
}
.price-copy { flex: 1; display: flex; flex-direction: column; gap: 20px; }
.price-copy .sec-head { gap: 20px; }
.price-copy__title { font-size: 36px; }
.included { display: flex; flex-direction: column; gap: 12px; padding-top: 8px; }
.included p { color: var(--text-2); font-size: 15px; font-weight: 700; }
.included ul { display: flex; flex-direction: column; gap: 12px; }
.included li { display: flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 600; }
.included svg.lucide { width: 20px; height: 20px; color: var(--teal); }
.price-box { flex: 0 1 520px; background: var(--bg); border-radius: 20px; padding: 32px; }
.price-box hr { border: 0; height: 1px; background: var(--line); margin: 0; }
.price-row { display: flex; flex-direction: column; gap: 6px; padding: 20px 0; }
.price-row__label { color: var(--text-2); font-size: 15px; font-weight: 700; }
.price-row__val { display: flex; align-items: flex-end; gap: 8px; }
.price-row__val b { font-family: var(--font-head); font-weight: 600; font-size: 40px; letter-spacing: -1.5px; line-height: 1.15; }
.price-row__val span { color: var(--text-2); font-size: 17px; font-weight: 700; padding-bottom: 8px; }
.price-row__val--accent b { color: var(--accent); font-size: 52px; }
.price-row__sub { color: var(--text-2); font-size: 14px; }
.scarcity { display: flex; align-items: center; justify-content: center; gap: 8px; padding-top: 16px; color: var(--text-2); font-size: 14px; font-weight: 600; }

/* ===== Partner ===== */
.partner { padding: 0 var(--pad-x) var(--pad-y); }
.partner__strip { display: flex; align-items: center; gap: 32px; padding: 32px 40px; border: 1px solid var(--line); border-radius: var(--radius); }
.partner__logo { padding: 8px 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px; flex: none; }
.partner__logo img { width: 170px; height: 106px; object-fit: contain; }
.partner__divider { width: 1px; height: 48px; background: var(--line); flex: none; }
.partner__text { flex: 1; font-family: var(--font-head); font-weight: 500; font-size: 22px; line-height: 1.35; }
.partner__city { color: var(--text-2); font-size: 15px; font-weight: 700; }

/* ===== Application form ===== */
.apply {
  position: relative; overflow: hidden; background: var(--dark);
  padding: var(--pad-y) var(--pad-x); display: flex; align-items: center; gap: 80px;
}
.apply > * { margin-inline: 0; }
.pulse--apply { left: 0; bottom: 0; width: 620px; height: 120px; }
.apply__copy { position: relative; flex: 1; display: flex; flex-direction: column; gap: 24px; }
.apply__title { font-family: var(--font-head); font-weight: 600; font-size: 52px; line-height: 1.15; letter-spacing: -1.5px; color: var(--on-dark); }
.apply__sub { max-width: 480px; color: var(--on-dark-2); font-size: 18px; line-height: 1.55; }
.apply__steps { display: flex; flex-direction: column; gap: 14px; padding-top: 16px; }
.apply__steps li { display: flex; align-items: center; gap: 14px; color: var(--on-dark); font-size: 16px; font-weight: 600; }
.apply__steps span { width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); display: grid; place-items: center; font-size: 14px; font-weight: 800; flex: none; }

/* центрирование контента как в макете при широком экране */
@media (min-width: 1441px) {
  .apply { padding-inline: calc((100vw - var(--max)) / 2 + 120px); }
}

.form-card { position: relative; flex: none; width: 540px; background: var(--card); border-radius: var(--radius); padding: 40px; }
.lead-form { display: flex; flex-direction: column; gap: 20px; }

.seg { display: flex; padding: 5px; background: var(--bg); border-radius: 999px; }
.seg__opt { flex: 1; cursor: pointer; }
.seg__opt input { position: absolute; opacity: 0; pointer-events: none; }
.seg__opt span {
  display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 0;
  border-radius: 999px; color: var(--text-2); font-size: 15px; font-weight: 700;
  transition: background-color .2s, color .2s;
}
.seg__opt svg.lucide { width: 17px; height: 17px; }
.seg__opt input:checked + span { background: var(--dark); color: var(--on-dark); }
.seg__opt input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }

.field { display: flex; flex-direction: column; gap: 8px; }
.field__label { font-size: 14px; font-weight: 700; }
.field__input {
  width: 100%; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  font: inherit; font-size: 16px; color: var(--text-1); outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field__input::placeholder { color: var(--muted); }
.field__input:focus { border-color: var(--teal); box-shadow: inset 0 0 0 .5px var(--teal); }
.field__error { display: none; color: var(--accent); font-size: 13px; font-weight: 600; }
.field.is-invalid .field__input { border-color: var(--accent); box-shadow: inset 0 0 0 .5px var(--accent); }
.field.is-invalid .field__error { display: block; }

.check { display: flex; align-items: center; gap: 12px; padding: 4px 0; cursor: pointer; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check__box {
  width: 24px; height: 24px; border-radius: 7px; border: 1.5px solid var(--line); background: #fff;
  display: grid; place-items: center; color: #fff; flex: none; transition: background-color .2s, border-color .2s;
}
.check__box svg.lucide { width: 16px; height: 16px; opacity: 0; transition: opacity .15s; }
.check input:checked + .check__box { background: var(--teal); border-color: var(--teal); }
.check input:checked + .check__box svg.lucide { opacity: 1; }
.check input:focus-visible + .check__box { outline: 2px solid var(--teal); outline-offset: 2px; }
.check__label { font-size: 15px; font-weight: 600; }

.btn--submit[disabled] { opacity: .7; cursor: progress; }
.form-error { color: var(--accent); font-size: 14px; font-weight: 600; text-align: center; }
.privacy { color: var(--text-2); font-size: 13px; line-height: 1.5; text-align: center; }

.success { display: flex; flex-direction: column; align-items: center; gap: 24px; padding: 16px 0; text-align: center; }
.success[hidden] { display: none; }
.success__icon { width: 96px; height: 96px; border-radius: 50%; background: var(--ok-bg); color: var(--ok-text); display: grid; place-items: center; }
.success__icon svg.lucide { width: 44px; height: 44px; }
.success__text { display: flex; flex-direction: column; gap: 24px; }
.success h3 { font-family: var(--font-head); font-weight: 600; font-size: 36px; letter-spacing: -1px; }
.success p { color: var(--text-2); font-size: 18px; }
.pulse--success { position: relative; width: 100%; height: 40px; }
.success__btn { padding: 16px 28px; }

/* ===== FAQ ===== */
.faq { padding: var(--pad-y) var(--pad-x); display: flex; gap: 80px; }
.faq > * { margin-inline: 0; }
.faq__head { width: 400px; flex: none; }
.faq__head .sec-sub { font-size: 17px; line-height: 1.55; }
.faq__list { flex: 1; }
.faq details { border-bottom: 1px solid var(--line); padding: 28px 0; }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 24px;
  font-family: var(--font-head); font-weight: 600; font-size: 21px; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.toggle {
  margin-left: auto; width: 40px; height: 40px; border-radius: 50%; flex: none;
  background: var(--card); border: 1px solid var(--line); display: grid; place-items: center;
  transition: background-color .2s, border-color .2s;
}
.toggle svg.lucide { width: 18px; height: 18px; grid-area: 1 / 1; }
details:not([open]) .toggle svg.lucide-minus, details[open] .toggle svg.lucide-plus { display: none; }
.faq summary:hover .toggle { border-color: var(--text-1); }
.faq details p { max-width: 620px; padding-top: 12px; color: var(--text-2); font-size: 17px; line-height: 1.55; }

@media (min-width: 1441px) {
  .faq { padding-inline: calc((100vw - var(--max)) / 2 + 120px); }
}

/* ===== Footer ===== */
.footer { background: var(--dark); padding: 64px var(--pad-x) 40px; display: flex; flex-direction: column; gap: 48px; }
.footer > * { width: 100%; }
.footer__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; }
.footer__brand { display: flex; flex-direction: column; gap: 16px; }
.footer__brand p { color: var(--on-dark-2); font-size: 15px; font-weight: 600; }
.footer__contacts { display: flex; align-items: center; gap: 40px; }
.footer__contacts a { display: flex; align-items: center; gap: 10px; color: var(--on-dark); font-size: 16px; font-weight: 700; transition: color .2s; }
.footer__contacts a:hover { color: var(--accent-2); }
.footer__contacts svg.lucide { width: 18px; height: 18px; color: var(--accent-2); }
.footer__bottom { display: flex; justify-content: space-between; gap: 24px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); }
.footer__bottom p { color: var(--on-dark-2); font-size: 13px; }

/* ===== Mobile-only pieces (hidden on desktop) ===== */
.sticky-cta, .sheet { display: none; }

/* ===== Tablet: компактный десктоп ===== */
@media (max-width: 1279px) {
  .hero__title { font-size: clamp(48px, 5vw, 62px); }
  .pulse--hero { left: auto; right: 0; width: 480px; }
  .hero__visual { width: 400px; }
  .doc-chip { left: -40px; }
  .problem__lead, .problem__punch { font-size: 30px; }
  .stat b { font-size: 52px; }
  .steps { display: grid; grid-template-columns: 1fr 1fr; }
  .carousel { gap: 24px; }
  .phone { width: 280px; height: 580px; }
  .aud { padding: 36px; }
  .price-card { padding: 40px; gap: 40px; }
  .apply { gap: 48px; }
  .form-card { width: 480px; }
  .faq { gap: 48px; }
  .faq__head { width: 320px; }
}

/* ===== Mobile (макет 390) ===== */
@media (max-width: 899px) {
  .d-only { display: none !important; }

  section > *, .hero > * { max-width: 560px; }

  .eyebrow { font-size: 12px; }
  .h2 { font-size: 28px; letter-spacing: -.5px; }
  .sec-head { gap: 14px; width: 100%; }
  .sec-sub { font-size: 16px; }

  /* nav */
  .hero { padding: 16px 20px 56px; overflow: hidden; }
  .nav__links, .nav__cta { display: none; }
  .nav__menu { display: inline-flex; }
  .mobile-menu {
    display: flex; flex-direction: column; gap: 4px; position: absolute; z-index: 19;
    left: 12px; right: 12px; top: 68px; padding: 12px;
    background: var(--card); border: 1px solid var(--line); border-radius: 20px;
    box-shadow: 0 20px 40px -12px rgba(16, 41, 45, .25);
  }
  .mobile-menu[hidden] { display: none; }
  .mobile-menu a:not(.btn) { padding: 14px 12px; font-size: 16px; font-weight: 600; border-radius: 12px; }
  .mobile-menu a:not(.btn):active { background: var(--bg); }
  .mobile-menu .btn { margin-top: 6px; padding: 16px; font-size: 16px; }

  /* hero */
  .hero__body { flex-direction: column; align-items: stretch; margin-top: 36px; gap: 0; }
  .hero__copy { flex: none; gap: 20px; }
  .badge { padding: 7px 12px; font-size: 13px; }
  .badge .dot { width: 7px; height: 7px; }
  .hero__title { font-size: 36px; line-height: 1.12; letter-spacing: -1px; }
  .hero__sub { font-size: 17px; }
  .hero__ctas { width: 100%; padding-top: 0; }
  .hero__ctas .btn { width: 100%; padding: 18px; font-size: 16px; }
  .hero__ctas .btn svg.lucide { width: 18px; height: 18px; }
  .trust { flex-direction: column; gap: 10px; padding-top: 0; }
  .trust svg.lucide { width: 16px; height: 16px; }
  .hero__visual { width: 100%; height: 736px; padding-top: 72px; margin-top: 36px; align-items: flex-start; }
  .pulse--hero-m { left: -20px; top: 0; width: calc(100% + 40px); height: 72px; }
  .phone--hero { width: 280px; height: 580px; }
  .doc-chip { left: 0; top: 620px; }

  /* problem */
  .problem { padding: 64px 20px; gap: 40px; }
  .problem__story { flex-direction: column; align-items: stretch; gap: 40px; }
  .problem__text { gap: 18px; }
  .problem__lead, .problem__punch { font-size: 23px; line-height: 1.35; }
  .notebook-wrap { width: 100%; height: 462px; }
  .notebook { left: 50%; top: 16px; width: 310px; transform: translateX(-50%) rotate(-3deg); transform-origin: 50% 0; }
  .stats { flex-direction: column; gap: 28px; }
  .stat { gap: 8px; padding-top: 22px; }
  .stat b { font-size: 44px; letter-spacing: -1.5px; }
  .stat span { max-width: none; font-size: 16px; }

  /* how */
  .how { padding: 64px 20px; gap: 32px; }
  .how__head { display: block; }
  .steps { display: flex; flex-direction: column; gap: 12px; }
  .step { flex-direction: row; align-items: flex-start; gap: 16px; padding: 20px; }
  .step:hover { transform: none; box-shadow: none; }
  .step__top { margin: 0; }
  .step__icon { width: 48px; height: 48px; border-radius: 16px; }
  .step__icon svg.lucide { width: 22px; height: 22px; }
  .step__text { flex: 1; gap: 6px; }
  .step__label { font-size: 12px; font-weight: 700; color: #9A9283; }
  .step h3 { font-size: 17px; }
  .step p { font-size: 14px; line-height: 1.5; }

  /* screens */
  .screens { padding: 64px 0; gap: 32px; align-items: stretch; }
  .screens__head { padding: 0 20px; align-items: flex-start; text-align: left; margin-inline: 0; }
  .carousel {
    max-width: none; gap: 16px; padding: 0 20px; justify-content: flex-start;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 20px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .carousel::-webkit-scrollbar { display: none; }
  .shot { scroll-snap-align: start; padding-top: 0 !important; }
  .shot--alert { order: -1; }
  .phone { width: 300px; height: 620px; }

  /* for whom */
  .for-whom { padding: 64px 20px 32px; gap: 24px; }
  .audience { flex-direction: column; gap: 24px; }
  .aud { min-height: 0; padding: 28px; gap: 20px; }
  .aud__tag { font-size: 14px; }
  .aud__icon { width: 40px; height: 40px; border-radius: 13px; }
  .aud__icon svg.lucide { width: 20px; height: 20px; }
  .aud h3 { font-size: 22px; line-height: 1.3; letter-spacing: 0; }
  .checks { gap: 12px; }
  .checks li { font-size: 15px; }
  .checks svg.lucide { width: 18px; height: 18px; }
  .aud__link { padding-top: 0; font-size: 15px; }
  .aud__link svg.lucide { width: 16px; height: 16px; }

  /* pricing */
  .pricing { padding: 32px 20px; }
  .price-card { flex-direction: column; align-items: stretch; gap: 24px; padding: 0; background: none; border: 0; border-radius: 0; }
  .price-copy { gap: 24px; }
  .price-copy .sec-head { gap: 14px; }
  .price-copy__title { font-size: 26px; }
  .included { padding: 4px; }
  .included p { font-size: 14px; }
  .included ul li { gap: 10px; font-size: 15px; }
  .included svg.lucide { width: 18px; height: 18px; }
  .price-box { flex: none; padding: 24px; background: var(--card); border: 1px solid var(--line); }
  .price-row__val { gap: 6px; }
  .price-row__val b { font-size: 34px; }
  .price-row__val--accent b { font-size: 40px; }
  .price-row__val span { font-size: 16px; padding-bottom: 5px; }
  .scarcity { align-items: flex-start; justify-content: flex-start; gap: 10px; line-height: 1.45; }
  .scarcity .dot { margin-top: 6px; }

  /* partner */
  .partner { padding: 16px 20px 56px; }
  .partner__strip { flex-direction: column; gap: 18px; padding: 28px 24px; text-align: center; }
  .partner__strip .eyebrow { letter-spacing: 1.5px; }
  .partner__logo { width: 100%; padding: 16px 0; display: flex; justify-content: center; }
  .partner__logo img { width: 150px; height: 94px; }
  .partner__text { font-size: 17px; line-height: 1.4; }

  /* apply */
  .apply { flex-direction: column; align-items: stretch; gap: 28px; padding: 64px 20px; }
  .apply > * { margin-inline: auto; width: 100%; max-width: 560px; }
  .apply__copy { gap: 14px; }
  .apply__title { font-size: 30px; line-height: 1.2; letter-spacing: -.5px; }
  .apply__sub { font-size: 16px; line-height: 1.5; }
  .form-card { width: 100%; padding: 24px; }
  .lead-form { gap: 18px; }

  /* faq */
  .faq { flex-direction: column; gap: 24px; padding: 64px 20px; }
  .faq > * { margin-inline: auto; width: 100%; max-width: 560px; }
  .faq__head { width: 100%; }
  .faq details { padding: 20px 0; }
  .faq summary { gap: 16px; font-size: 16px; }
  .toggle { width: 32px; height: 32px; }
  .toggle svg.lucide { width: 16px; height: 16px; }
  .faq details p { padding-top: 10px; font-size: 15px; }

  /* footer */
  .footer { padding: 48px 20px 120px; gap: 28px; }
  .footer__top { flex-direction: column; gap: 28px; }
  .footer__brand { gap: 12px; }
  .footer__contacts { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer__bottom { flex-direction: column; gap: 10px; padding-top: 20px; }
  .footer__bottom p { font-size: 12px; line-height: 1.5; }

  /* sticky CTA */
  .sticky-cta {
    display: flex; align-items: center; gap: 10px; position: fixed; z-index: 40; left: 0; right: 0; bottom: 0;
    padding: 12px 16px calc(24px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 253, 248, .95); border-top: 1px solid var(--line);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    box-shadow: 0 -8px 24px rgba(16, 41, 45, .08);
    transform: translateY(110%); transition: transform .3s ease;
  }
  .sticky-cta.is-visible { transform: none; }
  .sticky-cta__info { display: flex; flex-direction: column; }
  .sticky-cta__info b { font-family: var(--font-head); font-size: 14px; font-weight: 600; white-space: nowrap; }
  .sticky-cta__info span { font-size: 12px; color: var(--text-2); white-space: nowrap; }
  .sticky-cta .btn { flex: 1; padding: 16px 0; font-size: 16px; }

  /* bottom sheet */
  .sheet { display: block; position: fixed; inset: 0; z-index: 50; }
  .sheet[hidden] { display: none; }
  .sheet__scrim { position: absolute; inset: 0; background: rgba(16, 41, 45, .6); opacity: 0; transition: opacity .3s; }
  .sheet__panel {
    position: absolute; left: 0; right: 0; bottom: 0; max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain;
    background: var(--card); border-radius: 28px 28px 0 0;
    padding: 12px 20px calc(32px + env(safe-area-inset-bottom, 0px));
    display: flex; flex-direction: column; gap: 20px;
    transform: translateY(100%); transition: transform .35s cubic-bezier(.2, .8, .2, 1);
  }
  .sheet.is-open .sheet__scrim { opacity: 1; }
  .sheet.is-open .sheet__panel { transform: none; }
  .sheet__handle { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto; flex: none; }
  .sheet__head { display: flex; justify-content: space-between; align-items: center; }
  .sheet__head h2 { font-family: var(--font-head); font-weight: 600; font-size: 22px; }
  .sheet__close { width: 36px; height: 36px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; }
  .sheet__close svg.lucide { width: 18px; height: 18px; }
  .sheet .form-card { padding: 0; border-radius: 0; }
  .sheet .success { padding: 0 4px 8px; }
  .sheet.is-success .sheet__head { display: none; }
  .sheet.is-success .sheet__handle { margin-bottom: 12px; }

  .success__icon { width: 88px; height: 88px; }
  .success__icon svg.lucide { width: 40px; height: 40px; }
  .success__text { gap: 10px; }
  .success h3 { font-size: 30px; letter-spacing: -.5px; }
  .success p { font-size: 17px; line-height: 1.5; }
  .success__btn { width: 100%; padding: 18px; font-size: 16px; }
}

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