@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800;900&family=Open+Sans:wght@400;600;700&display=swap');
/*tp496r:start*/
/* tp496 reset: the site theme (Eduma, BetterDocs) styles bare tags; inside the article the page must look as in Claude Design.
   Prepended to app.css, so the bundle's own rules of equal weight still win; inline styles always win. */
.figma-make-app-wrapper .figma-make-app-root :is(p,h1,h2,h3,h4,h5,h6,ul,ol,dl,dd,blockquote,figure,hr,menu,pre,fieldset,legend,table,caption,td,th,tr,button,input,select,textarea){margin:revert;padding:revert}
.figma-make-app-wrapper .figma-make-app-root :is(button,input,select,textarea,optgroup){color:revert;font:revert;letter-spacing:revert;text-transform:revert;border:revert;border-radius:revert;background:revert;box-shadow:revert;overflow:revert;appearance:revert;cursor:revert;transition:revert;outline:revert;min-height:revert;height:revert;width:revert}
.figma-make-app-wrapper .figma-make-app-root :is(h1,h2,h3,h4,h5,h6){line-height:revert;color:revert;font-family:revert;font-size:revert;font-weight:revert;text-transform:revert;letter-spacing:revert}
.figma-make-app-wrapper .figma-make-app-root :is(b,strong){font-weight:revert}
.figma-make-app-wrapper .figma-make-app-root figure{max-width:revert}
.figma-make-app-wrapper .figma-make-app-root :is(table,td,th,tr){border:revert;width:revert;text-align:revert;font-weight:revert;background:revert;vertical-align:revert}
.figma-make-app-wrapper .figma-make-app-root a{color:revert;text-decoration:revert;transition:revert}
.figma-make-app-wrapper .figma-make-app-root :is(ul,ol,li){list-style:revert}
.figma-make-app-wrapper .figma-make-app-root img{max-width:revert;height:revert}
/*tp496r:end*/
.figma-make-app-wrapper{isolation:isolate}
/* tokens/fonts.css */
/* TPM Article Design System — Webfonts
 * Montserrat (headings) + Open Sans (body), loaded from Google Fonts — the
 * exact families the live article repos use (src/index.css). Montserrat
 * weights 400-800; Open Sans 400-700. */


/* tokens/colors.css */
/* TPM Article Design System — Palette
 * Exactly SEVEN semantic colour pairs (draw.io / Miro sticky scheme).
 * Light = fill, dark = border / icon / accent / heading-in-block.
 * The HEX values are the source of truth. HSL mirrors are derived from them.
 * Icons are ALWAYS coloured, never grayscale. One semantic hue per category —
 * colour encodes meaning, never decoration. NO inline hex in components other
 * than these exact values. */

.figma-make-app-wrapper .figma-make-app-root {
  /* ---- Solid (border / heading / icon / accent) ---- */
  --p-gray: #666666;
  --p-blue: #6c8ebf;
  --p-green: #82b366;
  --p-red: #b85450;
  --p-yellow: #d79b00;
  --p-purple: #9673a6;
  --p-darkblue: #23445d;

  /* ---- Light (fill / tinted container background) ---- */
  --p-gray-light: #f5f5f5;
  --p-blue-light: #ddeaff;
  --p-green-light: #d5e8d4;
  --p-red-light: #f8cecc;
  --p-yellow-light: #fff2cc;
  --p-purple-light: #e1d5e7;
  --p-darkblue-light: #bac8d3;

  /* ---- HSL mirrors (for shadcn-style hsl(var(--x)) consumers) ---- */
  --palette-gray: 0 0% 40%;
  --palette-gray-light: 0 0% 96%;
  --palette-blue: 210 33% 59%;
  --palette-blue-light: 217 100% 93%;
  --palette-green: 100 33% 55%;
  --palette-green-light: 100 38% 87%;
  --palette-red: 0 38% 52%;
  --palette-red-light: 0 65% 89%;
  --palette-yellow: 40 100% 42%;
  --palette-yellow-light: 45 100% 90%;
  --palette-purple: 273 22% 55%;
  --palette-purple-light: 273 30% 87%;
  --palette-darkblue: 207 44% 25%;
  --palette-darkblue-light: 207 22% 77%;

  /* ---- Semantic aliases ---- */
  --background: #ffffff;       /* page + card surface */
  --foreground: #334155;       /* body text (slate-700-ish) */
  --heading: var(--p-darkblue);/* all headings & titles */
  --border-default: var(--p-gray); /* default 2px border colour */
  --muted-foreground: #666666;
  --accent: var(--p-blue);     /* primary concept / interactive */
}

