/* Раздел «Обучение». Токены и база из ../styles.css; здесь только свои компоненты с префиксом l-.
   Цвет группы вычета приходит через --g: стандартные, социальные, сбережения, жильё, прочее. */

.g-standard { --g: var(--seg-1); }
.g-social { --g: var(--seg-2); }
.g-savings { --g: var(--seg-3); }
.g-property { --g: var(--seg-4); }
.g-other { --g: var(--money); }
.g-rules { --g: var(--text-2); }

.l-body { overflow-x: hidden; }
.l-muted { color: var(--text-2); }
.l-center { text-align: center; }

/* ---------- Шапка ---------- */
.l-topbar { gap: 10px; }
.l-section {
  padding-left: 10px;
  border-left: 1px solid var(--line-strong);
  color: var(--text-2);
  font-size: 15px;
}
.l-nav { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.l-nav-link {
  display: inline-grid; place-items: center;
  min-width: 36px; min-height: 36px; padding: 0 10px;
  border-radius: 999px;
  font-size: 14px; font-weight: 500; text-decoration: none; color: var(--text-2);
}
.l-nav-link:hover { color: var(--text); }
.l-nav-link[aria-current="page"] { background: var(--text); color: var(--bg); }
@media (max-width: 520px) {
  .l-section { display: none; }
  .l-nav-link { padding: 0 8px; min-width: 32px; }
}

/* ---------- Каркас ---------- */
.l-wrap { max-width: 760px; margin: 0 auto; padding: 20px 16px 40px; }
.l-wrap-wide { max-width: 1240px; }
.l-hero { margin: 8px 0 20px; }
.l-hero h1 { font-size: clamp(28px, 6vw, 44px); line-height: 1.05; margin: 6px 0 10px; }
.l-hero-index { margin-bottom: 16px; }
.l-lead { color: var(--text-2); font-size: 17px; max-width: 60ch; }
.l-error { padding: 16px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--danger); color: var(--danger); }
.l-rule, .l-note {
  display: flex; gap: 10px; align-items: flex-start;
  margin: 0 0 16px; padding: 12px 14px;
  border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line);
  font-size: 14px; color: var(--text-2);
}
.l-rule .icon, .l-note .icon { margin-top: 2px; color: var(--text); }

.l-chip-icon {
  display: inline-grid; place-items: center; flex: none;
  width: 36px; height: 36px; border-radius: 10px;
  background: color-mix(in srgb, var(--g, var(--text)) 16%, transparent);
  color: var(--g, var(--text));
}
.l-chip-icon .icon { width: 20px; height: 20px; }

.l-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  font-weight: 600; text-decoration: none; color: var(--text);
}
.l-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.l-law { font-size: 13px; color: var(--text-2); }
.l-big { font-size: 28px; font-weight: 650; letter-spacing: -.02em; line-height: 1.1; }
.l-btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.l-detail-sub {
  display: flex; align-items: center; gap: 6px;
  margin: 14px 0 6px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2);
}
.l-mini-list { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 15px; }
.l-trap, .l-example {
  display: flex; gap: 10px; align-items: flex-start;
  margin-top: 12px; padding: 10px 12px; border-radius: 10px; font-size: 15px;
}
.l-trap { background: var(--amber-soft); color: var(--text); }
.l-trap .icon { color: var(--amber); margin-top: 2px; }
.l-example { background: var(--money-soft); }
.l-example .icon { color: var(--money); margin-top: 2px; }

