/* Main theme tokens from the dark emerald and gold reference artwork */
body.mb-site,
.mb-site-header,
.mb-page-strip,
.mb-site-footer,
.mb-site-drawer,
.mb-article,
.mbpk-article,
.mbpk-page .mb-article {
  --mb-font: "Inter", "Noto Sans", "Segoe UI", Arial, sans-serif;
  --mb-container: 1120px;
  --mb-gutter: clamp(14px, 3.6vw, 28px);
  --mb-section-pad: clamp(16px, 3vw, 28px);
  --mb-radius-sm: 12px;
  --mb-radius: 20px;
  --mb-radius-lg: 30px;

  --mb-bg: #03160e;
  --mb-bg-2: #062718;
  --mb-bg-3: #0a3a24;
  --mb-panel: #071f15;
  --mb-panel-2: #0a2d1d;
  --mb-panel-3: #0f432b;

  --mb-primary: #f5c85a;
  --mb-primary-2: #d89a2f;
  --mb-gold: #f5c85a;
  --mb-gold-2: #d89a2f;
  --mb-teal: #20c982;
  --mb-red: #e95533;

  --mb-text: #f6fff8;
  --mb-text-soft: #dcefe4;
  --mb-muted: #a9c5b3;
  --mb-muted-2: #7ea08b;

  --mb-line: rgba(245, 200, 90, 0.24);
  --mb-line-strong: rgba(245, 200, 90, 0.45);
  --mb-border: rgba(245, 200, 90, 0.24);
  --mb-border-strong: rgba(245, 200, 90, 0.45);

  --mb-shadow: 0 22px 60px rgba(0, 0, 0, 0.42);
  --mb-glow: 0 0 34px rgba(245, 200, 90, 0.18);
  --mb-green-glow: 0 0 44px rgba(32, 201, 130, 0.16);
}

