/* 1RoboMarket — база знаний: хаб, экспертные статьи, рейтинг и FAQ (режим чтения).
   Подключать после css/styles.css и css/catalog.css.
   Страницы: knowledge.html, knowledge-*.html.
   Здесь: шапка статьи с предметом, короткий ответ с перекрытием, подпись автора и эксперта,
   оглавление, колонка чтения, таблицы, заметки, модели по теме, источники,
   строки хаба, рейтинг по сценариям, разделы FAQ. */

/* ---------- шапка статьи: лавандовая панель, предмет справа ---------- */
.art-hero h1 { max-width: 22ch; }

.art-hero__grid { align-items: center; }

@media (min-width: 960px) {
  .art-hero__grid { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
}

.art-obj { position: relative; justify-self: center; width: min(100%, 380px); margin: 0; }

.art-obj__stage { position: relative; display: block; aspect-ratio: 1.12 / 1; }

.art-obj__podium {
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: 4%;
  height: 26%;
  border-radius: 50%;
  background: radial-gradient(ellipse 72% 70% at 50% 36%, #FFFFFF 0%, #F8F6FF 50%, #DED6FA 100%);
  box-shadow: 0 28px 56px -26px rgba(90, 34, 211, .55);
}

.art-obj__robot { position: absolute; left: 50%; bottom: 14%; height: 84%; max-width: 78%; translate: -50% 0; }

.art-obj__robot--wide { height: 60%; max-width: 92%; }

.art-obj__cap {
  margin-top: 10px;
  color: var(--c-ink-muted);
  font-size: .875rem;
  line-height: 1.45;
  text-align: center;
  text-wrap: balance;
}

.art-obj__cap a { color: var(--c-ink); font-weight: 650; }

.art-obj__cap a:hover { color: var(--c-violet-deep); }

.art-obj .hero-trio { width: 100%; }

@media (max-width: 959px) {
  .art-obj { width: min(100%, 320px); }
}

/* ---------- короткий ответ и подпись: белая панель заходит на границу шапки ---------- */
.art-answer {
  display: grid;
  gap: 22px clamp(32px, 4vw, 64px);
  padding: var(--panel-pad); /* один отступ панелей (polish 14.10.2026, пункт 38) */
  border-radius: var(--r-xl);
  background: var(--c-surface);
  box-shadow: 0 2px 4px rgba(20, 18, 43, .08), 0 28px 56px -20px rgba(20, 18, 43, .30);
}

.art-answer__title { margin-bottom: 10px; }

.art-answer__text { font-size: var(--t-lead-size); line-height: 1.5; max-width: 60ch; text-wrap: pretty; }

@media (min-width: 960px) {
  .art-answer { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); align-items: start; }

  .art-answer .byline { padding-left: clamp(24px, 3vw, 40px); border-left: 1px solid var(--c-line); }
}

.byline { display: grid; gap: 0; align-content: start; font-size: .9375rem; line-height: 1.4; }

.byline > div { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 4px 14px; padding: 10px 0; border-top: 1px solid var(--c-line); }

.byline > div:first-child { border-top: 0; padding-top: 0; }

.byline dt { color: var(--c-ink-muted); font-size: .8125rem; padding-top: 1px; }

.byline dd { font-weight: 600; }

.byline .demo-badge { display: flex; width: max-content; max-width: 100%; margin-top: 6px; background: var(--c-lavender-tile); }

.byline__muted { display: block; color: var(--c-ink-muted); font-weight: 450; font-size: .875rem; }

/* ---------- раскладка: колонка чтения + оглавление справа ---------- */
.art-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px clamp(32px, 4vw, 72px); margin-top: var(--sec-space); }

.art-body, .toc { min-width: 0; }

.toc__title { margin-bottom: 6px; color: var(--c-ink-muted); font-size: var(--t-label-size); font-weight: var(--t-label-weight); letter-spacing: .03em; }

.toc__list { display: grid; }

.toc__link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 12px;
  border-radius: var(--r-sm);
  color: var(--c-ink);
  font-size: .9375rem;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color .2s var(--ease-out), color .2s;
}

.toc__link:hover { background: var(--c-lavender-tile); color: var(--c-violet-deep); }