.l-persona-row { display: flex; flex-wrap: wrap; gap: 6px; }
.l-persona {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px 4px 6px; border-radius: 999px;
  background: var(--surface-2); font-size: 13px;
}
.l-persona.is-if { background: transparent; border: 1px dashed var(--line-strong); color: var(--text-2); }
.l-icon-strip { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- A. Карта ---------- */
.l-mx-scroll {
  overflow-x: auto; overscroll-behavior-x: contain;
  border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface);
  box-shadow: var(--shadow), var(--highlight);
}
.l-matrix { border-collapse: separate; border-spacing: 0; min-width: max-content; }
.l-matrix th, .l-matrix td { padding: 0; }
.l-mx-corner { position: sticky; left: 0; z-index: 3; background: var(--surface); }
.l-mx-groups th {
  padding: 10px 6px 6px; text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--g); border-bottom: 3px solid var(--g); white-space: nowrap;
}
.l-mx-groups th span { display: block; overflow: hidden; text-overflow: ellipsis; }
.l-mx-col { vertical-align: bottom; border-bottom: 1px solid var(--line); }
.l-mx-colbtn {
  display: grid; justify-items: center; gap: 4px;
  width: 56px; padding: 10px 2px 8px; border: 0; background: none; text-align: center;
}
.l-dot-icon {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: color-mix(in srgb, var(--g) 18%, transparent); color: var(--g);
}
.l-dot-icon .icon { width: 18px; height: 18px; }
.l-mx-label { font-size: 11.5px; line-height: 1.15; min-height: 2.3em; hyphens: auto; }
.l-mx-amount { font-size: 10.5px; font-weight: 600; color: var(--money); white-space: nowrap; font-variant-numeric: tabular-nums; }
.l-mx-row { position: sticky; left: 0; z-index: 2; background: var(--surface); border-right: 1px solid var(--line); }
.l-mx-rowbtn {
  display: flex; align-items: center; gap: 8px;
  width: 168px; min-height: 48px; padding: 0 10px; border: 0; background: none; text-align: left; font-size: 14px;
}
.l-mx-plabel { flex: 1; line-height: 1.2; }
.l-mx-count i { font-style: normal; opacity: .7; }
.l-mx-count {
  min-width: 24px; padding: 1px 6px; border-radius: 999px; background: var(--surface-2);
  font-size: 12px; text-align: center; color: var(--text-2); font-variant-numeric: tabular-nums;
}
.l-matrix tbody tr + tr th, .l-matrix tbody tr + tr td { border-top: 1px solid var(--line); }
.l-cell { display: grid; place-items: center; width: 56px; height: 48px; border: 0; background: none; }
.l-cell:hover, .l-mx-colbtn:hover, .l-mx-rowbtn:hover { background: var(--surface-2); }
.l-cell-mark { display: inline-block; width: 18px; height: 18px; border-radius: 50%; flex: none; }
.l-cell.is-yes .l-cell-mark, .l-cell-mark.is-yes, .l-state.is-yes .l-cell-mark { background: var(--g, var(--money)); }
.l-cell.is-if .l-cell-mark, .l-cell-mark.is-if, .l-state.is-if .l-cell-mark {
  border: 2px dashed var(--g, var(--text-2)); background: color-mix(in srgb, var(--g, var(--text-2)) 10%, transparent);
}
.l-cell.is-no .l-cell-mark, .l-state.is-no .l-cell-mark { width: 4px; height: 4px; background: var(--line-strong); }
.l-matrix.has-sel td:not(.is-hl) .l-cell-mark { opacity: .28; }
.l-matrix .is-hl { background: color-mix(in srgb, var(--text) 5%, var(--surface)); }
.l-mx-legend { vertical-align: bottom; }
.l-legend { display: grid; gap: 6px; padding: 10px 12px; font-size: 12px; color: var(--text-2); }
.l-legend > span { display: flex; align-items: center; gap: 8px; }
.l-legend .l-cell-mark { width: 14px; height: 14px; --g: var(--text); }