/* Page shell background */
body.mb-site {
  font-family: var(--mb-font);
  direction: ltr;
  text-align: left;
  color: var(--mb-text);
  background:
    radial-gradient(circle at 78% 8%, rgba(245, 200, 90, 0.18), transparent 26rem),
    radial-gradient(circle at 18% 12%, rgba(32, 201, 130, 0.18), transparent 24rem),
    linear-gradient(135deg, #02110b 0%, #062718 44%, #03140d 100%);
}

/* Shell typography contract */
.mb-site-header,
.mb-page-strip,
.mb-site-footer,
.mb-site-drawer {
  font-family: var(--mb-font);
  color: var(--mb-text);
}

/* Header and top navigation */
.mb-site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(3, 22, 14, 0.82);
  border-bottom: 1px solid var(--mb-line);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.mb-site-header__inner {
  width: 100%;
  max-width: var(--mb-container);
  margin-inline: auto;
  padding: 10px var(--mb-gutter);
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: clamp(8px, 2vw, 18px);
  min-width: 0;
}

.mb-site-brand {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  color: var(--mb-text);
  text-decoration: none;
}

.mb-site-brand__logo {
  display: block;
  max-height: 40px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  aspect-ratio: 800 / 128;
}

.mb-site-brand__text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--mb-text);
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.mb-site-header__actions {
  flex: 0 0 auto;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.mb-site-nav {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.mb-site-nav::-webkit-scrollbar {
  display: none;
}

.mb-site-nav__list {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.mb-site-nav__link,
.mb-topbar__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  max-width: 100%;
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--mb-text-soft);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.92rem;
  line-height: 1.2;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(245, 200, 90, 0.16);
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.mb-site-nav__link:hover,
.mb-site-nav__link:focus-visible,
.mb-topbar__link:hover,
.mb-topbar__link:focus-visible {
  color: #05180f;
  background: linear-gradient(135deg, var(--mb-gold), var(--mb-gold-2));
  border-color: var(--mb-gold);
  outline: none;
  transform: translateY(-1px);
}

.mb-site-btn,
.mb-site-burger {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  min-height: 38px;
  padding: 9px 15px;
  border: 1px solid var(--mb-line-strong);
  font-family: var(--mb-font);
  font-weight: 900;
  font-size: 0.92rem;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.mb-site-btn {
  color: #04150d;
  background: linear-gradient(135deg, var(--mb-gold) 0%, #ffe08b 44%, var(--mb-gold-2) 100%);
  box-shadow: 0 10px 24px rgba(245, 200, 90, 0.2);
}

.mb-site-btn:hover,
.mb-site-btn:focus-visible {
  color: #04150d;
  background: linear-gradient(135deg, #ffe293 0%, var(--mb-gold) 54%, #c98423 100%);
  border-color: rgba(255, 229, 145, 0.78);
  box-shadow: 0 14px 30px rgba(245, 200, 90, 0.28);
  transform: translateY(-1px);
  outline: none;
}

.mb-site-btn--apk {
  color: var(--mb-gold);
  background: rgba(3, 22, 14, 0.62);
  border-color: var(--mb-line-strong);
  box-shadow: none;
}

.mb-site-btn--apk:hover,
.mb-site-btn--apk:focus-visible {
  color: #04150d;
  background: linear-gradient(135deg, var(--mb-gold), var(--mb-gold-2));
}

.mb-site-burger {
  width: 38px;
  min-width: 38px;
  padding: 0;
  color: var(--mb-gold);
  background: rgba(255, 255, 255, 0.045);
  border-color: var(--mb-line);
}

/* Off-canvas drawer sizing and palette */
.mb-site-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  color: var(--mb-text);
  background: rgba(1, 11, 7, 0.66);
  z-index: 1000;
}

@supports not (height: 100dvh) {
  .mb-site-drawer {
    height: 100vh;
  }
}

.mb-site-drawer__panel {
  height: 100%;
  min-height: 100dvh;
  color: var(--mb-text);
  background:
    radial-gradient(circle at 18% 4%, rgba(245, 200, 90, 0.14), transparent 18rem),
    linear-gradient(180deg, rgba(8, 38, 24, 0.98), rgba(3, 18, 12, 0.98));
  border-inline-start: 1px solid var(--mb-line);
  box-shadow: -24px 0 60px rgba(0, 0, 0, 0.42);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.mb-site-drawer__panel::-webkit-scrollbar {
  display: none;
}

.mb-site-drawer__link {
  display: flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  padding: 12px 14px;
  border-radius: 16px;
  color: var(--mb-text-soft);
  text-decoration: none;
  font-weight: 850;
  line-height: 1.25;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(245, 200, 90, 0.13);
}

.mb-site-drawer__link:hover,
.mb-site-drawer__link:focus-visible {
  color: #04150d;
  background: linear-gradient(135deg, var(--mb-gold), var(--mb-gold-2));
  border-color: var(--mb-gold);
  outline: none;
}

.mb-site-drawer__cta,
.mb-site-drawer__cta--apk {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  border-radius: 999px;
  text-align: center;
  text-decoration: none;
  font-weight: 900;
  line-height: 1.2;
  white-space: normal;
  overflow-wrap: anywhere;
}

.mb-site-drawer__cta {
  color: #04150d;
  background: linear-gradient(135deg, var(--mb-gold), #ffe08b 48%, var(--mb-gold-2));
  border: 1px solid rgba(255, 229, 145, 0.72);
}

.mb-site-drawer__cta--apk {
  color: var(--mb-gold);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--mb-line-strong);
}

/* Breadcrumbs and page title strip */
.mb-page-strip {
  color: var(--mb-muted);
  background: rgba(3, 22, 14, 0.64);
  border-bottom: 1px solid rgba(245, 200, 90, 0.14);
}

.mb-page-strip__inner {
  width: 100%;
  max-width: var(--mb-container);
  margin-inline: auto;
  padding: 8px var(--mb-gutter);
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.mb-page-strip a {
  color: var(--mb-gold);
  text-decoration: none;
  font-weight: 800;
}

.mb-page-strip a:hover,
.mb-page-strip a:focus-visible {
  color: #ffe08b;
  text-decoration: underline;
  outline: none;
}

.mb-page-title-strip {
  width: 100%;
  max-width: var(--mb-container);
  margin: 0 auto clamp(20px, 4vw, 42px);
  padding: clamp(18px, 4vw, 34px) var(--mb-gutter);
  box-sizing: border-box;
  color: var(--mb-text);
}

/* Footer */
.mb-site-footer {
  color: var(--mb-text-soft);
  background:
    radial-gradient(circle at 10% 0%, rgba(245, 200, 90, 0.1), transparent 20rem),
    linear-gradient(180deg, rgba(5, 25, 16, 0.95), rgba(2, 12, 8, 0.98));
  border-top: 1px solid var(--mb-line);
}

.mb-site-footer__inner {
  width: 100%;
  max-width: var(--mb-container);
  margin-inline: auto;
  padding: clamp(24px, 5vw, 44px) var(--mb-gutter);
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr);   /* было 0.8fr + 1.8fr: меню зажималось в узкую
     колонку и сворачивалось в рваный столбик. Футер — одна колонка, как на отгруженных. */
  align-items: start;
  gap: clamp(18px, 4vw, 36px);
  min-width: 0;
}

.mb-site-footer__brand,
.mb-site-footer__copy {
  min-width: 0;
  max-width: 100%;
}

.mb-footer-nav {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.mb-footer-nav__list {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  min-width: 0;
}

.mb-footer-nav__list > li {
  flex: 1 1 auto;
  min-width: min(100%, 132px);
  max-width: 100%;
}

.mb-footer-nav__link {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--mb-text-soft);
  text-align: center;
  text-decoration: none;
  font-weight: 800;
  line-height: 1.2;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(245, 200, 90, 0.14);
  overflow-wrap: anywhere;
}

.mb-footer-nav__link:hover,
.mb-footer-nav__link:focus-visible {
  color: #04150d;
  background: linear-gradient(135deg, var(--mb-gold), var(--mb-gold-2));
  border-color: var(--mb-gold);
  outline: none;
}

/* Scoped article foundation */
.mb-article,
.mbpk-article {
  box-sizing: border-box;
  width: min(var(--mb-container), calc(100% - var(--mb-gutter) - var(--mb-gutter)));
  max-width: var(--mb-container);
  margin-inline: auto;
  padding: clamp(14px, 3vw, 26px);
  direction: ltr;
  text-align: left;
  font-family: var(--mb-font);
  color: var(--mb-text);
  line-height: 1.72;
  background:
    radial-gradient(circle at 82% 0%, rgba(245, 200, 90, 0.12), transparent 22rem),
    radial-gradient(circle at 6% 12%, rgba(32, 201, 130, 0.14), transparent 20rem),
    linear-gradient(180deg, rgba(7, 31, 21, 0.98) 0%, rgba(4, 20, 13, 0.99) 100%);
  border: 1px solid rgba(245, 200, 90, 0.18);
  border-radius: var(--mb-radius-lg);
  box-shadow: var(--mb-shadow);
}

.mb-article,
.mb-article *,
.mb-article *::before,
.mb-article *::after,
.mbpk-article,
.mbpk-article *,
.mbpk-article *::before,
.mbpk-article *::after {
  box-sizing: border-box;
}

.mb-article__inner {
  width: 100%;
  max-width: var(--mb-container);
  margin-inline: auto;
  min-width: 0;
}

.mb-article[dir="rtl"],
.mbpk-article[dir="rtl"],
[dir="rtl"] .mb-article {
  direction: rtl;
  text-align: right;
}

/* General article typography */
:is(.mb-article, .mbpk-article) :is(h1, h2, h3, h4, h5, h6) {
  max-width: 100%;
  margin-block-start: 0;
  margin-block-end: 0.62em;
  color: var(--mb-text);
  font-weight: 950;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

:is(.mb-article, .mbpk-article) :is(h2, h3, h4, h5, h6):not(:first-child) {
  margin-block-start: 0.85em;
}

:is(.mb-article, .mbpk-article) h1 {
  font-size: clamp(2.2rem, 7vw, 5rem);
  letter-spacing: -0.055em;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.34);
}

:is(.mb-article, .mbpk-article) h2 {
  font-size: clamp(1.72rem, 4.4vw, 3.1rem);
}

:is(.mb-article, .mbpk-article) h3 {
  font-size: clamp(1.32rem, 3vw, 2rem);
}

:is(.mb-article, .mbpk-article) h4 {
  font-size: clamp(1.12rem, 2.2vw, 1.45rem);
}

:is(.mb-article, .mbpk-article) :is(p, li, dd, td, th) {
  color: var(--mb-text-soft);
}

:is(.mb-article, .mbpk-article) p {
  max-width: 100%;
  margin-block-start: 0;
  margin-block-end: 1em;
}

:is(.mb-article, .mbpk-article) p:last-child {
  margin-block-end: 0;
}

:is(.mb-article, .mbpk-article) strong {
  color: var(--mb-text);
  font-weight: 900;
}

:is(.mb-article, .mbpk-article) a:not(.mb-btn) {
  color: var(--mb-gold);
  text-decoration-color: rgba(245, 200, 90, 0.52);
  text-underline-offset: 0.18em;
}

:is(.mb-article, .mbpk-article) a:not(.mb-btn):hover,
:is(.mb-article, .mbpk-article) a:not(.mb-btn):focus-visible {
  color: #ffe08b;
  text-decoration-color: #ffe08b;
  outline: none;
}

:is(.mb-article, .mbpk-article) img,
:is(.mb-article, .mbpk-article) video,
:is(.mb-article, .mbpk-article) iframe {
  max-width: 100%;
}

:is(.mb-article, .mbpk-article) img {
  height: auto;
}

/* Explicit readability measure only when requested */
:is(.mb-article, .mbpk-article) .mb-measure {
  max-width: min(72ch, 100%);
  margin-inline: auto;
}

/* Section rhythm */
:is(.mb-article, .mbpk-article) :is(.mb-hero, .mb-row, .mb-cta, .mb-grid, .mb-slot-grid, .mb-faq, .mb-table-wrap, .mb-divider) {
  margin-block-end: clamp(24px, 5vw, 54px);
}

:is(.mb-article, .mbpk-article) > :last-child,
:is(.mb-article, .mbpk-article) .mb-article__inner > :last-child {
  margin-block-end: 0;
}

:is(.mb-article, .mbpk-article) .mb-kicker,
:is(.mb-article, .mbpk-article) .mb-badge,
:is(.mb-article, .mbpk-article) .mb-hero__badge {
  width: fit-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 7px 12px;
  margin-block-end: 14px;
  border-radius: 999px;
  color: var(--mb-gold);
  background: rgba(245, 200, 90, 0.08);
  border: 1px solid rgba(245, 200, 90, 0.32);
  font-weight: 900;
  font-size: 0.88rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
  box-shadow: inset 0 0 18px rgba(245, 200, 90, 0.05);
}

:is(.mb-article, .mbpk-article) .mb-divider {
  width: 100%;
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, rgba(245, 200, 90, 0.58), transparent);
}

/* Hero: single-column grid at every breakpoint, visual order image, CTA, copy */
:is(.mb-article, .mbpk-article) .mb-hero {
  --mb-hero-copy-pad: var(--mb-section-pad);
  width: 100%;
  max-width: var(--mb-container);
  margin-inline: auto;
  padding-inline: 0;
  padding-block-start: 0;
  padding-block-end: clamp(8px, 2vw, 18px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "media"
    "cta"
    "copy";
  gap: 0;
  min-width: 0;
  border-radius: var(--mb-radius-lg);
  background:
    radial-gradient(circle at 76% 8%, rgba(245, 200, 90, 0.13), transparent 19rem),
    linear-gradient(180deg, rgba(10, 58, 36, 0.78), rgba(4, 20, 13, 0.72));
  border: 1px solid rgba(245, 200, 90, 0.18);
  box-shadow: var(--mb-green-glow);
}

:is(.mb-article, .mbpk-article) .mb-hero__media {
  grid-area: media;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  aspect-ratio: 16 / 9;
  padding: 0;
  border-radius: var(--mb-radius-lg);
  overflow: clip;
  background: #03140d;
  border: 1px solid rgba(245, 200, 90, 0.24);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.36), var(--mb-glow);
}

:is(.mb-article, .mbpk-article) .mb-hero__media > img,
:is(.mb-article, .mbpk-article) .mb-hero__media picture,
:is(.mb-article, .mbpk-article) .mb-hero__media picture > img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
}

:is(.mb-article, .mbpk-article) .mb-hero__media > img,
:is(.mb-article, .mbpk-article) .mb-hero__media picture > img {
  object-fit: cover;
  object-position: center;
  transition: transform 420ms ease, filter 420ms ease;
}

:is(.mb-article, .mbpk-article) .mb-hero__media:hover > img,
:is(.mb-article, .mbpk-article) .mb-hero__media:hover picture > img {
  transform: scale(1.035);
  filter: saturate(1.08) contrast(1.04);
  cursor: pointer;
}

:is(.mb-article, .mbpk-article) .mb-hero__copy {
  grid-area: copy;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding-inline: var(--mb-hero-copy-pad);
  padding-block: clamp(16px, 3.6vw, 34px) clamp(12px, 2.8vw, 28px);
}

:is(.mb-article, .mbpk-article) .mb-hero__title {
  max-width: 100%;
  margin-block-end: 0.22em;
}

:is(.mb-article, .mbpk-article) .mb-hero__lead {
  max-width: 100%;
  margin: 0;
  color: var(--mb-text-soft);
  font-size: clamp(1.06rem, 2.2vw, 1.32rem);
  line-height: 1.62;
}

:is(.mb-article, .mbpk-article) .mb-hero > .mb-cta {
  grid-area: cta;
  width: calc(100% - var(--mb-hero-copy-pad) - var(--mb-hero-copy-pad));
  max-width: calc(100% - var(--mb-hero-copy-pad) - var(--mb-hero-copy-pad));
  margin-inline: var(--mb-hero-copy-pad);
  margin-block-start: clamp(16px, 3vw, 26px);
  margin-block-end: clamp(8px, 2vw, 18px);
}

/* Rows */
:is(.mb-article, .mbpk-article) .mb-row:not(.mb-hero) {
  width: 100%;
  max-width: var(--mb-container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "media"
    "copy";
  align-items: start;
  gap: clamp(18px, 4vw, 38px);
  min-width: 0;
  padding: clamp(16px, 3.2vw, 30px);
  border-radius: var(--mb-radius-lg);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
    rgba(7, 31, 21, 0.64);
  border: 1px solid rgba(245, 200, 90, 0.15);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.2);
}

:is(.mb-article, .mbpk-article) .mb-row--reverse:not(.mb-hero) {
  grid-template-areas:
    "copy"
    "media";
}

:is(.mb-article, .mbpk-article) .mb-row--stack:not(.mb-hero),
:is(.mb-article, .mbpk-article) .mb-row--long:not(.mb-hero) {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "media"
    "copy";
}

:is(.mb-article, .mbpk-article) .mb-row--stack.mb-row--reverse:not(.mb-hero),
:is(.mb-article, .mbpk-article) .mb-row--long.mb-row--reverse:not(.mb-hero) {
  grid-template-areas:
    "copy"
    "media";
}

:is(.mb-article, .mbpk-article) .mb-copy {
  grid-area: copy;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding-block-start: 0;
  align-self: start;
}

:is(.mb-article, .mbpk-article) .mb-copy :is(p, ul, ol, .mb-card__copy) {
  max-width: 100%;
  margin-inline: 0;
}

:is(.mb-article, .mbpk-article) .mb-media {
  grid-area: media;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0;
  padding-block-start: 0;
  align-self: start;
  aspect-ratio: 2 / 3;
  border-radius: var(--mb-radius);
  overflow: clip;
  background: #03140d;
  border: 1px solid rgba(245, 200, 90, 0.22);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32), var(--mb-green-glow);
}

:is(.mb-article, .mbpk-article) .mb-media > img,
:is(.mb-article, .mbpk-article) .mb-media picture,
:is(.mb-article, .mbpk-article) .mb-media picture > img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
}

:is(.mb-article, .mbpk-article) .mb-media > img,
:is(.mb-article, .mbpk-article) .mb-media picture > img {
  object-fit: cover;
  object-position: center;
  transition: transform 380ms ease, filter 380ms ease, box-shadow 380ms ease;
}

:is(.mb-article, .mbpk-article) .mb-media:hover > img,
:is(.mb-article, .mbpk-article) .mb-media:hover picture > img {
  transform: scale(1.04);
  filter: saturate(1.08) contrast(1.04);
  cursor: pointer;
}

@supports not (overflow: clip) {
  :is(.mb-article, .mbpk-article) :is(.mb-hero__media, .mb-media, .mb-card__media) {
    overflow: hidden;
  }
}

@media (min-width: 880px) {
  :is(.mb-article, .mbpk-article) .mb-row:not(.mb-hero):not(.mb-row--stack):not(.mb-row--long) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
    grid-template-areas: "copy media";
  }

  :is(.mb-article, .mbpk-article) .mb-row--reverse:not(.mb-hero):not(.mb-row--stack):not(.mb-row--long) {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
    grid-template-areas: "media copy";
  }
}