@media (min-width: 1100px) {
  .art-layout { grid-template-columns: minmax(0, 1fr) 264px; align-items: start; }

  .art-body { grid-column: 1; grid-row: 1; min-width: 0; }

  .toc {
    grid-column: 2;
    grid-row: 1;
    position: sticky;
    top: calc(var(--header-h) + var(--header-top) * 3);
    padding: 18px 12px 12px;
    border-radius: var(--r-lg);
    background: var(--c-surface);
    box-shadow: var(--shadow-rest);
  }

  .toc__title { padding-left: 12px; }
}

@media (max-width: 1099px) {
  /* на телефоне и планшете оглавление — одна строка ссылок с прокруткой */
  .toc__list {
    display: flex;
    gap: 8px;
    margin-inline: calc(-1 * var(--gutter));
    padding: 2px var(--gutter) 8px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .toc__list::-webkit-scrollbar { display: none; }

  .toc__link { flex: none; padding: 0 16px; border: 1px solid var(--c-line); border-radius: var(--r-pill); background: var(--c-surface); font-size: .875rem; font-weight: 600; white-space: nowrap; }
}

/* ---------- разделы статьи ---------- */
.art-sec { scroll-margin-top: calc(var(--header-h) + var(--header-top) * 3); }

.art-sec + .art-sec { margin-top: var(--sec-space); }

.art-sec h2 { max-width: 24ch; margin-bottom: 18px; font-size: clamp(1.625rem, 1.15rem + 1.3vw, 2.375rem); }

.art-sec .prose { max-width: var(--art-measure); }

.art-sec .prose h3 { font-size: clamp(1.1875rem, 1rem + .4vw, 1.375rem); }

.art-sec .prose + .prose { margin-top: 1em; }

.prose b { font-weight: 650; }

.art-sec > * + .prose,
.art-sec > .dtable + .prose,
.art-sec > .art-note + .prose { margin-top: 28px; }

.src-note { color: var(--c-ink-muted); font-size: .875rem; }

/* ---------- таблица данных в белой панели ---------- */
.dtable {
  margin-top: 28px;
  padding: clamp(4px, 1vw, 12px) var(--panel-pad) clamp(8px, 1.2vw, 16px); /* по бокам — общий отступ панелей (polish 14.10.2026, пункт 38) */
  border-radius: var(--r-xl);
  background: var(--c-surface);
  box-shadow: var(--shadow-rest);
}

.dtable table { width: 100%; border-collapse: collapse; }

.dtable caption {
  padding: 16px 0 6px;
  color: var(--c-ink);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
  caption-side: top;
}

.dtable caption small { display: block; margin-top: 4px; color: var(--c-ink-muted); font-family: var(--font-text); font-size: .8125rem; font-weight: 450; }

.dtable caption small .demo-badge { margin: 4px 8px 2px 0; vertical-align: 1px; }

.dtable thead th {
  padding: 12px 18px 10px 0;
  color: var(--c-ink-muted);
  font-size: var(--t-label-size);
  font-weight: var(--t-label-weight);
  letter-spacing: .03em;
  text-align: left;
  vertical-align: bottom;
}

.dtable tbody th,
.dtable tbody td,
.dtable tfoot th,
.dtable tfoot td {
  padding: 14px 18px 14px 0;
  border-top: 1px solid var(--c-line);
  vertical-align: top;
  text-align: left;
  font-size: .96875rem;
  line-height: 1.5;
}

.dtable tbody th { font-weight: 650; }

.dtable td.is-muted { color: var(--c-ink-muted); }

.dtable td.is-num, .dtable th.is-num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

.dtable tfoot th, .dtable tfoot td { font-weight: 700; border-top: 2px solid var(--c-ink); }

.dtable .unverified { display: inline-flex; vertical-align: 1px; }



@media (max-width: 719px) {
  .dtable table, .dtable tbody, .dtable tfoot, .dtable tr, .dtable th, .dtable td, .dtable caption { display: block; }

  .dtable thead { display: none; }

  .dtable tbody tr, .dtable tfoot tr { padding: 14px 0; border-top: 1px solid var(--c-line); }

  .dtable tbody tr:first-child { border-top: 0; }

  .dtable tfoot tr { border-top: 2px solid var(--c-ink); }

  .dtable tbody th, .dtable tbody td, .dtable tfoot th, .dtable tfoot td { width: auto; padding: 0; border: 0; }

  .dtable tbody th, .dtable tfoot th { margin-bottom: 6px; }

  .dtable td + td { margin-top: 8px; }

  .dtable td.is-num { text-align: left; }

  .dtable--weights table { display: table; table-layout: fixed; width: 100%; }

  .dtable--weights th.is-num { white-space: normal; overflow-wrap: anywhere; hyphens: auto; }

  .dtable--weights thead { display: table-header-group; }

  .dtable--weights tbody { display: table-row-group; }

  .dtable--weights tr { display: table-row; padding: 0; }

  .dtable--weights th, .dtable--weights td { display: table-cell; padding: 10px 8px 10px 0; border-top: 1px solid var(--c-line); font-size: .875rem; }

  .dtable--weights thead th { border-top: 0; font-size: .75rem; vertical-align: bottom; }

  .dtable--weights td[data-label]::before { content: none; }

  .dtable td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    color: var(--c-ink-muted);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .03em;
  }
}