.l-detail {
  position: fixed; z-index: 30; left: 8px; right: 8px; bottom: calc(8px + var(--safe-b));
  max-height: 62vh; overflow: auto;
  padding: 16px; border-radius: var(--r-hero);
  background: var(--surface); border: 1px solid var(--line-strong);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
  animation: l-up .25s var(--ease);
}
@keyframes l-up { from { transform: translateY(12px); opacity: 0; } }
@media (min-width: 900px) {
  .l-detail { left: auto; right: 24px; bottom: 24px; width: 360px; }
}
.l-detail-close { position: absolute; top: 8px; right: 8px; }
.l-detail-pair { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.l-detail-title { font-weight: 600; font-size: 18px; padding-right: 40px; }
.l-detail-note { color: var(--text-2); margin: 6px 0; }
.l-state { display: inline-flex; align-items: center; gap: 8px; margin: 6px 0 8px; font-weight: 600; }

/* ---------- B. Конструктор ---------- */
.l-presets { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 16px; font-size: 14px; }
.l-preset {
  min-height: 36px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: none; font-size: 14px;
}
.l-preset:hover { background: var(--surface-2); }
.l-preset-reset { border-style: dashed; color: var(--text-2); }
.l-builder { display: grid; gap: 20px; }
@media (min-width: 900px) {
  .l-builder { grid-template-columns: minmax(300px, 400px) 1fr; align-items: start; }
  .l-facts { position: sticky; top: 84px; max-height: calc(100dvh - 100px); overflow: auto; }
}
.l-facts { display: grid; gap: 14px; }
.l-fact-group { margin: 0; padding: 0; border: 0; }
.l-fact-group legend { padding: 0; margin-bottom: 8px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.l-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.l-chip {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 14px 0 12px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface);
  font-size: 15px; transition: background .15s, color .15s, border-color .15s, transform .12s var(--ease);
}
.l-chip:hover { border-color: var(--text-2); }
.l-chip:active { transform: scale(.97); }
.l-chip.is-on { background: var(--text); color: var(--bg); border-color: var(--text); }

.l-results-col { display: grid; gap: 12px; align-content: start; }
.l-total {
  position: sticky; top: 72px; z-index: 5;
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 6px 16px;
  padding: 14px 16px; border-radius: var(--r-hero);
  background: var(--surface-2); border: 1px solid var(--line); box-shadow: var(--highlight);
}
.l-total-label { font-size: 13px; color: var(--text-2); }
.l-total-num { font-size: 32px; font-weight: 650; letter-spacing: -.02em; }
.l-total-once { display: block; font-size: 14px; color: var(--money); }
.l-total-note { font-size: 12px; color: var(--text-2); max-width: 22ch; }
.l-total.is-empty .l-total-num { color: var(--text-2); }
@media (max-width: 899px) {
  .l-total { position: fixed; top: auto; left: 8px; right: 8px; bottom: calc(8px + var(--safe-b)); box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
  .l-total-num { font-size: 26px; }
  .l-results { padding-bottom: 96px; }
}
.l-results { display: grid; gap: 10px; }
.l-results-title { font-size: 18px; margin-top: 8px; }
.l-empty {
  display: grid; justify-items: center; gap: 10px; padding: 28px 16px; text-align: center;
  border: 1px dashed var(--line-strong); border-radius: var(--r-card); color: var(--text-2);
}
.l-empty-icon { width: 40px; height: 40px; color: var(--text); }
.l-card {
  padding: 14px; border-radius: var(--r-card); background: var(--surface);
  border: 1px solid var(--line); border-left: 4px solid var(--g);
  box-shadow: var(--shadow), var(--highlight); animation: l-pop .3s var(--ease);
}
@keyframes l-pop { from { transform: scale(.98); opacity: 0; } }
.l-card.is-locked { border-left-style: dashed; opacity: .85; background: transparent; }
.l-card.k-duty, .l-card.k-regime { border-left-color: var(--amber); }
.l-card-head { display: flex; align-items: flex-start; gap: 12px; }
.l-card-titles { flex: 1; min-width: 0; }
.l-card-head h3 { font-size: 17px; font-weight: 600; line-height: 1.25; }
.l-card-kind { font-size: 13px; color: var(--text-2); }
.l-card-amount { font-weight: 650; text-align: right; max-width: 45%; font-size: 15px; }
.l-card.is-locked .l-card-amount { color: var(--text-2); }
.l-because { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; font-size: 14px; }
.l-because-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px;
  border-radius: 999px; background: var(--surface-2); font-size: 13px;
}
.l-plus, .l-arrow { color: var(--text-2); }
.l-because-why { color: var(--text-2); }
.l-card.is-locked .l-because-why { color: var(--amber); }
.l-more { margin-top: 8px; }
.l-more summary, .l-off summary {
  display: flex; align-items: center; min-height: 44px; cursor: pointer; font-weight: 500; color: var(--text-2);
}
.l-more[open] summary { color: var(--text); }
.l-off { margin-top: 8px; padding: 0 14px; border-radius: var(--r-card); border: 1px solid var(--line); }
.l-off-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.l-off-list li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-2); }
.l-off-list li .l-chip-icon { width: 30px; height: 30px; opacity: .7; }
.l-off-list b { color: var(--text); font-weight: 600; }