/* tokens/typography.css */
/* TPM Article Design System — Typography
 * Headings: Montserrat (font-heading). Titles font-extrabold, p-darkblue,
 *   with a single accent <u> underline on ONE key word.
 * Body: Open Sans (font-body / font-sans), 16px / leading-relaxed. */

.figma-make-app-wrapper .figma-make-app-root {
  --font-heading: 'Montserrat', system-ui, sans-serif;
  --font-body: 'Open Sans', system-ui, sans-serif;

  /* Type scale (px) — editorial long-form */
  --text-h1: 36px;   /* article title  (text-4xl, extrabold) */
  --text-h2: 24px;   /* section title  (text-2xl, bold) */
  --text-h3: 18px;   /* diagram / block title (text-lg, bold) */
  --text-h4: 16px;   /* card title (text-base, bold) */
  --text-body: 16px; /* body copy (text-base) */
  --text-sm: 14px;   /* secondary / card body / captions */
  --text-xs: 12px;   /* diagram labels */

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

  /* Line heights */
  --leading-tight: 1.2;
  --leading-relaxed: 1.65;
}

/* tokens/spacing.css */
/* TPM Article Design System — Layout, spacing, surfaces (HARD rules)
 * Single centred column, fixed 893px. Flat design: NO shadows, NO decorative
 * gradients. 2px borders. Outer containers rounded-2xl, inner blocks rounded-xl.
 * NO internal scroll anywhere. */

.figma-make-app-wrapper .figma-make-app-root {
  /* Container */
  --article-max-width: 893px;   /* HARD — never 4xl, never 1400px */
  --article-padding-x: 16px;    /* px-4 */
  --article-padding-y: 40px;    /* py-10 */
  --section-gap: 32px;          /* gap-8 between sections */
  --block-gap: 16px;            /* gap-4 within a section */

  /* Spacing scale (Tailwind-aligned, px) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;

  /* Borders & radii */
  --border-width: 2px;          /* HARD — all borders 2px */
  --radius-outer: 16px;         /* rounded-2xl — outer containers */
  --radius-inner: 12px;         /* rounded-xl — inner blocks */
  --radius-sm: 8px;             /* rounded-lg — icon squares, chips */

  /* Flat — no shadow tokens by design. The only sanctioned depth is a subtle
   * lift on a floating/overlay element inside a diagram (see DESIGN_SYSTEM §3.4). */
  --lens-shadow: 0 8px 24px rgba(35, 68, 93, 0.12);
}

/* Article shell helper — single centred column, natural page scroll only. */
.figma-make-app-wrapper .figma-make-app-root .tpm-article {
  width: 100%;
  max-width: var(--article-max-width);
  margin-inline: auto;
  padding-inline: var(--article-padding-x);
  padding-block: var(--article-padding-y);
  display: flex;
  flex-direction: column;
  gap: var(--section-gap);
  font-family: var(--font-body);
  color: var(--foreground);
}

/* tokens/base.css */
/* TPM Article Design System — base element defaults.
 * Minimal resets so specimen cards and components paint correctly. */

.figma-make-app-wrapper .figma-make-app-root * {
  box-sizing: border-box;
}

.figma-make-app-wrapper .figma-make-app-root .body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-relaxed);
  -webkit-font-smoothing: antialiased;
}

.figma-make-app-wrapper .figma-make-app-root h1, .figma-make-app-wrapper .figma-make-app-root h2, .figma-make-app-wrapper .figma-make-app-root h3, .figma-make-app-wrapper .figma-make-app-root h4, .figma-make-app-wrapper .figma-make-app-root h5, .figma-make-app-wrapper .figma-make-app-root h6 {
  font-family: var(--font-heading);
  color: var(--heading);
  margin: 0;
}

.figma-make-app-wrapper .figma-make-app-root p {
  margin: 0;
}