/* ---------- заметка на лавандовой плитке со списком проверок ---------- */
.art-note { margin-top: 28px; max-width: var(--art-measure); padding: var(--panel-pad); border-radius: var(--r-xl); background: var(--c-lavender-tile); }

.art-note > .t-title { margin-bottom: 14px; font-size: clamp(1.125rem, 1rem + .3vw, 1.3125rem); }

/* основной абзац заметки — обычный текст; мелкий серый только у приписки после списка */
.art-note > p:not(.t-title) { line-height: 1.5; }

.art-note > .art-checks + p { color: var(--c-ink-muted); font-size: .9375rem; line-height: 1.55; }

.art-note > p:not(.t-title) + p, .art-note > .art-checks + p { margin-top: 12px; }

.art-checks { display: grid; gap: 10px; }

.art-checks li { position: relative; padding-left: 34px; line-height: 1.5; }

.art-checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .15em;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--c-aqua) var(--i-check-ink) center / 14px no-repeat;
}

.art-checks--minus li::before { background: var(--c-surface); }

.art-checks--minus li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: calc(.15em + 10px);
  width: 10px;
  height: 2px;
  border-radius: 1px;
  background: var(--c-ink-muted);
}

.art-checks--q li::before { background: var(--c-surface); box-shadow: inset 0 0 0 1.5px var(--c-violet); }

.art-checks--q li::after {
  content: "?";
  position: absolute;
  left: 0;
  top: .15em;
  width: 22px;
  height: 22px;
  color: var(--c-violet);
  font-weight: 750;
  font-size: .8125rem;
  line-height: 22px;
  text-align: center;
}

/* формула внутри статьи — ширина колонки чтения */
.art-sec .formula { margin-top: 28px; }

.formula__eq + .formula__eq { margin-top: -4px; }

.art-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 28px; }

/* ---------- модели по теме: белая панель, роботы на лавандовых плитках ---------- */
.relm { margin-top: 32px; padding: var(--panel-pad); border-radius: var(--r-xl); background: var(--c-surface); box-shadow: var(--shadow-rest); }

.relm__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 24px; }

.relm__head .t-title { font-size: clamp(1.125rem, 1rem + .3vw, 1.3125rem); }

.relm__list { display: grid; gap: 18px var(--grid-gap); margin-top: 8px; }

.relm__item { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-items: center; }

.relm__tile { position: relative; display: block; height: 100px; margin-top: 18px; border-radius: var(--r-md); background: var(--c-lavender-tile); }

.relm__robot { position: absolute; left: 50%; bottom: 8%; height: 118%; max-width: 86%; translate: -50% 0; transition: transform .45s var(--ease-out); }

.relm__robot--wide { height: 66%; max-width: 94%; }

.relm__item:hover .relm__robot { transform: translateY(-4px); }

.relm__body { display: grid; gap: 2px; align-content: center; min-width: 0; }

.relm__brand { color: var(--c-ink-muted); }

.relm__name { color: var(--c-ink); font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; line-height: 1.3; text-decoration: none; }

a.relm__name:hover { color: var(--c-violet); }