/* ---------- C. Учебник ---------- */
.l-progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.l-meter { display: grid; gap: 2px; padding: 10px 12px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); }
.l-meter-label { font-size: 12px; color: var(--text-2); }
.l-meter b { font-size: 17px; }
.l-meter-bar, .l-bar { display: block; height: 4px; border-radius: 4px; background: var(--surface-2); overflow: hidden; margin-top: 4px; }
.l-meter-bar span, .l-bar span { display: block; height: 100%; background: var(--money); transition: width .4s var(--ease); }

.l-tabs, .l-segs {
  display: flex; gap: 4px; padding: 4px; margin-bottom: 16px;
  border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line);
}
.l-tab, .l-seg {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 12px; border: 0; border-radius: 999px; background: none;
  font-weight: 500; color: var(--text-2);
}
.l-tab[aria-selected="true"], .l-seg[aria-selected="true"] { background: var(--text); color: var(--bg); }
.l-segs { max-width: 560px; }
.l-panel { display: grid; gap: 10px; }
.l-panel[hidden] { display: none; }

.l-art {
  border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow), var(--highlight); scroll-margin-top: 80px;
}
.l-art-head {
  display: flex; align-items: flex-start; gap: 12px; width: 100%;
  padding: 14px 14px 8px; border: 0; background: none; text-align: left;
}
.l-art-num {
  flex: none; min-width: 64px; padding: 4px 8px; border-radius: 8px;
  background: var(--text); color: var(--bg); font-weight: 650; font-size: 14px; text-align: center; white-space: nowrap;
}
.l-art-titles { flex: 1; display: grid; gap: 2px; min-width: 0; }
.l-art-title { font-weight: 600; font-size: 17px; line-height: 1.25; }
.l-art-summary { font-size: 14px; color: var(--text-2); }
.l-art-read { display: none; color: var(--money); }
.l-art.is-read .l-art-read { display: inline-flex; }
.l-caret { color: var(--text-2); transition: transform .2s var(--ease); margin-top: 2px; }
.l-art.is-open .l-caret { transform: rotate(180deg); }
.l-art-visual { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 0 14px 14px; }
.l-art-who { display: flex; }
.l-who-dot {
  display: inline-grid; place-items: center; width: 30px; height: 30px; margin-right: -6px;
  border-radius: 50%; background: var(--surface-2); border: 2px solid var(--surface); color: var(--text);
}
.l-who-dot .icon { width: 16px; height: 16px; }
.l-art-nums { display: flex; flex-wrap: wrap; gap: 6px; }
.l-art-numchip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--g) 14%, transparent); color: var(--text); font-size: 14px;
}
.l-art-numchip .icon { color: var(--g); width: 16px; height: 16px; }
.l-art-numchip b { font-weight: 650; font-variant-numeric: tabular-nums; }
.l-art-body { display: grid; gap: 14px; padding: 0 14px 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.l-item { padding: 12px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.l-item-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.l-item-head h3 { flex: 1; font-size: 17px; }
.l-item-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0; }
.l-item-nums b { display: block; font-size: 16px; font-weight: 650; line-height: 1.25; }
.l-item-nums .l-detail-sub { margin: 0 0 2px; }
.l-traps { padding: 12px 14px; border-radius: 12px; background: var(--amber-soft); }
.l-traps .l-detail-sub { margin-top: 0; color: var(--amber); }
.l-traps ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.l-elements { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); counter-reset: el; }
.l-elements li {
  display: grid; gap: 4px; padding: 12px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line);
  counter-increment: el; position: relative;
}
.l-elements li::after { content: counter(el); position: absolute; top: 10px; right: 12px; font-weight: 650; color: var(--text-2); }

