/* FINICO home v2 (T251) and the legal pages. The first part is the CSS of the home mockup accepted by the owner
   (docs/design/landing-v2/mockup.html on the head of PR #253, 04eb0689, block 611), carried over unchanged except: the fonts
   are served from fonts/ next to this file (build.mjs copies them); the height of the pinned story is --story-len, not
   --track (that name is the track colour, DESIGN.md §14.1; finding 3 of T243 round 1); the four unused undescribed tokens
   (--surface2, --ink2, --muted, --night-2) are gone. Values — DESIGN.md §14; layout and behaviour — mockup/spec.md.
   The comments of the first part are the mockup's (ru). The second part — what only the code has. */
/* ---------- Шрифт: Inter с оптическим размером (лист q4, вариант А — блок 525); OFL-1.1, mockup/fonts/OFL.txt ---------- */
@font-face{font-family:"Inter";font-style:normal;font-display:swap;font-weight:100 900;src:url(fonts/inter-cyrillic-ext-opsz-normal.woff2) format("woff2-variations");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}
@font-face{font-family:"Inter";font-style:normal;font-display:swap;font-weight:100 900;src:url(fonts/inter-cyrillic-opsz-normal.woff2) format("woff2-variations");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Inter";font-style:normal;font-display:swap;font-weight:100 900;src:url(fonts/inter-latin-ext-opsz-normal.woff2) format("woff2-variations");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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Inter";font-style:normal;font-display:swap;font-weight:100 900;src:url(fonts/inter-latin-opsz-normal.woff2) format("woff2-variations");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}

/* ---------- Токены. Светлая: DESIGN.md v7.3 §2.1, §2.3; категории — палитра кабинета T150 (блоки 401 п. 6, 477: без
   оранжевого и янтарного); состояния — брендбук 1.2 §5.5 (блоки 532, 533, 538): «внимание» и перерасход — янтарный, только
   как состояние и всегда со словом; розовый — знак (блоки 533, 536), не состояние; знак — брендбук стр. 4–6; перелив —
   стр. 10. Тёмная — §2.4. ---------- */
:root{
  --page:#F5F8FC; --surface:#FFFFFF; --ink:#142A3E; --secondary:#566B7F;
  --blue:#096BEB; --blue-hover:#075BC9; --on-blue:#FFFFFF; --focus:#0A4FB0; --pale:#EDF4FC; --rule:#D8E3EE; --hair:#E7EEF5; --card-border:#DCE7F1; --track:#EEF3F8; --field:#B9CDE1;
  --ring-blue:#2477E5; --ring-teal:#1DA98A; --ring-pink:#D9438A; --ring-lav:#9B80EB; --arc-a:#B4A2F0; --arc-b:#9B80EB;
  --band:linear-gradient(110deg,#1B4FB8,#6651C8);
  /* категории — данные (T150) */
  --c-home:#2477E5; --c-food:#1DA98A; --c-shop:#F78AC4; --c-cafe:#C655A7; --c-move:#A282FC; --c-health:#A41A54; --c-phone:#46B7F1; --c-other:#A7B4C2; --on-tile:#10233A;
  /* состояния — брендбук 1.2 §5.5: внимание (точка, текст на подложке), подтверждено */
  --attention:#D97706; --warn-ink:#8A4B00; --warn-bg:#FFF1DA; --ok:#0B5E2E;
  --action-tint:#DCE9FB; --action-ink:#0A4FB0;
  --night:#0B1622; --night-ink:#E9F1F9; --night-sec:#A5B6C8; --night-rule:#22354A; --night-link:#9CC4FF; --night-surface:#122233; --night-pale:#17283C;
  --hdr-bg:rgba(245,248,252,.84); --hdr-line:rgba(216,227,238,.8);
  --panel:linear-gradient(112deg,color-mix(in srgb,var(--ring-blue) 7%,var(--surface)) 0%,var(--surface) 44%,color-mix(in srgb,var(--ring-lav) 7%,var(--surface)) 100%);
  --shadow-group:0 14px 36px rgba(19,56,93,.10);
  --shadow-pop:0 2px 6px rgba(19,56,93,.08),0 26px 60px -22px rgba(19,56,93,.36);
  --shadow-phone:0 50px 90px -34px rgba(19,56,93,.5),0 18px 40px -20px rgba(19,56,93,.32);
  --bloom-a:rgba(36,119,229,.36); --bloom-b:rgba(155,128,235,.38); --bloom-c:rgba(217,67,138,.16);
  /* раздел II (блоки 597–599, 601): метка — цвет категории, углублённый к --flow-hi (доля цвета --flow-hi-k); строка карточки
     подсвечивается долей --flow-row цвета категории. Контраст метки — mockup/README.md §17 */
  --flow-hi:#142A3E; --flow-hi-k:55%; --flow-row:14%;
  --font:"Inter","Segoe UI",Arial,sans-serif;
  --r-main:28px; --r-card:20px; --r-field:12px; --r-pill:999px;
  --ease:cubic-bezier(.22,1,.36,1);
  --gut:clamp(32px,5.556vw,80px); --hdr:72px;
  color-scheme:light;
}
:root[data-theme="dark"]{
  --page:#0B1622; --surface:#122233; --ink:#E9F1F9; --secondary:#A5B6C8;
  --blue:#5B9DFF; --blue-hover:#7AB0FF; --on-blue:#10233A; --focus:#9CC4FF; --pale:#17283C; --rule:#2A3D52; --hair:#22354A; --card-border:#22354A; --track:#22354A; --field:#2A3D52;
  --arc-a:#6F5FB8; --arc-b:#4E46A0;
  --c-cafe:#C04DAE; --c-health:#D13144; --c-other:#9AA8B8;
  --attention:#F59E0B; --warn-ink:#F5C26B; --warn-bg:#3B2A10; --ok:#6EE7A0;
  --action-tint:#15304F; --action-ink:#5B9DFF;
  --hdr-bg:rgba(11,22,34,.8); --hdr-line:rgba(34,53,74,.9);
  --shadow-group:0 22px 50px rgba(0,0,0,.45);
  --shadow-pop:0 2px 6px rgba(0,0,0,.3),0 26px 60px -20px rgba(0,0,0,.65);
  --shadow-phone:0 50px 90px -30px rgba(0,0,0,.75),0 18px 40px -20px rgba(0,0,0,.6);
  /* --bloom-c: розовый знака #D9438A (блок 605 п. 2), доля 13 % (блок 609; брендбук 1.4 §4.5, color.bloom.pink-dark) */
  --bloom-a:rgba(36,119,229,.22); --bloom-b:rgba(155,128,235,.2); --bloom-c:rgba(217,67,138,.13);
  --flow-hi:#FFFFFF; --flow-hi-k:70%; --flow-row:24%;
  color-scheme:dark;
}
@media (max-width:899px){ :root{ --gut:20px; --hdr:56px } }
@media (max-width:359px){ :root{ --gut:16px } }

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-padding-top:calc(var(--hdr) + 16px)}
html,body{margin:0}
body{font-family:var(--font);font-optical-sizing:auto;color:var(--ink);background:var(--page);font-size:16px;line-height:24px;-webkit-font-smoothing:antialiased;font-variant-numeric:tabular-nums;overflow-x:clip}
h1,h2,h3,h4,p,ul,ol,figure,dl,dd{margin:0}
ul,ol{padding:0;list-style:none}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}
svg{display:block}
img{display:block}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
:focus-visible{outline:3px solid var(--focus);outline-offset:3px;border-radius:10px}
.skip{position:absolute;left:12px;top:-120px;z-index:100;min-height:44px;padding:0 18px;display:inline-flex;align-items:center;border-radius:var(--r-pill);background:var(--blue);color:var(--on-blue);font-weight:600}
.skip:focus{top:12px}
.gl{width:1em;height:1em;fill:currentColor;flex:none}
.mark .core{fill:var(--ink)}

/* ---------- Кнопки и ссылки ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 22px;border-radius:var(--r-pill);background:var(--blue);color:var(--on-blue);font-weight:600;font-size:16px;line-height:20px;white-space:nowrap;box-shadow:0 10px 24px -12px color-mix(in srgb,var(--blue) 80%,transparent);position:relative;isolation:isolate}
/* наведение: слой цвета наведения под текстом, меняется только его прозрачность (брендбук §12: только transform и opacity) */
.btn::after{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;background:var(--blue-hover);opacity:0;pointer-events:none;transition:opacity 130ms var(--ease)}
.btn:hover::after{opacity:1}
.btn.lg{min-height:54px;padding:0 30px;font-size:17px}
.btn.small{min-height:44px;padding:0 18px;font-size:15px}
.btn.wide{width:100%}
.link{color:var(--blue);font-weight:600;text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px;display:inline-flex;align-items:center;min-height:44px}
.ex{display:inline-flex;align-items:center;gap:8px;font-size:13px;line-height:18px;color:var(--secondary)}
.ex i{width:6px;height:6px;border-radius:50%;background:var(--ring-lav);flex:none}

/* ---------- Шапка ---------- */
.hdr{position:fixed;inset:0 0 auto 0;height:var(--hdr);z-index:50;display:flex;align-items:center;gap:24px;padding:0 var(--gut);background:var(--hdr-bg);backdrop-filter:saturate(1.4) blur(14px);-webkit-backdrop-filter:saturate(1.4) blur(14px);border-bottom:1px solid var(--hdr-line)}
.brand{display:inline-flex;align-items:center;gap:10px;min-height:44px;font-weight:700;font-size:21px;letter-spacing:-.01em}
.hdr.scrolled{box-shadow:0 10px 30px rgba(19,56,93,.10)}
:root[data-theme="dark"] .hdr.scrolled{box-shadow:0 10px 30px rgba(0,0,0,.5)}
.top-sentinel{position:absolute;top:0;left:0;width:1px;height:1px}
.nav{display:flex;gap:28px;margin:0 auto;font-size:15px;color:var(--secondary)}
.nav a{min-height:44px;display:flex;align-items:center}
.nav a:hover,.login:hover,.lang:hover{color:var(--ink)}
.hdr-r{display:flex;align-items:center;gap:10px}
.lang,.login{min-height:44px;min-width:44px;display:flex;align-items:center;justify-content:center;font-size:15px;color:var(--secondary);padding:0 6px}
.ib{flex:none;width:44px;height:44px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;color:var(--ink)}
.ib svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ib:hover{background:var(--pale)}
[data-k="theme"] svg:last-of-type{display:none}
:root[data-theme="dark"] [data-k="theme"] svg:first-of-type{display:none}
:root[data-theme="dark"] [data-k="theme"] svg:last-of-type{display:block}
.menu{display:none}
@media (max-width:1099px){ .nav{gap:20px} }
@media (max-width:899px){ .nav,.login{display:none} .menu{display:inline-flex} .hdr{gap:8px} .hdr-r{margin-left:auto} .brand{font-size:19px} }

