/* Компоненты редакционного сайта: крошки, подпись автора, плашки, реклама, футер, таблицы. */

.lc-skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--color-primary);
  color: var(--color-on-primary);
  font-weight: 700;
}
.lc-skip:focus { left: 16px; }

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

/* —— Хлебные крошки —— */
.lc-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 24px 0 8px;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  color: var(--color-muted);
}
.lc-breadcrumbs li + li::before {
  content: "›";
  margin-right: 6px;
  color: var(--color-muted-soft);
}
.lc-breadcrumbs a { color: var(--color-muted); }
.lc-breadcrumbs a:hover { color: var(--color-text); }

/* —— Автор и даты —— */
.lc-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-top: 10px;
  font-size: 0.875rem;
  color: var(--color-muted);
}
.lc-byline a { color: var(--color-secondary); }

.lc-stand {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  font-size: 0.8125rem;
  color: var(--color-muted);
  white-space: nowrap;
}

/* —— Плашки —— */
.lc-note {
  margin: 28px 0;
  padding: 18px 20px;
  border-radius: var(--radius-base);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-secondary);
  background: var(--color-surface);
}
.lc-note p { margin: 0 0 8px; }
.lc-note p:last-child { margin-bottom: 0; }
.lc-note__title { font-weight: 700; color: var(--color-heading); }
.lc-note--rg { border-left-color: var(--color-warning); }
.lc-note--warn { border-left-color: var(--color-danger); }
.lc-note ul, .lc-note ol { margin: 8px 0 0; }

/* —— CTA и пометка рекламы —— */
.lc-cta {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.lc-ad-label {
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.lc-header__actions .lc-cta { flex-direction: row; gap: 8px; }
.lc-cta-banner { text-align: center; }

.lc-mobile-cta-wrap { display: none; }
@media (max-width: 991px) {
  .lc-mobile-cta-wrap {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 998;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(7, 11, 42, 0.96);
    border-top: 1px solid var(--color-border);
  }
  .lc-mobile-cta-wrap .lc-cta { display: flex; width: 100%; }
  .lc-mobile-cta-wrap .lc-mobile-cta {
    position: static;
    display: flex;
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
  }
  body { padding-bottom: 92px; }
}

/* —— Хиро на главной: ссылки внутри подзаголовка —— */
.lc-hero__subtitle a { color: inherit; text-decoration: underline; }

/* —— Таблицы —— */
.lc-entry__content .lc-table-scroll > table,
.lc-table-scroll > table {
  width: 100%;
  min-width: 100%;
  border-collapse: collapse;
}
.lc-table-scroll caption {
  caption-side: top;
  text-align: left;
  padding: 0 0 8px;
  font-weight: 600;
  color: var(--color-muted);
}
.lc-table-scroll th,
.lc-table-scroll td {
  white-space: normal;
  vertical-align: top;
  min-width: 110px;
}
.lc-table-scroll th[scope="row"] {
  text-align: left;
  font-weight: 600;
  color: var(--color-heading);
}
@media (max-width: 480px) {
  .lc-table-scroll th,
  .lc-table-scroll td { padding: 8px 10px; font-size: 0.875rem; }
}

/* —— Ссылки «Weiterlesen» —— */
.lc-related-links {
  margin: 36px 0 12px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}
.lc-related-links__title { font-size: 1.25rem; margin: 0 0 12px; }
.lc-related-links ul {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}
.lc-related-links li {
  padding: 14px 16px;
  border-radius: var(--radius-base);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}
.lc-related-links li a { font-weight: 600; color: var(--color-heading); }
.lc-related-links li span {
  display: block;
  margin-top: 4px;
  font-size: 0.875rem;
  color: var(--color-muted);
}

/* —— Меню: второй уровень в мобильной панели —— */
.lc-header__nav--drawer .menu-item--sub a { font-size: 0.9375rem; color: var(--color-muted); }

/* —— Футер —— */
.lc-footer__grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .lc-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
.lc-footer__text { margin: 14px 0 0; color: var(--color-muted); font-size: 0.9375rem; }
.lc-footer__heading { margin: 0 0 10px; font-weight: 700; color: var(--color-heading); }
.lc-footer__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.lc-footer__list a { color: var(--color-text-soft); }
.lc-footer__list a:hover { color: var(--color-primary); }
.lc-footer__notice {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
  font-size: 0.875rem;
  color: var(--color-muted);
}
.lc-footer__notice p { margin: 0 0 10px; }
.lc-footer__notice a { color: var(--color-text-soft); text-decoration: underline; }

.lc-404-links { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; list-style: none; }

/* —— Автор (страница /autoren/) —— */
.lc-author-card {
  margin: 24px 0;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}
.lc-author-card h2 { margin-top: 0; }
.lc-author-card dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 12px 0 0; }
.lc-author-card dt { font-weight: 600; color: var(--color-muted); }
.lc-author-card dd { margin: 0; }
@media (max-width: 480px) {
  .lc-author-card dl { grid-template-columns: 1fr; }
}

/* —— Логотип и брейкпоинт меню —— */
.lc-logo { display: block; height: 32px; width: auto; }
.lc-footer .lc-logo { height: 30px; }
.lc-header__nav a { white-space: nowrap; }
@media (min-width: 992px) and (max-width: 1199px) {
  .lc-header__nav-wrap { display: none; }
  .lc-header__burger { display: flex; }
}
@media (max-width: 420px) {
  .lc-logo { height: 26px; }
  .lc-header__actions { display: none; }
}
.lc-header__actions { margin-left: auto; }

/* —— Второй уровень меню на десктопе —— */
.lc-subnav { display: none; }
@media (min-width: 1200px) {
  .lc-subnav {
    display: block;
    background: var(--color-bg-secondary);
    border-bottom: 1px solid var(--color-border);
  }
  .lc-subnav__inner { padding-top: 0; padding-bottom: 0; }
  .lc-subnav ul {
    display: flex;
    gap: 4px 18px;
    margin: 0;
    padding: 10px 0;
    list-style: none;
    overflow-x: auto;
  }
  .lc-subnav a {
    color: var(--color-muted);
    font-size: 0.8125rem;
    white-space: nowrap;
  }
  .lc-subnav a:hover,
  .lc-subnav .is-current a { color: var(--color-heading); }
  .lc-header__nav a { padding: 8px 10px; font-size: 0.875rem; }
}

/* —— Вид страницы: кикер, оглавление, герой —— */
.lc-kicker {
  margin: 0 0 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-secondary);
}
.lc-toc { margin: 18px 0 4px; }
.lc-toc #TableOfContents > ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.lc-toc li { margin: 0; }
.lc-toc a {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-text-soft);
  font-size: 0.8125rem;
  line-height: 1.3;
}
.lc-toc a:hover { color: var(--color-heading); border-color: var(--color-border-hover); }
.lc-toc ul ul { display: none; }