.l-flash {
  display: block; width: 100%; max-width: 520px; margin: 0 auto; height: 260px;
  padding: 0; border: 0; background: none; perspective: 1200px;
}
.l-flash-inner { position: relative; display: block; width: 100%; height: 100%; transition: transform .5s var(--ease); transform-style: preserve-3d; }
.l-flash.is-flipped .l-flash-inner { transform: rotateY(180deg); }
.l-flash-face {
  position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 12px;
  padding: 24px; border-radius: var(--r-hero); backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow), var(--highlight); text-align: center;
}
.l-flash-back { transform: rotateY(180deg); background: var(--money-soft); border-color: var(--money); }
.l-flash-q { font-size: 21px; font-weight: 600; line-height: 1.25; }
.l-flash-a { font-size: 26px; font-weight: 650; line-height: 1.2; color: var(--money); }
.l-flash-law { font-size: 13px; color: var(--text-2); }
.l-flash-hint { font-size: 13px; color: var(--text-2); }
@media (prefers-reduced-motion: reduce) {
  .l-flash-inner { transition: none; }
  .l-card, .l-detail { animation: none; }
}
.l-grade { display: flex; justify-content: center; gap: 10px; margin-top: 8px; }
.l-boxes { display: flex; justify-content: center; gap: 4px; }
.l-boxes span { width: 28px; height: 4px; border-radius: 4px; background: var(--surface-2); }
.l-boxes span.is-on { background: var(--money); }