.relm__fact { color: var(--c-ink-muted); font-size: .875rem; line-height: 1.45; }

.relm__go { justify-self: start; min-height: 40px; font-size: .875rem; }

.relm .unverified { margin-top: 2px; }

@media (min-width: 760px) {
  .relm__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .relm__item { grid-template-columns: none; align-items: start; align-content: start; }

  .relm__body { align-content: start; }

  .relm__tile { height: 128px; margin-top: 26px; }
}

/* ---------- источники и что читать дальше ---------- */
.sources { margin-top: var(--sec-space); padding-top: 28px; border-top: 1px solid var(--c-line); max-width: var(--art-measure); scroll-margin-top: calc(var(--header-h) + var(--header-top) * 3); }

.sources > .t-title { margin-bottom: 14px; }

.sources__list { display: grid; gap: 10px; padding-left: 1.6em; list-style: decimal; color: var(--c-ink-muted); font-size: .9375rem; line-height: 1.55; }

.sources__list li { padding-left: 4px; }

.sources__list li::marker { color: var(--c-violet); font-weight: 700; font-variant-numeric: tabular-nums; }

.sources__list a { color: var(--c-violet); overflow-wrap: anywhere; }

.sources__note { margin-top: 14px; color: var(--c-ink-muted); font-size: .875rem; }

.art-next { margin-top: var(--sec-space); }

.art-next > .t-label { color: var(--c-ink-muted); }

.art-next__list { display: grid; margin-top: 6px; border-top: 1px solid var(--c-line); }

.art-next__list li { border-bottom: 1px solid var(--c-line); }

.art-next__list .link-more { display: flex; justify-content: space-between; min-height: 56px; white-space: normal; font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem; }

/* ---------- FAQ статьи с формой ---------- */
.art-faq .faq-sec__main .sec-head { margin-bottom: clamp(24px, 3.2vw, 48px); }

.art-faq__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 24px; }

/* форма заявки — общий вид .leadsec__panel (фото слева, белая панель с полями справа); сетка старой формы .faq-sec--with-form .lead не нужна */
.art-faq .leadsec__form .lead { display: block; }

/* ---------- хаб: «с чего начать» в шапке ---------- */
.kh-hero__grid { align-items: start; }

@media (min-width: 960px) {
  .kh-hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}

.kh-path { padding: var(--panel-pad); border-radius: var(--r-xl); background: var(--c-surface); box-shadow: var(--shadow-lift); }

.kh-path > .t-title { margin-bottom: 6px; }

.kh-path__list { display: grid; counter-reset: step; }

.kh-path__list li {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 14px 0 14px 46px;
  border-top: 1px solid var(--c-line);
  counter-increment: step;
}

.kh-path__list li:first-child { border-top: 0; }

.kh-path__list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 14px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--c-lavender-tile);
  color: var(--c-violet-deep);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .875rem;
}

.kh-path__step { font-weight: 650; line-height: 1.35; }

.kh-path__links { display: flex; flex-wrap: wrap; gap: 0 18px; }

.kh-path__links a { display: inline-flex; align-items: center; min-height: 36px; font-size: .9375rem; }

/* ---------- хаб: строки разделов ---------- */
.kh { margin-top: var(--sec-space); }

.kh-row {
  display: grid;
  gap: 18px clamp(32px, 5vw, 80px);
  padding-block: calc(var(--sec-space) / 2); /* блок до блока — общий шаг, линия посередине */
  border-top: 1px solid var(--c-line);
  scroll-margin-top: calc(var(--header-h) + var(--header-top) * 3);
}

.kh-row h2 { max-width: 16ch; font-size: clamp(1.75rem, 1.2rem + 1.5vw, 2.625rem); }

.kh-row__lead { margin-top: 14px; color: var(--c-ink-muted); max-width: 52ch; }

.kh-row__meta { margin-top: 12px; color: var(--c-ink-muted); font-size: .875rem; }

.kh-row__go {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  max-width: 560px;
  margin-top: 18px;
  color: var(--c-ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.0625rem, 1rem + .25vw, 1.1875rem);
  line-height: 1.3;
  text-decoration: none;
}

.kh-row__go:hover { color: var(--c-violet-deep); }

.kh-row__go .action-circle { transition: transform .25s var(--ease-out), background-color .2s; }