.lc-hero.lc-hero--editorial {
  min-height: 0;
  padding: 72px 20px 56px;
  text-align: left;
  justify-content: flex-start;
  background-color: var(--color-bg);
  background-image:
    linear-gradient(120deg, rgba(7, 11, 42, 0.94) 0%, rgba(18, 26, 74, 0.82) 100%),
    var(--lc-hero-image, none);
}
.lc-hero.lc-hero--editorial .lc-hero__inner { max-width: 760px; }
.lc-hero.lc-hero--editorial .lc-hero__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--color-heading);
}
.lc-hero.lc-hero--editorial .lc-hero__subtitle {
  margin-bottom: 0;
  max-width: 42rem;
  color: var(--color-text-soft);
}
.lc-hero.lc-hero--editorial .lc-hero__accent { letter-spacing: 0.12em; }

/* —— Сетка тем и карточка бонуса на главной —— */
.lc-topics ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin: 22px 0 8px;
  padding: 0;
  list-style: none;
}
.lc-topics a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-base);
  background: var(--color-surface);
  color: var(--color-heading);
  font-weight: 600;
}
.lc-topics a:hover { border-color: var(--color-border-hover); }
.lc-topics small {
  font-weight: 400;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--color-muted);
}
.lc-bonus-strip {
  display: grid;
  gap: 6px;
  margin: 18px 0 8px;
  padding: 16px 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}
.lc-bonus-strip__value {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-heading);
}
.lc-bonus-strip__meta { margin: 0; color: var(--color-text-soft); }
.lc-bonus-strip__link { font-weight: 600; color: var(--color-secondary); }

/* —— Врезки: статус, предупреждение, чеклист —— */
.lc-note--status { border-left-color: var(--color-secondary); }
.lc-note--check { border-left-color: var(--color-primary); }
.lc-note--info { border-left-color: var(--color-secondary); }

/* —— CTA внутри статьи: строка, не второй хиро —— */
.lc-entry__content .lc-cta-banner {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  gap: 12px 20px;
  padding: 16px 18px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: none;
}
.lc-entry__content .lc-cta-banner__title {
  max-width: none;
  flex: 1 1 16rem;
  font-size: 1rem;
  font-weight: 600;
  text-shadow: none;
}