/* T642: the language switcher — the picture T641 accepted by the owner (block 1184; docs/design/proposals/t641/mockup.html,
   README «Если ответ «да»» pp. 2–4), replacing the row of three self-names of T358 (blocks 1178, 1179). One button — the
   self-name of the page's language and a chevron: a 44 px target (dimension.target-min), a 36 px pill (dimension.radius-pill,
   color.neutral.*.surface, card-border, ink, secondary); open — the blue border (color.blue.action*) and the chevron turned.
   Its list — dimension.radius-field, shadow.popover (dark — its finico.dark), 44 px rows, the current one on
   color.neutral.*.pale in font.weight.control with a blue tick; the row's 8 px radius — [П] of T641 (no brandbook value).
   Shown in the header at every width (the row of T358 was hidden below 1280 px); the menu has none. */
.lsw{position:relative;flex:none;display:inline-flex}
.lsw-b{display:inline-flex;align-items:center;min-height:44px;white-space:nowrap}
.lsw-b .pill{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 10px 0 14px;border-radius:var(--r-pill);border:1px solid var(--card-border);background:var(--surface);color:var(--ink);font-size:15px;font-weight:400}
.lsw-b .chev{width:16px;height:16px;fill:none;stroke:var(--secondary);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.lsw-b[aria-expanded="true"] .pill{border-color:var(--blue)}
.lsw-b[aria-expanded="true"] .chev{transform:rotate(180deg)}
.lsw-b .short{display:none}
.lsw-l{position:absolute;right:0;top:calc(100% + 4px);z-index:5;min-width:208px;padding:6px;border-radius:var(--r-field);background:var(--surface);border:1px solid var(--card-border);box-shadow:0 10px 30px rgba(19,56,93,.14)}
.lsw-l:not([hidden]){display:block}
/* without a script (site.js marks the switcher data-js) the list stays reachable: open while the focus is inside it */
.lsw:not([data-js]):focus-within>.lsw-l{display:block}
:root[data-theme="dark"] .lsw-l{box-shadow:0 10px 30px rgba(0,0,0,.5)}
.lsw-l a{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:44px;padding:0 12px;border-radius:8px;font-size:15px;line-height:20px;color:var(--ink);white-space:nowrap}
.lsw-l a[aria-current]{background:var(--pale);font-weight:600}
.lsw-l .ok{flex:none;width:18px;height:18px;fill:none;stroke:var(--blue);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
/* the motion: open — motion.duration.expand, close — motion.duration.collapse (site.js keeps the list until it ends), the
   curve motion.easing.brand (--ease), the distance motion.distance.rise; transform and opacity only; reduced motion — at once */
@media (prefers-reduced-motion:no-preference){
  .lsw-b .chev{transition:transform 220ms var(--ease)}
  .lsw-l:not([hidden]){animation:lsw-in 220ms var(--ease)}
  .lsw-l.out{animation:lsw-out 200ms var(--ease) forwards}
  .seller .lsw-l:not([hidden]){animation-name:lsw-up}
  .seller .lsw-l.out{animation-name:lsw-up-out}
}
@keyframes lsw-in{from{opacity:0;transform:translateY(-6px)}}
@keyframes lsw-out{to{opacity:0;transform:translateY(-6px)}}
@keyframes lsw-up{from{opacity:0;transform:translateY(6px)}}
@keyframes lsw-up-out{to{opacity:0;transform:translateY(6px)}}
/* T642: from 900 px the header holds the full self-name only from 1000 px (T641 README p. 3: «на листе ~1000 px»; measured on
   the code: kk «Қалай жұмыс істейді» wraps at 900–959 px with «Қазақша ⌄»); at 900–999 px — the short one in the phone's pill */
@media (min-width:900px) and (max-width:999px){
  .hdr .lsw-b .pill{padding:0 5px 0 8px;gap:2px}
  .hdr .lsw-b .full{display:none}
  .hdr .lsw-b .short{display:inline}
}
/* T642, a phone (below 900 px; T641 README p. 3): the short self-name in the button, the full ones in the list; the theme icon
   leaves the header (the menu's «Включить тёмную тему» stays); four 44 px targets side by side — the 6 px between the pill
   and «Начать учёт» are inside the switcher's target; «Начать учёт» 12 px aside; the list under the button's left edge */
@media (max-width:899px){
  .hdr-r{gap:0}
  .hdr-r [data-k="theme"]{display:none}
  .hdr .btn.small{padding:0 12px}
  .hdr .lsw-b{padding-right:6px}
  .hdr .lsw-b .pill{padding:0 5px 0 8px;gap:2px}
  .hdr .lsw-b .full{display:none}
  .hdr .lsw-b .short{display:inline}
  .hdr .lsw-l{right:auto;left:0}
}
/* T642, below 375 px ([П] of T642 — T641 left the rule to the code, README «Риски»): the header of 375 px has a 2 px margin
   with kk «Қаз ⌄» and «Есепті бастау»; narrower, the row does not fit (measured: kk 360 px — 15 px over, 320 px — 47 px).
   The brand keeps its mark (the «Кольцо») and drops the word «Finico»: the link keeps its name («Finico — на главную») and a
   44 px target; the switcher, «Начать учёт» and «Меню» stay as on the accepted 375 px frame */
@media (max-width:374px){
  .hdr .brand{min-width:44px}
  .hdr .brand span{display:none}
}

/* ---------- I. Закреплённая история ---------- */
.story{position:relative}
.story-d{position:relative;height:var(--story-len,600vh);-webkit-mask-image:linear-gradient(#000 calc(100% - 72px),transparent);mask-image:linear-gradient(#000 calc(100% - 72px),transparent)}   /* в конце истории низ телефона мягко гаснет и не выходит над следующим разделом (fit-check «spill»; 320, 360, 375 px) */
.stage{position:sticky;top:0;height:100vh;min-height:560px;overflow-x:clip;isolation:isolate}
.bg{position:absolute;inset:0;z-index:-2;overflow:hidden;background:var(--page)}
.bloom{position:absolute;border-radius:50%;filter:blur(60px)}
.bloom.b1{width:60vw;height:60vw;left:-18vw;top:-22vw;background:radial-gradient(circle,var(--bloom-a),transparent 68%)}
.bloom.b2{width:54vw;height:54vw;right:-20vw;top:6vw;background:radial-gradient(circle,var(--bloom-b),transparent 68%)}
.bloom.b3{width:46vw;height:46vw;left:24vw;bottom:-30vw;background:radial-gradient(circle,var(--bloom-c),transparent 70%)}
.arcw{position:absolute;width:150vmax;height:150vmax;left:50%;top:50%;margin:-75vmax 0 0 -75vmax;pointer-events:none}
.arcw .arcs{width:100%;height:100%}
.txt{position:absolute;inset:0;z-index:3;pointer-events:none}
.sc{position:absolute;pointer-events:auto}
.sc[data-sc="1"]{text-align:center}
.h1{font-weight:600;font-size:clamp(56px,5.2vw,80px);line-height:1.05;letter-spacing:-.03em;text-wrap:balance}
.lead{font-size:20px;line-height:30px;color:var(--secondary);max-width:640px;margin:18px auto 0;text-wrap:pretty}
.act{margin-top:28px;display:flex;justify-content:center}
.sc .ex{margin-top:16px}
.sc[data-sc="1"] .ex{margin-top:14px}
.h2{font-weight:600;font-size:46px;line-height:50px;letter-spacing:-.024em;text-wrap:balance}
.sc .d{font-size:19px;line-height:29px;color:var(--secondary);margin-top:16px;text-wrap:pretty}
.sc .note{font-size:15px;line-height:22px;color:var(--secondary);margin-top:12px;padding-left:12px;border-left:2px solid var(--rule)}
.story-d .sc:not([data-sc="1"]){opacity:0}
.story-d .sc[data-off]{pointer-events:none}   /* T271: a scene the scroll has not shown whole takes no tap (site.js marks it; WCAG 2.4.11) */
.rig{position:absolute;inset:0;z-index:2;pointer-events:none;perspective:1100px;perspective-origin:50% 40%;transform-style:preserve-3d}
.rig > *{position:absolute;transform-style:preserve-3d;will-change:transform,opacity}
.rig .off{display:none}
.prog{position:absolute;left:var(--gut);bottom:30px;display:flex;gap:8px;z-index:3;opacity:0}
.prog i{width:28px;height:4px;border-radius:2px;background:var(--blue);opacity:.3}
.prog i:first-child{opacity:1}
.hint{position:absolute;left:var(--gut);bottom:26px;z-index:3;width:24px;height:36px;border:2px solid var(--secondary);border-radius:12px;opacity:.7}
.hint i{position:absolute;left:50%;top:7px;width:4px;height:7px;margin-left:-2px;border-radius:2px;background:var(--secondary)}

/* ---------- Телефон: стоит прямо (правила Apple, план §4.3); рамка — условная тонкая кромка и «остров» [Ю] ---------- */
.phone{--u:calc(var(--pw,300px) / 390);--z:1;width:var(--pw,300px);height:calc(var(--pw,300px) * 2.1667);border-radius:calc(var(--u) * 66);padding:calc(var(--u) * 12);
  background:linear-gradient(150deg,#7b838c 0%,#3b4148 14%,#1b1f24 46%,#2d3339 78%,#7b838c 100%);box-shadow:inset 0 0 0 calc(var(--u) * 2.4) #0c0f12,var(--shadow-phone)}
.phone > i{position:absolute;width:calc(var(--u) * 4);border-radius:calc(var(--u) * 3);background:linear-gradient(90deg,#596069,#2c3137)}
.phone .btn-a{left:calc(var(--u) * -3);top:calc(var(--u) * 170);height:calc(var(--u) * 54)}
.phone .btn-b{left:calc(var(--u) * -3);top:calc(var(--u) * 240);height:calc(var(--u) * 54)}
.phone .btn-c{right:calc(var(--u) * -3);top:calc(var(--u) * 220);height:calc(var(--u) * 88)}
.screen{position:relative;width:100%;height:100%;border-radius:calc(var(--u) * 54);overflow:hidden;background:var(--page);color:var(--ink);transform:translateZ(0)}
.island{position:absolute;top:calc(var(--u) * 11);left:50%;width:calc(var(--u) * 122);height:calc(var(--u) * 36);margin-left:calc(var(--u) * -61);border-radius:99px;background:#03050a;z-index:6}
.homebar{position:absolute;left:50%;bottom:calc(var(--u) * 8);width:calc(var(--u) * 136);height:calc(var(--u) * 5);margin-left:calc(var(--u) * -68);border-radius:3px;background:var(--ink);opacity:.9;z-index:6}
.sb{height:calc(var(--u) * 54);display:flex;align-items:center;justify-content:space-between;padding:calc(var(--u) * 6) calc(var(--u) * 28) 0 calc(var(--u) * 40);font-weight:600;font-size:calc(var(--u) * 17);line-height:1}
.sb svg{width:calc(var(--u) * 68);height:auto;fill:currentColor}
.scr{position:absolute;left:0;right:0;top:calc(var(--u) * 54);bottom:0}
.story-d .scr:not([data-n="1"]){opacity:0}
.app{position:absolute;inset:0;display:flex;flex-direction:column;line-height:1.34}
.ah{display:flex;align-items:center;justify-content:space-between;padding:calc(var(--u) * 6) calc(var(--u) * 16) calc(var(--u) * 10);flex:none}
.wm{display:flex;align-items:center;gap:calc(var(--u) * 7);font-weight:700;font-size:calc(var(--u) * 19);letter-spacing:-.01em}
.wm svg{width:calc(var(--u) * 24);height:calc(var(--u) * 24)}
.pill{display:inline-flex;align-items:center;gap:calc(var(--u) * 6);padding:calc(var(--u) * 7) calc(var(--u) * 12);border-radius:99px;background:var(--surface);border:1px solid var(--card-border);font-size:calc(var(--u) * 14);font-weight:600;color:var(--ink)}
.pill .gl{color:var(--blue);font-size:calc(var(--u) * 16)}
.more{width:calc(var(--u) * 36);height:calc(var(--u) * 36);border-radius:50%;background:var(--surface);border:1px solid var(--card-border);display:inline-flex;align-items:center;justify-content:center;color:var(--secondary);font-size:calc(var(--u) * 20)}
.vp{position:relative;flex:1;min-height:0;overflow:hidden}
.body{padding:calc(var(--u) * 6) calc(var(--u) * 16) calc(var(--u) * 16);display:flex;flex-direction:column;gap:calc(var(--u) * 10)}
.app .me{align-self:flex-end;max-width:84%;background:var(--blue);color:var(--on-blue);padding:calc(var(--u) * 10) calc(var(--u) * 15);border-radius:calc(var(--u) * 21) calc(var(--u) * 21) calc(var(--u) * 6) calc(var(--u) * 21);font-size:calc(var(--u) * 17 * var(--z));line-height:1.32}
.app .by{display:flex;align-items:center;gap:calc(var(--u) * 6);font-size:calc(var(--u) * 13 * var(--z));font-weight:600;color:var(--secondary);margin:calc(var(--u) * 2) 0 calc(var(--u) * -4)}
.app .by svg{width:calc(var(--u) * 17 * var(--z));height:calc(var(--u) * 17 * var(--z))}
.app .card{align-self:flex-start;max-width:93%;background:var(--surface);border:1px solid var(--card-border);border-radius:calc(var(--u) * 6) calc(var(--u) * 21) calc(var(--u) * 21) calc(var(--u) * 21);padding:calc(var(--u) * 11) calc(var(--u) * 15);font-size:calc(var(--u) * 17 * var(--z));line-height:1.36;box-shadow:0 1px 2px rgba(19,56,93,.06)}
.app .card.rec{border-radius:calc(var(--u) * 21);padding:calc(var(--u) * 13) calc(var(--u) * 14);width:93%}
.rec h4{display:flex;align-items:center;gap:calc(var(--u) * 6);font-size:calc(var(--u) * 14 * var(--z));color:var(--ok);font-weight:600}
.rec .row{display:flex;align-items:center;gap:calc(var(--u) * 10);margin-top:calc(var(--u) * 8)}
.rec .row p{font-size:calc(var(--u) * 16 * var(--z));font-weight:600;line-height:1.3}
.rec .acts{display:flex;gap:calc(var(--u) * 8);margin-top:calc(var(--u) * 12)}
.rec .acts em{flex:1;text-align:center;font-style:normal;font-weight:600;font-size:calc(var(--u) * 14 * var(--z));padding:calc(var(--u) * 8) calc(var(--u) * 4);border-radius:99px;background:var(--action-tint);color:var(--action-ink)}
.comp{flex:none;margin:calc(var(--u) * 6) calc(var(--u) * 12) calc(var(--u) * 30);height:calc(var(--u) * 46);border-radius:99px;background:var(--surface);border:1px solid var(--card-border);display:flex;align-items:center;gap:calc(var(--u) * 8);padding:0 calc(var(--u) * 6) 0 calc(var(--u) * 16);font-size:calc(var(--u) * 15);color:var(--ink)}
.comp .ph{color:var(--secondary)}
.comp span{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.comp i{width:calc(var(--u) * 34);height:calc(var(--u) * 34);border-radius:50%;background:var(--blue);display:flex;align-items:center;justify-content:center;flex:none}
.comp i svg{width:58%;height:58%;fill:none;stroke:var(--on-blue);stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
/* «Аналитика»: операции и бюджет — строки кабинета (T184) */
.ana .body{gap:calc(var(--u) * 6)}
.back{display:inline-flex;align-items:center;gap:calc(var(--u) * 2);font-size:calc(var(--u) * 15);font-weight:600;color:var(--blue)}
.back svg{width:calc(var(--u) * 18);height:calc(var(--u) * 18);fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.app .t{font-size:calc(var(--u) * 26 * var(--z));line-height:1.15;font-weight:600;letter-spacing:-.015em;margin-top:calc(var(--u) * 2)}
.cov,.per{display:flex;align-items:center;gap:calc(var(--u) * 6);font-size:calc(var(--u) * 13 * var(--z));color:var(--secondary)}
.cov .gl{color:var(--ring-pink)}
.app .note{display:flex;align-items:center;gap:calc(var(--u) * 8);margin:calc(var(--u) * 6) 0 calc(var(--u) * 2);padding:calc(var(--u) * 9) calc(var(--u) * 11);border-radius:calc(var(--u) * 14);background:var(--warn-bg);color:var(--warn-ink);font-size:calc(var(--u) * 13.5 * var(--z));line-height:1.3;font-weight:600}
.app .note span{flex:1}
.app .note b{flex:none;text-decoration:underline;text-underline-offset:2px}
.app .day{font-size:calc(var(--u) * 12.5 * var(--z));color:var(--secondary);margin-top:calc(var(--u) * 8)}
.op{display:flex;align-items:center;gap:calc(var(--u) * 10);padding:calc(var(--u) * 7) 0;border-bottom:1px solid var(--hair)}
.op div{flex:1;min-width:0;display:flex;flex-direction:column}
.op b{font-size:calc(var(--u) * 15.5 * var(--z));font-weight:600;line-height:1.25}
.op span{font-size:calc(var(--u) * 12.5 * var(--z));color:var(--secondary);line-height:1.3}
.op em{font-style:normal;font-weight:600;font-size:calc(var(--u) * 15.5 * var(--z));white-space:nowrap}
.lim{padding:calc(var(--u) * 10) 0;border-bottom:1px solid var(--hair)}
.lh{display:flex;align-items:center;gap:calc(var(--u) * 10)}
.lh span:not(.plate){flex:1;font-weight:600;font-size:calc(var(--u) * 15.5 * var(--z))}
.lh b{font-weight:600;font-size:calc(var(--u) * 16 * var(--z));white-space:nowrap}
.app .bar{position:relative;height:calc(var(--u) * 8);border-radius:99px;background:var(--track);margin-top:calc(var(--u) * 9)}
.app .bar i{position:absolute;left:0;top:0;bottom:0;border-radius:99px;background:var(--c)}
.app .bar i.ov{background:repeating-linear-gradient(135deg,var(--attention) 0 calc(var(--u) * 4),color-mix(in srgb,var(--attention) 70%,transparent) calc(var(--u) * 4) calc(var(--u) * 8));border-radius:0 99px 99px 0}
.app .bar s{position:absolute;top:calc(var(--u) * -3);bottom:calc(var(--u) * -3);width:2px;margin-left:-1px;background:var(--ink);opacity:.55}
.lf{display:flex;justify-content:space-between;gap:calc(var(--u) * 8);margin-top:calc(var(--u) * 6);font-size:calc(var(--u) * 12.5 * var(--z));color:var(--secondary)}
.is-over .st{color:var(--warn-ink);font-weight:600;background:var(--warn-bg);padding:0 calc(var(--u) * 6);border-radius:calc(var(--u) * 6)}
.tot{display:flex;justify-content:space-between;align-items:baseline;gap:calc(var(--u) * 8);margin-top:calc(var(--u) * 8);font-size:calc(var(--u) * 13 * var(--z));color:var(--secondary)}
.tot b{font-size:calc(var(--u) * 17 * var(--z));color:var(--ink);font-weight:600}
.dock{flex:none;margin:auto calc(var(--u) * 12) calc(var(--u) * 26);display:flex;justify-content:space-around;background:var(--surface);border:1px solid var(--card-border);border-radius:calc(var(--u) * 24);padding:calc(var(--u) * 8) calc(var(--u) * 4);box-shadow:0 8px 20px -12px rgba(19,56,93,.3)}
.dock em{display:flex;flex-direction:column;align-items:center;gap:calc(var(--u) * 3);font-style:normal;font-size:calc(var(--u) * 11);font-weight:600;color:var(--secondary)}
.dock .gl{font-size:calc(var(--u) * 22)}
.dock em.on{color:var(--blue)}   /* активный раздел — синий действия, не розовый знака (блок 605 п. 6) */

/* плашка категории (DESIGN §3.1): сквиркл 30 %, сплошной цвет темы, знак Phosphor fill — белый или тёмный по контрасту */
.plate{flex:none;width:calc(var(--u,1px) * 30 * var(--z,1));height:calc(var(--u,1px) * 30 * var(--z,1));border-radius:30%;background:var(--c);display:inline-flex;align-items:center;justify-content:center;box-shadow:0 4px 10px -4px color-mix(in srgb,var(--c) 70%,transparent)}
.plate .gl{width:58%;height:58%}
.plate.on-w{color:#fff}
.plate.on-d{color:var(--on-tile)}
.plate.pdf{--c:var(--ring-pink);color:#fff}
.plate.soft{--c:var(--pale);color:var(--blue);box-shadow:none}

/* ---------- Карточки Finico рядом с телефоном ---------- */
.fc{background:var(--surface);border:1px solid var(--card-border);border-radius:var(--r-card);padding:16px 18px;box-shadow:var(--shadow-pop);color:var(--ink);display:flex;flex-direction:column;gap:4px}
.fc .plate{width:30px;height:30px}
.fc .k{font-size:14px;line-height:19px;color:var(--secondary)}
.fc .k b{display:block;color:var(--ink);font-size:16px;line-height:21px}
.fc .v{font-size:30px;line-height:36px;font-weight:600;letter-spacing:-.015em;font-variant-numeric:proportional-nums}
.fc .v.mid{font-size:24px;line-height:30px}
.fc .s{font-size:14px;line-height:19px;color:var(--secondary)}
.fc .fh{display:flex;align-items:center;gap:10px}
.fc.band{background:var(--band);border-color:transparent;color:#fff}
.fc.band .k,.fc.band .s{color:rgba(255,255,255,.88)}
.fc .bar{position:relative;height:8px;border-radius:99px;background:var(--track);margin:6px 0 2px}
.fc .bar i{position:absolute;left:0;top:0;bottom:0;border-radius:99px;background:var(--c)}
.fc .flag{display:inline-flex;align-self:flex-start;align-items:center;gap:8px;padding:6px 12px;border-radius:12px;background:var(--warn-bg);color:var(--warn-ink);font-weight:600;font-size:15px;line-height:20px}
.fc .cal{flex:none;width:46px;height:50px;border-radius:12px;background:var(--band);color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1}
.fc .cal small{font-size:12px;font-weight:600;opacity:.9}
.fc .cal b{font-size:21px;font-weight:600;margin-top:3px}
.chip{display:flex;align-items:center;gap:12px;background:var(--surface);border:1px solid var(--card-border);border-radius:18px;padding:10px 16px 10px 10px;box-shadow:var(--shadow-pop);color:var(--ink)}
.chip .plate{width:34px;height:34px}
.chip span:not(.plate){display:flex;flex-direction:column;font-weight:600;font-size:16px;line-height:20px}
.chip small{font-weight:400;font-size:13px;line-height:17px;color:var(--secondary)}
.chip.on{box-shadow:0 0 0 2px var(--c-move),var(--shadow-pop)}
.fc.win{padding:18px 20px 14px}
.donut{position:relative;width:176px;height:176px;margin:12px auto 10px;container-type:size}
.donut svg{width:100%;height:100%}
/* центр кольца: подписи — в квадрате, вписанном во внутренний круг (внутренний радиус 74 из 100 → квадрат ±52 % от центра,
   поле 24 % с каждой стороны); сумма — от диаметра, не крупнее 18 px и не мельче 13 px; «₸» не переносится (fit-check «ring») */
.donut .c{position:absolute;inset:24%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
.donut .c b{font-size:clamp(13px,10.2cqw,18px);line-height:1.2;font-weight:600;font-variant-numeric:proportional-nums;white-space:nowrap}
.donut .c small{font-size:clamp(11px,7.4cqw,13px);line-height:1.3;color:var(--secondary)}
.win ul li{display:flex;align-items:center;gap:8px;font-size:14px;line-height:28px;border-top:1px solid var(--hair)}
.win ul li i{width:10px;height:10px;border-radius:30%;background:var(--c);flex:none}
.win ul li span{flex:1}
.win ul li b{font-weight:600}

/* ---------- Большой знак: плоский, как в шапке, без тени и градиента (брендбук 1.3 §2); доли дуг постоянные (блоки 568, 570) ---------- */
.ring{width:150px;height:150px}
/* Плоско, без тени и градиента (брендбук 1.3 §2, §2.6) */
.ring .mark{position:absolute;inset:0;width:100%;height:100%}

/* ---------- Без движения и в низком окне: сцены друг под другом (требование 5.19) ---------- */
.story-m{display:none}
:root.static .story-d{display:none}
:root.static .story-m{display:block;padding:calc(var(--hdr) + 32px) var(--gut) 24px;background:radial-gradient(90% 60% at 80% 0%,color-mix(in srgb,var(--ring-lav) 14%,transparent),transparent 70%),var(--page)}
.story-m .sm{max-width:1180px;margin:0 auto;display:grid;grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr);gap:48px;align-items:center;padding:24px 0 72px}
.sm-t .h1{font-size:clamp(40px,4.6vw,64px);text-align:left}
.sm-t .lead{margin-left:0}
.sm-t .act{justify-content:flex-start}
.sm-fig{position:relative;display:flex;justify-content:center;gap:24px;align-items:flex-start;flex-wrap:wrap}
.sm-dev{position:relative;display:flex;gap:24px;align-items:center;justify-content:center}
.sm-dev .phone{--pw:300px;position:relative;flex:none}
.sm-dev .ring{position:absolute;right:-12px;top:-36px;width:110px;height:110px}
.sm-dev .scr{position:absolute}
.sm-dev .vp{overflow-y:auto;scrollbar-width:none}
.sm-dev .vp::-webkit-scrollbar{display:none}
.sm-dev .vp.scrolled{-webkit-mask-image:linear-gradient(transparent 0,#000 calc(var(--u) * 28));mask-image:linear-gradient(transparent 0,#000 calc(var(--u) * 28))}
.sm-cards{display:flex;flex-direction:column;gap:14px;width:250px;flex:none}
.sm-cards .chip{align-self:flex-start}
@media (max-width:1099px){ .story-m .sm{grid-template-columns:1fr;gap:28px} .sm-cards{width:min(300px,100%)} }
@media (max-width:899px){ .sm-dev{flex-direction:column} .sm-dev .phone{--pw:290px;--z:1.27} .sm-cards{width:100%;max-width:340px} .story-m .sm{padding:16px 0 56px}
  /* большой знак над правым верхним углом телефона, а не на строке состояния: 72 px, дуги — круг D ≈ 57 px; до рамки телефона —
     не меньше D/4 (брендбук sign.clear-space) */
  .sm-dev:has(.ring){padding-top:64px} .sm-dev .ring{top:-16px;right:0;width:72px;height:72px} }

/* ---------- Ниже истории: одна форма контейнера (план §2.2 п. 3); тёмный — только раздел III ---------- */
.sec{padding:160px var(--gut) 0;position:relative}
.panel{max-width:1280px;margin:0 auto;border-radius:var(--r-main);background:var(--panel);border:1px solid var(--card-border);box-shadow:var(--shadow-group);padding:72px 72px 64px;position:relative;overflow:clip}
.sh{max-width:720px}
.sec h2{font-weight:600;font-size:52px;line-height:56px;letter-spacing:-.024em;text-wrap:balance}
.sec .lead{margin:16px 0 0;max-width:620px}
.panel > .ex{margin-top:28px}

/* II. Разные траты — один учёт */
.life{margin-top:56px}
.life-in{position:relative;display:grid;grid-template-columns:minmax(0,290px) minmax(120px,1fr) minmax(0,380px);align-items:center}
.sits{display:flex;flex-direction:column;gap:12px;position:relative;z-index:2}
.sit{display:flex;align-items:center;gap:14px;min-height:56px}
.sit .st{display:flex;flex-direction:column}
.sit b{font-weight:600;font-size:17px;line-height:22px}
.sit small{font-size:14px;line-height:19px;color:var(--secondary)}
.tile{position:relative;width:52px;height:52px;flex:none;transform-style:preserve-3d;transform:perspective(400px) rotateX(16deg) rotateY(-16deg)}
.tile .face{position:absolute;inset:0;width:100%;height:100%;box-shadow:inset 0 2px 0 rgba(255,255,255,.4),inset 0 -6px 12px rgba(0,0,0,.14)}
.tile .gloss{position:absolute;inset:0;border-radius:30%;background:linear-gradient(150deg,rgba(255,255,255,.55),rgba(255,255,255,0) 46%);pointer-events:none}
.tile .sh{position:absolute;inset:0;border-radius:30%;background:var(--c);transform:translate3d(6px,14px,-26px);filter:blur(10px);opacity:.42}
/* наклон плитки — три слоя (блоки 599, 601): .tile — свой наклон и «встаёт» при входе; .sway — покачивание от скорости
   прокрутки (затухает, в покое 0); .kick — отклик на старт метки и наведение */
.tile .sway,.tile .kick{position:absolute;inset:0;transform-style:preserve-3d}
.flows{position:relative;height:100%;min-height:500px}
.flows svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.fl .fb{transition:opacity 130ms var(--ease)}
/* метка: капсула цвета категории, углублённого к --flow-hi, с ободком цвета поверхности; движется только transform и opacity */
.flows .mk{position:absolute;left:0;top:0;z-index:1;border-radius:var(--r-pill);background:color-mix(in srgb,var(--c) var(--flow-hi-k),var(--flow-hi));box-shadow:0 0 0 2.5px var(--surface);opacity:0;pointer-events:none;will-change:transform,opacity}
.month{position:relative;z-index:2;background:var(--surface);border:1px solid var(--card-border);border-radius:var(--r-card);padding:24px 24px 14px;box-shadow:var(--shadow-pop)}
.month .k{font-size:15px;color:var(--secondary)}
.month .v{display:block;font-size:42px;line-height:48px;font-weight:600;letter-spacing:-.02em;margin:2px 0 12px;font-variant-numeric:proportional-nums}
.month li{position:relative;isolation:isolate;display:flex;align-items:center;gap:12px;padding:8px 0;border-top:1px solid var(--hair);font-size:15px;line-height:20px}
.month li span:not(.plate){flex:1}
.month li b{font-weight:600;white-space:nowrap}
.month .plate{width:28px;height:28px}
/* подсветка строки: слой под строкой, меняется только его прозрачность; сумма не меняется и не прячется (DESIGN §7 п. 3) */
.month li .hl{position:absolute;inset:0 -10px;z-index:-1;border-radius:10px;background:color-mix(in srgb,var(--c) var(--flow-row),transparent);opacity:0;pointer-events:none;transition:opacity 130ms var(--ease)}
.life-in.hov .fl .fb{opacity:.42}
.life-in.hov .fl.on .fb{opacity:1}
.month li.on .hl{opacity:1}
/* вход раздела (по прокрутке, назад — назад; без заполнения — вне диапазона всё в обычном виде, как строки «чека» III):
   ситуация — снизу 16 px и появление; плитка встаёт из «лёжа» в свой наклон с небольшим перелётом; поток — сдвиг от
   плитки и появление, целиком (длина не растёт, DESIGN §7 п. 3); диапазон потока ставит скрипт (--fa, --fb) */
@keyframes sit-in{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
@keyframes tile-up{0%{transform:perspective(400px) rotateX(64deg) rotateY(-2deg)}70%{transform:perspective(400px) rotateX(9deg) rotateY(-21deg)}100%{transform:perspective(400px) rotateX(16deg) rotateY(-16deg)}}
@keyframes fl-in{from{opacity:0;transform:translateX(-18px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:no-preference){
  :root:not(.static) .sit{animation:sit-in linear none;animation-timeline:view();animation-range:entry 0% cover 24%;animation-timing-function:var(--ease)}
  :root:not(.static) .tile{animation:tile-up linear none;animation-timeline:view();animation-range:entry 0% cover 34%}
  :root:not(.static) .life-in{view-timeline-name:--life}
  :root:not(.static) .fl{animation:fl-in linear none;animation-timeline:--life;animation-range:entry var(--fa,0px) entry var(--fb,260px);animation-timing-function:var(--ease)}
  :root:not(.static) .tile .kick{transition:transform 220ms var(--ease)}
  :root:not(.static) .sit.on .kick{transform:rotateY(16deg) rotateX(-16deg) translateZ(10px)}
}

/* III. Ваши данные и деньги — тёмный раздел */
.panel.dark{--ink:var(--night-ink);--secondary:var(--night-sec);background:radial-gradient(110% 90% at 90% 0%,#1A3A5E 0%,#0F2236 46%,var(--night) 100%);border-color:var(--night-rule);color:var(--night-ink)}
:root[data-theme="dark"] .panel.dark{background:radial-gradient(110% 90% at 90% 0%,#1F2F6A 0%,#101C3A 50%,#070E18 100%);border-color:#2B3F66}
.panel.dark .mark .core{fill:var(--night-ink)}
.trust{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:56px;margin-top:56px;align-items:start}
.receipt{background:rgba(255,255,255,.04);border:1px solid var(--night-rule);border-radius:var(--r-card);padding:22px 24px 10px}
.rt{display:flex;align-items:center;gap:10px;font-weight:600;font-size:16px;padding-bottom:14px;border-bottom:1px dashed rgba(165,182,200,.35)}
.receipt li{display:flex;gap:14px;padding:16px 0;border-bottom:1px dashed rgba(165,182,200,.22)}
.receipt li:last-child{border-bottom:0}
@media (prefers-reduced-motion:no-preference){ @supports (animation-timeline:view()){
  .receipt.rr-anim .rr{animation:rr-in linear none;animation-timeline:view();animation-range:entry 0% entry 100%}
} }
@keyframes rr-in{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
.receipt .n{flex:none;width:28px;height:28px;border-radius:50%;border:1.5px solid rgba(165,182,200,.5);display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:600;color:var(--night-sec)}
.receipt li > div{display:flex;flex-direction:column;gap:8px;min-width:0}
.receipt b{font-weight:600;font-size:17px;line-height:23px}
.receipt .s{font-size:15px;line-height:22px;color:var(--night-sec)}
.bub{align-self:flex-start;font-size:15px;line-height:22px;padding:9px 13px;border-radius:14px;background:#1A2E44;color:var(--night-ink)}
.bub em{font-style:normal;padding:1px 6px;border-radius:6px;background:rgba(155,128,235,.3);color:#E2D9FF}
.facts ul{display:flex;flex-direction:column;gap:22px}
.facts li{display:flex;gap:14px;font-size:17px;line-height:26px}
.fi{flex:none;width:40px;height:40px;border-radius:30%;background:rgba(91,157,255,.16);display:flex;align-items:center;justify-content:center;color:#8CB8FF;font-size:22px}
.pol{margin-top:22px}
.panel.dark .link{color:var(--night-link)}
.draft{font-size:13px;line-height:19px;color:var(--night-sec);margin-top:4px}

/* Цена (блок 548 б): pricing-research.md вариант А — две карточки, подписка заметнее; суммы одного размера (сумма продления не мельче
   суммы первых дней, §8 п. 1); условия продления и отмены — в карточке до её кнопки; п. 3.4 — под карточками (§4.4, §7.2). У каждой
   карточки — своя кнопка (блок 569): у подписки — основная, у недели — спокойнее; на ПК кнопки на одной линии внизу */
.plans{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:24px;margin-top:48px;align-items:stretch}
.pc{position:relative;overflow:clip;display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--card-border);border-radius:var(--r-card);padding:28px 28px 24px}
.pc:not(.main){background:color-mix(in srgb,var(--surface) 62%,transparent)}
.pc.main{box-shadow:var(--shadow-pop);padding-top:32px}
.pc.main::before{content:"";position:absolute;left:0;right:0;top:0;height:4px;background:var(--band)}
.pc h3{font-weight:600;font-size:22px;line-height:28px;letter-spacing:-.01em}
.pc-st{margin-top:14px}
.pc-st li{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;column-gap:16px;row-gap:2px;padding:14px 0;border-top:1px solid var(--hair)}
.pc-st li:last-child{border-bottom:1px solid var(--hair)}
.pc-st .w{font-weight:600;font-size:17px;line-height:23px;min-width:0}
.pc-st .h{grid-column:1/-1;font-size:15px;line-height:21px;color:var(--secondary)}
.pc-st .sum{white-space:nowrap;font-weight:600;font-size:32px;line-height:38px;letter-spacing:-.02em}
.pc-c{display:flex;align-items:flex-start;gap:10px;margin:16px 0 24px;font-size:16px;line-height:24px}
.pc-b{margin-top:auto;width:100%;white-space:normal;text-align:center;line-height:22px;padding:12px 24px}
.btn.alt{background:var(--action-tint);color:var(--action-ink);box-shadow:none;border:1px solid color-mix(in srgb,var(--action-ink) 30%,transparent)}
.btn.alt::after{background:color-mix(in srgb,var(--action-tint) 82%,var(--action-ink))}
/* тёмная тема: слой наведения — --pale (брендбук color.neutral.dark.pale), текст --action-ink на нём 5,49 : 1; смесь светлой темы
   давала 3,65 : 1 (WCAG 1.4.3) */
:root[data-theme="dark"] .btn.alt::after{background:var(--pale)}
.pc-c .gl{font-size:20px;margin-top:2px;color:var(--blue)}
.pc-d{margin-top:12px;font-size:15px;line-height:22px;color:var(--secondary)}
.fine{margin-top:28px;max-width:840px;font-size:14px;line-height:21px;color:var(--secondary)}
.pr-links{display:flex;flex-wrap:wrap;gap:0 28px;margin-top:12px}

/* IV. Вопросы — единственный раздел, где текст и есть главный предмет */
.faq{display:grid;grid-template-columns:minmax(0,340px) minmax(0,1fr);gap:56px}
.fa p{font-size:17px;line-height:26px;color:var(--secondary);margin-top:18px}
.link.big{font-size:17px}
.fq details{border-top:1px solid var(--rule)}
.fq details:last-child{border-bottom:1px solid var(--rule)}
.fq summary{list-style:none;cursor:pointer;min-height:68px;display:flex;align-items:center;gap:16px;padding:12px 4px;font-weight:600;font-size:19px;line-height:26px}
.fq summary::-webkit-details-marker{display:none}
.fq summary::after{content:"";margin-left:auto;flex:none;width:11px;height:11px;border-right:2px solid var(--secondary);border-bottom:2px solid var(--secondary);transform:rotate(45deg) translate(-3px,-3px);transition:transform 220ms var(--ease)}
.fq details[open] summary::after{transform:rotate(-135deg)}
.fq details:not([open]) > p{display:none}
.fq details p{padding:0 44px 22px 4px;color:var(--secondary);font-size:17px;line-height:27px;max-width:680px}

/* V. Последний призыв (блок 548 а): заголовок, одна строка о входе, кнопка; цена — в разделе выше */
.fin{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:40px;align-items:center}
.fin-t .btn{margin-top:30px}
.fin-art{width:220px;height:220px;position:relative;margin-right:30px}
.fin-art .mark{width:100%;height:100%}

/* Что можно делать (блоки 564, 568: вариант а): шесть задач — значок, имя, одна строка; три колонки, на телефоне — список */
.tasks{list-style:none;padding:0;margin:40px 0 0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px 40px}
.tasks li{display:flex;gap:14px;align-items:flex-start}
.tasks .ti{flex:none;width:44px;height:44px;border-radius:30%;background:var(--action-tint);color:var(--action-ink);display:flex;align-items:center;justify-content:center;font-size:24px}
.tasks b{display:block;font-weight:600;font-size:18px;line-height:24px}
.tasks small{display:block;margin-top:4px;font-size:15px;line-height:22px;color:var(--secondary)}
@media (max-width:1099px){ .tasks{grid-template-columns:repeat(2,minmax(0,1fr))} }

/* Подвал — тёмный */
.foot{background:var(--night);color:var(--night-sec);margin-top:160px;padding:64px var(--gut) 40px}
:root[data-theme="dark"] .foot{background:#060D15;border-top:1px solid var(--night-rule)}
.foot .in{max-width:1280px;margin:0 auto;display:grid;grid-template-columns:1.3fr 1fr 1fr 1.4fr;gap:32px}
.foot .brand{color:var(--night-ink)}
.foot .mark .core{fill:var(--night-ink)}
.foot .fb p{font-size:15px;line-height:23px;margin-top:12px;max-width:280px}
.foot h4{margin:0 0 8px;color:var(--night-ink);font-size:15px;font-weight:600}
.foot li a{display:flex;align-items:center;min-height:44px;font-size:15px;line-height:20px}
.foot li a:hover,.seller a:hover{color:var(--night-ink)}
.seller{max-width:1280px;margin:36px auto 0;padding-top:20px;border-top:1px solid var(--night-rule);font-size:13px;line-height:20px;display:flex;gap:8px 24px;flex-wrap:wrap;align-items:center}
.seller a{min-height:44px;display:inline-flex;align-items:center;color:var(--night-link)}
/* T642: the footer's switcher — first in the bottom row, its list opening upwards (the picture T641, block 1184); the colours of
   the dark footer: the night rule, ink and secondary; the list on the dark theme's surface and pale (color.neutral.dark.surface,
   color.neutral.dark.pale) in both themes, as the footer itself is dark in both */
.seller .lsw-b .pill{height:34px;background:transparent;border-color:var(--night-rule);color:var(--night-ink);font-size:13px}
.seller .lsw-b .chev{stroke:var(--night-sec)}
.seller .lsw-l{top:auto;bottom:calc(100% + 4px);right:auto;left:0;background:var(--night-surface);border-color:var(--night-rule);box-shadow:none}
.seller .lsw-l a{display:flex;color:var(--night-ink)}
.seller .lsw-l a[aria-current]{background:var(--night-pale)}
.seller .lsw-l .ok{stroke:var(--night-link)}

/* ---------- Окна: меню, поддержка, вход, заглушки страниц ---------- */
.dlg{position:fixed;inset:0;z-index:80;background:rgba(8,18,30,.5);display:flex;align-items:center;justify-content:center;padding:24px}
.dlg[hidden]{display:none}
.dlg-in{width:min(480px,100%);max-height:calc(100vh - 48px);overflow:auto;background:var(--surface);color:var(--ink);border-radius:24px;padding:20px 24px 28px;box-shadow:0 30px 80px rgba(19,56,93,.25)}
.dh{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}
.dh h2{font-size:24px;line-height:30px;font-weight:600}
.dh h2:focus{outline:none}
/* T252 r4 (W, docs/reviews/t252-kw-cause.md): the title of a window and its «×» stay at the top of the window while its list
   scrolls — a long «Содержание» in a low window, the menu at 844 × 390 (a difference in look from the accepted mockup T247, where
   the title scrolls away: for the owner's acceptance). The title takes the 20 px of the window's padding into itself and is
   pinned over it with the surface's background, so at rest the window is drawn as before (its 8 px below: 4 of padding under the
   background and 4 of margin, which still collapses with the 4 px top margin of the menu's list, as the 8 px margin did). The
   stops below it keep clear of it by their own scroll-margin (title 20 + 44 + 4 px, + 12) — not by a scroll-padding of the
   window: a focus on «×» inside such a padding would scroll the list, K's mechanism on the page */
.dlg .dh{position:sticky;top:-20px;z-index:1;margin:-20px 0 4px;padding:20px 0 4px;background:var(--surface)}
.dlg .dh ~ :is(a,button),.dlg .dh ~ * :is(a,button){scroll-margin:80px 0 16px}
.dn{color:var(--secondary);font-size:15px;line-height:22px;margin-bottom:16px}
.mnav{display:flex;flex-direction:column;margin:4px 0 20px}
.mnav a,.mtheme{display:flex;align-items:center;gap:10px;min-height:52px;font-size:18px;font-weight:600;border-bottom:1px solid var(--hair);text-align:left}
.mtheme svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8}
.mtheme .to-l,:root[data-theme="dark"] .mtheme .to-d{display:none}
:root[data-theme="dark"] .mtheme .to-l{display:inline}
.frm{display:flex;flex-direction:column;gap:14px}
.frm label{display:flex;flex-direction:column;gap:6px;font-size:15px;font-weight:600}
.frm input[type="text"],.frm input[type="email"],.frm select,.frm textarea{font:inherit;font-weight:400;font-size:16px;color:var(--ink);background:var(--surface);border:1px solid var(--field);border-radius:var(--r-field);min-height:48px;padding:10px 14px}
.frm .cb{flex-direction:row;align-items:center;gap:6px;min-height:48px;font-weight:400;font-size:14px;line-height:20px}
/* флажок: видимый квадрат 24 px, цель нажатия 44 × 44 (DESIGN §8) — сам input, рамка рисуется ::before */
.frm .cb input{appearance:none;-webkit-appearance:none;position:relative;flex:none;width:44px;height:44px;margin:0 0 0 -10px;border-radius:12px;cursor:pointer;background:none}
.frm .cb input::before{content:"";position:absolute;inset:10px;border:2px solid var(--secondary);border-radius:6px;background:var(--surface)}
.frm .cb input:checked::before{border-color:var(--blue);background:var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat}
.frm .btn{align-self:flex-start}
:root.dlg-open{overflow:hidden}

/* ---------- Телефон 375 и узкие (до 899 px) ---------- */
@media (max-width:899px){
  .h1{font-size:36px;line-height:40px;letter-spacing:-.025em}
  .lead{font-size:16px;line-height:24px;margin-top:12px}
  .act{margin-top:20px}
  .act .btn{width:100%;max-width:420px}
  .h2{font-size:28px;line-height:32px;letter-spacing:-.018em}
  .sc .d{font-size:16px;line-height:24px;margin-top:10px}
  .sc .note{font-size:14px;line-height:20px;margin-top:8px}
  .story-d .sc[data-sc="2"] .note{display:none}   /* на телефоне кнопки «Исправить» и «Отменить запись» видны в самой карточке — строка повторяла бы их (план §2.2 п. 12) */
  .sc .ex{margin-top:10px;font-size:12.5px}
  .story-d .phone{--z:1.27}
  .prog{left:auto;right:var(--gut);bottom:16px}
  .prog i{width:16px}
  .hint{display:none}
  .fc{padding:14px 16px}
  .fc .v{font-size:26px;line-height:32px}
  .sec{padding:80px var(--gut) 0}
  .panel{padding:36px 22px 32px}
  .sec h2{font-size:32px;line-height:36px}
  .sec .lead{font-size:16px;line-height:24px}
  .life{margin-top:28px}
  .life-in{grid-template-columns:1fr;gap:28px}
  .flows{display:none}
  .sits{display:grid;grid-template-columns:1fr 1fr;gap:14px 10px}
  .sit{gap:10px;min-height:48px}
  .sit b{font-size:15px;line-height:20px}
  .sit small{font-size:13px;line-height:17px}
  .tile{width:42px;height:42px}
  .month{padding:20px 18px 12px}
  .month .v{font-size:34px;line-height:40px}
  .trust{grid-template-columns:1fr;gap:32px;margin-top:32px}
  .receipt{padding:18px 16px 6px}
  .facts li{font-size:16px;line-height:24px}
  .faq{grid-template-columns:1fr;gap:20px}
  .fq summary{font-size:17px;line-height:23px;min-height:60px}
  .fq details p{padding:0 8px 18px 4px;font-size:16px;line-height:25px}
  .plans{grid-template-columns:1fr;gap:16px;margin-top:28px}
  .pc{padding:24px 18px 18px}
  .pc.main{padding-top:28px}
  .pc h3{font-size:20px;line-height:26px}
  .pc-st .w{font-size:16px;line-height:22px}
  .pc-st .h{font-size:14px;line-height:20px}
  .pc-st .sum{font-size:26px;line-height:32px}
  .pc-c{font-size:15px;line-height:22px;margin-bottom:20px}
  .pc-b{padding:12px 18px}
  .pc-d{font-size:14px;line-height:21px}
  .fine{margin-top:20px;font-size:13px;line-height:20px}
  .pr-links{flex-direction:column;margin-top:8px}
  .fin{grid-template-columns:1fr;gap:8px}
  .fin-art{width:112px;height:112px;order:-1;margin:0 0 12px}
  .tasks{grid-template-columns:1fr;gap:18px;margin-top:24px}
  .tasks b{font-size:17px;line-height:23px}
  .tasks small{font-size:14px;line-height:21px}
  .fin-t .btn{width:100%;max-width:420px;margin-top:24px}
  .foot{margin-top:80px;padding:48px var(--gut) 32px}
  .foot .in{grid-template-columns:1fr 1fr;gap:24px 16px}
  .foot .in > .fb{grid-column:1/-1}
  .dlg{align-items:flex-end;padding:0}
  .dlg-in{width:100%;border-radius:24px 24px 0 0;max-height:92vh}
}
@media (max-width:479px){ .foot .in{grid-template-columns:1fr} }
@media (max-width:359px){ .sits{grid-template-columns:1fr} }
@media (prefers-reduced-motion:reduce){ .fq summary::after,.btn::after,.month li .hl,.fl .fb{transition:none} }

/* ==========================================================================================================================
   Code only (T251) — what the mockup does not have and the code must keep (criterion 3): the footer's buttons and bottom-row
   notes (T94, T146), the support and status windows (T27, T48), the legal pages (T45, T66). Only the tokens above; no new
   token on :root (DESIGN.md §14 — an undescribed token on the code's page is drift).
   ========================================================================================================================== */

/* A price or a term from app.offer (T147) is the build's <span class="offer-value">: no box of its own, so in a flex line
   (the price buttons, the question about the first days) it stays inside the sentence with its spaces, as the mockup's
   plain text. */
.offer-value{display:contents}

/* Footer: the support and status buttons look and act like its links (44 px, T94); the focus ring on the dark footer is the
   night link colour — the light theme's --focus #0A4FB0 is 2.39 : 1 on --night #0B1622 (measured; WCAG 1.4.11 needs
   3 : 1); the draft note,
   the seller line and the card marks (T146) stand in the bottom row. */
.foot{--focus:var(--night-link)}
.foot li button{display:flex;align-items:center;min-height:44px;font-size:15px;line-height:20px;text-align:left;color:inherit}
.foot li button:hover{color:var(--night-ink)}
.seller p{margin:0}
.footer-marks{display:flex;flex-wrap:wrap;gap:8px}
.footer-marks img{display:block;width:56px;height:36px;padding:6px 8px;border-radius:6px;background:#FFFFFF;object-fit:contain}

/* The support and status windows: the native <dialog> of support.js (T27) in the look of the mockup's windows (.dlg-in, .frm) */
.sdlg{width:min(480px,calc(100% - 48px));max-height:calc(100vh - 48px);overflow:auto;margin:auto;border:0;background:var(--surface);color:var(--ink);border-radius:24px;padding:20px 24px 28px;box-shadow:0 30px 80px rgba(19,56,93,.25)}
.sdlg::backdrop{background:rgba(8,18,30,.5)}
.sdlg .frm .btn{margin-top:4px}
.frm .cb span{flex:1}
.frm-docs{display:flex;flex-wrap:wrap;align-items:center;gap:0 8px;font-size:14px;line-height:20px;color:var(--secondary)}
.frm-docs .link{font-weight:400}
.field-error{font-size:14px;line-height:20px;color:var(--warn-ink);margin-top:-8px}
.support-trap{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}
.support-status{font-size:15px;line-height:22px;padding:12px 14px;border-radius:12px;background:var(--pale);color:var(--ink)}
.support-status.is-error{background:var(--warn-bg);color:var(--warn-ink)}
.closed-cases,.closed-stored{display:grid;gap:8px}
.closed-stored .note{font-size:14px;line-height:20px;color:var(--secondary)}
.closed-stored-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.closed-stored-row code{font-size:14px;line-height:20px;overflow-wrap:anywhere}
.closed-stored-row .text-button{min-height:44px;color:var(--blue);font-weight:600;text-decoration:underline;text-underline-offset:3px}
.closed-cases li{padding:10px 14px;border:1px solid var(--rule);border-radius:12px;font-size:15px;line-height:22px}
@media (max-width:899px){ .sdlg{width:100%;max-width:100%;margin:auto 0 0;border-radius:24px 24px 0 0;max-height:92vh} }

/* ==========================================================================================================================
   T252 — «Тарифы», the documents and «Отменить продление»: the part of the accepted mockup T247 that the home does not have
   (docs/design/landing-v2/pricing/site.css after «конец копии», head 55a7f199, block 613), carried over with these changes:
   the document is .legal-doc and its note .legal-banner (the names the checks of T45, T66 read; the mockup's .legal, .banner);
   the mockup's --ink2, --muted, --surface2 are not on :root here — DESIGN.md §14 does not describe them (an undescribed token on
   a code page is drift; DESIGN.md: «в код главной они не переносятся»): their places take --ink, --secondary, --pale (a
   difference from the mockup, named in the handback); «Содержание» of a phone is a window of site.js (.dlg) with the same look;
   the anchors of a document stop below the bar of a phone by the targets' scroll-margin over the page's padding of the header
   only — the offset counted once (T252 r4, K: T251 r1 № 3 forbade a scroll-margin on top of a padding that held the bar too).
   The header and the footer are the home's (one copy in index.html, the build puts it into these pages).
   ========================================================================================================================== */
/* The top of a page: a soft background of the home's bloom tokens (--bloom-*), radial gradients without filter: blur [П T247] */
.top{position:relative;padding:calc(var(--hdr) + 56px) var(--gut) 0;isolation:isolate}
.top::before{content:"";position:absolute;inset:0 0 auto 0;height:720px;z-index:-1;pointer-events:none;
  background:radial-gradient(48vw 34vw at 4% 0%,var(--bloom-a),transparent 70%),radial-gradient(42vw 30vw at 96% 6%,var(--bloom-b),transparent 70%),radial-gradient(40vw 24vw at 50% 100%,var(--bloom-c),transparent 70%);opacity:.55}
/* the footer over the background of the top: on a short page («Отменить продление») the bloom ran onto the footer */
.foot{position:relative;z-index:1}
.wrap{max-width:1280px;margin:0 auto}
.ph1{font-weight:600;font-size:clamp(44px,4.4vw,64px);line-height:1.06;letter-spacing:-.028em;text-wrap:balance}
.top .lead{margin:16px 0 0}
.nav a[aria-current="page"]{color:var(--ink);font-weight:600}

/* «Тарифы»: the cards of the home's price section (.plans, .pc), one height, the buttons on one line; under them «Условия
   оплаты»: the subscription without the trial (p. 3.2, block 259: not a third card), pp. 3.4 and 3.8 — the rules word for word */
.tariffs .plans{margin-top:40px}
.pc h2{font-weight:600;font-size:22px;line-height:28px;letter-spacing:-.01em}
.terms{display:grid;grid-template-columns:minmax(0,300px) minmax(0,1fr);gap:40px 56px;align-items:start}
.terms h2{font-weight:600;font-size:40px;line-height:46px;letter-spacing:-.022em}
.terms dl{display:flex;flex-direction:column}
.terms .row{display:grid;grid-template-columns:minmax(0,220px) minmax(0,1fr);gap:8px 32px;padding:20px 0;border-top:1px solid var(--rule)}
.terms .row:last-child{border-bottom:1px solid var(--rule)}
.terms dt{font-weight:600;font-size:17px;line-height:24px}
.terms dd{font-size:17px;line-height:27px;color:var(--ink);max-width:680px}
.terms .pr-links{margin-top:20px}
.sec.tight{padding-top:40px}

/* The documents: one template for the eight */
.doc{display:grid;grid-template-columns:minmax(0,272px) minmax(0,1fr);gap:48px;align-items:start;max-width:1280px;margin:0 auto}
.side{position:sticky;top:calc(var(--hdr) + 24px);max-height:calc(100vh - var(--hdr) - 48px);overflow:auto;padding:4px 4px 24px 0;scrollbar-width:thin}
.side-h{font-size:13px;line-height:18px;font-weight:600;color:var(--secondary);margin:0 0 6px 12px}
.side nav + .side-h,.dlg .toc + .side-h{margin-top:24px}
.side a,.dlg .toc a,.dside a{display:flex;align-items:center;min-height:44px;padding:8px 12px;border-radius:12px;font-size:15px;line-height:20px;color:var(--ink)}
.dlg .toc,.dside nav{display:flex;flex-direction:column}
.side a:hover{background:var(--pale);color:var(--ink)}
.dside a[aria-current],.side a[aria-current],.dlg .toc a[aria-current]{background:var(--pale);color:var(--ink);font-weight:600;box-shadow:inset 3px 0 0 var(--blue)}
.side .toc a{display:flex;min-height:44px;font-size:14px;line-height:19px;color:var(--secondary)}
.side .toc a[aria-current]{color:var(--ink)}
.sheet{max-width:820px;min-width:0}
.legal-banner{display:flex;gap:12px;align-items:flex-start;margin:0 0 28px;padding:14px 18px;border-radius:var(--r-field);background:var(--warn-bg);color:var(--warn-ink);font-size:15px;line-height:22px}
.legal-banner .gl{font-size:20px;margin-top:1px;color:var(--warn-ink)}
.legal-doc{font-size:17px;line-height:28px;color:var(--ink);overflow-wrap:break-word;min-width:0}
.legal-doc h1{font-weight:600;font-size:clamp(34px,3.4vw,48px);line-height:1.1;letter-spacing:-.024em;color:var(--ink);text-wrap:balance;margin-bottom:18px}
.legal-doc h2{font-weight:600;font-size:24px;line-height:30px;letter-spacing:-.012em;color:var(--ink);margin:44px 0 14px;padding-top:28px;border-top:1px solid var(--rule)}
.legal-doc h3,.legal-doc h4{font-weight:600;font-size:18px;line-height:26px;color:var(--ink);margin:24px 0 8px}
.legal-doc p{margin:0 0 14px;max-width:72ch}
.legal-doc ul,.legal-doc ol{margin:0 0 14px;padding-left:22px;max-width:72ch}
.legal-doc ul{list-style:disc}
.legal-doc ol{list-style:decimal}
.legal-doc li{margin:6px 0}
.legal-doc li::marker{color:var(--secondary)}
.legal-doc strong{font-weight:600;color:var(--ink)}
.legal-doc code{font-size:.92em;overflow-wrap:anywhere}
.legal-doc blockquote{margin:0 0 14px;padding:4px 0 4px 16px;border-left:3px solid var(--rule)}
.legal-doc hr{border:0;border-top:1px solid var(--rule);margin:28px 0}
.legal-doc a{color:var(--blue);text-decoration:underline;text-underline-offset:3px}
.legal-table{overflow-x:auto;margin:0 0 18px;border:1px solid var(--rule);border-radius:var(--r-field)}
.legal-table table{border-collapse:collapse;width:100%;font-size:15px;line-height:22px}
.legal-table th,.legal-table td{text-align:left;vertical-align:top;padding:10px 12px;border-bottom:1px solid var(--hair)}
.legal-table th{font-weight:600;color:var(--ink);background:var(--pale)}
.legal-table tr:last-child td{border-bottom:0}
.legal-lawyer{background:none;color:var(--ink);font-weight:600}
/* a placeholder — the owner gives its value at publication (docs/legal/README.md, «Подстановки»); seen as it is */
.legal-doc .sub{overflow-wrap:anywhere;padding:0 4px;border-radius:6px;background:var(--pale);color:var(--action-ink);font-size:.94em}
/* T611 (block 1067 p. 5; the picture T600, block 1101): in place of a PSP value not chosen yet — the phrase in the same mark, word
   by word: each word a mark of its own with the space after it inside, so the marks join into one strip and the phrase wraps
   only between words; the edges rounded at the first and the last word (build.mjs pendingMark) */
.legal-doc .sub-pending{color:var(--action-ink);font-size:.94em}
.legal-doc .sub-pending .w{background:var(--pale);overflow-wrap:normal}
.legal-doc .sub-pending .w:first-child{padding-left:4px;border-radius:6px 0 0 6px}
.legal-doc .sub-pending .w:last-child{padding-right:4px;border-radius:0 6px 6px 0}
.mbar{display:none}
/* the end of a document page: site.js reads the section being read again when the end of the page comes into the window
   (an observer, no scroll handler — T94); one pixel row inside the footer's last one, no room of its own */
.end-sentinel{display:block;height:1px;margin-top:-1px;pointer-events:none}

/* The list of the documents (the mockup T247 «#», block 613; legal/index.html): the eight in the order of the footer, two
   columns, one on a phone — the mockup's .docs-ix (docs/design/landing-v2/pricing/site.css), the same tokens */
.docs-ix{list-style:none;padding:0;margin:32px 0 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 24px;max-width:960px}
.docs-ix a{display:flex;align-items:center;gap:14px;min-height:64px;padding:12px 16px;border-radius:var(--r-card);background:var(--surface);border:1px solid var(--card-border);font-weight:600;font-size:17px;line-height:23px}
.docs-ix a:hover{border-color:var(--blue)}
.docs-ix .gl{flex:none;font-size:24px;color:var(--blue)}

/* «Отменить продление» from the footer: on the left the rule and the login, on the right where the link is in a letter (a scheme
   without new words) */
.cxe{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,400px);gap:56px;align-items:center;max-width:1120px}
.cxe .act{display:flex;flex-wrap:wrap;justify-content:flex-start;gap:12px 24px;align-items:center;margin-top:28px}
.cxe .pr-links{margin-top:8px}
.after{margin-top:20px;font-size:16px;line-height:24px;color:var(--ink)}
.mail{margin:0;background:var(--surface);border:1px solid var(--card-border);border-radius:var(--r-main);box-shadow:var(--shadow-pop);padding:24px 26px 22px;display:flex;flex-direction:column;gap:10px}
.mail .m-top{display:flex;align-items:center;gap:12px;padding-bottom:12px;border-bottom:1px solid var(--hair)}
.mail .m-top .gl{font-size:26px;color:var(--blue)}
.mail i{display:block;height:10px;border-radius:5px;background:var(--track)}
.mail .m-top i{flex:1;max-width:160px}
.mail .m-l.s{width:62%}
/* the place of the cancel link in the scheme of a letter — a label, not a link (T247 r1 № 7): no link colour, no underline */
.mail .m-link{align-self:flex-start;margin-top:6px;padding:4px 10px;border-radius:8px;border:1px dashed var(--field);color:var(--ink);font-weight:600;font-size:15px;line-height:22px;cursor:default}

@media (max-width:1279px){ .terms{grid-template-columns:minmax(0,1fr);gap:20px} }
@media (max-width:1099px){
  .terms .row{grid-template-columns:minmax(0,1fr);gap:4px}
  .doc{grid-template-columns:minmax(0,1fr);gap:0}
  .side{display:none}
  .mbar{display:flex;position:sticky;top:var(--hdr);z-index:20;margin:0 calc(-1 * var(--gut)) 20px;padding:8px var(--gut);gap:12px;align-items:center;background:var(--hdr-bg);backdrop-filter:saturate(1.4) blur(14px);-webkit-backdrop-filter:saturate(1.4) blur(14px);border-bottom:1px solid var(--hdr-line)}
  .mbar .where{flex:1;min-width:0;font-size:14px;line-height:19px;color:var(--secondary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .mbar .btn{flex:none;gap:8px}
  .mbar .btn .gl{font-size:18px}
  /* T252 r4 (K, docs/reviews/t252-kw-cause.md) — the offset is counted once. The page's own scroll-padding is the header only:
     the bar with «Содержание» lies below it, so a focus on the bar's button (Tab, Shift+Tab) never scrolls the page. The bar —
     8 + 44 + 8 px and its line, + 16 — is the scroll-margin of the targets: a section from «Содержание» or the address, a link
     or any stop of the text (WCAG 2.4.11) — the way of the accepted mockup T247 (docs/design/landing-v2/pricing/site.css:255,
     :336) without a padding of the bar under it. check.mjs 10e measures both in every window of the case list. */
  :root.doc-page{scroll-padding-top:var(--hdr)}
  .legal-doc :is(h2[id],a,[tabindex]){scroll-margin-top:76px}
}
@media (max-width:899px){
  .top{padding:calc(var(--hdr) + 28px) var(--gut) 0}
  .ph1{font-size:36px;line-height:40px;letter-spacing:-.025em}
  .top::before{height:520px;background:radial-gradient(90vw 70vw at 0% 0%,var(--bloom-a),transparent 70%),radial-gradient(80vw 60vw at 100% 10%,var(--bloom-b),transparent 70%)}
  .tariffs .plans{margin-top:24px}
  .pc h2{font-size:20px;line-height:26px}
  .terms{grid-template-columns:1fr;gap:16px}
  .terms h2{font-size:28px;line-height:32px}
  .terms .row{grid-template-columns:1fr;gap:4px;padding:16px 0}
  .terms dt{font-size:16px;line-height:22px}
  .terms dd{font-size:16px;line-height:25px}
  .sec.tight{padding-top:24px}
  .legal-doc{font-size:16px;line-height:26px}
  /* N2 (owner block 649): the title of a document a little smaller on a phone, so that its longest word fits the column whole
     and is not broken inside (ru «конфиденциальности» — 9.9–10 em of this face; 34 px broke it at 376 px and below). 8.25vw: the
     word takes about 83 % of the window; the column is the window less its gutters (2 × 20 px; 2 × 16 px below 360) and, in a
     window of a computer zoomed to that width, a classic scrollbar of 15 px (8.5vw broke the word there at 320 px). 34 px of the
     mockup from 413 px up, from 900 px the clamp above. Not hyphenated (block 649). check.mjs 10e «N2» measures every title. */
  .legal-doc h1{font-size:clamp(26px,8.25vw,34px)}
  .legal-doc h2{font-size:20px;line-height:26px;margin-top:32px;padding-top:22px}
  .docs-ix{grid-template-columns:1fr}
  .cxe{grid-template-columns:1fr;gap:32px}
  .cxe .mail{display:none}
  .cxe .act .btn{width:100%}
}

/* The header (T94, kept for the code): solid where the blur is missing or less transparency or more contrast is asked — the
   header and the bar of a document; in print it scrolls away with the page. */
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){ .hdr,.mbar{background:var(--page)} }
@media (prefers-reduced-transparency:reduce),(prefers-contrast:more){ .hdr,.mbar{background:var(--page)} }
/* A document in a window lower than 500 px (a phone on its side, 200 % zoom): the header scrolls away with the page — with the
   bar of the section it took about a third of the window (T94; T252 r1 № 6, WCAG 1.4.10, 2.4.11) — and the bar of the section
   with «Содержание» stays pinned at the top of the window at any height (requirement 8.12 of the accepted mockup T247,
   docs/design/landing-v2/legal/README.md §1: the contents open without going back to the top; T252 r2 № 1; the lead's decision
   docs/reviews/t252-r3-analysis.md, «Смена подхода» p. 3). The header stays at the top of the page (absolute: the top of the
   page already leaves its room); an anchor stops below the bar (the 76 px of the targets' scroll-margin above, the page's own
   padding 0) or, on a computer, at the top of the window. The home, «Тарифы», «Отменить продление» and the list of the documents keep the fixed header of the accepted mockups:
   56–72 px, under a sixth of a window 390–450 px high (check.mjs 10e measures the pinned part in each low window). */
@media (max-height:500px){
  :root.doc-page .hdr{position:absolute}
  :root.doc-page .side{top:16px;max-height:calc(100vh - 32px)}
}
@media (max-height:500px) and (max-width:1099px){
  :root.doc-page .mbar{top:0}
  :root.doc-page{scroll-padding-top:0}
}
@media (max-height:500px) and (min-width:1100px){
  :root.doc-page{scroll-padding-top:16px}
}
@media print{ .hdr{position:static} }