.kh-row__go:hover .action-circle { transform: translateX(3px); }

.kh-row__toc > .t-label { color: var(--c-ink-muted); }

.kh-toc { display: grid; margin-top: 6px; }

.kh-toc a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 6px 2px;
  border-bottom: 1px solid var(--c-line);
  color: var(--c-ink);
  font-size: .9688rem;
  line-height: 1.3;
  text-decoration: none;
}

.kh-toc a::after {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  background: var(--c-violet);
  -webkit-mask: var(--i-chevron-right) center / contain no-repeat;
  mask: var(--i-chevron-right) center / contain no-repeat;
  opacity: .7;
  transition: transform .2s var(--ease-out);
}

.kh-toc a:hover { color: var(--c-violet-deep); }

.kh-toc a:hover::after { transform: translateX(3px); }

@media (min-width: 960px) {
  .kh-row { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
}

/* первая строка — главный гид: белая панель, разделы в две колонки */
.kh-row--lead {
  margin-bottom: calc(var(--sec-space) / 2);
  padding: var(--panel-pad); /* один отступ панелей (polish 14.10.2026, пункт 38) */
  border-top: 0;
  border-radius: var(--r-xl);
  background: var(--c-surface);
  box-shadow: var(--shadow-rest);
}

@media (min-width: 720px) {
  .kh-row--lead .kh-toc { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
}

.kh-row--lead + .kh-row { border-top: 0; }

.kh-formula { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 16px; font-family: var(--font-display); font-weight: 700; font-size: .9375rem; }

.kh-formula span:not(.formula__op) { padding: 6px 12px; border-radius: var(--r-sm); background: var(--c-lavender-tile); }

.kh-formula .formula__op { font-size: 1.25em; }

/* ночная полоса рейтинга на хабе */
.kh-row__go--night { margin-top: 0; color: var(--c-surface); }

.kh-row__go--night:hover { color: #EEE8FF; }

.kh-band { margin-top: var(--sec-space); }

.kh-band .nband__links { display: grid; margin-top: 20px; max-width: 560px; border-top: 1px solid rgba(255, 255, 255, .14); }

.kh-band .nband__links li { border-bottom: 1px solid rgba(255, 255, 255, .14); }

.kh-band .nband__links .link-more { display: flex; justify-content: space-between; min-height: 52px; white-space: normal; }

/* ---------- рейтинг: списки по сценариям ---------- */
.rank-intro { max-width: 68ch; color: var(--c-ink-muted); }

.rank {
  margin-top: 24px;
  padding: 4px var(--panel-pad); /* по бокам — общий отступ панелей (polish 14.10.2026, пункт 38) */
  border-radius: var(--r-xl);
  background: var(--c-surface);
  box-shadow: var(--shadow-rest);
  counter-reset: rank;
}

.rank__item {
  display: grid;
  grid-template-columns: 40px 120px minmax(0, 1fr);
  grid-template-areas: "pos tile body" "pos tile side";
  gap: 6px 20px;
  padding: clamp(18px, 2vw, 26px) 0;
  border-top: 1px solid var(--c-line);
  counter-increment: rank;
}

.rank__item:first-child { border-top: 0; }

.rank__pos { grid-area: pos; color: var(--c-violet); font-family: var(--font-display); font-weight: 900; font-size: clamp(1.75rem, 1.3rem + 1.2vw, 2.5rem); line-height: 1; font-variant-numeric: tabular-nums; }

.rank__pos::before { content: counter(rank); }

.rank__tile { grid-area: tile; position: relative; display: block; align-self: start; height: 112px; margin-top: 20px; border-radius: var(--r-md); background: var(--c-lavender-tile); }

.rank__robot { position: absolute; left: 50%; bottom: 8%; height: 118%; max-width: 86%; translate: -50% 0; }

.rank__robot--wide { height: 66%; max-width: 96%; }

.rank__tile .mcard__noimg { font-size: 1.0625rem; color: var(--c-violet-deep); opacity: .8; line-height: 1.15; }

.rank__body { grid-area: body; display: grid; gap: 4px; min-width: 0; }

.rank__brand { color: var(--c-ink-muted); }

.rank__name { color: var(--c-ink); text-decoration: none; }

a.rank__name:hover { color: var(--c-violet); }

.rank__type { color: var(--c-ink-muted); font-size: .9375rem; }

.rank__why { margin-top: 6px; max-width: 64ch; line-height: 1.55; }

.rank__facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 8px; }

.rank__facts dt { color: var(--c-ink-muted); font-size: .75rem; line-height: 1.3; }

.rank__facts dd { margin-top: 2px; }

.rank__check { margin-top: 8px; color: var(--c-ink-muted); font-size: .9375rem; line-height: 1.5; max-width: 64ch; }

.rank__check b { color: var(--c-ink); font-weight: 650; }

.rank__side { grid-area: side; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; margin-top: 4px; }

.rank__status { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 600; color: var(--c-ink); }

.rank__status::before { content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--c-aqua) var(--i-check-ink) center / 11px no-repeat; }

.rank__side .link-more { font-size: .9375rem; }

@media (min-width: 1100px) {
  .rank__item { grid-template-columns: 48px 160px minmax(0, 1fr) 220px; grid-template-areas: "pos tile body side"; gap: 6px 28px; }

  .rank__tile { height: 136px; }

  .rank__side { flex-direction: column; align-items: flex-start; align-self: center; margin-top: 0; }
}

@media (max-width: 639px) {
  .rank__item { grid-template-columns: 34px 132px minmax(0, 1fr); grid-template-areas: "pos tile ." "body body body" "side side side"; gap: 10px 12px; }

  .rank__tile { height: 92px; margin-top: 14px; }
}

/* легенда статусов данных */
.legend { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 16px; font-size: .875rem; }

.legend li { display: inline-flex; align-items: center; gap: 8px; }

.legend .rank__status, .legend .unverified { font-size: .8125rem; }

/* веса критериев: числа справа, демо-пометка у таблицы */
.dtable--weights tbody th { width: 34%; }

.dtable .demo-badge { margin-top: 6px; background: var(--c-lavender-tile); }

/* журнал обновлений */
.changelog { display: grid; margin-top: 20px; max-width: var(--art-measure); border-top: 1px solid var(--c-line); }

.changelog > div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 4px 20px; padding: 14px 0; border-bottom: 1px solid var(--c-line); }