/* CTA blocks and buttons */
:is(.mb-article, .mbpk-article) .mb-cta {
  width: 100%;
  max-width: var(--mb-container);
  margin-inline: auto;
  min-width: 0;
  padding: clamp(18px, 4vw, 34px);
  border-radius: var(--mb-radius-lg);
  background:
    radial-gradient(circle at 82% 10%, rgba(245, 200, 90, 0.17), transparent 18rem),
    linear-gradient(135deg, rgba(12, 67, 43, 0.88), rgba(5, 24, 16, 0.94));
  border: 1px solid var(--mb-line);
  box-shadow: var(--mb-green-glow);
}

:is(.mb-article, .mbpk-article) .mb-cta__copy {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  color: var(--mb-text-soft);
}

:is(.mb-article, .mbpk-article) :is(.mb-hero__actions, .mb-cta__actions, .mb-actions, .mb-btn-row) {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-block-start: clamp(14px, 2.8vw, 22px);
}

:is(.mb-article, .mbpk-article) .mb-btn,
:is(.mb-article, .mbpk-article) a.mb-btn,
:is(.mbpk-page .mb-article) a.mb-btn {
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 48px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 229, 145, 0.78);
  color: #04150d;
  background: linear-gradient(135deg, var(--mb-gold) 0%, #ffe08b 46%, var(--mb-gold-2) 100%);
  box-shadow: 0 14px 32px rgba(245, 200, 90, 0.22);
  font-family: var(--mb-font);
  font-weight: 950;
  line-height: 1.16;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

:is(.mb-article, .mbpk-article) .mb-btn:hover,
:is(.mb-article, .mbpk-article) .mb-btn:focus-visible,
:is(.mb-article, .mbpk-article) a.mb-btn:hover,
:is(.mb-article, .mbpk-article) a.mb-btn:focus-visible {
  color: #04150d;
  background: linear-gradient(135deg, #ffe293 0%, var(--mb-gold) 50%, #c98423 100%);
  border-color: #ffe293;
  box-shadow: 0 18px 42px rgba(245, 200, 90, 0.32);
  transform: translateY(-1px);
  outline: none;
}

:is(.mb-article, .mbpk-article) .mb-btn--secondary,
:is(.mb-article, .mbpk-article) a.mb-btn--secondary {
  color: var(--mb-gold);
  background: rgba(3, 22, 14, 0.52);
  border-color: var(--mb-line-strong);
  box-shadow: inset 0 0 18px rgba(245, 200, 90, 0.04);
}

:is(.mb-article, .mbpk-article) .mb-btn--secondary:hover,
:is(.mb-article, .mbpk-article) .mb-btn--secondary:focus-visible,
:is(.mb-article, .mbpk-article) a.mb-btn--secondary:hover,
:is(.mb-article, .mbpk-article) a.mb-btn--secondary:focus-visible {
  color: #04150d;
  background: linear-gradient(135deg, var(--mb-gold), var(--mb-gold-2));
  border-color: var(--mb-gold);
}

:is(.mb-article, .mbpk-article) .mb-btn--ghost,
:is(.mb-article, .mbpk-article) a.mb-btn--ghost {
  color: var(--mb-text);
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.13);
  box-shadow: none;
}

:is(.mb-article, .mbpk-article) .mb-btn--ghost:hover,
:is(.mb-article, .mbpk-article) .mb-btn--ghost:focus-visible {
  color: var(--mb-text);
  background: rgba(255, 255, 255, 0.085);
  border-color: rgba(245, 200, 90, 0.34);
}

/* Lists */
:is(.mb-article, .mbpk-article) :is(ul, ol) {
  max-width: 100%;
  margin-block-start: 0;
  margin-block-end: 1.1em;
  padding-inline-start: 1.35em;
  padding-inline-end: 0;
}

:is(.mb-article, .mbpk-article) :is(ul, ol) li {
  max-width: 100%;
  margin-block: 0.4em;
  padding-inline-start: 0.1em;
}

:is(.mb-article, .mbpk-article) li::marker {
  color: var(--mb-gold);
  font-weight: 900;
}

:is(.mb-article, .mbpk-article)[dir="rtl"] :is(ul, ol),
[dir="rtl"] :is(.mb-article, .mbpk-article) :is(ul, ol) {
  padding-inline-start: 0;
  padding-inline-end: 1.35em;
}

/* Card grids */
.mb-article .mb-grid,
.mb-article .mb-slot-grid,
.mbpk-article .mb-grid,
.mbpk-article .mb-slot-grid {
  width: 100%;
  max-width: var(--mb-container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(16px, 3vw, 26px);
  min-width: 0;
}

.mb-article .mb-grid > .mb-card,
.mb-article .mb-slot-grid > .mb-card,
.mbpk-article .mb-grid > .mb-card,
.mbpk-article .mb-slot-grid > .mb-card {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

:is(.mb-article, .mbpk-article) .mb-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
  color: var(--mb-text-soft);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.042), rgba(255, 255, 255, 0.018)),
    rgba(6, 39, 24, 0.82);
  border: 1px solid rgba(245, 200, 90, 0.16);
  border-radius: var(--mb-radius);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.23);
}

