/* Стартовая страница labtab.pro, версия 2. Палитра — как в v1 («бумага и тушь»), шрифт один — Onest:
   заголовки полужирные без курсива, цифры табличные. Страница короче v1: первый экран, вкладки, тест, финал.
   Красный — только нарушение. Всегда светлая тема. Файл независим от landing.css (v1). */
/* Onest — со своего сервера (не с Google Fonts): IP посетителя не уходит за рубеж. Вариативный шрифт 400–700. */
/* cyrillic-ext */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(onest/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;
}
/* cyrillic */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(onest/onest-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(onest/onest-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(onest/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;
}
/* symbols */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(onest/onest-symbols.woff2) format('woff2');
  unicode-range: U+0001-000C, U+000E-001F, U+007F-009F, U+20DD-20E0, U+20E2-20E4, U+2150-218F, U+2190, U+2192, U+2194-2199, U+21AF, U+21E6-21F0, U+21F3, U+2218-2219, U+2299, U+22C4-22C6, U+2300-243F, U+2440-244A, U+2460-24FF, U+25A0-27BF, U+2800-28FF, U+2921-2922, U+2981, U+29BF, U+29EB, U+2B00-2BFF, U+4DC0-4DFF, U+FFF9-FFFB, U+10140-1018E, U+10190-1019C, U+101A0, U+101D0-101FD, U+102E0-102FB, U+10E60-10E7E, U+1D2C0-1D2D3, U+1D2E0-1D37F, U+1F000-1F0FF, U+1F100-1F1AE, U+1F1E6-1F1FF, U+1F30D-1F30F, U+1F315, U+1F31C, U+1F31E, U+1F320-1F32C, U+1F336, U+1F378, U+1F37D, U+1F382, U+1F393-1F39F, U+1F3A7-1F3A8, U+1F3AC-1F3AF, U+1F3C2, U+1F3C4-1F3C6, U+1F3CA-1F3CE, U+1F3D4-1F3E0, U+1F3ED, U+1F3F1-1F3F3, U+1F3F5-1F3F7, U+1F408, U+1F415, U+1F41F, U+1F426, U+1F43F, U+1F441-1F442, U+1F444, U+1F446-1F449, U+1F44C-1F44E, U+1F453, U+1F46A, U+1F47D, U+1F4A3, U+1F4B0, U+1F4B3, U+1F4B9, U+1F4BB, U+1F4BF, U+1F4C8-1F4CB, U+1F4D6, U+1F4DA, U+1F4DF, U+1F4E3-1F4E6, U+1F4EA-1F4ED, U+1F4F7, U+1F4F9-1F4FB, U+1F4FD-1F4FE, U+1F503, U+1F507-1F50B, U+1F50D, U+1F512-1F513, U+1F53E-1F54A, U+1F54F-1F5FA, U+1F610, U+1F650-1F67F, U+1F687, U+1F68D, U+1F691, U+1F694, U+1F698, U+1F6AD, U+1F6B2, U+1F6B9-1F6BA, U+1F6BC, U+1F6C6-1F6CF, U+1F6D3-1F6D7, U+1F6E0-1F6EA, U+1F6F0-1F6F3, U+1F6F7-1F6FC, U+1F700-1F80B, U+1F810-1F847, U+1F850-1F859, U+1F860-1F887, U+1F890-1F8AD, U+1F8B0-1F8BB, U+1F8C0-1F8C1, U+1F8D0-1F8D8, U+1F900-1F90B, U+1F93B, U+1F946, U+1F984, U+1F996, U+1F9E9, U+1FA00-1FA6F, U+1FA70-1FA7C, U+1FA80-1FAC6, U+1FAC8, U+1FACC-1FADD, U+1FADF-1FAEB, U+1FAEF-1FAFA, U+1FB00-1FBFF;
}

:root {
    --paper: #F6F4EF;
    --paper-2: #EFECE4;
    --sheet: #FBFAF7;
    --ink: #0F1053;
    --ink-2: #3D3F6E;
    --muted: #7A7868;
    --rule: #DEDACF;
    --rule-2: #CBC6B8;
    --red: #D9381E;
    --red-fill: #FBE7E2;
    --ok: #2F6B45;
    --ok-fill: #E6EFE5;
    --due: #A65F00;
    --due-fill: #FBF0DC;
    --night: #0B0C3A;
    --sans: "Onest", "Segoe UI", Roboto, Arial, sans-serif;
    --ease: cubic-bezier(.2, .7, .2, 1);
    color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16.5px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
main { overflow-x: clip; }
a { color: inherit; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.mono { font-variant-numeric: tabular-nums; }
.display { font-weight: 600; letter-spacing: -.025em; line-height: 1.08; }
.display em { font-style: normal; font-weight: 600; color: var(--ink-2); }
.h2 { font-size: clamp(30px, 3.4vw, 46px); }
.kicker { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--red); margin-bottom: 14px; }
.sheetcard { background: var(--sheet); border: 1px solid var(--rule); border-radius: 6px; }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 20px; border-radius: 6px; border: 0; font: 500 15px/1 var(--sans); text-decoration: none; white-space: nowrap; transition: background .2s var(--ease), color .2s var(--ease); }
.btn-lg { height: 54px; padding: 0 26px; font-size: 16px; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--ink-2); }
.btn-paper { background: #F6F4EF; color: #0F1053; }
.btn-paper:hover { background: #fff; }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule-2); }
.btn-line:hover { box-shadow: inset 0 0 0 1px var(--ink); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.link-arrow { font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--rule-2); padding-bottom: 2px; }
.link-arrow::after { content: " →"; transition: margin .2s var(--ease); }
.link-arrow:hover::after { margin-left: 4px; }
.link-arrow--light { color: #F6F4EF; border-color: rgba(246, 244, 239, .35); }
.cta { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

/* Шапка */
.hd { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--rule); }
.hd-row { display: flex; align-items: center; gap: 36px; height: 64px; }
.hd-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 19px/1 var(--sans); letter-spacing: -.01em; }
.hd-nav { display: flex; gap: 26px; font-size: 14.5px; color: var(--ink-2); }
.hd-nav a { text-decoration: none; }
.hd-nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
.hd-actions { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.hd-phone { font-size: 14px; text-decoration: none; color: var(--ink-2); white-space: nowrap; }
.hd-login { font-weight: 500; text-decoration: none; font-size: 15px; }
.hd-login:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Первый экран — укладывается в высоту ноутбука */
.hero { padding: 56px 0 64px; border-bottom: 1px solid var(--rule); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(38px, 4.6vw, 64px); line-height: 1.04; margin-bottom: 24px; }
.lead { font-size: 18.5px; color: var(--ink-2); max-width: 580px; margin-bottom: 32px; }

.cover { padding: 20px 22px 16px; box-shadow: 0 24px 50px -36px rgba(15, 16, 83, .45); }
.cover-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.cover-count b { color: var(--ok); font-weight: 500; font-size: 15px; }
.cover-list li { border-bottom: 1px solid var(--rule); }
.cover-list button { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 8px; width: 100%; padding: 10px 2px; background: none; border: 0; text-align: left; font-size: 15px; transition: background .2s var(--ease), padding .2s var(--ease); }
.cover-list button:hover { background: var(--paper); padding-left: 8px; }
.cover-list button > span { font-size: 11.5px; color: var(--muted); }
.cover-list i { font: 500 12px/1 var(--sans); font-style: normal; color: var(--ok); background: var(--ok-fill); padding: 5px 8px; border-radius: 99px; transition: opacity .3s var(--ease), transform .3s var(--ease); }
.cover-list i::before { content: "✓ "; }
.cover-list button:hover i { background: var(--ink); color: var(--paper); }
.cover-list button:hover i::before { content: "→ "; }
.cover-list.is-pending li:not(.is-done) i { opacity: 0; transform: translateX(-6px); }
.cover-foot { font-size: 13px; color: var(--muted); padding-top: 12px; }

/* Секции */
.sec { padding: 64px 0; border-bottom: 1px solid var(--rule); }
.sec-head { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 56px; align-items: end; margin-bottom: 36px; }
.sec-lead { color: var(--ink-2); font-size: 17px; max-width: 560px; text-wrap: pretty; }

/* Вкладки «Что закрываем» */
.ex { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; align-items: start; }
.ex-tabs { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 88px; }
.ex-group { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 14px 12px 6px; }
.ex-group:first-child { padding-top: 0; }
.ex-tabs [role=tab] { display: flex; gap: 12px; align-items: baseline; text-align: left; background: none; border: 0; border-radius: 6px; padding: 10px 12px; font-size: 15.5px; color: var(--ink-2); transition: background .2s var(--ease), color .2s var(--ease); }
.ex-tabs [role=tab] span { font-size: 11px; color: var(--muted); }
.ex-tabs [role=tab]:hover { background: var(--paper-2); color: var(--ink); }
.ex-tabs [role=tab][aria-selected=true] { background: var(--ink); color: var(--paper); font-weight: 500; }
.ex-tabs [role=tab][aria-selected=true] span { color: rgba(246, 244, 239, .6); }

.panel { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: center; background: var(--sheet); border: 1px solid var(--rule); border-radius: 8px; padding: 36px; min-height: 520px; }
.js .panel { display: none; }
.js .panel.is-on { display: grid; animation: panel-in .45s var(--ease); }
.panel + .panel { margin-top: 16px; }
.js .panel + .panel { margin-top: 0; }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.panel-n { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--red); margin-bottom: 12px; }
.panel-text h3 { font-size: clamp(24px, 2.2vw, 32px); margin-bottom: 16px; }
.panel-text > p:not(.panel-n) { color: var(--ink-2); }
.facts { margin-top: 22px; font-size: 14px; color: var(--ink-2); border-top: 1px solid var(--rule); }
.facts li { padding: 9px 0 9px 20px; border-bottom: 1px solid var(--rule); position: relative; }
.facts li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); }
.hint { margin-top: 18px; font-size: 13.5px; color: var(--muted); }
.panel-art { min-width: 0; }