/* Article titles carry a single accent underline on one key word. */
.figma-make-app-wrapper .figma-make-app-root h1 u, .figma-make-app-wrapper .figma-make-app-root h2 u {
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

.figma-make-app-wrapper .figma-make-app-root a {
  color: var(--accent);
}

/* ---- article <style> block ---- */

  @keyframes accReveal { from{opacity:0;transform:translateY(-8px)} to{opacity:1;transform:none} }
  @keyframes fadeUp16 { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:none} }
  @keyframes cardUp24 { from{opacity:0;transform:translateY(24px)} to{opacity:1;transform:none} }
  @keyframes chipPop { from{opacity:0;transform:scale(.8)} to{opacity:1;transform:scale(1)} }
  @keyframes popIn90Up { from{opacity:0;transform:translateY(16px) scale(.9)} to{opacity:1;transform:none} }
  @keyframes tailPopUp { from{opacity:0;transform:translateY(20px) scale(.95)} to{opacity:1;transform:none} }
  @keyframes drawStroke { from{stroke-dashoffset:var(--sd,40)} to{stroke-dashoffset:0} }
  @keyframes pulse181 { 0%, 100%{box-shadow:0 0 0 0 rgba(184,84,80,0)} 50%{box-shadow:0 0 0 5px rgba(184,84,80,.16)} }
  @keyframes stripSlideIn { from{opacity:0;transform:translateX(-20px)} to{opacity:1;transform:translateX(0)} }
  @keyframes gatePop { from{opacity:0;transform:rotate(-15deg) scale(.85)} to{opacity:1;transform:rotate(0deg) scale(1)} }
  .figma-make-app-wrapper .figma-make-app-root h2 u{ text-decoration-color:#D79B00; text-decoration-thickness:.12em; text-underline-offset:.15em; text-decoration-skip-ink:none }
  .figma-make-app-wrapper .figma-make-app-root a{ color:var(--p-blue); text-decoration:underline; text-underline-offset:2px }
  .figma-make-app-wrapper .figma-make-app-root a:hover{ color:var(--p-darkblue) }
  .figma-make-app-wrapper .figma-make-app-root [data-tailcard]:hover{transform:translateY(-4px)}
  @media (prefers-reduced-motion: reduce){ .figma-make-app-wrapper .figma-make-app-root *{animation:none !important;transition:none !important} }
  /* ===== Адаптив-канон: два брейкпоинта — ≤1023 (планшет), ≤599 (телефон); десктоп ≥1024 не меняется ===== */
  @media (max-width: 1023px){
    .figma-make-app-wrapper .figma-make-app-root [data-screen-label]{max-width:100%}
    .figma-make-app-wrapper .figma-make-app-root figure img{max-width:100%;height:auto}
    .figma-make-app-wrapper .figma-make-app-root [data-strip]{overflow-x:auto;-webkit-overflow-scrolling:touch}
    .figma-make-app-wrapper .figma-make-app-root [data-strip] > div{flex-shrink:0 !important}
    .figma-make-app-wrapper .figma-make-app-root [data-watermark]{display:none !important}
  }
  @media (max-width: 599px){
    /* Полоса фаз — на телефоне убираем плашку «Вы здесь…» (FB-01 (f), K49) */
    .figma-make-app-wrapper .figma-make-app-root [data-m="herefor"]{display:none !important}
    .figma-make-app-wrapper .figma-make-app-root .here-chip{display:none !important}
    /* Карточки-термины / раскрытая строка аккордеона: ряд → колонка, иконка по центру сверху */
    .figma-make-app-wrapper .figma-make-app-root [style*="gap: 18px"][style*="align-items: flex-start"]{flex-direction:column !important;align-items:stretch !important}
    .figma-make-app-wrapper .figma-make-app-root [style*="width: 84px"][style*="height: 84px"]{margin-left:auto !important;margin-right:auto !important}
    .figma-make-app-wrapper .figma-make-app-root [data-termcard]{flex-direction:column !important;align-items:stretch !important}
    .figma-make-app-wrapper .figma-make-app-root [data-termcard] > [style*="width: 96px"]{margin-left:auto !important;margin-right:auto !important}
    /* Callout'ы с левой цветной полосой: левый padding 5px, полоса остаётся */
    .figma-make-app-wrapper .figma-make-app-root [style*="border-left: 4px solid"][style*="border-radius: 0px 12px 12px 0px"]{padding-left:5px !important}
    /* Изобр.18.0 — полоса пути сохраняет натуральную десктопную ширину и прокручивается внутри рамки */
    .figma-make-app-wrapper .figma-make-app-root [data-strip]{flex-wrap:nowrap !important;justify-content:flex-start !important}
    .figma-make-app-wrapper .figma-make-app-root [data-strip] > div:nth-child(even){flex-basis:auto !important;min-width:60px !important}
    .figma-make-app-wrapper .figma-make-app-root [data-m="scrollhint"]{display:block !important;font-size:11px;color:#8a97a8;text-align:center;padding:6px 0 0}
  }

/* ===== s117/s121 mobile laws (hooks present on this page only) ===== */
@media (max-width: 599px){
  .figma-make-app-wrapper .figma-make-app-root .figma-make-app-wrapper .figma-make-app-root div:has(> [data-m96]){flex-direction:column !important;align-items:stretch !important}
  .figma-make-app-wrapper .figma-make-app-root .figma-make-app-wrapper .figma-make-app-root [data-m96]{margin:auto !important}
  .figma-make-app-wrapper .figma-make-app-root .figma-make-app-wrapper .figma-make-app-root [data-macc]{flex-direction:column !important}
  .figma-make-app-wrapper .figma-make-app-root .figma-make-app-wrapper .figma-make-app-root [data-macc] > [data-m84]{margin:auto !important}
  .figma-make-app-wrapper .figma-make-app-root .figma-make-app-wrapper .figma-make-app-root [data-mcal]{padding-left:5px !important}
}
/*tp496:start*/
.figma-make-app-wrapper .figma-make-app-root{--tp-d0:1028px}
/* TPM transport layer s496 — site column fit (rules: BUILD_RULES_s496_ru.md) */
/* figures lay out at the design width from the first frame (before their own scripts measure); the scale comes from JS */
@media (min-width:760px){
.figma-make-app-wrapper .figma-make-app-root{container-type:inline-size;overflow-x:clip}
@container (max-width:1020px){
.figma-make-app-wrapper .figma-make-app-root figure:not(figure figure):not([class*="quote"]){width:var(--tp-d0,1028px)!important;min-width:var(--tp-d0,1028px)!important;max-width:none!important;margin-left:0!important;margin-right:0!important}
}
}
.figma-make-app-root[data-tp-fit]{overflow-x:clip}
.figma-make-app-root[data-tp-fit] figure[data-tp-fit]{width:var(--tp-d)!important;min-width:var(--tp-d)!important;max-width:none!important;margin-left:0!important;margin-right:0!important}
.figma-make-app-root[data-tp-fit] figure[data-tp-fit][data-tp-scaled]{transform:scale(var(--tp-z))!important;transform-origin:0 0!important}
.figma-make-app-root[data-tp-fit] figure[data-tp-fit][data-tp-scaled]>figcaption{transform:scale(var(--tp-zi))!important;transform-origin:0 0!important;width:calc(var(--tp-d) * var(--tp-z))!important;max-width:none!important;box-sizing:border-box}
.figma-make-app-root h2:not(figure h2){font-size:22px!important;line-height:1.25!important}
.figma-make-app-root h3:not(figure h3){font-size:18px!important;line-height:1.3!important}
.figma-make-app-root h4:not(figure h4),.figma-make-app-root h5:not(figure h5){font-size:16px!important;line-height:1.3!important}
.figma-make-app-root [data-tp-term]{padding:10px 14px!important;gap:14px!important;min-height:0!important}
.figma-make-app-root [data-tp-term] [data-tp-ticon]{width:52px!important;height:52px!important;min-width:52px!important;min-height:52px!important;flex:0 0 52px!important;border-radius:10px!important}
.figma-make-app-root [data-tp-term] [data-tp-ticon] svg{width:26px!important;height:26px!important}
.figma-make-app-root [data-tp-term] [data-tp-ttitle]{font-size:17px!important;line-height:1.25!important}
.figma-make-app-root [data-tp-term] p{font-size:14.5px!important;line-height:1.45!important;margin-top:4px!important;margin-bottom:4px!important}
.figma-make-app-root [data-tp-term] [data-tp-tfoot]{padding-top:6px!important;margin-top:6px!important}
.figma-make-app-root [data-tp-tabbtn]{font-size:14px!important;padding-top:6px!important;padding-bottom:6px!important;min-height:0!important}
svg[data-tp-ring] [data-tp-ringline]{pointer-events:none}
/*tp496:end*/