:is(.mb-article, .mbpk-article) .mb-card__media {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0;
  aspect-ratio: 2 / 3;
  border-radius: var(--mb-radius);
  overflow: clip;
  background: #03140d;
  border: 1px solid rgba(245, 200, 90, 0.2);
}

:is(.mb-article, .mbpk-article) .mb-card__media > img,
:is(.mb-article, .mbpk-article) .mb-card__media picture,
:is(.mb-article, .mbpk-article) .mb-card__media picture > img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
}

:is(.mb-article, .mbpk-article) .mb-card__media > img,
:is(.mb-article, .mbpk-article) .mb-card__media picture > img {
  object-fit: cover;
  object-position: center;
  transition: transform 360ms ease, filter 360ms ease;
}

:is(.mb-article, .mbpk-article) .mb-card:hover .mb-card__media > img,
:is(.mb-article, .mbpk-article) .mb-card:hover .mb-card__media picture > img {
  transform: scale(1.04);
  filter: saturate(1.08) contrast(1.04);
  cursor: pointer;
}

:is(.mb-article, .mbpk-article) .mb-card__body,
:is(.mb-article, .mbpk-article) .mb-card__content {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: clamp(16px, 3vw, 24px);
}

:is(.mb-article, .mbpk-article) .mb-card__title {
  max-width: 100%;
  margin-block-start: 0;
  margin-block-end: 0.5em;
}