.changelog dt { font-weight: 650; font-variant-numeric: tabular-nums; }

.changelog dd { color: var(--c-ink-muted); }

@media (max-width: 479px) {
  .changelog > div { grid-template-columns: none; }
}

/* сравнить модели, под ними форма заявки на всю ширину */
.rate-cta { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sec-space); }

.rate-cta .cmp-pairs { margin-top: 24px; }

@media (min-width: 900px) {
  .rate-cta .cmp-pairs { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 4vw, 64px); }
}

/* ---------- FAQ: категория слева, вопросы справа ---------- */
.fq { display: grid; gap: 0; margin-top: var(--sec-space); }

.fq-sec {
  display: grid;
  gap: 18px clamp(28px, 4vw, 64px);
  padding-block: calc(var(--sec-space) / 2); /* блок до блока — общий шаг, линия посередине */
  border-top: 1px solid var(--c-line);
  scroll-margin-top: calc(var(--header-h) + var(--header-top) * 3);
}

.fq-sec:first-child { border-top: 0; padding-top: 0; }

.fq-sec h2 { font-size: clamp(1.625rem, 1.15rem + 1.3vw, 2.375rem); max-width: 14ch; }

.fq-sec__lead { margin-top: 12px; color: var(--c-ink-muted); max-width: 40ch; font-size: .9688rem; }

.fq-sec__aside .link-more { margin-top: 8px; white-space: normal; }

@media (min-width: 1100px) {
  .fq-sec { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: start; }

  .fq-sec__aside { position: sticky; top: calc(var(--header-h) + var(--header-top) * 3); }
}

/* форма заявки под вопросами раздела — на всю ширину, отступ как между блоками;
   заголовок раздела здесь не липнет, иначе он едет поверх формы (липкость считается по всему разделу, а не по строке сетки) */
.fq-sec--final .fq-lead { grid-column: 1 / -1; margin-top: calc(var(--sec-space) - 18px); }

.fq-sec--final .fq-sec__aside { position: static; }