.l-test-start { display: grid; gap: 14px; justify-items: start; }
.l-test-modes { display: flex; flex-wrap: wrap; gap: 10px; }
.l-select { display: grid; gap: 6px; font-size: 14px; color: var(--text-2); width: 100%; max-width: 420px; }
.l-select select {
  min-height: 44px; padding: 0 12px; border-radius: var(--r-input);
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font: inherit;
}
.l-test-head { display: flex; justify-content: space-between; font-size: 14px; }
.l-question { font-size: 20px; line-height: 1.3; margin: 10px 0 4px; outline: none; }
.l-options { display: grid; gap: 8px; }
.l-option {
  display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 14px;
  border-radius: var(--r-card); border: 1px solid var(--line-strong); background: var(--surface); text-align: left; font-size: 16px;
}
.l-option:hover:not(:disabled) { border-color: var(--text-2); }
.l-option:disabled { cursor: default; }
.l-option-key {
  flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--surface-2); font-size: 13px; font-weight: 600;
}
.l-option.is-right { border-color: var(--money); background: var(--money-soft); }
.l-option.is-right .l-option-key { background: var(--money); color: var(--bg); }
.l-option.is-wrong { border-color: var(--danger); }
.l-option.is-wrong .l-option-key { background: var(--danger); color: var(--bg); }
.l-feedback { display: grid; gap: 8px; justify-items: start; }
.l-ok, .l-bad { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; margin-top: 6px; }
.l-ok { color: var(--money); }
.l-bad { color: var(--danger); }
.l-steps { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.l-result { display: grid; gap: 12px; justify-items: start; }

/* ---------- /learn: связка вкладок ---------- */
.l-wrap-top { padding-bottom: 0; }
[id^="v-"] > .l-wrap { padding-top: 4px; }
.l-hero-index { text-align: center; }
.l-hero-index .l-lead { margin: 0 auto; }
.l-wrap-top .l-segs { margin: 0 auto 16px; }
@media (max-width: 520px) {
  .l-mx-rowbtn { width: 124px; gap: 6px; padding: 0 8px; font-size: 13px; }
  .l-mx-count { display: none; }
  .l-wrap-wide .l-hero h1 { font-size: 30px; }
}
.l-total-icons { order: 3; flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 0; border: 0; background: none; text-align: left; }
.l-total-icons .l-chip-icon { width: 28px; height: 28px; border-radius: 8px; animation: l-pop .3s var(--ease); }
.l-total-icons .l-chip-icon .icon { width: 16px; height: 16px; }
.l-total-locked { margin-left: 6px; font-size: 13px; color: var(--amber); }
@media (max-width: 899px) { .l-total-note { display: none; } }
@media (max-width: 899px) { .l-body:has(.l-total:not([hidden])) .footer { padding-bottom: 140px; } }
.l-seg, .l-tab { white-space: nowrap; }
@media (max-width: 420px) {
  .l-seg, .l-tab { padding: 0 6px; gap: 6px; font-size: 15px; }
  .l-seg .icon, .l-tab .icon { width: 18px; height: 18px; }
  .l-hero-index h1 { font-size: 27px; }
  .l-hero-index .l-lead { font-size: 15px; }
  .l-hero { margin-bottom: 14px; }
}

/* ---------- Лёгкий вид /learn ---------- */
.l-nav-quiet { font-size: 14px; color: var(--text-2); text-decoration: none; padding: 8px 4px; }
.l-nav-quiet:hover { color: var(--text); }
.l-hero-index { margin: 12px 0 8px; }
.l-hero-index h1 { font-size: clamp(26px, 4vw, 34px); line-height: 1.15; margin: 0 0 6px; letter-spacing: -.02em; }
.l-hero-index .l-lead { font-size: 16px; }
.l-wrap-top .l-segs {
  justify-content: center; gap: 24px; max-width: none; margin: 8px auto 20px; padding: 0;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none;
}
.l-wrap-top .l-seg {
  flex: none; min-height: 40px; padding: 0 2px; border-radius: 0;
  border-bottom: 2px solid transparent; margin-bottom: -1px; font-size: 15px;
}
.l-wrap-top .l-seg[aria-selected="true"] { background: none; color: var(--text); border-bottom-color: var(--text); }
#v-find .l-presets { gap: 2px 4px; margin-bottom: 18px; }
#v-find .l-preset { min-height: 32px; padding: 0 8px; border: 0; color: var(--text-2); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
#v-find .l-preset:hover { color: var(--text); background: none; }
#v-find .l-preset-reset { color: var(--text); }
#v-find .l-facts { gap: 18px; }
#v-find .l-fact-group legend { text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 500; margin-bottom: 6px; }
#v-find .l-chips { gap: 6px; }
#v-find .l-chip { min-height: 36px; padding: 0 14px; font-size: 14px; background: none; border-color: var(--line); }
#v-find .l-chip:hover { border-color: var(--line-strong); background: var(--surface); }
#v-find .l-chip.is-on { background: var(--text); color: var(--bg); border-color: var(--text); }
#v-find .l-total { box-shadow: none; background: var(--surface); }
#v-find .l-total[hidden] { display: none; }
#v-find .l-card { box-shadow: none; border-left-width: 3px; }
.l-empty-quiet { display: block; padding: 8px 0; border: 0; text-align: left; color: var(--text-2); font-size: 15px; }
@media (min-width: 900px) {
  #v-find .l-builder { grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); gap: 40px; }
}
.l-builder > *, .l-results-col > * { min-width: 0; }
#v-find > .l-wrap-wide { max-width: 1040px; }
#v-find .l-card-kind { display: none; }
#v-find .l-card-head { align-items: center; }
#v-find .l-because { gap: 4px; margin-top: 6px; font-size: 13px; color: var(--text-2); }
#v-find .l-because-chip { padding: 0; background: none; font-size: 13px; color: var(--text-2); }
#v-find .l-because-chip .icon, #v-find .l-arrow { display: none; }
#v-find .l-because-why { flex-basis: 100%; color: var(--text); font-size: 14px; }
#v-find .l-more { margin-top: 2px; }
#v-find .l-more summary { min-height: 36px; font-size: 14px; }
@media (min-width: 900px) { #v-find .l-total-icons { display: none; } }

/* ---------- Тренажёр «Учить» ---------- */
.t-wrap { max-width: 640px; padding-top: 4px; }
.t-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.t-levels { list-style: none; margin: 0; padding: 0; display: grid; }
.t-level {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 10px 4px;
  border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; color: inherit;
}
.t-level:hover .t-text b { text-decoration: underline; text-underline-offset: 3px; }
.t-num {
  display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--line-strong); font-size: 14px; color: var(--text-2);
}
.t-level.is-done .t-num { background: var(--money); border-color: var(--money); color: var(--bg); }
.t-num .icon { width: 16px; height: 16px; }
.t-text { flex: 1; display: grid; gap: 2px; }
.t-text b { font-weight: 500; font-size: 16px; }
.t-text small { color: var(--text-2); font-size: 14px; }
.t-score { color: var(--text-2); font-size: 14px; }
.t-back {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0; margin-bottom: 8px;
  border: 0; background: none; color: var(--text-2); font-size: 14px;
}
.t-back:hover { color: var(--text); }
.t-title { font-size: 26px; letter-spacing: -.02em; margin: 4px 0 16px; }
.t-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; }
.t-flow-step {
  padding: 10px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line);
  font-weight: 500; font-size: 15px;
}
.t-flow-arrow { color: var(--text-2); }
.t-rule { font-size: 17px; line-height: 1.5; margin: 0 0 6px; }
.t-law { color: var(--text-2); font-size: 14px; margin: 0 0 20px; }
.t-bar { display: flex; gap: 6px; margin: 4px 0 20px; }
.t-bar span { flex: 1; height: 4px; border-radius: 4px; background: var(--line); }
.t-bar .is-done { background: var(--money); }
.t-bar .is-now { background: var(--text-2); }
.t-q { font-size: 19px; line-height: 1.4; font-weight: 500; margin: 0 0 16px; }
.t-options { display: grid; gap: 8px; }
.t-option {
  min-height: 52px; padding: 12px 16px; border-radius: 14px; text-align: left;
  border: 1px solid var(--line-strong); background: none; color: inherit; font-size: 16px;
  transition: background .15s, border-color .15s;
}
.t-option:hover:not(:disabled) { background: var(--surface); }
.t-option:disabled { cursor: default; opacity: .55; }
.t-option.is-right { opacity: 1; border-color: var(--money); background: color-mix(in srgb, var(--money) 14%, transparent); }
.t-option.is-wrong { opacity: 1; border-color: var(--danger); background: color-mix(in srgb, var(--danger) 12%, transparent); }
.t-feedback:empty { display: none; }
.t-feedback { margin-top: 20px; display: grid; gap: 12px; justify-items: start; }
.t-verdict { margin: 0; font-weight: 500; }
.t-verdict.is-ok { color: var(--money); }
.t-verdict.is-bad { color: var(--danger); }
.t-steps { margin: 0; padding-left: 20px; display: grid; gap: 4px; color: var(--text-2); }
.t-big { font-size: 44px; font-weight: 650; letter-spacing: -.02em; margin: 12px 0 4px; }
.t-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