:is(.mb-article, .mbpk-article) .mb-card__copy {
  max-width: 100%;
  margin-inline: 0;
  color: var(--mb-text-soft);
}

:is(.mb-article, .mbpk-article) .mb-card > :is(h3, h4, p, ul, ol):not(.mb-card__media) {
  max-width: calc(100% - 32px);
  margin-inline: 16px;
}

:is(.mb-article, .mbpk-article) .mb-card > :is(h3, h4):first-child {
  margin-block-start: 16px;
}

:is(.mb-article, .mbpk-article) .mb-card > :last-child:not(.mb-card__media):not(.mb-card__body):not(.mb-card__content) {
  margin-block-end: 16px;
}

@media (min-width: 640px) and (max-width: 979.98px) {
  .mb-article .mb-grid,
  .mb-article .mb-slot-grid,
  .mbpk-article .mb-grid,
  .mbpk-article .mb-slot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  .mb-article .mb-grid,
  .mb-article .mb-slot-grid,
  .mbpk-article .mb-grid,
  .mbpk-article .mb-slot-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mb-article .mb-grid--orphan-fix,
  .mb-article .mb-slot-grid--orphan-fix,
  .mbpk-article .mb-grid--orphan-fix,
  .mbpk-article .mb-slot-grid--orphan-fix {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .mb-article .mb-grid--orphan-fix > .mb-card,
  .mb-article .mb-slot-grid--orphan-fix > .mb-card,
  .mbpk-article .mb-grid--orphan-fix > .mb-card,
  .mbpk-article .mb-slot-grid--orphan-fix > .mb-card {
    grid-column: span 2;
  }

  .mb-article .mb-grid--orphan-fix > .mb-card:last-child:nth-child(3n+1),
  .mb-article .mb-slot-grid--orphan-fix > .mb-card:last-child:nth-child(3n+1),
  .mbpk-article .mb-grid--orphan-fix > .mb-card:last-child:nth-child(3n+1),
  .mbpk-article .mb-slot-grid--orphan-fix > .mb-card:last-child:nth-child(3n+1) {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto;
    align-items: stretch;
    gap: clamp(16px, 3vw, 28px);
  }

  .mb-article .mb-grid--orphan-fix > .mb-card:nth-last-child(2):nth-child(3n+1),
  .mb-article .mb-grid--orphan-fix > .mb-card:last-child:nth-child(3n+2),
  .mb-article .mb-slot-grid--orphan-fix > .mb-card:nth-last-child(2):nth-child(3n+1),
  .mb-article .mb-slot-grid--orphan-fix > .mb-card:last-child:nth-child(3n+2),
  .mbpk-article .mb-grid--orphan-fix > .mb-card:nth-last-child(2):nth-child(3n+1),
  .mbpk-article .mb-grid--orphan-fix > .mb-card:last-child:nth-child(3n+2),
  .mbpk-article .mb-slot-grid--orphan-fix > .mb-card:nth-last-child(2):nth-child(3n+1),
  .mbpk-article .mb-slot-grid--orphan-fix > .mb-card:last-child:nth-child(3n+2) {
    grid-column: span 3;
  }

  .mb-article .mb-grid--orphan-fix > .mb-card:last-child:nth-child(3n+1) > .mb-card__media,
  .mb-article .mb-slot-grid--orphan-fix > .mb-card:last-child:nth-child(3n+1) > .mb-card__media,
  .mbpk-article .mb-grid--orphan-fix > .mb-card:last-child:nth-child(3n+1) > .mb-card__media,
  .mbpk-article .mb-slot-grid--orphan-fix > .mb-card:last-child:nth-child(3n+1) > .mb-card__media {
    grid-column: 2;
    grid-row: 1;
    align-self: stretch;
  }

  .mb-article .mb-grid--orphan-fix > .mb-card:last-child:nth-child(3n+1) > .mb-card__body,
  .mb-article .mb-grid--orphan-fix > .mb-card:last-child:nth-child(3n+1) > .mb-card__content,
  .mb-article .mb-slot-grid--orphan-fix > .mb-card:last-child:nth-child(3n+1) > .mb-card__body,
  .mb-article .mb-slot-grid--orphan-fix > .mb-card:last-child:nth-child(3n+1) > .mb-card__content,
  .mbpk-article .mb-grid--orphan-fix > .mb-card:last-child:nth-child(3n+1) > .mb-card__body,
  .mbpk-article .mb-grid--orphan-fix > .mb-card:last-child:nth-child(3n+1) > .mb-card__content,
  .mbpk-article .mb-slot-grid--orphan-fix > .mb-card:last-child:nth-child(3n+1) > .mb-card__body,
  .mbpk-article .mb-slot-grid--orphan-fix > .mb-card:last-child:nth-child(3n+1) > .mb-card__content {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
  }
}

/* FAQ */
:is(.mb-article, .mbpk-article) .mb-faq {
  width: 100%;
  max-width: var(--mb-container);
  margin-inline: auto;
  min-width: 0;
}

:is(.mb-article, .mbpk-article) .mb-faq details {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-block-end: 12px;
  padding: 0;
  border-radius: var(--mb-radius);
  background: rgba(7, 31, 21, 0.72);
  border: 1px solid rgba(245, 200, 90, 0.16);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

:is(.mb-article, .mbpk-article) .mb-faq details[open] {
  border-color: rgba(245, 200, 90, 0.32);
  box-shadow: var(--mb-green-glow);
}

:is(.mb-article, .mbpk-article) .mb-faq summary {
  min-width: 0;
  padding: 16px 18px;
  color: var(--mb-text);
  font-weight: 900;
  line-height: 1.35;
  cursor: pointer;
  list-style-position: inside;
}

:is(.mb-article, .mbpk-article) .mb-faq summary::marker {
  color: var(--mb-gold);
}

:is(.mb-article, .mbpk-article) .mb-faq details > :not(summary) {
  max-width: 100%;
  margin-inline: 0;
  padding-inline: 18px;
}

:is(.mb-article, .mbpk-article) .mb-faq details > :last-child {
  padding-block-end: 18px;
}

/* Tables: viewport remains fixed, wide tables scroll only inside the wrapper */
:is(.mb-article, .mbpk-article) .mb-table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: block;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  margin-block: clamp(18px, 3vw, 28px) clamp(26px, 5vw, 52px);
  border-radius: var(--mb-radius);
  border: 1px solid rgba(245, 200, 90, 0.22);
  background: rgba(3, 20, 13, 0.7);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.22);
  scrollbar-color: var(--mb-gold) rgba(255, 255, 255, 0.06);
}

