/* Медколлега — стили. Мобильная вёрстка первой (360–430), затем планшет и компьютер.
   Шрифты — системные, без внешних загрузок. */

:root {
  --bg: #FFFFFF;
  --bg-soft: #F5F9F9;
  --bg-tint: #E9F2F2;
  --ink: #132629;
  --ink-2: #33494D;
  --muted: #5A6E72;
  --line: #D5E2E3;
  --line-strong: #B9CDCF;
  --accent: #0B5E63;
  --accent-hover: #08484C;
  --accent-2: #2F8A82;
  --accent-soft: #DDEEEE;
  --accent-ink: #FFFFFF;
  --stop: #B3261E;
  --stop-bg: #FCEDEB;
  --stop-line: #EFB8B2;
  --warn: #855600;
  --warn-bg: #FFF5DE;
  --warn-line: #EFCB7A;
  --warn-icon: #C98A12;
  --ok: #1B6E45;
  --ok-bg: #E7F4EC;
  --ok-line: #A9D6BC;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(15, 42, 46, .05), 0 6px 20px rgba(15, 42, 46, .06);
  --shadow-lg: 0 10px 30px rgba(15, 42, 46, .12);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  --gutter: 20px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
p { margin: 0 0 12px; }
h1, h2, h3 { margin: 0 0 12px; line-height: 1.2; letter-spacing: -0.015em; color: var(--ink); overflow-wrap: break-word; }
h1 { font-size: clamp(30px, 8vw, 50px); font-weight: 750; }
h2 { font-size: clamp(25px, 6.2vw, 36px); font-weight: 720; }
h3 { font-size: 19px; font-weight: 680; }
strong { font-weight: 680; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid rgba(11, 94, 99, .45); outline-offset: 2px; }

.ico { width: 22px; height: 22px; flex: 0 0 auto; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--accent); color: #fff; padding: 10px 14px; border-radius: 10px; text-decoration: none;
}
.skip:focus { top: 12px; color: #fff; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 780px; }
.wrap--form { max-width: 760px; }

.nw { white-space: nowrap; }
.small { font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.src { font-size: 13.5px; color: var(--muted); margin: 10px 0 0; }
.eyebrow {
  margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent);
}
.tag {
  display: inline-block; margin-left: 4px; padding: 1px 9px; border-radius: 999px;
  background: var(--warn-bg); color: var(--warn); font-size: 13px; font-weight: 650; white-space: nowrap;
}

/* ── Кнопки ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 20px; border-radius: 14px; border: 1.5px solid transparent;
  font-weight: 650; font-size: 17px; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
  -webkit-tap-highlight-color: transparent; text-align: center;
}
.btn .ico { width: 20px; height: 20px; }
.btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 2px 8px rgba(11, 94, 99, .22); }
.btn--primary:hover { background: var(--accent-hover); color: #fff; }
.btn--outline { background: #fff; color: var(--accent); border-color: var(--line-strong); }
.btn--outline:hover { border-color: var(--accent); color: var(--accent-hover); }
.btn--ghost { background: transparent; color: var(--accent); }
.btn--ghost:hover { background: var(--accent-soft); }
.btn--light { background: #fff; color: var(--accent); }
.btn--light:hover { background: #F0F7F7; color: var(--accent-hover); }
.btn--small { min-height: 40px; padding: 8px 14px; font-size: 15px; border-radius: 11px; }
.btn--lg { min-height: 56px; padding: 14px 18px; font-size: 17px; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .65; cursor: progress; }

.link-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 4px; border: 0; background: none;
  color: var(--accent); font-size: 15px; font-weight: 600; cursor: pointer; border-radius: 8px;
}
.link-btn .ico { width: 18px; height: 18px; }
.link-btn:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }
.link-btn--danger { color: var(--stop); }
.link-btn--danger:hover { color: #8E1B15; }
.is-confirm, .is-confirm:hover { color: var(--stop) !important; }

/* ── Шапка и подвал ─────────────────────────────────────────────────────── */
.topbar { border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .97); }
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__logo { width: 34px; height: 34px; }
.brand__name { font-size: 19px; font-weight: 750; letter-spacing: -0.01em; }
.topbar__cta { white-space: nowrap; flex: 0 0 auto; }
.page-papka .topbar__cta { display: none; }