/* —— Шаги и шкала сроков —— */
.lc-steps ol,
.lc-rail {
  list-style: none;
  margin: 8px 0 24px;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: 10px;
}
.lc-steps li,
.lc-rail > li {
  counter-increment: step;
  position: relative;
  margin: 0;
  padding: 14px 16px 14px 58px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-base);
  background: var(--color-surface);
}
.lc-steps li::before,
.lc-rail > li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 14px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--color-primary);
  color: var(--color-on-primary);
  font-weight: 700;
  font-size: 0.875rem;
}
.lc-steps li > p,
.lc-rail p { margin: 0; }
.lc-rail h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}
@media (min-width: 900px) {
  .lc-rail { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lc-rail--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lc-rail > li { padding: 44px 14px 14px; }
  .lc-rail > li::before { left: 14px; top: 12px; }
}

/* —— Две колонки и карточки —— */
.lc-columns {
  display: grid;
  gap: 12px;
  margin: 8px 0 24px;
}
@media (min-width: 720px) {
  .lc-columns { grid-template-columns: 1fr 1fr; align-items: start; }
}
.lc-columns__col {
  margin: 0;
  padding: 16px 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-base);
  background: var(--color-surface);
}
.lc-columns__col:first-child { border-top: 3px solid var(--color-success); }
.lc-columns__col:last-child { border-top: 3px solid var(--color-warning); }
.lc-columns__col h3 { margin: 0 0 10px; font-size: 1rem; }
.lc-columns__col ul { margin-bottom: 0; }

.lc-cards {
  display: grid;
  gap: 12px;
  margin: 8px 0 24px;
}
@media (min-width: 720px) {
  .lc-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lc-cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.lc-card-tile {
  margin: 0;
  padding: 16px 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-base);
  background: var(--color-surface);
}
.lc-card-tile h3 { margin: 0 0 8px; font-size: 1rem; }
.lc-card-tile p { margin: 0 0 8px; color: var(--color-text-soft); }
.lc-card-tile p:last-child { margin-bottom: 0; }

.lc-chiplist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 20px;
  padding: 0;
  list-style: none;
}
.lc-chiplist li {
  padding: 6px 12px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface);
  font-size: 0.875rem;
}

/* —— Таблицы как карточки на узком экране —— */
@media (max-width: 720px) {
  .lc-board,
.lc-table-scroll { position: relative; }
.lc-table-scroll--kv,
  .lc-board--pros .lc-table-scroll,
  .lc-board--compare .lc-table-scroll,
  .lc-board--pay .lc-table-scroll {
    overflow: visible;
  }
  .lc-kv,
  .lc-board--pros table,
  .lc-board--compare table,
  .lc-board--pay table,
  .lc-kv tbody,
  .lc-board--pros tbody,
  .lc-board--compare tbody,
  .lc-board--pay tbody,
  .lc-kv tr,
  .lc-board--pros tr,
  .lc-board--compare tr,
  .lc-board--pay tr {
    display: block;
    width: auto;
    min-width: 0;
  }
  .lc-kv thead,
  .lc-board--pros thead,
  .lc-board--compare thead,
  .lc-board--pay thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .lc-kv tr,
  .lc-board--pros tr,
  .lc-board--compare tr,
  .lc-board--pay tr {
    margin: 0 0 10px;
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-base);
    background: var(--color-surface);
  }
  .lc-kv th,
  .lc-kv td,
  .lc-board--pros th,
  .lc-board--pros td,
  .lc-board--compare th,
  .lc-board--compare td,
  .lc-board--pay th,
  .lc-board--pay td {
    display: block;
    min-width: 0;
    padding: 4px 0;
    border: 0;
  }
}

/* Слоты — карточки на всех ширинах */
.lc-board--slots .lc-table-scroll { overflow: visible; }
.lc-board--slots table {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.lc-board--slots thead {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.lc-board--slots tbody { display: contents; }
.lc-board--slots tr {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-base);
  background: var(--color-surface);
}
.lc-board--slots td {
  display: block;
  min-width: 0;
  padding: 0;
  border: 0;
  color: var(--color-text-soft);
}
.lc-board--slots td:first-child {
  font-weight: 700;
  color: var(--color-heading);
}

@media (min-width: 721px) {
  .lc-board--pros th:nth-child(2),
  .lc-board--pros td:nth-child(2) { box-shadow: inset 3px 0 0 var(--color-success); }
  .lc-board--pros th:nth-child(3),
  .lc-board--pros td:nth-child(3) { box-shadow: inset 3px 0 0 var(--color-warning); }
}

/* —— Автор и импрессум —— */
.lc-author-card__head { display: flex; gap: 14px; align-items: center; }
.lc-author-card__mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 999px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  font-weight: 700;
  color: var(--color-primary);
}
.lc-author-card__role { margin: 4px 0 0; color: var(--color-muted); }
.lc-author-card__label { margin: 16px 0 8px; font-weight: 700; }
.lc-author-card__pages {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.lc-author-card__pages a {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-text-soft);
  font-size: 0.875rem;
}
.lc-owner-card {
  margin: 16px 0;
  padding: 16px 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-base);
  background: var(--color-surface);
}
.lc-kind-legal .lc-entry__content { max-width: 68ch; }