:is(.mb-article, .mbpk-article) table.mb-table {
  width: 100%;
  min-width: 620px;
  max-width: none;
  border-collapse: separate;
  border-spacing: 0;
  direction: ltr;
  text-align: start;
  color: var(--mb-text-soft);
  background: rgba(7, 31, 21, 0.78);
}

:is(.mb-article, .mbpk-article) table.mb-table caption {
  padding: 12px 14px;
  color: var(--mb-muted);
  text-align: start;
  caption-side: bottom;
}

:is(.mb-article, .mbpk-article) table.mb-table th,
:is(.mb-article, .mbpk-article) table.mb-table td {
  padding: 13px 14px;
  border-block-end: 1px solid rgba(245, 200, 90, 0.14);
  border-inline-end: 1px solid rgba(245, 200, 90, 0.09);
  vertical-align: top;
}

:is(.mb-article, .mbpk-article) table.mb-table th {
  color: #04150d;
  background: linear-gradient(135deg, var(--mb-gold), var(--mb-gold-2));
  font-weight: 950;
}

:is(.mb-article, .mbpk-article) table.mb-table td {
  background: rgba(255, 255, 255, 0.025);
}

:is(.mb-article, .mbpk-article) table.mb-table tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.045);
}

:is(.mb-article, .mbpk-article) table.mb-table tr:hover td {
  background: rgba(32, 201, 130, 0.08);
}