.footer { margin-top: 0; background: var(--bg-soft); border-top: 1px solid var(--line); padding: 32px 0 calc(32px + env(safe-area-inset-bottom)); }
.footer__in { display: grid; gap: 12px; }
.footer__brand { display: flex; align-items: center; gap: 10px; font-weight: 650; }
.footer__brand img { width: 28px; height: 28px; }
.footer__note { margin: 0; font-size: 14.5px; color: var(--muted); max-width: 620px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 15px; }
.footer__links a { padding: 6px 0; }

/* ── Карточки, значки ───────────────────────────────────────────────────── */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.icon-badge {
  display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 13px;
  background: var(--accent-soft); color: var(--accent); flex: 0 0 auto;
}
.icon-badge .ico { width: 24px; height: 24px; }

/* ── Первый экран ───────────────────────────────────────────────────────── */
.hero { background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%); padding: 32px 0 40px; }
.hero__in { display: grid; gap: 28px; align-items: center; }
.hero__title { margin-bottom: 16px; }
.lead { font-size: 18px; color: var(--ink-2); max-width: 600px; margin-bottom: 24px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__actions .btn { width: 100%; }
.trust { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 8px; font-size: 15.5px; color: var(--ink-2); }
.trust li { display: flex; align-items: center; gap: 10px; }
.trust .ico { width: 20px; height: 20px; color: var(--accent); }
.hero__art { max-width: 420px; width: 100%; margin: 0 auto; }
.hero__art img { width: 100%; height: auto; }

/* ── Разделы ────────────────────────────────────────────────────────────── */
.section { padding: 48px 0; }
.section--tint { background: var(--bg-tint); }
.section--soft { background: var(--bg-soft); }
.section__lead { font-size: 17.5px; color: var(--ink-2); max-width: 760px; margin-bottom: 24px; }

.stats { display: grid; gap: 16px; margin-top: 20px; }
.stat-big { display: flex; flex-direction: column; justify-content: center; }
.stat-big__num { font-size: 64px; line-height: 1; font-weight: 780; color: var(--accent); letter-spacing: -0.03em; margin-bottom: 12px; }
.stat-big__text { font-size: 18px; margin: 0; }
.reasons__title { font-size: 17px; margin-bottom: 16px; }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.bar__row { display: flex; justify-content: space-between; gap: 12px; font-size: 15.5px; margin-bottom: 6px; }
.bar__label { color: var(--ink-2); }
.bar__num { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar__track { height: 10px; border-radius: 999px; background: #E3ECED; overflow: hidden; }
.bar__fill { display: block; height: 100%; border-radius: 999px; background: var(--accent); }
.w-492 { width: 49.2%; }
.w-196 { width: 19.6%; }
.w-147 { width: 14.7%; }
.w-109 { width: 10.9%; }
.w-56 { width: 5.6%; }

.letter { margin-top: 16px; }
.letter__head { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.letter__head p { margin: 0; }

.details { border-top: 1px solid var(--line); margin-top: 16px; }
.details summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer;
  list-style: none; padding: 14px 0; font-weight: 650; color: var(--accent); min-height: 48px;
}
.details summary::-webkit-details-marker { display: none; }
.details summary .ico { width: 22px; height: 22px; transition: transform .2s ease; }
.details[open] summary .ico { transform: rotate(180deg); }
.errors11 { margin: 0 0 12px; padding-left: 0; list-style: none; counter-reset: e; display: grid; gap: 10px; }
.errors11 li { counter-increment: e; position: relative; padding-left: 40px; min-height: 28px; }
.errors11 li::before {
  content: counter(e); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}

/* Сроки: шкала */
.timeline { list-style: none; margin: 0 0 20px; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 10px; bottom: 10px; width: 2px; background: #BFD4D6; }
.timeline__item { position: relative; padding: 0 0 18px 36px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__dot {
  position: absolute; left: 2px; top: 5px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 3px solid var(--accent-2);
}
.timeline__item--accent .timeline__dot { background: var(--warn-icon); border-color: var(--warn-icon); box-shadow: 0 0 0 4px #F8E3B6; }
.timeline__item--end .timeline__dot { background: var(--accent); border-color: var(--accent); }
.timeline__when { margin: 0 0 2px; font-weight: 720; font-size: 17px; }
.timeline__what { margin: 0; color: var(--ink-2); font-size: 15.5px; }

/* Как работает */
.steps { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 14px; }
.step { position: relative; }
.step__num {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 750; font-size: 18px; margin-bottom: 12px;
}
.step p { margin: 0; color: var(--ink-2); }

/* Что получите */
.features { display: grid; gap: 14px; margin-top: 20px; }
.feature .icon-badge { margin-bottom: 14px; }
.feature p { margin: 0; color: var(--ink-2); font-size: 16px; }

/* Проверено врачом */
.expert { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; border-left: 4px solid var(--accent); }
.expert__avatar {
  width: 72px; height: 72px; border-radius: 50%; background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.expert__avatar .ico { width: 36px; height: 36px; }
.expert__body { flex: 1 1 260px; min-width: 0; }
.expert__title { font-size: clamp(22px, 5.4vw, 28px); }
.expert__body p { color: var(--ink-2); }
.expert__sign { margin: 4px 0 0; font-style: italic; color: var(--muted); }

/* Вопросы */
.faq { margin-top: 12px; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); margin: 0 0 10px; padding: 0 18px; }
.faq__item summary { color: var(--ink); font-size: 17px; }
.faq__item p { color: var(--ink-2); padding-bottom: 6px; }

/* Призыв внизу */
.cta-band { background: var(--accent); color: #fff; padding: 40px 0; }
.cta-band__in { display: grid; gap: 20px; align-items: center; }
.cta-band__title { color: #fff; font-size: clamp(24px, 6vw, 32px); }
.cta-band p { margin: 0; color: #D6EBEC; }
.cta-band .btn { width: 100%; }

/* ── Текстовые страницы ─────────────────────────────────────────────────── */
.textpage { padding: 36px 0 56px; }
.textpage h1 { font-size: clamp(26px, 7vw, 44px); }
.textpage h2 { font-size: 21px; margin-top: 30px; }
.textpage p, .textpage li { color: var(--ink-2); }
.textpage ul { padding-left: 22px; margin: 0 0 12px; }
.textpage li { margin-bottom: 6px; }
.textpage__date { color: var(--muted); font-size: 15px; }
.textpage__key { background: var(--bg-tint); border-radius: var(--radius-sm); padding: 16px 16px 10px 36px !important; }
.textpage--center { text-align: center; padding: 64px 0; }
.textpage__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 20px; }

/* ── Мастер ─────────────────────────────────────────────────────────────── */
.page-papka { background: var(--bg-soft); }
.page-papka .footer { background: #fff; }
.wizard { padding: 20px 0 32px; }
.wizard__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.wizard__title { font-size: clamp(24px, 6.4vw, 34px); margin: 0; }
.wizard__head .link-btn { flex: 0 0 auto; white-space: nowrap; }

.progress { margin-bottom: 8px; }
.progress__label { margin: 0 0 8px; font-size: 15px; color: var(--muted); }
.progress__label span:first-child { font-weight: 700; color: var(--ink); }
.progress__bar { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.progress__seg {
  width: 100%; border: 0; background: none; padding: 8px 0; cursor: pointer; display: block; text-align: left;
  -webkit-tap-highlight-color: transparent;
}
.progress__seg::before { content: ""; display: block; height: 8px; border-radius: 999px; background: #D7E3E4; transition: background-color .2s ease; }
.progress__seg.is-done::before { background: var(--accent-2); }
.progress__seg.is-current::before { background: var(--accent); }
.progress__seg:disabled { cursor: default; }
.progress__name { display: none; margin-top: 8px; font-size: 13.5px; color: var(--muted); font-weight: 600; }
.progress__seg.is-current .progress__name { color: var(--accent); }

.saved { display: flex; align-items: center; gap: 8px; margin: 4px 0 16px; font-size: 14px; color: var(--muted); }
.saved .ico { width: 16px; height: 16px; }
.saved--warn { color: var(--warn); }

.wizard__form { position: relative; }
.wstep { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 16px 8px; box-shadow: var(--shadow); }
.wstep__title { font-size: clamp(24px, 6.2vw, 30px); margin-bottom: 8px; }
.wstep__title:focus { outline: none; }
.wstep__lead { color: var(--ink-2); margin-bottom: 22px; }

.field { margin: 0 0 26px; padding: 0; border: 0; min-width: 0; }
.field__label { display: block; padding: 0; margin: 0 0 4px; font-weight: 680; font-size: 17px; line-height: 1.35; color: var(--ink); }
.field__label--sub { font-size: 15.5px; margin-top: 12px; }
.field__hint { margin: 0 0 10px; font-size: 14.5px; color: var(--muted); line-height: 1.45; }
.field__error { display: none; margin: 8px 0 0; color: var(--stop); font-size: 14.5px; font-weight: 600; }
.field.is-missing .field__error { display: block; }
.field.is-missing > .field__label, .field.is-missing > legend { color: var(--stop); }
.field.is-missing .input { border-color: var(--stop); }
.field.is-missing .chip span { border-color: var(--stop-line); }
.field--short .input { max-width: 260px; }
.field--nested { margin-top: -10px; padding: 14px 16px; background: var(--bg-soft); border-radius: var(--radius-sm); }
.field__sub { margin-top: 4px; }

.input {
  display: block; width: 100%; min-height: 52px; padding: 12px 14px; border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm); background: #fff; font-size: 17px; line-height: 1.4; color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease; -webkit-appearance: none; appearance: none;
}
textarea.input { min-height: 104px; resize: vertical; }
.input::placeholder { color: #8A9B9E; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(11, 94, 99, .16); }
input[type="month"].input, input[type="date"].input { min-height: 52px; }
input[type="number"].input { -moz-appearance: textfield; }

.mini-label { display: block; font-weight: 640; font-size: 15px; color: var(--ink-2); margin-bottom: 12px; }
.mini-label .input { margin-top: 6px; }
.row2 { display: grid; gap: 0 12px; grid-template-columns: 1fr; }
.row2--tight { grid-template-columns: 1fr 1fr; }

select.input.select {
  padding-right: 40px; cursor: pointer; background-repeat: no-repeat; background-position: right 12px center; background-size: 18px 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 9.5l5 5 5-5' fill='none' stroke='%235A6E72' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.period { display: grid; gap: 4px 16px; }
.period__group .mini-label { margin-bottom: 6px; }
.period .row2 { gap: 0 10px; }

/* Варианты-«таблетки» */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 48px; padding: 10px 16px; border: 1.5px solid var(--line-strong);
  border-radius: 12px; background: #fff; font-size: 16px; font-weight: 560; line-height: 1.3; color: var(--ink-2);
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.chip:hover span { border-color: var(--accent-2); }
.chip input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-hover); font-weight: 680; box-shadow: inset 0 0 0 1px var(--accent); }
.chip input:focus-visible + span { outline: 3px solid rgba(11, 94, 99, .4); outline-offset: 2px; }
.chips--yn .chip { flex: 1 1 0; min-width: 84px; max-width: 160px; }
.chips--yn .chip span { width: 100%; justify-content: center; white-space: nowrap; padding-left: 8px; padding-right: 8px; }
.chips--stack { flex-direction: column; }
.chips--stack .chip { width: 100%; }
.chips--stack .chip span { width: 100%; }

/* Галочки */
.checks { display: grid; gap: 8px; }
.check {
  display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); background: #fff; cursor: pointer; font-size: 16px; line-height: 1.4; color: var(--ink-2);
  margin-bottom: 8px; -webkit-tap-highlight-color: transparent;
}
.checks .check { margin-bottom: 0; }
.check input { width: 22px; height: 22px; margin: 0; flex: 0 0 auto; accent-color: var(--accent); cursor: pointer; }
.check:has(input:checked) { border-color: var(--accent); background: #F2F9F9; color: var(--ink); }

/* Подсказки-плашки */
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-sm); margin: 0 0 22px; font-size: 15.5px; line-height: 1.45; }
.notice p { margin: 0; }
.notice .ico { width: 22px; height: 22px; margin-top: 1px; }
.notice--info { background: var(--accent-soft); color: #0A4448; }
.notice--info .ico { color: var(--accent); }
.notice--warn { background: var(--warn-bg); color: #5E3D00; border: 1px solid var(--warn-line); }
.notice--warn .ico { color: var(--warn-icon); }
.notice--stop { background: var(--stop-bg); color: #6E1712; border: 1px solid var(--stop-line); }
.notice--stop .ico { color: var(--stop); }
.notice--stop .btn { margin-top: 10px; }
#cert-note { margin-top: -12px; }

/* Поиск специальности */
.combo { position: relative; }
.combo__search { position: absolute; left: 14px; top: 15px; width: 22px; height: 22px; color: var(--muted); pointer-events: none; }
.combo__input { padding-left: 46px; padding-right: 52px; }
.combo__toggle {
  position: absolute; right: 4px; top: 4px; width: 44px; height: 44px; border: 0; background: none; border-radius: 10px;
  color: var(--muted); cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.combo__toggle .ico { transition: transform .2s ease; }
.combo.is-open .combo__toggle .ico { transform: rotate(180deg); }
.combo__list {
  position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px 0; list-style: none;
  max-height: 320px; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
}
.combo__group { padding: 10px 16px 4px; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.combo__opt { padding: 11px 16px; cursor: pointer; font-size: 16px; line-height: 1.35; }
.combo__opt:hover, .combo__opt.is-active { background: #EEF6F6; }
.combo__opt[aria-selected="true"] { color: var(--accent); font-weight: 680; }
.combo__empty { padding: 12px 16px; color: var(--muted); font-size: 15px; }

/* Счётчик часов */
.hours { position: sticky; top: 8px; z-index: 15; padding: 14px 16px; margin-bottom: 18px; border-color: var(--line-strong); }
.hours.is-complete { border-color: var(--ok-line); }
.hours__line { margin: 0 0 10px; font-size: 16.5px; line-height: 1.4; }
.hours__line strong { font-size: 19px; font-variant-numeric: tabular-nums; }
.hours__pk { white-space: nowrap; }
.hours__note { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.hours__note:empty { display: none; }
.meter { display: grid; grid-template-columns: 76px 1fr; align-items: center; gap: 10px; margin-bottom: 6px; }
.meter__label { font-size: 13px; color: var(--muted); font-weight: 600; }
.meter__track { display: block; height: 10px; border-radius: 999px; background: #E1EBEC; overflow: hidden; }
.meter__fill { display: block; width: 0; height: 100%; border-radius: 999px; background: var(--accent); transition: width .3s ease; }
.meter--pk .meter__fill { background: var(--accent-2); }
.meter__fill.is-full { background: var(--ok); }

/* Курсы */
.courses { display: grid; gap: 14px; margin-bottom: 14px; }
.courses__empty { color: var(--muted); margin: 0; }
.course { padding: 16px; box-shadow: none; background: #FBFDFD; }
.course__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.course__n { font-weight: 720; font-size: 16.5px; }
.mini { margin: 0 0 14px; padding: 0; border: 0; min-width: 0; }
.mini legend { padding: 0; margin-bottom: 8px; }
.mini .field__hint { margin-top: -4px; }
.course__warn { margin: 4px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--warn-bg); color: #5E3D00; font-size: 14.5px; }

/* Нижняя панель «Назад / Дальше» */
.wnav {
  position: sticky; bottom: 0; z-index: 20; margin: 16px calc(var(--gutter) * -1) 0; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: rgba(245, 249, 249, .96); border-top: 1px solid var(--line);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.wnav__in { display: flex; gap: 10px; }
.wnav__in .btn { flex: 1 1 auto; }
#prev { flex: 0 0 auto; padding-left: 16px; padding-right: 18px; }
#next { margin-left: auto; }
.wnav__msg { margin: 0 0 10px; text-align: center; color: var(--stop); font-weight: 650; font-size: 15px; }

/* Результат */
.wstep--result { padding-bottom: 20px; }
.loading { display: flex; align-items: center; gap: 12px; padding: 24px 0; color: var(--muted); }
.spinner { width: 24px; height: 24px; border-radius: 50%; border: 3px solid var(--accent-soft); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } * { transition: none !important; } }

.summary { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--radius); margin-bottom: 16px; border: 1px solid; }
.summary__icon { width: 30px; height: 30px; margin-top: 1px; }
.summary__title { margin: 0 0 4px; font-weight: 750; font-size: 19px; line-height: 1.3; }
.summary__text { margin: 0; font-size: 15.5px; }
.summary--stop { background: var(--stop-bg); border-color: var(--stop-line); color: #5E1410; }
.summary--stop .summary__icon { color: var(--stop); }
.summary--warn { background: var(--warn-bg); border-color: var(--warn-line); color: #5E3D00; }
.summary--warn .summary__icon { color: var(--warn-icon); }
.summary--ok { background: var(--ok-bg); border-color: var(--ok-line); color: #0F4A2D; }
.summary--ok .summary__icon { color: var(--ok); }

.res-card { margin-bottom: 16px; box-shadow: none; }
.res-card__title { display: flex; align-items: center; gap: 10px; font-size: 18px; margin-bottom: 12px; }
.res-card__title .ico { color: var(--accent); }
.res-card.is-complete { border-color: var(--ok-line); }
.res-card--stop { border-color: var(--stop-line); background: #FFFAF9; }
.res-card--stop .deadline__date { color: var(--stop); }
.deadline__big { margin: 0 0 8px; display: flex; flex-direction: column; }
.deadline__pre { font-size: 14.5px; color: var(--muted); }
.deadline__date { font-size: 28px; font-weight: 760; color: var(--accent); line-height: 1.2; letter-spacing: -0.01em; }
.deadline__safe { font-size: 15.5px; font-weight: 600; color: var(--ink-2); }
.deadline__text { font-size: 15.5px; color: var(--ink-2); margin: 0; }

.res-block { margin: 24px 0 16px; }
.res-block__title { font-size: 19px; margin-bottom: 12px; }
.issues, .oks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.issue { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; border: 1px solid; border-left-width: 5px; }
.issue__icon { width: 24px; height: 24px; margin-top: 2px; }
.issue__body { min-width: 0; }
.issue__kicker { margin: 0 0 2px; font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.issue__title { margin: 0 0 6px; font-weight: 700; font-size: 17px; line-height: 1.35; color: var(--ink); }
.issue__fix { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
.issue--stop { background: var(--stop-bg); border-color: var(--stop-line); border-left-color: var(--stop); }
.issue--stop .issue__icon, .issue--stop .issue__kicker { color: var(--stop); }
.issue--warn { background: var(--warn-bg); border-color: var(--warn-line); border-left-color: var(--warn-icon); }
.issue--warn .issue__icon { color: var(--warn-icon); }
.issue--warn .issue__kicker { color: var(--warn); }
.issue--none { background: var(--ok-bg); border-color: var(--ok-line); border-left-color: var(--ok); }
.issue--none .issue__icon { color: var(--ok); }
.okitem { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--ok-bg); color: #123F28; font-size: 15.5px; line-height: 1.45; }
.okitem__icon { width: 22px; height: 22px; color: var(--ok); margin-top: 1px; }
.checklist { margin: 0; padding-left: 0; list-style: none; counter-reset: c; display: grid; gap: 8px; }
.checklist li { counter-increment: c; position: relative; padding: 12px 14px 12px 50px; background: #fff; border: 1px solid var(--line); border-radius: 12px; font-size: 15.5px; color: var(--ink-2); }
.checklist li::before {
  content: counter(c); position: absolute; left: 14px; top: 11px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 13.5px; display: flex; align-items: center; justify-content: center;
}

.download { margin: 24px 0 16px; border-color: var(--accent); border-width: 1.5px; }
.download .icon-badge { margin-bottom: 12px; }
.download__title { font-size: 19px; }
.download p { color: var(--ink-2); font-size: 15.5px; }
.download__status { margin: 12px 0 0; font-size: 15px; overflow-wrap: anywhere; }
.download__status:empty { display: none; }
.download__status--ok { color: var(--ok); font-weight: 600; }
.download__status--err { color: var(--stop); font-weight: 600; }
.btn.is-busy .ico { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

.result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 12px; }
.result-actions .btn { flex: 1 1 200px; }
.result__disclaimer { margin: 8px 0 0; }

/* ── Только телефон ─────────────────────────────────────────────────────── */
@media (max-width: 639px) {
  .hours { padding: 10px 12px; top: 6px; margin-bottom: 14px; }
  .hours__line { font-size: 15px; margin-bottom: 6px; }
  .hours__line strong { font-size: 17px; }
  .meter { grid-template-columns: 72px 1fr; margin-bottom: 3px; }
  .meter__label { font-size: 12px; white-space: nowrap; }
  .eyebrow { letter-spacing: .05em; }
  .meter__track { height: 8px; }
  .hours__note { font-size: 13px; margin-top: 4px; line-height: 1.4; }
  .wstep--result { background: transparent; border: 0; box-shadow: none; padding: 4px 0 0; }
  .wstep--result .card { padding: 18px 16px; }
  .issue { padding: 14px 14px 14px 12px; gap: 10px; }
  .issue__icon { width: 22px; height: 22px; }
}

@media (max-width: 419px) {
  .topbar__cta { font-size: 14px; padding: 8px 10px; }
  .brand__name { font-size: 18px; }
  .wizard__title { font-size: 22px; }
  .wizard__head .link-btn { font-size: 14px; }
  .wizard__head .link-btn .ico { display: none; }
}
@media (max-width: 399px) {
  .topbar__cta { display: none; }
}

/* ── Ширина от 420 ──────────────────────────────────────────────────────── */
@media (min-width: 420px) {
  .row2 { grid-template-columns: 1fr 1fr; }
}

/* ── Планшет ────────────────────────────────────────────────────────────── */
@media (min-width: 640px) {
  :root { --gutter: 28px; }
  .hero__actions .btn { width: auto; }
  .btn--lg { padding: 14px 24px; font-size: 18px; }
  .letter__head { flex-direction: row; gap: 14px; }
  .period { grid-template-columns: 1fr 1fr; }
  .trust { display: flex; flex-wrap: wrap; gap: 10px 24px; }
  .features { grid-template-columns: 1fr 1fr; }
  .card { padding: 24px; }
  .wstep { padding: 30px 30px 12px; }
  .progress__name { display: block; }
  .progress__sep, #progress-name { display: none; }
  .cta-band .btn { width: auto; }
  .cta-band__in { grid-template-columns: 1fr auto; }
  .footer__in { grid-template-columns: 1fr auto; align-items: center; }
  .footer__note { grid-column: 1 / -1; grid-row: 2; }
  .wnav { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; background: rgba(245, 249, 249, .94); }
  .wnav__in { justify-content: space-between; }
  .wnav__in .btn { flex: 0 0 auto; min-width: 160px; }
  .result-actions .btn { flex: 0 0 auto; }
}

/* ── Компьютер ──────────────────────────────────────────────────────────── */
@media (min-width: 900px) {
  body { font-size: 17.5px; }
  .hero { padding: 64px 0 72px; }
  .hero__in { grid-template-columns: 1.15fr .85fr; gap: 48px; }
  .lead { font-size: 19.5px; }
  .section { padding: 72px 0; }
  .stats { grid-template-columns: .85fr 1.15fr; }
  .stat-big__num { font-size: 84px; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .features { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
  .timeline::before { left: 8px; right: 8px; top: 10px; bottom: auto; width: auto; height: 2px; }
  .timeline__item { padding: 32px 0 0; }
  .timeline__dot { left: 0; top: 3px; }
  .expert { flex-wrap: nowrap; padding: 32px; gap: 24px; }
  .wizard { padding-top: 36px; }
}