.fq-hero .anchors { margin-top: clamp(20px, 2.4vw, 28px); }

.fq-hero .hero-page__note { margin-top: 16px; }

/* ---------- хаб базы знаний: материалы таблицей (13.10.2026) ---------- */
.kht{padding:6px var(--panel-pad);border-radius:var(--r-xl);background:var(--c-surface);box-shadow:var(--shadow-rest)}
.kht__head,.kht__row{display:grid;grid-template-columns:minmax(0,4fr) minmax(0,7fr) 44px;align-items:center;gap:8px clamp(24px,4vw,64px)}
.kht__head{padding:16px 0 12px;border-bottom:1px solid var(--c-line);color:var(--c-ink-muted);font-size:.8125rem;font-weight:600}
.kht__row{position:relative;padding:clamp(18px,2.2vw,24px) 0;border-top:1px solid var(--c-line)}
.kht__head + .kht__row{border-top:0}
.kht__title{font-family:var(--font-display);font-size:clamp(1.125rem,1rem + .45vw,1.375rem);font-weight:800;line-height:1.15;letter-spacing:-.01em;transition:color .2s}
.kht__text{color:var(--c-ink-muted);font-size:.9375rem;line-height:1.5;max-width:64ch}
.kht__go{display:grid;place-items:center;width:44px;height:44px;border:1px solid var(--c-line);border-radius:50%;color:var(--c-violet);transition:background-color .2s,border-color .2s,color .2s}
.kht__go::after{content:"";width:18px;height:18px;background:currentColor;-webkit-mask:var(--i-arrow) center / contain no-repeat;mask:var(--i-arrow) center / contain no-repeat}
.kht__go::before{content:"";position:absolute;inset:0}
.kht__row:hover .kht__title{color:var(--c-violet-deep)}
.kht__row:hover .kht__go{border-color:var(--c-violet);background:var(--c-violet);color:var(--c-surface)}
.kht__row:has(.kht__go:focus-visible){outline:2px solid var(--c-violet);outline-offset:4px;border-radius:var(--r-sm)}
@media (max-width:760px){.kht__head{display:none}.kht__row{grid-template-columns:minmax(0,1fr) 44px}.kht__head + .kht__row{border-top:0}.kht__text{grid-column:1}.kht__go{grid-column:2;grid-row:1 / span 2}}/* круг строки списка — 44 px и на телефоне (polish 14.10.2026, пункт 35) */

/* ---------- хаб базы знаний: «обложка гида» — робот слева, заголовок и кнопка справа (13.10.2026) ---------- */
.khg{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1fr);align-items:center;gap:clamp(24px,4vw,64px);padding:var(--panel-pad);border-radius:var(--r-xl);background:var(--c-surface);box-shadow:var(--shadow-rest)}
.khg__tile{position:relative;display:block;height:clamp(180px,16vw,230px);border-radius:var(--r-lg);background:radial-gradient(60% 80% at 50% 100%,rgba(159,117,255,.28),rgba(159,117,255,0) 70%),var(--c-lavender-tile)}
.khg__robot{position:absolute;left:50%;bottom:8%;height:108%;translate:-50% 0;transition:transform .45s var(--ease-out)}
.khg:hover .khg__robot{transform:translateY(-6px)}
.khg__body{display:grid;gap:24px;justify-items:start;padding-right:clamp(0px,2vw,24px)}
.khg__title{font-family:var(--font-display);font-weight:800;font-size:clamp(1.5rem,1.1rem + 1.2vw,2.25rem);line-height:1.1;letter-spacing:-.02em}
@media (max-width:640px){.khg{grid-template-columns:1fr}.khg__tile{margin-top:28px}}

/* ---------- polish 14.10.2026: подпись автора и эксперта на узком ноутбуке не сжимается (пункт 111) ---------- */
@media (min-width: 960px) and (max-width: 1279px) {
  .art-answer { grid-template-columns: minmax(0, 8fr) minmax(340px, 4fr); }

  .art-answer .byline > div { grid-template-columns: 90px minmax(0, 1fr); }
}

@media (min-width: 960px) {
  .art-answer .byline .demo-badge { white-space: nowrap; }
}