/* Utility blocks */
:is(.mb-article, .mbpk-article) .mb-note,
:is(.mb-article, .mbpk-article) .mb-highlight {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: clamp(14px, 3vw, 22px);
  border-radius: var(--mb-radius);
  color: var(--mb-text-soft);
  background: rgba(245, 200, 90, 0.075);
  border: 1px solid rgba(245, 200, 90, 0.24);
}

:is(.mb-article, .mbpk-article) .mb-highlight strong,
:is(.mb-article, .mbpk-article) .mb-note strong {
  color: var(--mb-gold);
}

/* Mobile safety */
@media (max-width: 639.98px) {
  .mb-site-header__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding-block: 8px;
  }

  .mb-site-brand__logo {
    max-height: clamp(26px, 7.5vw, 40px);
    max-width: 100%;
    width: auto;
    height: auto;
  }

  .mb-site-header__actions {
    gap: 6px;
  }

  .mb-site-btn {
    min-height: 32px;
    padding: 7px 10px;
    font-size: 0.78rem;
  }

  .mb-site-burger {
    width: 32px;
    min-width: 32px;
    min-height: 32px;
  }

  .mb-site-footer__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .mb-footer-nav__list > li {
    flex: 1 1 100%;
    min-width: 0;
  }

  .mb-article,
  .mbpk-article {
    width: min(100%, calc(100% - var(--mb-gutter) - var(--mb-gutter)));
    padding: clamp(12px, 4vw, 16px);
    border-radius: 22px;
  }

  :is(.mb-article, .mbpk-article) .mb-hero {
    border-radius: 22px;
  }

  :is(.mb-article, .mbpk-article) .mb-hero__media {
    border-radius: 22px;
  }

  :is(.mb-article, .mbpk-article) .mb-row:not(.mb-hero),
  :is(.mb-article, .mbpk-article) .mb-cta {
    padding: 16px;
    border-radius: 22px;
  }

  :is(.mb-article, .mbpk-article) :is(.mb-hero__actions, .mb-cta__actions, .mb-actions, .mb-btn-row) {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  :is(.mb-article, .mbpk-article) .mb-btn,
  :is(.mb-article, .mbpk-article) a.mb-btn {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding-inline: 14px;
  }

  :is(.mb-article, .mbpk-article) table.mb-table {
    min-width: 600px;
  }

  :is(.mb-article, .mbpk-article) table.mb-table th,
  :is(.mb-article, .mbpk-article) table.mb-table td {
    white-space: nowrap;
  }
}

@media (min-width: 640px) {
  :is(.mb-article, .mbpk-article) .mb-btn {
    width: auto;
  }
}

/* Direction support */
[dir="rtl"] .mb-site-header,
[dir="rtl"] .mb-page-strip,
[dir="rtl"] .mb-site-footer,
[dir="rtl"] .mb-site-drawer,
[dir="rtl"] .mb-article,
[dir="rtl"] .mbpk-article {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] :is(.mb-article, .mbpk-article) table.mb-table {
  direction: rtl;
}

[dir="ltr"] :is(.mb-article, .mbpk-article) table.mb-table,
:is(.mb-article, .mbpk-article)[dir="ltr"] table.mb-table {
  direction: ltr;
}

