.cr-footer { padding: 40px 0 0; background: #15131d; border-top: 1px solid var(--border, #393546); }
.cr-footer-inner { display: grid; grid-template-columns: 1.25fr 1fr 1.1fr 1fr; gap: 28px; }
.cr-footer-brand img { display: block; max-width: 100%; height: auto; margin-bottom: 10px; }
.cr-footer h2 { font-size: 1rem; margin: 0 0 10px; }
.cr-footer ul { margin: 0; padding: 0; list-style: none; }
.cr-footer li + li { margin-top: 7px; }
.cr-footer :is(p, li, .cr-footer-bottom) { color: var(--muted, #c5bdd1); }
.cr-footer a:hover, .cr-footer-button:hover { color: var(--coral, #ff806d); }
.cr-footer-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 24px; margin-top: 28px; padding-block: 14px; border-top: 1px solid var(--border, #393546); font-size: .88rem; }
.cr-footer-button { padding: 0; background: none; border: 0; color: inherit; font: inherit; text-align: start; text-decoration: underline; cursor: pointer; }

.cr-ui-button, .cr-back-to-top {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 14px; border: 1px solid transparent; border-radius: 10px;
  background: var(--coral, #ff806d); color: #20131c; font: inherit; font-weight: 750;
  text-decoration: none; cursor: pointer; min-height: 44px; box-sizing: border-box;
}
.cr-ui-button:hover, .cr-back-to-top:hover { filter: brightness(1.1); }
.cr-ui-secondary { background: #272335; color: #f8f6fc; border-color: #534b65; }
:is(.cr-ui-button, .cr-back-to-top, .cr-footer a, .cr-footer-button):focus-visible { outline: 2px solid #d5a8ff; outline-offset: 3px; }
[data-cr-cookies][hidden], [data-cr-top][hidden], [data-cr-open-cookies][hidden], [data-cr-toc-slot][hidden] { display: none !important; }

.cr-back-to-top {
  position: fixed; z-index: 45; right: clamp(12px, 3vw, 30px);
  bottom: calc(18px + var(--cr-fixed-clearance, 0px) + var(--cr-notice-height, 0px) + env(safe-area-inset-bottom));
  box-shadow: 0 8px 28px #08061080;
}
.cr-cookies {
  position: fixed; z-index: 46; inset-inline: 12px;
  bottom: calc(12px + var(--cr-fixed-clearance, 0px) + env(safe-area-inset-bottom));
  width: min(calc(100% - 24px), 740px); margin-inline: auto; padding: 16px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  box-sizing: border-box; background: #211c2d; color: #f8f6fc; border: 1px solid #4b425e;
  border-radius: 14px; box-shadow: 0 10px 40px #080610a0;
}
.cr-cookies h2 { margin: 0 0 4px; font-size: 1.02rem; }
.cr-cookies p { margin: 0 0 4px; color: #d7cfe4; }
.cr-cookies a { color: #d5a8ff; text-decoration: underline; }
.cr-cookies-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.cr-ad { position: relative; isolation: isolate; overflow: hidden; border-radius: 16px; margin: 28px 0; border: 1px solid #4c3859; background: #21152b; }
.cr-ad > img, .cr-ad::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.cr-ad > img { object-fit: cover; object-position: 68% center; z-index: -2; }
.cr-ad::after { content: ""; background: linear-gradient(90deg,#150e20 0%,#150e20e8 28%,#150e2054 65%,transparent); z-index: -1; }
.cr-ad-inner { position: relative; max-width: 420px; padding: clamp(20px, 4vw, 42px); }
.cr-ad h2 { color: #fff4ff; margin: 6px 0; font-size: clamp(1.65rem, 4vw, 2.6rem); }
.cr-ad small { color: #e4b8ff; }
.cr-ad p { margin: 0 0 15px; color: #f0dff7; }

.lh-article.cr-article-layout { max-width: 1248px; }
.cr-article-layout .lh-article-head h1 {
  font-size: clamp(2rem, 3.15vw, 3.12rem);
  line-height: 1.08;
  text-wrap: balance;
}
.cr-article-layout .lh-article-body { min-width: 0; max-width: 880px; }
.cr-article-layout .lh-article-body :is(h2, h3, h4)[id] { scroll-margin-top: 92px; }

@media (min-width: 1080px) {
  .cr-article-layout.cr-article-has-toc {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(235px, 300px);
    gap: 0 clamp(24px, 3vw, 44px); align-items: start;
  }
  .cr-article-layout .lh-article-head { grid-column: 1 / -1; }
  .cr-article-layout .lh-article-body { max-width: none; }
  .cr-article-layout [data-cr-toc-slot] { position: sticky; top: 82px; max-height: calc(100vh - 100px); overflow: auto; scrollbar-width: thin; }
  .cr-article-layout [data-cr-toc-slot] .lh-import-toc { margin: 0; }
}
@media (max-width: 880px) {
  .cr-footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  body:has(.bottom-nav) { --cr-fixed-clearance: 62px; }
  body:has(.bottom-nav) .cr-footer { padding-bottom: calc(var(--cr-fixed-clearance) + env(safe-area-inset-bottom)); }
  .cr-ad::after { background: linear-gradient(90deg,#150e20f5,#150e207d); }
  .cr-back-to-top span { display: none; }
}