/* ---------- polish 14.10.2026: колонки с числами и короткими значениями ужимаются по содержимому (пункт 112) ---------- */
@media (min-width: 720px) {
  .dtable .is-num, .dtable .is-fit { width: 1%; white-space: nowrap; }
}

@media (min-width: 720px) and (max-width: 1279px) {
  /* три числовые колонки подряд: подписи над числами переносятся, место уходит тексту */
  .dtable thead tr:has(> th.is-num + th.is-num + th.is-num) > th.is-num { white-space: normal; }
}

/* ---------- polish 14.10.2026: лента оглавления не срезает рамку фокуса у чипов (пункт 113) ---------- */
@media (max-width: 1099px) {
  .toc__list { margin-top: -6px; padding-top: 8px; }
}

/* ---------- polish 14.10.2026: ссылки в источниках откликаются на наведение (пункт 114) ---------- */
.sources__list a { transition: color .15s, text-decoration-thickness .15s; }

.sources__list a:hover { color: var(--c-violet-deep); text-decoration-thickness: 2px; }

/* ---------- polish 14.10.2026: форма заявки нового вида в базе знаний (пункт 27, выбор А) ---------- */
/* разметка и поведение — общие .leadsec__panel из styles.css; здесь только то, что лежит в чужих css */
.leadsec__title { color: var(--c-surface); font-family: var(--font-display); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; max-width: 18ch; text-wrap: balance; }

/* ---------- polish 14.10.2026: одна мера колонки чтения — текст, заметки, источники, сноски (пункт 110, выбор А) ---------- */
/* 72ch считается один раз по основному тексту и наследуется готовой длиной: у мелкой сноски та же ширина, что у абзаца; таблицы и формулы — на всю колонку */
@property --art-measure { syntax: "<length-percentage>"; inherits: true; initial-value: 100%; }

main { --art-measure: 72ch; }

main .flagnote { max-width: var(--art-measure); }

/* ---------- polish 14.10.2026: «Данные» в таблицах станций — только «производитель», звёздочка у значения (пункт 117, выбор А) ---------- */
@media (max-width: 719px) {
  .dtable td:empty { display: none; }
}

/* ---------- правовой документ 28.10.2026 (политика обработки персональных данных): компактный первый экран и одна колонка текста без оглавления; H2 скромнее, чем в гидах, абзацы и списки плотнее, перечисления — с тире, как в тексте документа; таблица — строками без панели ---------- */
.hero-page--doc { min-height: 0; justify-content: flex-start; }
.doc { max-width: var(--art-measure); margin-top: clamp(40px, 5vw, 72px); overflow-wrap: break-word; }
.doc__sec + .doc__sec { margin-top: clamp(32px, 3.4vw, 48px); }
.doc__sec { scroll-margin-top: calc(var(--header-h) + var(--header-top) * 3); }
.doc h2 { margin-bottom: 14px; font-size: clamp(1.3125rem, 1.1rem + .55vw, 1.625rem); line-height: 1.2; }
.doc p, .doc ul, .doc__pairs { margin-top: .7em; }
.doc h2 + * { margin-top: 0; }
.doc ul { padding: 0; list-style: none; }
.doc li { position: relative; padding-left: 1.5em; }
.doc li + li { margin-top: .35em; }
.doc li::before { content: "—"; position: absolute; left: 0; color: var(--c-violet); }
.doc__pairs { width: 100%; border-collapse: collapse; }
.doc__pairs th, .doc__pairs td { padding: 12px 16px 12px 0; border-top: 1px solid var(--c-line); text-align: left; vertical-align: top; }
.doc__pairs tr:last-child > * { border-bottom: 1px solid var(--c-line); }
.doc__pairs th { width: 34%; font-weight: 650; }
@media (max-width: 719px) {
  .doc__pairs, .doc__pairs tbody, .doc__pairs tr, .doc__pairs th, .doc__pairs td { display: block; width: auto; }
  .doc__pairs tr { padding: 12px 0; border-top: 1px solid var(--c-line); }
  .doc__pairs tr:last-child { border-bottom: 1px solid var(--c-line); }
  .doc__pairs th, .doc__pairs td, .doc__pairs tr:last-child > * { padding: 0; border: 0; }
  .doc__pairs th { margin-bottom: 4px; }
}
