/* ===========================================================================
   Schedule by Reform — help page styles (RU + EN)
   1. Font            Montserrat variable, self-hosted (subset: Latin + Cyrillic)
   2. Tokens          Reform design system: colors, typography, layout
   3. Base
   4. Page            one class per block, same values as the Claude Design mockup
   5. Screenshot markers (section 03), per language
   6. Responsive
   7. Privacy policy pages
   =========================================================================== */

/* 1. Font ------------------------------------------------------------------ */
@font-face {
  font-family: "Montserrat";
  src: url("montserrat.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* 2. Tokens ---------------------------------------------------------------- */
/* ===========================================================================
   Reform — Color tokens
   ---------------------------------------------------------------------------
   Values taken from the Reform Figma ("Сайт Reform") color styles:
     #606DED  ultraviolet / cornflower  — PRIMARY brand accent (CTAs, active
                                          cards, dividers)
     #CCF75E  neon lime                 — attention highlight (active dept,
                                          critical markers) — on dark surfaces
     #12112C  midnight ink              — primary dark surface (status blocks)
     #2B2742  graphite-violet           — card/plaque surface on the ink bg
     #D1D5FF  pale lavender             — soft surfaces, secondary text on dark
     #5A566D  marengo (grey-violet)     — service: numbers, arrows, dividers

   Token KEYS are kept stable; intermediate steps derived in OKLCH to keep the
   ramps harmonious around the Figma anchors.
   =========================================================================== */

:root {
  /* --- Brand ultraviolet (anchor #606DED) ------------------------------ */
  --purple-50:  #eff0fe;
  --purple-100: #e0e2fc;
  --purple-200: #c5c9f8;
  --purple-300: #a3a9f3;
  --purple-400: #8189f0;
  --purple-500: #606ded;   /* BASE — brand accent (Figma) */
  --purple-600: #4a54d8;
  --purple-700: #3a43b0;
  --purple-800: #30388a;
  --purple-900: #282e69;

  /* --- Neon lime (anchor #CCF75E) — attention accent ------------------- */
  --lime-50:  #f6fde4;
  --lime-100: #ecfbc6;
  --lime-200: #ddf996;
  --lime-300: #d6f87d;
  --lime-400: #d1f86d;
  --lime-500: #ccf75e;   /* BASE — neon lime (Figma) */
  --lime-600: #b2e23f;
  --lime-700: #8aac2f;   /* readable lime on light surfaces */

  /* --- Ink / graphite-violet (dark surfaces) --------------------------- */
  --graphite-950: #0b0a1a;
  --graphite-900: #12112c;  /* primary dark surface (Figma) */
  --graphite-800: #2b2742;  /* card / plaque on ink (Figma) */
  --graphite-700: #393455;
  --graphite-600: #494466;
  --graphite-500: #5a566d;  /* marengo — service grey-violet (Figma) */

  /* --- Lavender (soft surfaces / muted text on dark) ------------------- */
  --lavender-100: #e8eaff;
  --lavender-200: #d1d5ff;  /* BASE (Figma) */
  --lavender-300: #b3b8f0;

  /* --- Neutrals (cool, faint violet tint) ------------------------------ */
  --white:    #ffffff;
  --grey-50:  #f6f6fb;
  --grey-100: #ececf4;
  --grey-200: #dedee9;
  --grey-300: #c4c4d6;
  --grey-400: #9a99b2;
  --grey-500: #6c6a82;
  --grey-600: #4e4c60;
  --grey-700: #393748;
  --grey-800: #262433;
  --grey-900: #15131f;

  /* --- Companion cornflower (tags / linear icons) --------------------- */
  --blue-50:  #eaedfe;
  --blue-100: #d7ddfc;
  --blue-200: #b6c0f8;
  --blue-400: #6d7cf0;
  --blue-500: #4f63ec;
  --blue-600: #3a4dd0;
  --blue-700: #2d3ca6;

  /* --- Semantic: success (growth deltas) ------------------------------ */
  /* ⚠️ Not explicit in the Figma palette — derived to harmonise. */
  --green-50:  #e8f7ee;
  --green-100: #cdeed9;
  --green-500: #1f9d57;
  --green-600: #178047;

  /* --- Semantic: danger ------------------------------------------------*/
  --red-50:   #fdecec;
  --red-500:  #e0464b;
  --red-600:  #c2363b;

  /* --- Semantic: warning ----------------------------------------------- */
  --amber-50:  #fdf3e4;
  --amber-500: #e3a03a;
  --amber-600: #c5832a;

  /* =====================================================================
     SEMANTIC ALIASES  — reference these in components, not raw scales
     ===================================================================== */

  /* Brand */
  --brand:            var(--purple-500);
  --brand-hover:      var(--purple-600);
  --brand-press:      var(--purple-700);
  --brand-subtle:     var(--purple-50);
  --brand-on:         var(--white);

  /* Lime attention accent */
  --accent-lime:        var(--lime-500);
  --accent-lime-strong: var(--lime-600);
  --accent-lime-ink:    var(--lime-700);   /* lime text on light */
  --on-lime:            var(--graphite-900);

  /* Surfaces */
  --surface-page:       var(--grey-50);
  --surface-card:       var(--white);
  --surface-sunken:     var(--grey-100);
  --surface-inverse:    var(--graphite-900);   /* #12112C */
  --surface-inverse-2:  var(--graphite-800);   /* #2B2742 */
  --surface-brand:      var(--purple-500);
  --surface-lavender:   var(--lavender-200);

  /* Text */
  --text-strong:    var(--graphite-900);
  --text-body:      var(--grey-700);
  --text-muted:     var(--grey-500);
  --text-faint:     var(--grey-400);
  --text-on-dark:   var(--white);
  --text-on-dark-muted: #c4c8ee;          /* pale lavender per Figma */
  --text-on-brand:  var(--white);
  --text-link:      var(--blue-600);

  /* Borders */
  --border-subtle:  var(--grey-200);
  --border-default: var(--grey-300);
  --border-strong:  var(--grey-400);
  --border-on-dark: rgba(209, 213, 255, 0.14);   /* lavender hairline on ink */
  --border-brand:   var(--purple-500);

  /* Tags / categories */
  --tag-bg:       var(--blue-50);
  --tag-fg:       var(--blue-600);
  --tag-bg-dark:  rgba(99, 110, 237, 0.20);
  --tag-fg-dark:  var(--lavender-200);
  --tag-lime-bg:  var(--lime-500);
  --tag-lime-fg:  var(--graphite-900);

  /* Icon (linear, circular) */
  --icon-accent:  var(--purple-500);
  --icon-ring:    var(--purple-100);

  /* Feedback */
  --success:  var(--green-500);
  --success-bg: var(--green-50);
  --danger:   var(--red-500);
  --danger-bg: var(--red-50);
  --warning:  var(--amber-500);
  --warning-bg: var(--amber-50);

  /* Focus */
  --focus-ring: rgba(96, 109, 237, 0.45);
}

/* ===========================================================================
   Reform — Typography tokens
   ---------------------------------------------------------------------------
   One family does all the work: Montserrat, a geometric grotesque.
     • Headings  — heavy (700/800), tight tracking, confident & massive.
     • Body      — 400/500, comfortable measure, generous air.
     • Eyebrows / logo / tags — UPPERCASE with wide tracking (the REFORM
       wordmark lives at ~0.22em).
   =========================================================================== */

:root {
  /* Families */
  --font-sans: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: var(--font-sans);

  /* Weights */
  --weight-regular:  400;
  --weight-medium:   500;
  --weight-semibold: 600;
  --weight-bold:     700;
  --weight-extrabold:800;

  /* Type scale (px) — marketing-grade, large & confident */
  --text-2xs:  11px;
  --text-xs:   12px;
  --text-sm:   14px;
  --text-base: 16px;
  --text-lg:   18px;
  --text-xl:   20px;
  --text-2xl:  24px;
  --text-3xl:  30px;
  --text-4xl:  38px;
  --text-5xl:  48px;
  --text-6xl:  60px;
  --text-7xl:  76px;
  --text-8xl:  92px;

  /* Line heights */
  --leading-none:    1;
  --leading-tight:   1.08;
  --leading-snug:    1.2;
  --leading-normal:  1.5;
  --leading-relaxed: 1.65;

  /* Letter spacing (tracking) */
  --tracking-tighter: -0.03em;
  --tracking-tight:   -0.015em;
  --tracking-normal:  0;
  --tracking-wide:    0.04em;
  --tracking-wider:   0.12em;
  --tracking-eyebrow: 0.18em;   /* eyebrows / categories */
  --tracking-logo:    0.24em;   /* REFORM wordmark */

  /* --- Semantic roles -------------------------------------------------- */
  /* Figma: hero = Montserrat Bold (700); section headings = SemiBold (600);
     body/labels = Medium (500); fine print = Regular (400). */
  --font-display-size:   var(--text-7xl);
  --font-display-weight: var(--weight-bold);
  --font-display-leading:var(--leading-tight);
  --font-display-track:  var(--tracking-tighter);

  --font-h1-size:   var(--text-5xl);
  --font-h1-weight: var(--weight-bold);
  --font-h2-size:   var(--text-4xl);
  --font-h2-weight: var(--weight-semibold);
  --font-h3-size:   var(--text-2xl);
  --font-h3-weight: var(--weight-semibold);
  --font-body-size: var(--text-base);
  --font-body-weight: var(--weight-medium);
  --font-body-leading: var(--leading-relaxed);
}

/* ===========================================================================
   Reform — Spacing, radii, shadows, motion
   ---------------------------------------------------------------------------
   The brand is built on a "kanban / process-block" card system: rounded
   containers, soft elevation, lots of air. Geometry is consistent and calm.
   =========================================================================== */

:root {
  /* --- Spacing scale (4px base) ---------------------------------------- */
  --space-0:   0;
  --space-1:   4px;
  --space-2:   8px;
  --space-3:   12px;
  --space-4:   16px;
  --space-5:   20px;
  --space-6:   24px;
  --space-8:   32px;
  --space-10:  40px;
  --space-12:  48px;
  --space-16:  64px;
  --space-20:  80px;
  --space-24:  96px;
  --space-32:  128px;

  /* Section rhythm */
  --section-pad-y:  var(--space-24);
  --container-max:  1200px;
  --container-pad:  var(--space-6);

  /* --- Radii ----------------------------------------------------------- */
  --radius-xs:   6px;
  --radius-sm:   10px;
  --radius-md:   14px;   /* default card / input */
  --radius-lg:   20px;
  --radius-xl:   28px;   /* large feature cards */
  --radius-2xl:  36px;
  --radius-pill: 999px;

  /* --- Shadows / elevation --------------------------------------------- */
  /* Reform uses a soft purple-tinted shadow (Figma: rgba(125,117,178,…)). */
  --shadow-xs:  0 1px 2px rgba(125, 117, 178, 0.08);
  --shadow-sm:  0 2px 8px rgba(125, 117, 178, 0.10), 0 1px 2px rgba(125, 117, 178, 0.06);
  --shadow-md:  0 10px 28px rgba(125, 117, 178, 0.14), 0 2px 6px rgba(125, 117, 178, 0.08);
  --shadow-lg:  0 20px 44px rgba(125, 117, 178, 0.18), 0 6px 14px rgba(125, 117, 178, 0.10);
  --shadow-xl:  0 32px 72px rgba(125, 117, 178, 0.22), 0 10px 24px rgba(125, 117, 178, 0.12);

  /* Purple glow for primary CTAs / brand surfaces on dark */
  --shadow-brand: 0 12px 28px rgba(96, 109, 237, 0.32);

  /* Ring used on dark graphite surfaces */
  --shadow-on-dark: 0 20px 50px rgba(0, 0, 0, 0.45);

  /* --- Motion ---------------------------------------------------------- */
  --ease-out:   cubic-bezier(0.22, 1, 0.36, 1);   /* @kind other */
  --ease-in-out:cubic-bezier(0.65, 0, 0.35, 1);   /* @kind other */
  --dur-fast:   120ms;   /* @kind other */
  --dur-base:   200ms;   /* @kind other */
  --dur-slow:   360ms;   /* @kind other */

  /* --- Z-index --------------------------------------------------------- */
  --z-base:     1;      /* @kind other */
  --z-sticky:   100;    /* @kind other */
  --z-overlay:  1000;   /* @kind other */
  --z-modal:    1100;   /* @kind other */
  --z-toast:    1200;   /* @kind other */
}

/* 3. Base ------------------------------------------------------------------ */
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; font-family: 'Montserrat', system-ui, sans-serif; color: var(--text-body); -webkit-font-smoothing: antialiased; }
/* :where() keeps these at zero specificity so block classes win, as inline styles did */
:where(a) { color: var(--text-link); text-decoration: none; }
:where(a):hover { color: var(--brand-hover); text-decoration: underline; }
:where(a, summary):focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
summary::-webkit-details-marker { display: none; }
picture { display: block; }
.icon { flex: none; }

/* 4. Page ------------------------------------------------------------------ */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,0.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-subtle); }
.header-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.logo { display: block; height: 32px; width: auto; }
.logo-link { display: block; flex: none; border-radius: 6px; }
.header-divider { width: 1px; height: 22px; background: var(--border-subtle); }
.header-title { font-size: 14px; font-weight: 600; color: var(--text-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.header-actions { display: flex; align-items: center; gap: 16px; }
.header-link { font-size: 14px; font-weight: 600; }
.lang-switch { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--border-subtle); border-radius: 10px; background: #fff; }
.lang-current { padding: 5px 10px; border-radius: 7px; font-size: 13px; font-weight: 700; background: var(--brand-subtle); color: var(--brand); }
.lang-link { padding: 5px 10px; border-radius: 7px; font-size: 13px; font-weight: 600; color: var(--text-muted); text-decoration: none; }
.lang-link:hover { color: var(--text-strong); text-decoration: none; }
.intro { background: var(--grey-50); border-bottom: 1px solid var(--border-subtle); }
.intro-inner { max-width: 1200px; margin: 0 auto; padding: 56px 24px 64px; }
.hero { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.hero-text { flex: 1 1 380px; min-width: 0; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brand); }
.h1 { font-size: 44px; line-height: 1.1; font-weight: 800; letter-spacing: -0.03em; color: var(--text-strong); margin: 14px 0 12px; text-wrap: balance; }
.lead { font-size: 20px; line-height: 1.4; font-weight: 600; color: var(--text-strong); margin-bottom: 16px; text-wrap: pretty; }
.hero-desc { font-size: 17px; line-height: 1.6; margin: 0; max-width: 560px; text-wrap: pretty; }
.btn-primary { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; height: 52px; padding: 0 26px; border-radius: 10px; background: var(--brand); color: #fff; font-size: 16px; font-weight: 700; text-decoration: none; box-shadow: 0 8px 24px rgba(96,109,237,0.3); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.hero-actions .btn-primary { margin-top: 0; }
.btn-secondary { display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 22px; border-radius: 10px; border: 1px solid var(--border-subtle); background: var(--surface, transparent); color: var(--text-strong); font-size: 16px; font-weight: 700; text-decoration: none; }
.btn-secondary:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.btn-primary:hover { background: var(--brand-hover); color: #fff; text-decoration: none; }
.hero-figure { flex: 1 1 460px; min-width: 0; margin: 0; }
.hero-shot { display: block; width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--border-subtle); box-shadow: 0 16px 40px rgba(125,117,178,0.18); }
.intro-h2-first { font-size: 26px; line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; color: var(--text-strong); margin: 64px 0 18px; }
.grid-240 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.why-card { margin: 0; padding: 18px 20px; background: #fff; border-radius: 16px; border: 1px solid var(--border-subtle); font-size: 15px; line-height: 1.55; }
.intro-h2 { font-size: 26px; line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; color: var(--text-strong); margin: 56px 0 18px; }
.grid-300 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.feature { background: #fff; border-radius: 20px; padding: 22px; box-shadow: 0 4px 16px rgba(125,117,178,0.08); }
.feature-icon { width: 44px; height: 44px; border-radius: 22px; background: var(--brand-subtle); color: var(--brand); display: flex; align-items: center; justify-content: center; }
.feature-title { font-size: 16px; font-weight: 700; color: var(--text-strong); margin: 14px 0 6px; }
.feature-text { font-size: 14px; line-height: 1.55; margin: 0; }
.step { background: #fff; border: 1px solid var(--border-subtle); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.step-num { width: 36px; height: 36px; border-radius: 18px; background: var(--brand); color: #fff; font-size: 15px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.step-text { font-size: 15px; line-height: 1.55; margin: 0; color: var(--text-strong); }
.step-dark { background: var(--surface-inverse); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.step-num-lime { width: 36px; height: 36px; border-radius: 18px; background: var(--accent-lime); color: var(--on-lime); font-size: 15px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.step-text-dark { font-size: 15px; line-height: 1.55; margin: 0; color: #fff; }
.audience { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: baseline; }
.audience-label { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); }
.audience-text { font-size: 16px; line-height: 1.55; color: var(--text-strong); text-wrap: pretty; }
.layout { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.toc { flex: 1 1 220px; max-width: 100%; position: static; top: 88px; padding-top: 40px; max-height: calc(100vh - 100px); overflow-y: auto; }
.toc-box { background: var(--grey-50); border-radius: 16px; padding: 16px 12px; }
.toc-summary { list-style: none; cursor: pointer; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); padding: 0 10px 10px; }
.toc-nav { display: flex; flex-direction: column; gap: 2px; }
.toc-link { display: flex; gap: 10px; padding: 7px 10px; border-radius: 10px; font-size: 14px; line-height: 1.35; text-decoration: none; color: var(--text-body); background: transparent; font-weight: 500; }
.toc-num { color: var(--text-faint); font-variant-numeric: tabular-nums; min-width: 18px; }
.content { flex: 999 1 560px; min-width: 0; max-width: 780px; padding: 40px 0 96px; }
.section-first { scroll-margin-top: 80px; }
.sec-num { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; color: var(--graphite-500); }
.h2 { font-size: 30px; line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; color: var(--text-strong); margin: 8px 0 18px; }
.text { font-size: 16px; line-height: 1.65; margin: 0; text-wrap: pretty; }
.strong { color: var(--text-strong); }
.section { scroll-margin-top: 80px; padding-top: 56px; margin-top: 56px; border-top: 1px solid var(--border-subtle); }
.h3-first { font-size: 18px; font-weight: 700; color: var(--text-strong); margin: 28px 0 12px; }
.list { font-size: 16px; line-height: 1.65; margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.h3 { font-size: 18px; font-weight: 700; color: var(--text-strong); margin: 36px 0 12px; }
.text-mb16 { font-size: 16px; line-height: 1.65; margin: 0 0 16px; text-wrap: pretty; }
.disclosure { border: 1px solid var(--border-subtle); border-radius: 16px; padding: 0; background: #fff; }
.disclosure-summary { list-style: none; cursor: pointer; padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 16px; font-weight: 700; color: var(--text-strong); }
.disclosure-hint { font-size: 13px; font-weight: 600; color: var(--brand); }
.disclosure-body { padding: 0 22px 22px; }
.note { margin-top: 24px; background: var(--brand-subtle); border-radius: 16px; padding: 20px 24px; }
.note-label { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--purple-700); margin-bottom: 10px; }
.note-list-body { font-size: 15px; line-height: 1.6; margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; color: var(--text-body); }
.fig { margin: 0; }
.annotated { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--border-subtle); box-shadow: 0 8px 24px rgba(125,117,178,0.14); }
.annotated-img { display: block; width: 100%; height: auto; }
.marker { position: absolute; transform: translate(-50%, -50%); width: 24px; height: 24px; border-radius: 12px; background: var(--brand); color: #fff; border: 2px solid #fff; box-shadow: 0 2px 8px rgba(18,17,44,0.3); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.caption-lg { font-size: 13px; color: var(--text-muted); margin-top: 10px; }
.legend-list { font-size: 16px; line-height: 1.65; margin: 20px 0 0; padding-left: 26px; display: flex; flex-direction: column; gap: 8px; }
.day-types { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.day-work { display: flex; align-items: center; padding: 8px 14px; border-radius: 10px; font-size: 14px; font-weight: 600; background: var(--purple-50); border: 1px solid var(--purple-100); color: var(--text-strong); }
.day-off { display: flex; align-items: center; padding: 8px 14px; border-radius: 10px; font-size: 14px; font-weight: 600; background: repeating-linear-gradient(135deg, #fff 0 6px, var(--grey-100) 6px 7px); border: 1px solid var(--grey-200); color: var(--text-muted); }
.day-vacation { display: flex; align-items: center; padding: 8px 14px; border-radius: 10px; font-size: 14px; font-weight: 600; background: var(--green-50); border: 1px solid var(--green-100); color: var(--green-600); }
.day-sick { display: flex; align-items: center; padding: 8px 14px; border-radius: 10px; font-size: 14px; font-weight: 600; background: var(--amber-50); border: 1px solid #f3d7a6; color: var(--amber-600); }
.day-empty { display: flex; align-items: center; padding: 8px 14px; border-radius: 10px; font-size: 14px; font-weight: 600; border: 1px dashed var(--grey-300); color: var(--text-muted); }
.fig-cell { margin: 20px 0 0; max-width: 260px; }
.shot { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--border-subtle); }
.caption { font-size: 13px; color: var(--text-muted); margin-top: 8px; }
.split { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.status-text { flex: 1 1 300px; min-width: 0; }
.text-mb14 { font-size: 16px; line-height: 1.65; margin: 0 0 14px; text-wrap: pretty; }
.status-legend { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.legend-row { display: flex; align-items: center; gap: 10px; }
.dot-green { width: 10px; height: 10px; border-radius: 5px; background: var(--green-500); }
.dot-amber { width: 10px; height: 10px; border-radius: 5px; background: var(--amber-500); }
.dot-grey { width: 10px; height: 10px; border-radius: 5px; background: var(--grey-400); }
.fig-status { margin: 0; flex: 0 1 240px; }
.fig-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.note-list { font-size: 15px; line-height: 1.6; margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.fig-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 20px; }
.split-text { flex: 1 1 260px; font-size: 16px; line-height: 1.65; margin: 0; text-wrap: pretty; }
.fig-split { margin: 0; flex: 1 1 340px; }
.text-mb12-plain { font-size: 16px; line-height: 1.65; margin: 0 0 12px; }
.sublist { padding-left: 20px; margin: 6px 0 0; display: flex; flex-direction: column; gap: 4px; }
.text-mb12 { font-size: 16px; line-height: 1.65; margin: 0 0 12px; text-wrap: pretty; }
.sheet-wrap { margin-top: 16px; overflow-x: auto; border: 1px solid var(--border-subtle); border-radius: 12px; }
.sheet { border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; min-width: 560px; width: 100%; }
.thead-row { background: var(--grey-50); }
.sheet-corner { padding: 8px 12px; border-right: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); color: var(--text-faint); }
.sheet-date { padding: 8px 12px; border-right: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); font-weight: 700; color: var(--text-strong); }
.sheet-date-last { padding: 8px 12px; border-bottom: 1px solid var(--border-subtle); font-weight: 700; color: var(--text-strong); }
.sheet-name { padding: 8px 12px; border-right: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); font-weight: 600; color: var(--text-strong); }
.sheet-td-bb { padding: 8px 12px; border-bottom: 1px solid var(--border-subtle); }
.sheet-td-br-bb { padding: 8px 12px; border-right: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.sheet-name-last { padding: 8px 12px; border-right: 1px solid var(--border-subtle); font-weight: 600; color: var(--text-strong); }
.sheet-td { padding: 8px 12px; }
.sheet-td-br { padding: 8px 12px; border-right: 1px solid var(--border-subtle); }
.fig-spaced { margin: 20px 0 0; }
.text-mb16-plain { font-size: 16px; line-height: 1.65; margin: 0 0 16px; }
.text-mb20 { font-size: 16px; line-height: 1.65; margin: 0 0 20px; text-wrap: pretty; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border-subtle); border-radius: 16px; }
.rules-table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 15px; line-height: 1.55; }
.rules-th-key { text-align: left; padding: 12px 18px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); font-weight: 700; width: 36%; }
.rules-th { text-align: left; padding: 12px 18px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); font-weight: 700; }
.rules-td-key { padding: 14px 18px; border-top: 1px solid var(--border-subtle); font-weight: 700; color: var(--text-strong); vertical-align: top; }
.rules-td { padding: 14px 18px; border-top: 1px solid var(--border-subtle); }
.text-note { font-size: 15px; line-height: 1.6; margin: 16px 0 0; color: var(--text-muted); text-wrap: pretty; }
.text-mt16 { font-size: 16px; line-height: 1.65; margin: 16px 0 0; text-wrap: pretty; }
.h2-mb24 { font-size: 30px; line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; color: var(--text-strong); margin: 8px 0 24px; }
.flow { background: var(--grey-50); border-radius: 20px; padding: 28px 24px; }
.flow-node-key { max-width: 460px; margin: 0 auto; background: #fff; border: 2px solid var(--brand); border-radius: 14px; padding: 14px 18px; display: flex; gap: 12px; align-items: baseline; }
.flow-num { font-size: 13px; font-weight: 700; color: var(--brand); }
.flow-node-text { font-size: 15px; line-height: 1.5; color: var(--text-strong); }
.connector { position: relative; height: 28px; }
.conn-top-c { position: absolute; left: 50%; top: 0; width: 2px; height: 14px; background: var(--grey-300); }
.conn-h-2 { position: absolute; left: 25%; right: 25%; top: 14px; height: 2px; background: var(--grey-300); }
.conn-bottom-25 { position: absolute; left: 25%; top: 14px; width: 2px; height: 14px; background: var(--grey-300); }
.conn-bottom-75 { position: absolute; left: 75%; top: 14px; width: 2px; height: 14px; background: var(--grey-300); }
.flow-branches-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.branch { background: #fff; border: 1px solid var(--border-subtle); border-radius: 14px; padding: 14px; }
.pill-grey { display: inline-block; padding: 3px 10px; border-radius: 30px; background: var(--grey-100); color: var(--grey-600); font-size: 12px; font-weight: 700; }
.branch-text { font-size: 14px; line-height: 1.5; margin: 10px 0 0; }
.pill-green { display: inline-block; padding: 3px 10px; border-radius: 30px; background: var(--green-50); color: var(--green-600); font-size: 12px; font-weight: 700; }
.flow-hint { font-size: 13px; line-height: 1.5; color: var(--text-muted); text-align: center; margin: 10px 0 0; }
.conn-top-25 { position: absolute; left: 25%; top: 0; width: 2px; height: 14px; background: var(--grey-300); }
.conn-h-merge { position: absolute; left: 25%; right: 50%; top: 14px; height: 2px; background: var(--grey-300); }
.conn-bottom-c { position: absolute; left: 50%; top: 14px; width: 2px; height: 14px; background: var(--grey-300); }
.flow-node { max-width: 460px; margin: 0 auto; background: #fff; border: 1px solid var(--border-subtle); border-radius: 14px; padding: 14px 18px; display: flex; gap: 12px; align-items: baseline; }
.flow-node-strong { font-size: 15px; line-height: 1.5; color: var(--text-strong); font-weight: 600; }
.flow-line { width: 2px; height: 24px; background: var(--grey-300); margin: 0 auto; }
.conn-h-3 { position: absolute; left: 16.66%; right: 16.66%; top: 14px; height: 2px; background: var(--grey-300); }
.conn-bottom-17 { position: absolute; left: 16.66%; top: 14px; width: 2px; height: 14px; background: var(--grey-300); }
.conn-bottom-83 { position: absolute; left: 83.33%; top: 14px; width: 2px; height: 14px; background: var(--grey-300); }
.flow-branches-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pill-amber { display: inline-block; padding: 3px 10px; border-radius: 30px; background: var(--amber-50); color: var(--amber-600); font-size: 12px; font-weight: 700; }
.conn-top-17 { position: absolute; left: 16.66%; top: 0; width: 2px; height: 14px; background: var(--grey-300); }
.conn-top-83 { position: absolute; left: 83.33%; top: 0; width: 2px; height: 14px; background: var(--grey-300); }
.flow-node-final { max-width: 460px; margin: 0 auto; background: var(--surface-inverse); border-radius: 14px; padding: 14px 18px; display: flex; gap: 12px; align-items: baseline; }
.flow-num-lime { font-size: 13px; font-weight: 700; color: var(--accent-lime); }
.flow-node-text-final { font-size: 15px; line-height: 1.5; color: #fff; font-weight: 600; }
.h3-mb14 { font-size: 18px; font-weight: 700; color: var(--text-strong); margin: 36px 0 14px; }
.example { border: 1px solid var(--border-subtle); border-radius: 16px; padding: 18px 20px; }
.example-time { font-size: 13px; font-weight: 700; color: var(--brand); margin-bottom: 8px; }
.example-text { font-size: 15px; line-height: 1.55; margin: 0; }
.example-wide { border: 1px solid var(--border-subtle); border-radius: 16px; padding: 18px 20px; grid-column: 1 / -1; }
.sec-head { display: flex; align-items: center; gap: 12px; }
.badge-dark { padding: 4px 12px; border-radius: 30px; background: var(--surface-inverse); color: var(--lavender-200); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.code-inline { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; background: var(--grey-100); padding: 2px 6px; border-radius: 6px; color: var(--text-strong); }
.code-block { margin: 0; background: var(--surface-inverse); color: var(--lavender-200); border-radius: 14px; padding: 16px 20px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; line-height: 1.6; overflow-x: auto; }
.list-mt16 { font-size: 16px; line-height: 1.65; margin: 16px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.grid-260 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.param { background: var(--grey-50); border-radius: 16px; padding: 18px 20px; }
.param-name { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; font-weight: 700; color: var(--brand); }
.param-text { font-size: 15px; line-height: 1.55; margin: 8px 0 0; }
.code-plain13 { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.api-table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 14px; line-height: 1.55; }
.api-th-key { text-align: left; padding: 12px 16px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); font-weight: 700; width: 26%; }
.api-th { text-align: left; padding: 12px 16px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); font-weight: 700; }
.api-td { padding: 14px 16px; border-top: 1px solid var(--border-subtle); vertical-align: top; }
.code-endpoint { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; color: var(--brand); }
.code-sm { font-family: ui-monospace, Menlo, monospace; font-size: 13px; }
.code-block-loose { margin: 0; background: var(--surface-inverse); color: var(--lavender-200); border-radius: 14px; padding: 16px 20px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; line-height: 1.7; overflow-x: auto; }
.code-accent { color: var(--accent-lime); }
.recipe-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 14px; }
.recipe-card { border: 1px solid var(--border-subtle); border-radius: 14px; padding: 14px 18px; font-size: 15px; line-height: 1.5; }
.recipe-code { font-family: ui-monospace, Menlo, monospace; font-size: 14px; font-weight: 700; color: var(--text-strong); }
.text-mb14-plain { font-size: 16px; line-height: 1.65; margin: 0 0 14px; }
.note-mt20 { margin-top: 20px; background: var(--brand-subtle); border-radius: 16px; padding: 20px 24px; }
.note-text { font-size: 15px; line-height: 1.6; margin: 0; }
.h2-mb20 { font-size: 30px; line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; color: var(--text-strong); margin: 8px 0 20px; }
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--border-subtle); }
.faq-item { border-bottom: 1px solid var(--border-subtle); }
.faq-q { list-style: none; cursor: pointer; padding: 18px 0; font-size: 16px; font-weight: 700; color: var(--text-strong); }
.faq-a-pretty { font-size: 15px; line-height: 1.65; margin: 0 0 18px; text-wrap: pretty; }
.faq-a { font-size: 15px; line-height: 1.65; margin: 0 0 18px; }
.support-card { background: var(--surface-inverse); border-radius: 24px; padding: 32px; color: var(--text-on-dark-muted); }
.support-label { font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--lavender-200); }
.support-site { display: inline-block; margin-top: 10px; font-size: 28px; font-weight: 700; letter-spacing: -0.02em; color: #fff; }
.support-actions { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-telegram { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 22px; border-radius: 10px; background: var(--brand); color: #fff; font-size: 15px; font-weight: 700; text-decoration: none; }
.btn-telegram:hover { background: var(--brand-hover); color: #fff; text-decoration: none; }
.support-hint { font-size: 15px; line-height: 1.6; margin: 20px 0 0; max-width: 560px; text-wrap: pretty; }
.site-footer { border-top: 1px solid var(--border-subtle); padding: 24px; text-align: center; font-size: 13px; color: var(--text-muted); }
.fig-narrow { margin: 0; max-width: 480px; }

/* 5. Screenshot markers (section 03): positions in % of the image, differ per language */
html[lang="ru"] .marker-1 { left: 1.6%; top: 2.6%; }
html[lang="ru"] .marker-2 { left: 23.6%; top: 2.6%; }
html[lang="ru"] .marker-3 { left: 40.6%; top: 2.6%; }
html[lang="ru"] .marker-4 { left: 74%; top: 2.6%; }
html[lang="ru"] .marker-5 { left: 89.6%; top: 2.6%; }
html[lang="ru"] .marker-6 { left: 43%; top: 12%; }
html[lang="ru"] .marker-7 { left: 17%; top: 29.5%; }
html[lang="ru"] .marker-8 { left: 29%; top: 21%; }
html[lang="ru"] .marker-9 { left: 62%; top: 34%; }
html[lang="ru"] .marker-10 { left: 83%; top: 28%; }
html[lang="en"] .marker-1 { left: 1.3%; top: 4.8%; }
html[lang="en"] .marker-2 { left: 22.1%; top: 4.8%; }
html[lang="en"] .marker-3 { left: 37.4%; top: 4.8%; }
html[lang="en"] .marker-4 { left: 76.7%; top: 4.8%; }
html[lang="en"] .marker-5 { left: 89.4%; top: 4.8%; }
html[lang="en"] .marker-6 { left: 52.4%; top: 12%; }
html[lang="en"] .marker-7 { left: 15%; top: 25.9%; }
html[lang="en"] .marker-8 { left: 26%; top: 26.6%; }
html[lang="en"] .marker-9 { left: 62%; top: 34%; }
html[lang="en"] .marker-10 { left: 85%; top: 24.5%; }

/* Active item in the table of contents (set by app.js) */
.toc-link.is-active { color: var(--brand); background: #fff; font-weight: 600; }

/* Links inside running text are underlined so they don't rely on color alone (accessibility) */
.text a, .note-list a, .site-footer a { text-decoration: underline; }

/* Header cells of the spreadsheet example keep the look of regular cells */
.sheet th { text-align: left; }

/* 6. Responsive ------------------------------------------------------------ */

/* Table of contents: sticky sidebar on wide screens, collapsible block on top otherwise */
@media (min-width: 900px) {
  .toc { position: sticky; max-width: 260px; }
}

@media (max-width: 599px) {
  .header-inner { padding: 0 16px; gap: 12px; }
  .logo { height: 26px; }
  .header-divider, .header-title { display: none; }
  .intro-inner { padding: 40px 16px 48px; }
  .layout { padding: 0 16px; gap: 32px; }
  .toc { padding-top: 24px; }
  .content { padding-top: 24px; }
  .h1 { font-size: 34px; }
  .lead { font-size: 18px; }
  .hero-desc { font-size: 16px; }
  .intro-h2, .intro-h2-first { font-size: 22px; }
  .intro-h2-first { margin-top: 48px; }
  .intro-h2 { margin-top: 44px; }
  .h2, .h2-mb20, .h2-mb24 { font-size: 26px; }
  .section { padding-top: 44px; margin-top: 44px; }
  .support-card { padding: 24px; }
  .support-site { font-size: 24px; }

  /* Decision diagram (section 08): branches stack, connectors become one vertical line */
  .flow { padding: 20px 14px; }
  .flow-branches-2, .flow-branches-3 { grid-template-columns: minmax(0, 1fr); }
  .connector > div { display: none; }
  .connector::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--grey-300); }
}

@media (max-width: 419px) {
  .header-link { display: none; }
}

/* 7. Privacy policy pages (ru/privacy, en/privacy) ------------------------- */
.legal { background: var(--grey-50); color: var(--text-body); font-size: 15px; line-height: 1.65; }
.legal-inner { max-width: 820px; margin: 0 auto; padding: 48px 16px 64px; }
.legal-card { background: #fff; border: 1px solid var(--border-subtle); border-radius: 16px; padding: 36px 40px; }
.legal-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand); margin: 0 0 10px; }
.legal-h1 { font-size: 32px; line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; color: var(--text-strong); margin: 0 0 8px; }
.legal h2 { font-size: 19px; line-height: 1.3; font-weight: 700; color: var(--text-strong); margin: 32px 0 8px; }
.legal p, .legal li { margin: 0 0 10px; }
.legal ul { padding-left: 20px; margin: 0 0 10px; }
.legal b { color: var(--text-strong); }
.legal a { color: var(--text-link); text-decoration: underline; }
.legal-muted { color: var(--text-muted); font-size: 13.5px; }
.legal-table { border-collapse: collapse; width: 100%; font-size: 14px; margin: 6px 0 10px; }
.legal-table th, .legal-table td { padding: 6px 0; border-bottom: 1px solid var(--border-subtle); vertical-align: top; text-align: left; font-weight: 400; }
.legal-table th { color: var(--text-muted); width: 40%; padding-right: 12px; }
@media (max-width: 599px) {
  .legal-card { padding: 24px 20px; }
  .legal-h1 { font-size: 24px; overflow-wrap: anywhere; }
}
/* The link back to the help stays visible on phones (the only navigation on this page) */
@media (max-width: 419px) {
  .header-link.header-link-always { display: inline; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
.header-link { white-space: nowrap; }
@media (max-width: 419px) {
  .site-header .logo { width: 124px; height: auto; }
  .header-link.header-link-always { font-size: 13px; }
}
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.crumbs span { color: var(--text-muted, #8d89a6); }