/* 01 Планшет */
.try { font-size: 13.5px; color: var(--muted); margin-bottom: 12px; }
.try::before { content: "● "; color: var(--red); }
.tablet { background: #16172A; border-radius: 26px; padding: 12px; box-shadow: 0 30px 60px -40px rgba(15, 16, 83, .6); }
#p-tablet { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
.tb { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); background: #F2F2F5; border-radius: 16px; overflow: hidden; font: 400 12px/1.3 var(--sans); color: #0F1053; min-height: 440px; }
.tb-list { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.tb-title { font-size: 17px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 4px; }
.tb-title small { white-space: nowrap; font-size: 11.5px; font-weight: 400; color: #7A7868; margin-left: 4px; }
.c { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; background: #fff; border: 0; border-radius: 10px; padding: 9px 12px; text-align: left; min-width: 0; box-shadow: inset 3px 0 0 #F29100; transition: background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease); }
.c small { color: #7A7868; font-size: 12px; }
.c b { font: 600 22px/1.15 var(--sans); letter-spacing: -.02em; }
.c i { font-style: normal; font-weight: 600; font-size: 11px; color: #A65F00; }
.c.on { box-shadow: inset 0 0 0 2px #2B36A8; }
.c.done { background: #E6EFE5; box-shadow: none; }
.c.done i { color: #2F6B45; }
.c.bad { background: #D9381E; color: #fff; box-shadow: none; }
.c.bad small, .c.bad i { color: rgba(255, 255, 255, .9); }
.c.done.on, .c.bad.on { box-shadow: inset 0 0 0 2px #2B36A8; }

/* Правая панель — как экран ввода в приложении: число, предупреждение, клавиатура, кнопки, причины */
.tb-sheet { background: #fff; border-left: 1px solid #E6E6EC; padding: 14px 14px 12px; display: flex; flex-direction: column; gap: 8px; }
.tb-head b { display: block; font-size: 16px; font-weight: 600; }
.tb-head small { color: #7A7868; font-size: 11.5px; }
.tb-entry { display: flex; flex-direction: column; gap: 8px; }
.tb-entry[hidden], .tb-done[hidden], .tb-next[hidden], .tb-same[hidden], .tb-reasons[hidden] { display: none; }
.tb-chips { display: flex; gap: 6px; }
.tb-chip { background: #ECECF1; border: 0; border-radius: 99px; padding: 5px 10px; font-size: 12px; font-weight: 500; color: #0F1053; }
.tb-chip:hover { background: #E1E2EA; }
.tb-display { display: flex; justify-content: center; align-items: baseline; gap: 6px; padding: 4px 0 0; }
.tb-display b { font: 600 40px/1 var(--sans); font-variant-numeric: tabular-nums; letter-spacing: -.03em; transition: color .18s; }
.tb-display b.empty { color: #C9CAD6; }
.tb-display b.ok { color: #2F6B45; }
.tb-display b.bad { color: #D9381E; }
.tb-display span { font-size: 15px; color: #7A7868; }
/* Место под предупреждение занято всегда — клавиатура не съезжает под пальцем */
.tb-warn { height: 16px; text-align: center; font-size: 12px; font-weight: 600; color: #D9381E; }
.tb-keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.tb-keys button { background: #fff; border: 0; border-radius: 9px; padding: 8px 0; font: 500 17px var(--sans); color: #0F1053; box-shadow: 0 1px 1px rgba(0, 0, 0, .1), inset 0 0 0 1px #E6E6EC; transition: background .15s, transform .1s; }
.tb-keys button.m { background: #ECECF1; box-shadow: none; }
.tb-keys button.zero { grid-column: span 3; }
.tb-keys button:hover { background: #F2F2F5; }
.tb-keys button:active { transform: scale(.92); background: #E1E2EA; }
.tb-row { display: flex; gap: 6px; }
.tb-row button { flex: 1; border: 0; border-radius: 10px; padding: 11px 6px; font-weight: 600; font-size: 13px; transition: opacity .2s, background .2s; }
.tb-same { background: #E9EBFB; color: #2B36A8; }
.tb-save { background: #2B36A8; color: #fff; }
.tb-save.alert { background: #D9381E; }
.tb-save:disabled { opacity: .35; cursor: default; }
.tb-reasons small { display: block; color: #D9381E; font-weight: 600; font-size: 12px; margin-bottom: 6px; }
.tb-reasons div { display: flex; flex-wrap: wrap; gap: 5px; }
.tb-reasons button { background: #F2F2F5; color: #0F1053; border: 0; border-radius: 8px; padding: 7px 9px; font-size: 11.5px; font-weight: 500; }
.tb-reasons button:hover { background: #E1E2EA; }
.tb-reasons button.on { background: #2B36A8; color: #fff; }
.tb-done { display: flex; flex-direction: column; gap: 4px; padding: 14px 0; }
.tb-done b { font-size: 15px; color: #2F6B45; font-weight: 600; }
.tb-done small { color: #7A7868; font-size: 12px; }
.tb-next { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; padding-top: 6px; font-size: 11.5px; color: #7A7868; }
.tb-next span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-next button { background: none; border: 0; color: #2B36A8; font-size: 12px; font-weight: 600; padding: 4px 0; }
.sync { margin-top: 14px; font-size: 13.5px; color: var(--ink-2); padding: 10px 12px; border-left: 2px solid var(--ok); background: var(--paper); }
.sync span { color: var(--muted); display: block; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.sync em { font-style: normal; color: var(--red); }
.sync.flash { animation: flash .9s var(--ease); }
@keyframes flash { 0% { background: var(--ok-fill); } 100% { background: var(--paper); } }

/* 02 Кабинет */
.feed { padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.feed header { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 4px; }
.feed header em { font-style: normal; color: var(--red); margin-left: 8px; }
.row { display: flex; flex-direction: column; padding: 11px 14px; border-left: 2px solid var(--rule-2); background: var(--paper); }
.row b { font-weight: 600; font-size: 15px; }
.row small { color: var(--muted); font-size: 12.5px; }
.row.bad { border-color: var(--red); }
.row.bad b { color: var(--red); }
.row.warn { border-color: var(--due); }
.row.ok { border-color: var(--ok); opacity: .7; }

/* 03 Датчики */
.night { position: relative; background: var(--night); color: #ECE9E1; border-radius: 8px; padding: 18px 18px 14px; }
.night-head { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: #A3A2C2; margin-bottom: 14px; flex-wrap: wrap; }
.night-read { color: #ECE9E1; }
.night.is-bad .night-read { color: #FF6A50; }
.night svg { display: block; width: 100%; height: 220px; overflow: visible; touch-action: pan-y; cursor: crosshair; }
.chart-band { fill: rgba(143, 211, 166, .08); }
.chart-limit { stroke: rgba(236, 233, 225, .22); stroke-width: 1; stroke-dasharray: 4 6; vector-effect: non-scaling-stroke; }
.chart-line { fill: none; stroke: #ECE9E1; stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linejoin: round; transition: stroke-dashoffset 1.8s var(--ease); }
.chart-cursor { stroke: rgba(236, 233, 225, .35); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart-dot { fill: #ECE9E1; }
.night.is-bad .chart-dot { fill: #FF6A50; }
.chart-axis { display: flex; justify-content: space-between; font-size: 11px; color: #77769A; margin-top: 10px; border-top: 1px solid rgba(236, 233, 225, .14); padding-top: 8px; }
.toast { position: absolute; right: 14px; top: 44px; width: min(280px, 70%); display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; background: rgba(251, 250, 247, .97); color: var(--ink); border-radius: 14px; padding: 12px 14px; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .55); font-size: 12.5px; line-height: 1.35; }
.toast img { border-radius: 5px; }
.toast small { display: block; color: var(--muted); font-size: 10.5px; }
.toast b { display: block; color: var(--red); font-weight: 600; }
.toast span { color: var(--ink-2); }
.js .toast { opacity: 0; transform: translateY(-10px); transition: opacity .4s var(--ease) 1.2s, transform .4s var(--ease) 1.2s; }
.js .night.in .toast { opacity: 1; transform: none; }

/* 04 Журналы */
.index { border-top: 1px solid var(--ink); }
.index li { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--rule); font: 400 16px/1.35 var(--sans); }
.index li span { font-size: 11px; color: var(--muted); }
.index li em { font-style: normal; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }

/* 05 Медкнижки */
#p-medbooks .panel-art { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; }
.notice { padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 20px 40px -30px rgba(15, 16, 83, .5); }
.notice header { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); }
.notice header em { font-style: normal; color: var(--paper); background: var(--red); border-radius: 99px; padding: 1px 8px; }
.notice b { font-weight: 600; font-size: 15.5px; line-height: 1.3; }
.notice ul { font-size: 13.5px; color: var(--ink-2); display: flex; flex-direction: column; gap: 6px; }
.notice em.due { font-style: normal; color: var(--due); font-weight: 500; }
.notice > small { font-size: 11.5px; color: var(--muted); border-top: 1px solid var(--rule); padding-top: 10px; }
.count { display: flex; flex-direction: column; gap: 6px; }
.count b { font-size: 88px; line-height: .9; font-weight: 600; letter-spacing: -.05em; color: var(--due); }
.count span { font-size: 13px; color: var(--muted); }

/* 06 Лаборатория */
.protocol { padding: 22px 24px; font-size: 14px; display: flex; flex-direction: column; gap: 10px; box-shadow: 8px 8px 0 -1px var(--paper-2), 8px 8px 0 0 var(--rule); max-width: 460px; }
.protocol b { font-weight: 600; font-size: 16px; }
.protocol > span { color: var(--muted); padding-bottom: 10px; border-bottom: 1px solid var(--rule); font-size: 12px; }
.protocol i { font-style: normal; display: flex; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px dashed var(--rule); }
.protocol em { font-style: normal; }
.protocol .ok { color: var(--ok); }
.protocol small { color: var(--red); margin-top: 4px; font-size: 12px; }

/* 07 Аудит */
.audit { padding: 22px 24px; display: flex; flex-direction: column; gap: 12px; font-size: 14px; max-width: 480px; }
.audit header { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
.audit .ok { color: var(--ink-2); }
.audit .bad { color: var(--red); }
.audit small { display: block; color: var(--ink-2); font-size: 12.5px; padding-left: 18px; margin-top: 2px; }

/* 08 Плакаты: превью без ссылок */
.panel--wide { grid-template-columns: 1fr; align-content: start; }
.panel--wide .panel-text { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 40px; }
.panel--wide .panel-text > * { grid-column: 1; }
.panel--wide .panel-text > p:nth-of-type(2), .panel--wide .panel-text .hint { grid-column: 2; }
.panel--wide .panel-text > p:nth-of-type(2) { grid-row: 1 / span 2; align-self: end; margin-top: 0; }
.panel--wide .panel-text .hint { grid-row: 3; margin-top: 10px; }
.posters { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 14px; scrollbar-width: thin; scrollbar-color: var(--rule-2) transparent; }
.posters li { scroll-snap-align: start; display: flex; flex-direction: column; gap: 8px; }
.poster { background: #fff; padding: 5px; border-radius: 2px; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; box-shadow: 0 1px 0 var(--rule), 0 12px 24px -16px rgba(15, 16, 83, .45); transition: transform .35s var(--ease); }
.poster:hover { transform: translateY(-5px) rotate(-.6deg); }
.poster img { pointer-events: none; display: block; width: 100%; height: auto; }
.posters span { font-size: 12.5px; color: var(--muted); }

/* 09 Маркировка: интерактивная гравировка + три фото настоящей работы */
.laser-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 12px; }
.laser-bar .try { margin: 0; }
.laser-words { display: flex; gap: 6px; flex-wrap: wrap; }
.laser-words button { height: 32px; border: 1px solid var(--rule-2); border-radius: 99px; background: var(--paper); padding: 0 13px; font: 500 13.5px/1 var(--sans); color: var(--ink-2); transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.laser-words button:hover { border-color: var(--ink); color: var(--ink); }
.laser-words button[aria-pressed=true] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.laser-stage { position: relative; aspect-ratio: 1090 / 430; border-radius: 8px; overflow: hidden; background: #8d8a84; cursor: none; touch-action: pan-y; user-select: none; -webkit-user-select: none; box-shadow: inset 0 0 0 1px rgba(15, 16, 83, .08), 0 24px 50px -36px rgba(15, 16, 83, .55); }
.laser-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.laser-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.laser-ink { mix-blend-mode: multiply; }
.laser-fx { mix-blend-mode: normal; }
.laser-status { position: absolute; left: 12px; bottom: 12px; display: flex; align-items: center; gap: 8px; }
.laser-status span { background: rgba(11, 12, 58, .78); color: #F6F4EF; border-radius: 99px; padding: 5px 11px; font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.laser-status button { cursor: pointer; background: #F6F4EF; color: var(--ink); border: 0; border-radius: 99px; padding: 5px 12px; font-size: 12px; font-weight: 600; }
.laser-status button[hidden] { display: none; }
.laser-real { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.laser-real figure { display: flex; flex-direction: column; gap: 8px; }
.laser-real img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; }
.laser-real li:nth-child(1) img { object-position: 50% 52%; }
.laser-real li:nth-child(2) img { object-position: 40% 70%; }
.laser-real li:nth-child(3) img { object-position: 50% 35%; }
.laser-real figcaption { font-size: 12.5px; color: var(--muted); }

/* Тест готовности */
.sec-check { background: var(--paper-2); }
.check { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 48px; align-items: start; }
.check .sec-lead { margin-top: 14px; }
.quiz { margin-top: 28px; border-top: 1px solid var(--ink); counter-reset: q; }
.quiz li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--rule-2); counter-increment: q; }
.quiz li::before { content: counter(q, decimal-leading-zero); font: 600 12px var(--sans); font-variant-numeric: tabular-nums; color: var(--muted); }
.quiz p { font-size: 16px; }
.yn { display: flex; background: var(--paper); border: 1px solid var(--rule-2); border-radius: 8px; padding: 2px; }
.yn button { border: 0; background: none; border-radius: 6px; padding: 7px 16px; font-size: 14px; font-weight: 500; color: var(--ink-2); transition: background .2s var(--ease), color .2s var(--ease); }
.yn button:hover { color: var(--ink); background: var(--sheet); }
.yn button[data-v="1"][aria-pressed=true] { background: var(--ok); color: #fff; }
.yn button[data-v="0"][aria-pressed=true] { background: var(--red); color: #fff; }
.result { position: sticky; top: 88px; padding: 24px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 24px 50px -36px rgba(15, 16, 83, .45); overflow: hidden; }
.result-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.score { display: flex; align-items: baseline; gap: 10px; }
.score b { font-size: 72px; line-height: .9; font-weight: 600; letter-spacing: -.04em; }
.score span { font-size: 13px; color: var(--muted); }
.bar { height: 6px; background: var(--rule); border-radius: 3px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--ok); transition: width .5s var(--ease); }
.result-text { color: var(--ink-2); font-size: 15px; }
.fixes { display: flex; flex-direction: column; gap: 6px; }
.fixes:empty { display: none; }
.fixes button { width: 100%; text-align: left; background: var(--red-fill); border: 0; border-left: 2px solid var(--red); padding: 9px 12px; font-size: 14px; font-weight: 500; transition: background .2s var(--ease); }
.fixes button::after { content: " →"; color: var(--red); }
.fixes button:hover { background: #F8D8D0; }
.stamp { align-self: flex-start; display: inline-block; font: 700 14px/1.25 var(--sans); text-transform: uppercase; letter-spacing: .14em; color: var(--ok); border: 3px double var(--ok); border-radius: 6px; padding: 12px 18px; transform: rotate(-6deg); animation: stamp .45s var(--ease); }
.stamp[hidden] { display: none; }
@keyframes stamp { 0% { opacity: 0; transform: rotate(-6deg) scale(1.6); } 70% { opacity: 1; transform: rotate(-6deg) scale(.96); } 100% { transform: rotate(-6deg) scale(1); } }
.result-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 6px; border-top: 1px solid var(--rule); }
.result-cta .btn { padding: 0 10px; font-size: 14px; }

/* Финал */
.final { background: #0F1053; color: #F6F4EF; padding: 80px 0 48px; }
.final-in { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: end; }
.final h2 { font-size: clamp(32px, 3.8vw, 54px); max-width: 820px; margin-bottom: 36px; }
.final h2 em { color: #A3A2C2; }
.contacts { border-top: 1px solid rgba(246, 244, 239, .25); }
.contacts div { padding: 14px 0; border-bottom: 1px solid rgba(246, 244, 239, .14); }
.contacts dt { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: #A3A2C2; margin-bottom: 2px; }
.contacts dd { font: 500 20px/1.3 var(--sans); }
.contacts a { text-decoration: none; }
.contacts a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 64px; padding-top: 24px; border-top: 1px solid rgba(246, 244, 239, .14); font-size: 14px; color: #C9C8DD; }
.steps span { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: #FF8A73; margin-bottom: 6px; }

.ft { background: #0F1053; color: #A3A2C2; border-top: 1px solid rgba(246, 244, 239, .12); }
.ft-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-top: 22px; padding-bottom: 22px; font-size: 13px; }
.ft nav { display: flex; gap: 22px; flex-wrap: wrap; }
.ft a { text-decoration: none; }
.ft a:hover { color: #F6F4EF; }
.ft-req { padding-top: 16px; padding-bottom: 22px; border-top: 1px solid rgba(246, 244, 239, .12); font-size: 12px; line-height: 1.6; color: #7E7DA3; }

/* Ноутбук пониже */
@media (max-height: 820px) and (min-width: 1101px) {
    .hero { padding: 40px 0 48px; }
    .hero h1 { font-size: clamp(38px, 4.2vw, 58px); }
    .cover-list button { padding: 8px 2px; }
    .panel { min-height: 480px; padding: 30px; }
}

/* Планшет и узкий ноутбук */
@media (max-width: 1100px) {
    .hd-nav { display: none; }
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .cover { max-width: 620px; }
    .sec-head { grid-template-columns: 1fr; gap: 12px; }
    .ex { grid-template-columns: 1fr; gap: 16px; }
    /* Вкладки — горизонтальная лента, панель под ней не прыгает по высоте */
    .ex-tabs { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; margin: 0 -32px; padding: 0 32px 4px; gap: 6px; }
    .ex-tabs::-webkit-scrollbar { display: none; }
    .ex-group { display: none; }
    .ex-tabs [role=tab] { flex: none; white-space: nowrap; border: 1px solid var(--rule-2); border-radius: 99px; padding: 8px 14px; font-size: 14.5px; }
    .ex-tabs [role=tab][aria-selected=true] { border-color: var(--ink); }
    .panel, #p-tablet { grid-template-columns: 1fr; gap: 28px; min-height: 0; }
    .check { grid-template-columns: 1fr; gap: 32px; }
    .result { position: static; }
    .final-in { grid-template-columns: 1fr; gap: 40px; }
    .steps { grid-template-columns: 1fr 1fr; }
}

/* Телефон */
@media (max-width: 760px) {
    body { font-size: 16px; }
    .wrap { padding: 0 16px; }
    .hd-row { height: 56px; gap: 16px; }
    .hide-sm, .hd-phone { display: none; }
    .hero { padding: 32px 0 40px; }
    .hero h1 { font-size: clamp(34px, 9.6vw, 44px); margin-bottom: 18px; }
    .lead { font-size: 16.5px; margin-bottom: 24px; }
    .cta .btn { width: 100%; }
    .cover { padding: 16px 14px 12px; }
    .cover-list button { font-size: 14.5px; grid-template-columns: 28px 1fr auto; }
    .sec { padding: 56px 0; }
    .sec-head { margin-bottom: 24px; }
    .ex-tabs { margin: 0 -16px; padding: 0 16px 4px; }
    .panel { padding: 20px 16px; border-radius: 6px; gap: 22px; }
    .panel-text h3 { font-size: 24px; }
    .facts { margin-top: 16px; }
    .tablet { padding: 6px; border-radius: 16px; }
    #p-tablet { grid-template-columns: 1fr; }
    .tb { grid-template-columns: 1fr; border-radius: 12px; min-height: 0; }
    .tb-list { padding: 12px; gap: 6px; }
    .tb-title { font-size: 16px; }
    .c { padding: 7px 10px; }
    .c b { font-size: 18px; }
    .tb-sheet { border-left: 0; border-top: 1px solid #E6E6EC; padding: 12px; }
    .tb-keys button { padding: 11px 0; font-size: 18px; }
    .night svg { height: 170px; }
    .toast { position: static; width: auto; margin-top: 14px; }
    .index li { font-size: 15px; grid-template-columns: 24px 1fr; }
    .index li em { grid-column: 2; }
    #p-medbooks .panel-art { grid-template-columns: 1fr; }
    .count { flex-direction: row; align-items: baseline; gap: 12px; }
    .count b { font-size: 64px; }
    .panel--wide .panel-text { display: block; }
    .panel--wide .panel-text > p:nth-of-type(2) { margin-top: 0; }
    .posters { grid-auto-columns: 46%; margin: 0 -16px; padding: 6px 16px 14px; }
    .laser-stage { aspect-ratio: 16 / 10; }
    .laser-real { grid-template-columns: 1fr 1fr; gap: 10px; }
    .laser-real li:first-child { grid-column: 1 / -1; }
    .quiz li { grid-template-columns: 22px minmax(0, 1fr); gap: 8px 10px; }
    .quiz .yn { grid-column: 2; justify-self: start; }
    .quiz p { font-size: 15.5px; }
    .final { padding: 56px 0 36px; }
    .steps { grid-template-columns: 1fr; gap: 16px; margin-top: 40px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