/* Motion preference */
@media (prefers-reduced-motion: reduce) {
  .mb-site-nav__link,
  .mb-topbar__link,
  .mb-site-btn,
  .mb-site-burger,
  .mb-footer-nav__link,
  .mb-site-drawer__link,
  :is(.mb-article, .mbpk-article) .mb-btn,
  :is(.mb-article, .mbpk-article) :is(.mb-hero__media, .mb-media, .mb-card__media) img {
    transition: none;
  }

  :is(.mb-article, .mbpk-article) :is(.mb-hero__media, .mb-media, .mb-card__media):hover img,
  :is(.mb-article, .mbpk-article) .mb-card:hover .mb-card__media img {
    transform: none;
  }
}
/* Подпись CTA-блока: раньше была <h3> и давала пропуск уровня h1→h3 (стандарт флота §1.4).
   Тег сменён на <p>, типографика сохранена один в один. */
.mb-article .mb-cta__title,
.mbpk-article .mb-cta__title {
  color: var(--mb-text);
  font-family: var(--mb-font);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-block-start: 0;
  margin-block-end: 0.62em;
  overflow-wrap: anywhere;
  break-after: avoid;
  font-size: clamp(1.32rem, 3vw, 2rem);
}

/* fair-pages-kit: Beautiful Site TOC (converter-injected) */
.mb-article .mb-toc,
.mbpk-article .mb-toc,
.mbpk-page .mb-article .mb-toc {
  width: 100%;
  max-width: var(--mb-container);
  margin-inline: auto;
  margin-block-end: var(--mb-stack-gap, var(--mb-space-7, clamp(20px, 4vw, 42px)));
  padding: clamp(20px, 4vw, 36px) var(--mb-page-pad, var(--mb-gutter, clamp(16px, 3.4vw, 28px)));
  border: 1px solid var(--mb-border, rgba(255, 255, 255, 0.12));
  border-radius: var(--mb-radius-lg, 22px);
  background:
    radial-gradient(circle at 88% 10%, rgba(227, 178, 87, 0.12), transparent 16rem),
    linear-gradient(180deg, rgba(36, 16, 8, 0.94), rgba(27, 11, 5, 0.88));
  box-shadow: var(--mb-shadow, 0 22px 70px rgba(0, 0, 0, 0.42));
}

.mb-article .mb-toc__summary,
.mbpk-article .mb-toc__summary,
.mbpk-page .mb-article .mb-toc__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  cursor: pointer;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mb-article .mb-toc__summary::-webkit-details-marker,
.mbpk-article .mb-toc__summary::-webkit-details-marker,
.mbpk-page .mb-article .mb-toc__summary::-webkit-details-marker {
  display: none;
}

.mb-article .mb-toc__summary::after,
.mbpk-article .mb-toc__summary::after,
.mbpk-page .mb-article .mb-toc__summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 1.75rem;
  height: 1.75rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--mb-border-strong, rgba(255, 255, 255, 0.24));
  border-radius: var(--mb-radius-sm, 12px);
  color: var(--mb-gold-2, #ffd985);
  font-size: 1.1rem;
  line-height: 1;
  transition: transform 0.2s ease, background 0.2s ease;
}

.mb-article .mb-toc[open] .mb-toc__summary::after,
.mbpk-article .mb-toc[open] .mb-toc__summary::after,
.mbpk-page .mb-article .mb-toc[open] .mb-toc__summary::after {
  content: "−";
}

.mb-article .mb-toc__title,
.mbpk-article .mb-toc__title,
.mbpk-page .mb-article .mb-toc__title {
  margin: 0;
  color: var(--mb-gold-2, #ffd985);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  line-height: 1.25;
}

.mb-article .mb-toc__list,
.mbpk-article .mb-toc__list,
.mbpk-page .mb-article .mb-toc__list {
  margin: clamp(14px, 2.5vw, 20px) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: clamp(8px, 1.5vw, 12px);
}

.mb-article .mb-toc__list--sub,
.mbpk-article .mb-toc__list--sub,
.mbpk-page .mb-article .mb-toc__list--sub {
  margin: clamp(8px, 1.5vw, 10px) 0 0;
  padding-left: clamp(12px, 2vw, 18px);
  border-left: 1px solid var(--mb-border, rgba(255, 255, 255, 0.12));
}

.mb-article .mb-toc__item,
.mbpk-article .mb-toc__item,
.mbpk-page .mb-article .mb-toc__item {
  margin: 0;
}

.mb-article .mb-toc__link,
.mbpk-article .mb-toc__link,
.mbpk-page .mb-article .mb-toc__link {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--mb-radius-sm, 12px);
  color: var(--mb-text, var(--mb-ink, #f2f2ee));
  text-decoration: none;
  background: rgba(255, 246, 220, 0.03);
  border: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.mb-article .mb-toc__num,
.mbpk-article .mb-toc__num,
.mbpk-page .mb-article .mb-toc__num {
  flex: 0 0 auto;
  min-width: 2.2rem;
  color: var(--mb-gold, #e3b257);
  font-variant-numeric: tabular-nums;
}

.mb-article .mb-toc__text,
.mbpk-article .mb-toc__text,
.mbpk-page .mb-article .mb-toc__text {
  flex: 1 1 auto;
}

.mb-article .mb-toc__link:hover,
.mbpk-article .mb-toc__link:hover,
.mbpk-page .mb-article .mb-toc__link:hover,
.mb-article .mb-toc__link:focus-visible,
.mbpk-article .mb-toc__link:focus-visible,
.mbpk-page .mb-article .mb-toc__link:focus-visible {
  color: var(--mb-gold-2, #ffd985);
  border-color: var(--mb-border-strong, rgba(255, 255, 255, 0.24));
  background: rgba(227, 178, 87, 0.08);
}

@media (max-width: 640px) {
  .mb-article .mb-toc,
  .mbpk-article .mb-toc,
  .mbpk-page .mb-article .mb-toc {
    max-width: 100%;
  }
}

