:root {
  --bg: #f4f1ec;
  --paper: #ffffff;
  --paper-warm: #fbf8f3;
  --ink: #171411;
  --ink-soft: #3b342f;
  --muted: #6f665e;
  --line: #ded8d0;
  --line-strong: #c9bfb5;
  --accent: #b32632;
  --accent-dark: #7f1621;
  --accent-soft: #f6e4e5;
  --gold: #b88a42;
  --dark: #181311;
  --dark-2: #241b18;
  --success: #2f6a4f;
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 30px;
  --shadow-sm: 0 8px 24px rgba(35, 25, 20, .06);
  --shadow: 0 18px 54px rgba(35, 25, 20, .10);
  --shell: 1160px;
  --measure: 760px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 3%, rgba(179,38,50,.06), transparent 24rem),
    radial-gradient(circle at 92% 18%, rgba(184,138,66,.05), transparent 22rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: clamp(16px, 1.15vw, 18px);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: #fff; }
a { color: var(--accent-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); text-decoration-thickness: 2px; }
img { display: block; width: 100%; max-width: 100%; height: auto; border-radius: var(--radius); }
.shell { width: min(calc(100% - 48px), var(--shell)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(222,216,208,.82);
  background: rgba(250,248,244,.90);
  backdrop-filter: blur(16px) saturate(140%);
}
.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-title {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-weight: 830;
  letter-spacing: -.02em;
  text-decoration: none;
}
.site-title::before {
  content: "R";
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--accent), var(--accent-dark));
  color: #fff;
  box-shadow: 0 7px 18px rgba(179,38,50,.2);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.03rem;
}
.header-meta {
  color: var(--muted);
  font-size: .79rem;
  font-weight: 720;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  overflow: hidden;
 
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(115deg, rgba(255,255,255,.96) 0%, rgba(253,249,244,.92) 52%, rgba(246,228,229,.85) 100%);
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}
.hero::before {
  width: 480px;
  height: 480px;
  right: -170px;
  top: -250px;
  border: 70px solid rgba(179,38,50,.055);
}
.hero::after {
  width: 280px;
  height: 280px;
  left: -175px;
  bottom: -175px;
  background: rgba(184,138,66,.055);
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr);
  align-items: center;
  gap: clamp(42px, 7vw, 88px);
}
.hero-grid > div { min-width: 0; }
.hero figure {
  position: relative;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.95);
  border-radius: calc(var(--radius-lg) + 4px);
  background: rgba(255,255,255,.68);
  box-shadow: 0 26px 70px rgba(63,31,28,.16);
  transform: rotate(1.1deg);
}
.hero figure::before {
  content: "";
  position: absolute;
  inset: 10% -18px -18px 14%;
  z-index: -1;
  border-radius: var(--radius-lg);
  background: var(--accent-soft);
}
.hero img { aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); background: #eadfd9; }
.hero figcaption { padding: 12px 6px 2px; }

h1, h2, h3 {
  margin-top: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.09;
  letter-spacing: -.032em;
  text-wrap: balance;
}
h1 { max-width: 14ch; margin-bottom: 24px; font-size: clamp(2.65rem, 5.8vw, 5.3rem); font-weight: 700; }
h2 { margin-bottom: 20px; font-size: clamp(1.85rem, 3.3vw, 3.15rem); font-weight: 700; }
h3 { margin-bottom: 10px; font-size: clamp(1.2rem, 1.9vw, 1.52rem); }
p { margin: 0 0 1.08em; }
.lead { max-width: 66ch; color: var(--ink-soft); font-size: clamp(1.12rem, 1.7vw, 1.38rem); line-height: 1.62; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 17px;
  color: var(--accent);
  font-size: .75rem;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 19px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 780;
  text-decoration: none;
  box-shadow: 0 9px 22px rgba(179,38,50,.16);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 12px 30px rgba(179,38,50,.22); }
.button-secondary { background: rgba(255,255,255,.6); color: var(--accent-dark); box-shadow: none; }
.button-secondary:hover { color: var(--accent-dark); background: #fff; }

.section-block { padding: clamp(58px, 7.5vw, 96px) 0; }
.section-block > p:not(.eyebrow),
.section-block > h2,
.section-block > ol { max-width: var(--measure); }
.section-block > h2 + p { color: var(--ink-soft); }
figure { margin: 0; }
figcaption { margin-top: 11px; color: var(--muted); font-size: .86rem; line-height: 1.5; }

.quick-facts { position: relative; z-index: 3; padding-top: 0; }
.summary-card,
.callout,
.card,
.checklist {
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}
.summary-card { padding: clamp(24px, 4vw, 42px); border-radius: var(--radius-lg); }
.summary-card h2 { font-size: clamp(1.55rem, 2.7vw, 2.3rem); }
.table-scroll { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
table { width: 100%; min-width: 640px; border-collapse: collapse; }
th, td { padding: 14px 17px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { width: 32%; background: var(--paper-warm); color: var(--ink-soft); font-size: .9rem; font-weight: 800; }
td { font-weight: 540; }
tr:last-child th, tr:last-child td { border-bottom: 0; }
.source-note {
  margin: 20px 0 0;
  padding: 14px 16px;
  border-left: 3px solid var(--gold);
  border-radius: 0 10px 10px 0;
  background: #fbf6ec;
  color: var(--muted);
  font-size: .88rem;
}

.split,
.media-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(290px, .85fr);
  align-items: start;
  gap: clamp(36px, 6vw, 78px);
}
.split > div > p { max-width: var(--measure); }
.callout {
  position: sticky;
  top: 96px;
  padding: 28px;
  border-radius: var(--radius);
}
.callout::before {
  content: "";
  display: block;
  width: 42px;
  height: 5px;
  margin-bottom: 20px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
}
.callout ul, .checklist ul { padding-left: 1.18em; margin-bottom: 0; }
.callout li, .checklist li { margin-bottom: 10px; }

.wide-band {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 8.5vw, 108px) 0;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
  color: #f8f3ed;
}
.wide-band::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -220px;
  bottom: -260px;
  border: 70px solid rgba(255,255,255,.035);
  border-radius: 999px;
}
.wide-band h2, .wide-band h3 { color: #fff; }
.wide-band p { color: #e0d7cf; }
.wide-band a { color: #f4b1b7; }
.wide-band .eyebrow { color: #f1a8ae; }
.wide-band .eyebrow::before { background: currentColor; }
.wide-band.soft { background: linear-gradient(135deg, #efe6da, #e7ddd0); color: var(--ink); }
.wide-band.soft h2, .wide-band.soft h3 { color: var(--ink); }
.wide-band.soft p { color: var(--ink-soft); }
.wide-band.soft a { color: var(--accent-dark); }
.wide-band.soft .eyebrow { color: var(--accent); }

.cards { display: grid; gap: 18px; margin: 30px 0 0; }
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  position: relative;
  overflow: hidden;
  padding: 26px;
  border-radius: var(--radius);
  color: var(--ink);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card::after {
  content: "";
  position: absolute;
  width: 72px;
  height: 72px;
  right: -34px;
  top: -34px;
  border-radius: 999px;
  background: var(--accent-soft);
}
.card p:last-child { margin-bottom: 0; }
.wide-band .card { border-color: rgba(255,255,255,.12); background: rgba(255,255,255,.07); box-shadow: none; color: #fff; }
.wide-band .card::after { background: rgba(255,255,255,.06); }
.wide-band .card p { color: #ded5cc; }

.media-grid { grid-template-columns: minmax(310px, .82fr) minmax(0, 1.18fr); align-items: center; }
.media-grid.reverse { grid-template-columns: minmax(0, 1.18fr) minmax(310px, .82fr); }
.media-grid figure {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.media-grid img { aspect-ratio: 16 / 10; object-fit: cover; background: #e9e2dc; }
.media-grid figcaption { padding-inline: 5px; }
.route-proof figure { transform: rotate(-.8deg); }
.licence-context figure { transform: rotate(.8deg); }

.account-section,
.bonus-section,
.games-section,
.checklist-section { position: relative; }
.account-section::before,
.bonus-section::before,
.games-section::before,
.checklist-section::before {
  content: "";
  display: block;
  width: 58px;
  height: 5px;
  margin-bottom: 26px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
}

.audience-section { padding-top: clamp(64px, 8vw, 104px); }
.audience-section .cards.two { gap: 16px; }
.audience-section .card { min-height: 190px; }
.audience-section .card h3 { padding-right: 28px; }

.faq { max-width: var(--shell); }
.faq details {
  overflow: hidden;
  margin-bottom: 12px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--paper);
  box-shadow: 0 5px 18px rgba(35,25,20,.04);
}
.faq summary {
  position: relative;
  cursor: pointer;
  padding: 20px 56px 20px 22px;
  font-weight: 800;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 21px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 1.05rem;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { max-width: 78ch; margin: 0; padding: 0 22px 20px; color: var(--ink-soft); }

.numbered { max-width: 860px !important; padding: 0; counter-reset: steps; list-style: none; }
.numbered li {
  position: relative;
  min-height: 70px;
  margin-bottom: 14px;
  padding: 17px 18px 17px 72px;
  counter-increment: steps;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255,255,255,.68);
}
.numbered li::before {
  content: counter(steps, decimal-leading-zero);
  position: absolute;
  left: 17px;
  top: 16px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: .78rem;
  font-weight: 850;
}

.final-section {
  position: relative;
  margin-bottom: clamp(52px, 7vw, 88px);
  padding-inline: clamp(24px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #fff 0%, #faf4ed 100%);
  box-shadow: var(--shadow-sm);
}
.final-section::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  background: linear-gradient(180deg, var(--accent), var(--gold));
}

.site-footer {
  padding: 46px 0;
  background: #120f0e;
  color: #eee7df;
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer-grid { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; }
.site-footer strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.16rem; }
.site-footer p { max-width: 48ch; margin: 8px 0 0; color: #aaa19a; font-size: .88rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 14px 20px; }
.site-footer a { color: #fff; font-size: .9rem; }

@media (max-width: 960px) {
  .hero-grid, .split, .media-grid, .media-grid.reverse { grid-template-columns: 1fr; }
  .hero-grid { gap: 46px; }
  .hero figure { max-width: 720px; transform: none; }
  .callout { position: static; }
  .cards.three { grid-template-columns: 1fr; }
  .media-grid figure { max-width: 720px; }
  .route-proof figure, .licence-context figure { transform: none; }
}

@media (max-width: 720px) {
  .shell { width: min(calc(100% - 32px), var(--shell)); }
  .header-inner { min-height: 62px; }
  .header-meta { display: none; }
  .hero { padding-top: 52px; }
  h1 { max-width: none; }
 
  .cards.two { grid-template-columns: 1fr; }
  .footer-grid { flex-direction: column; }
  .final-section { width: min(calc(100% - 32px), var(--shell)); }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .shell { width: min(calc(100% - 24px), var(--shell)); }
  .site-title::before { width: 30px; height: 30px; border-radius: 9px; }
  .hero { padding-top: 40px; }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .section-block { padding-block: 48px; }
  .summary-card, .card, .callout { padding: 20px; }
  .numbered li { padding-left: 64px; }
  .final-section { width: min(calc(100% - 24px), var(--shell)); padding-inline: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}


/* === DESIGN V2: high-contrast editorial casino identity === */
.designed-home {
  --bg: #0f0d0c;
  --paper: #171311;
  --paper-warm: #211816;
  --ink: #f9f3ed;
  --ink-soft: #ddd0c4;
  --muted: #b7a79a;
  --line: rgba(255,255,255,.11);
  --line-strong: rgba(255,255,255,.19);
  --accent: #e33d4d;
  --accent-dark: #c42233;
  --accent-soft: rgba(227,61,77,.12);
  --gold: #e4b55f;
  --dark: #080706;
  --dark-2: #140f0e;
  --success: #62b88f;
  background:
    radial-gradient(circle at 8% 2%, rgba(227,61,77,.17), transparent 25rem),
    radial-gradient(circle at 94% 10%, rgba(228,181,95,.10), transparent 22rem),
    #0f0d0c;
  color: var(--ink);
}
.designed-home a { color: #ff7e89; }
.designed-home a:hover { color: #ffadb4; }
.designed-home .site-header {
  border-bottom-color: rgba(255,255,255,.10);
  background: rgba(12,10,9,.91);
  box-shadow: 0 8px 36px rgba(0,0,0,.28);
}
.designed-home .site-title { color:#fff; }
.designed-home .header-meta { color:#bdaea3; }
.designed-home .site-title::before {
  background: linear-gradient(145deg,#ff5260,#9f1522);
  box-shadow: 0 0 0 1px rgba(255,255,255,.11), 0 10px 30px rgba(227,61,77,.34);
}
.designed-home .hero {
  min-height: 760px;
  display:flex;
  align-items:center;
  border-bottom-color: rgba(255,255,255,.08);
  background:
    linear-gradient(105deg, rgba(10,8,7,.99) 0%, rgba(22,13,13,.98) 55%, rgba(58,17,23,.94) 100%);
}
.designed-home .hero::before {
  width: 600px; height:600px; right:-180px; top:-270px;
  border: 80px solid rgba(255,255,255,.035);
}
.designed-home .hero::after {
  width:340px; height:340px; left:-180px; bottom:-190px;
  background: rgba(228,181,95,.07);
}
.designed-home .hero h1 {
  max-width: 13ch;
  color:#fff;
  text-shadow: 0 10px 35px rgba(0,0,0,.35);
}
.designed-home .hero .lead { color:#eadfd7; }
.designed-home .hero p:not(.eyebrow):not(.lead) { color:#cdbfb4; }
.designed-home .eyebrow { color:#ff6976; }
.designed-home .button {
  border-color:#ff5260;
  background: linear-gradient(180deg,#ef4655,#c42031);
  color:#fff;
  box-shadow: 0 14px 34px rgba(227,61,77,.27);
}
.designed-home .button-secondary {
  border-color:rgba(255,255,255,.22);
  background:rgba(255,255,255,.06);
  color:#fff;
}
.designed-home .button-secondary:hover { background:rgba(255,255,255,.12); color:#fff; }
.designed-home .hero figure {
  border-color: rgba(255,255,255,.13);
  background: linear-gradient(145deg,rgba(255,255,255,.10),rgba(255,255,255,.025));
  box-shadow: 0 38px 100px rgba(0,0,0,.48);
}
.designed-home .hero figure::before { background: rgba(227,61,77,.18); }
.designed-home .hero img,
.designed-home figure img {
  background: linear-gradient(135deg,#2a201d,#4e2025);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
.designed-home figcaption { color:#a99587; }
.designed-home .quick-facts { margin-top:-56px; }
.designed-home .summary-card,
.designed-home .callout,
.designed-home .card,
.designed-home .checklist {
  border-color:rgba(255,255,255,.10);
  background: linear-gradient(145deg,#1b1513,#14100f);
  box-shadow:0 24px 70px rgba(0,0,0,.28);
}
.designed-home .summary-card { border-top:3px solid #e33d4d; }
.designed-home .table-scroll { border-color:rgba(255,255,255,.10); background:#15110f; }
.designed-home th { background:#211816; color:#e6d7cb; }
.designed-home th, .designed-home td { border-bottom-color:rgba(255,255,255,.08); }
.designed-home td { color:#f7eee8; }
.designed-home .source-note { color:#ae9f94; }
.designed-home .split,
.designed-home .media-grid { position:relative; }
.designed-home .callout {
  border-left:4px solid #e4b55f;
  background:linear-gradient(145deg,#241b17,#171211);
}
.designed-home .wide-band {
  border-block:1px solid rgba(255,255,255,.08);
  background:
    radial-gradient(circle at 80% 20%,rgba(227,61,77,.09),transparent 26rem),
    #15100f;
}
.designed-home .wide-band.soft {
  background:
    radial-gradient(circle at 18% 30%,rgba(228,181,95,.07),transparent 24rem),
    #12100f;
}
.designed-home .cards .card { transition: transform .2s ease,border-color .2s ease; }
.designed-home .cards .card:hover { transform:translateY(-4px); border-color:rgba(227,61,77,.45); }
.designed-home .card h3 { color:#fff; }
.designed-home .checklist { border-left:4px solid #e33d4d; }
.designed-home .decision-grid > div {
  border-color:rgba(255,255,255,.10);
  background:#181311;
  box-shadow:0 12px 34px rgba(0,0,0,.18);
}
.designed-home .decision-grid strong { color:#fff; }
.designed-home .decision-grid span { color:#c2b4aa; }
.designed-home .section-block { border-bottom:1px solid rgba(255,255,255,.035); }
.designed-home h1,.designed-home h2,.designed-home h3 { color:#fff; }
.designed-home p,.designed-home li { color:#d4c6bb; }
.designed-home strong { color:#fff; }
.designed-home footer { border-top-color:rgba(255,255,255,.10); background:#090807; }

@media (max-width: 900px) {
  .designed-home .hero { min-height:0; }
  .designed-home .hero-grid { grid-template-columns:1fr; }
  .designed-home .hero figure { max-width:680px; transform:none; }
  .designed-home .quick-facts { margin-top:-28px; }
}


/* === CENTERED LAYOUT OVERRIDE: composition only, visual design preserved === */
.designed-home main { text-align: center; }
.designed-home .hero-grid {
  display: block;
  max-width: 980px;
  margin-inline: auto;
}
.designed-home .hero-content-centered {
  width: 100%;
  text-align: center;
}
.designed-home .hero h1 {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.designed-home .hero .lead,
.designed-home .hero p:not(.eyebrow) {
  margin-left: auto;
  margin-right: auto;
}
.designed-home .hero figure {
  width: min(100%, 720px);
  margin: 30px auto 34px;
}
.designed-home .hero-actions { justify-content: center; }
.designed-home .eyebrow { justify-content: center; }
.designed-home .section-block > p:not(.eyebrow),
.designed-home .section-block > h2,
.designed-home .section-block > ol,
.designed-home .section-block > ul {
  margin-left: auto;
  margin-right: auto;
}
.designed-home .wide-band .shell > p,
.designed-home .wide-band .shell > h2 {
  margin-left: auto;
  margin-right: auto;
}
.designed-home .split,
.designed-home .media-grid,
.designed-home .media-grid.reverse {
  text-align: center;
}
.designed-home .split > *,
.designed-home .media-grid > *,
.designed-home .media-grid.reverse > * {
  text-align: center;
}
.designed-home ul,
.designed-home ol {
  text-align: center;
  list-style-position: inside;
  padding-left: 0;
}
.designed-home table th,
.designed-home table td { text-align: center; }
.designed-home .cards .card,
.designed-home .decision-grid > div,
.designed-home .summary-card,
.designed-home .callout,
.designed-home .checklist { text-align: center; }
.designed-home .media-grid figure { margin-left: auto; margin-right: auto; }
@media (max-width: 900px) {
  .designed-home .hero figure { margin-left:auto; margin-right:auto; }
}

/* Imported */
:root {
  --bg: #f4f1ec;
  --paper: #ffffff;
  --paper-warm: #fbf8f3;
  --ink: #171411;
  --ink-soft: #3b342f;
  --muted: #6f665e;
  --line: #ded8d0;
  --line-strong: #c9bfb5;
  --accent: #b32632;
  --accent-dark: #7f1621;
  --accent-soft: #f6e4e5;
  --gold: #b88a42;
  --dark: #181311;
  --dark-2: #241b18;
  --success: #2f6a4f;
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 30px;
  --shadow-sm: 0 8px 24px rgba(35, 25, 20, .06);
  --shadow: 0 18px 54px rgba(35, 25, 20, .10);
  --shell: 1160px;
  --measure: 760px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 3%, rgba(179,38,50,.06), transparent 24rem),
    radial-gradient(circle at 92% 18%, rgba(184,138,66,.05), transparent 22rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: clamp(16px, 1.15vw, 18px);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: #fff; }
a { color: var(--accent-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); text-decoration-thickness: 2px; }
img { display: block; width: 100%; max-width: 100%; height: auto; border-radius: var(--radius); }
.shell { width: min(calc(100% - 48px), var(--shell)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(222,216,208,.82);
  background: rgba(250,248,244,.90);
  backdrop-filter: blur(16px) saturate(140%);
}
.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-title {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-weight: 830;
  letter-spacing: -.02em;
  text-decoration: none;
}
.site-title::before {
  content: "R";
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--accent), var(--accent-dark));
  color: #fff;
  box-shadow: 0 7px 18px rgba(179,38,50,.2);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.03rem;
}
.header-meta {
  color: var(--muted);
  font-size: .79rem;
  font-weight: 720;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  overflow: hidden;

  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(115deg, rgba(255,255,255,.96) 0%, rgba(253,249,244,.92) 52%, rgba(246,228,229,.85) 100%);
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}
.hero::before {
  width: 480px;
  height: 480px;
  right: -170px;
  top: -250px;
  border: 70px solid rgba(179,38,50,.055);
}
.hero::after {
  width: 280px;
  height: 280px;
  left: -175px;
  bottom: -175px;
  background: rgba(184,138,66,.055);
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr);
  align-items: center;
  gap: clamp(42px, 7vw, 88px);
}
.hero-grid > div { min-width: 0; }
.hero figure {
  position: relative;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.95);
  border-radius: calc(var(--radius-lg) + 4px);
  background: rgba(255,255,255,.68);
  box-shadow: 0 26px 70px rgba(63,31,28,.16);
  transform: rotate(1.1deg);
}
.hero figure::before {
  content: "";
  position: absolute;
  inset: 10% -18px -18px 14%;
  z-index: -1;
  border-radius: var(--radius-lg);
  background: var(--accent-soft);
}
.hero img { aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); background: #eadfd9; }
.hero figcaption { padding: 12px 6px 2px; }

h1, h2, h3 {
  margin-top: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.09;
  letter-spacing: -.032em;
  text-wrap: balance;
}
h1 { max-width: 14ch; margin-bottom: 24px; font-size: clamp(2.65rem, 5.8vw, 5.3rem); font-weight: 700; }
h2 { margin-bottom: 20px; font-size: clamp(1.85rem, 3.3vw, 3.15rem); font-weight: 700; }
h3 { margin-bottom: 10px; font-size: clamp(1.2rem, 1.9vw, 1.52rem); }
p { margin: 0 0 1.08em; }
.lead { max-width: 66ch; color: var(--ink-soft); font-size: clamp(1.12rem, 1.7vw, 1.38rem); line-height: 1.62; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 17px;
  color: var(--accent);
  font-size: .75rem;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 19px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 780;
  text-decoration: none;
  box-shadow: 0 9px 22px rgba(179,38,50,.16);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 12px 30px rgba(179,38,50,.22); }
.button-secondary { background: rgba(255,255,255,.6); color: var(--accent-dark); box-shadow: none; }
.button-secondary:hover { color: var(--accent-dark); background: #fff; }

.section-block { padding: clamp(28px, 7.5vw, 26px) 0; }
.section-block > p:not(.eyebrow),
.section-block > h2,
.section-block > ol { max-width: var(--measure); }
.section-block > h2 + p { color: var(--ink-soft); }
figure { margin: 0; }
figcaption { margin-top: 11px; color: var(--muted); font-size: .86rem; line-height: 1.5; }

.quick-facts { position: relative; z-index: 3; padding-top: 0; }
.summary-card,
.callout,
.card,
.checklist {
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}
.summary-card { padding: clamp(24px, 4vw, 42px); border-radius: var(--radius-lg); }
.summary-card h2 { font-size: clamp(1.55rem, 2.7vw, 2.3rem); }
.table-scroll { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
table { width: 100%; min-width: 640px; border-collapse: collapse; }
th, td { padding: 14px 17px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { width: 32%; background: var(--paper-warm); color: var(--ink-soft); font-size: .9rem; font-weight: 800; }
td { font-weight: 540; }
tr:last-child th, tr:last-child td { border-bottom: 0; }
.source-note {
  margin: 20px 0 0;
  padding: 14px 16px;
  border-left: 3px solid var(--gold);
  border-radius: 0 10px 10px 0;
  background: #fbf6ec;
  color: var(--muted);
  font-size: .88rem;
}

.split,
.media-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(290px, .85fr);
  align-items: start;
  gap: clamp(36px, 6vw, 78px);
}
.split > div > p { max-width: var(--measure); }
.callout {
  position: sticky;
  top: 96px;
  padding: 28px;
  border-radius: var(--radius);
}
.callout::before {
  content: "";
  display: block;
  width: 42px;
  height: 5px;
  margin-bottom: 20px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
}
.callout ul, .checklist ul { padding-left: 1.18em; margin-bottom: 0; }
.callout li, .checklist li { margin-bottom: 10px; }

.wide-band {
  position: relative;
  overflow: hidden;
  /* padding: clamp(68px, 8.5vw, 108px) 0; */
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
  color: #f8f3ed;
}
.wide-band::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -220px;
  bottom: -260px;
  border: 70px solid rgba(255,255,255,.035);
  border-radius: 999px;
}
.wide-band h2, .wide-band h3 { color: #fff; }
.wide-band p { color: #e0d7cf; }
.wide-band a { color: #f4b1b7; }
.wide-band .eyebrow { color: #f1a8ae; }
.wide-band .eyebrow::before { background: currentColor; }
.wide-band.soft { background: linear-gradient(135deg, #efe6da, #e7ddd0); color: var(--ink); }
.wide-band.soft h2, .wide-band.soft h3 { color: var(--ink); }
.wide-band.soft p { color: var(--ink-soft); }
.wide-band.soft a { color: var(--accent-dark); }
.wide-band.soft .eyebrow { color: var(--accent); }

.cards { display: grid; gap: 18px; margin: 30px 0 0; }
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  position: relative;
  overflow: hidden;
  padding: 26px;
  border-radius: var(--radius);
  color: var(--ink);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card::after {
  content: "";
  position: absolute;
  width: 72px;
  height: 72px;
  right: -34px;
  top: -34px;
  border-radius: 999px;
  background: var(--accent-soft);
}
.card p:last-child { margin-bottom: 0; }
.wide-band .card { border-color: rgba(255,255,255,.12); background: rgba(255,255,255,.07); box-shadow: none; color: #fff; }
.wide-band .card::after { background: rgba(255,255,255,.06); }
.wide-band .card p { color: #ded5cc; }

.media-grid { grid-template-columns: minmax(310px, .82fr) minmax(0, 1.18fr); align-items: center; }
.media-grid.reverse { grid-template-columns: minmax(0, 1.18fr) minmax(310px, .82fr); }
.media-grid figure {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.media-grid img { aspect-ratio: 16 / 10; object-fit: cover; background: #e9e2dc; }
.media-grid figcaption { padding-inline: 5px; }
.route-proof figure { transform: rotate(-.8deg); }
.licence-context figure { transform: rotate(.8deg); }

.account-section,
.bonus-section,
.games-section,
.checklist-section { position: relative; }
.account-section::before,
.bonus-section::before,
.games-section::before,
.checklist-section::before {
  content: "";
  display: block;
  width: 58px;
  height: 5px;
  margin-bottom: 26px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
}

.audience-section { padding-top: clamp(64px, 8vw, 104px); }
.audience-section .cards.two { gap: 16px; }
.audience-section .card { min-height: 190px; }
.audience-section .card h3 { padding-right: 28px; }

.faq { max-width: var(--shell); }
.faq details {
  overflow: hidden;
  margin-bottom: 12px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--paper);
  box-shadow: 0 5px 18px rgba(35,25,20,.04);
}
.faq summary {
  position: relative;
  cursor: pointer;
  padding: 20px 56px 20px 22px;
  font-weight: 800;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 21px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 1.05rem;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { max-width: 78ch; margin: 0; padding: 0 22px 20px; color: var(--ink-soft); }

.numbered { max-width: 860px !important; padding: 0; counter-reset: steps; list-style: none; }
.numbered li {
  position: relative;
  min-height: 70px;
  margin-bottom: 14px;
  padding: 17px 18px 17px 72px;
  counter-increment: steps;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255,255,255,.68);
}
.numbered li::before {
  content: counter(steps, decimal-leading-zero);
  position: absolute;
  left: 17px;
  top: 16px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: .78rem;
  font-weight: 850;
}

.final-section {
  position: relative;
  margin-bottom: clamp(52px, 7vw, 88px);
  padding-inline: clamp(24px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #fff 0%, #faf4ed 100%);
  box-shadow: var(--shadow-sm);
}
.final-section::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  background: linear-gradient(180deg, var(--accent), var(--gold));
}

.site-footer {
  padding: 46px 0;
  background: #120f0e;
  color: #eee7df;
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer-grid { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; }
.site-footer strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.16rem; }
.site-footer p { max-width: 48ch; margin: 8px 0 0; color: #aaa19a; font-size: .88rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 14px 20px; }
.site-footer a { color: #fff; font-size: .9rem; }

@media (max-width: 960px) {
  .hero-grid, .split, .media-grid, .media-grid.reverse { grid-template-columns: 1fr; }
  .hero-grid { gap: 46px; }
  .hero figure { max-width: 720px; transform: none; }
  .callout { position: static; }
  .cards.three { grid-template-columns: 1fr; }
  .media-grid figure { max-width: 720px; }
  .route-proof figure, .licence-context figure { transform: none; }
}

@media (max-width: 720px) {
  .shell { width: min(calc(100% - 32px), var(--shell)); }
  .header-inner { min-height: 62px; }
  .header-meta { display: none; }
  .hero { padding-top: 52px; }
  h1 { max-width: none; }
 
  .cards.two { grid-template-columns: 1fr; }
  .footer-grid { flex-direction: column; }
  .final-section { width: min(calc(100% - 32px), var(--shell)); }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .shell { width: min(calc(100% - 24px), var(--shell)); }
  .site-title::before { width: 30px; height: 30px; border-radius: 9px; }
  .hero { padding-top: 40px; }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  
  .summary-card, .card, .callout { padding: 20px; }
  .numbered li { padding-left: 64px; }
  .final-section { width: min(calc(100% - 24px), var(--shell)); padding-inline: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}


/* === DESIGN V2: high-contrast editorial casino identity === */
.designed-home {
  --bg: #0f0d0c;
  --paper: #171311;
  --paper-warm: #211816;
  --ink: #f9f3ed;
  --ink-soft: #ddd0c4;
  --muted: #b7a79a;
  --line: rgba(255,255,255,.11);
  --line-strong: rgba(255,255,255,.19);
  --accent: #e33d4d;
  --accent-dark: #c42233;
  --accent-soft: rgba(227,61,77,.12);
  --gold: #e4b55f;
  --dark: #080706;
  --dark-2: #140f0e;
  --success: #62b88f;
  background:
    radial-gradient(circle at 8% 2%, rgba(227,61,77,.17), transparent 25rem),
    radial-gradient(circle at 94% 10%, rgba(228,181,95,.10), transparent 22rem),
    #0f0d0c;
  color: var(--ink);
}
.designed-home a { color: #ff7e89; }
.designed-home a:hover { color: #ffadb4; }
.designed-home .site-header {
  border-bottom-color: rgba(255,255,255,.10);
  background: rgba(12,10,9,.91);
  box-shadow: 0 8px 36px rgba(0,0,0,.28);
}
.designed-home .site-title { color:#fff; }
.designed-home .header-meta { color:#bdaea3; }
.designed-home .site-title::before {
  background: linear-gradient(145deg,#ff5260,#9f1522);
  box-shadow: 0 0 0 1px rgba(255,255,255,.11), 0 10px 30px rgba(227,61,77,.34);
}
.designed-home .hero {
  min-height: 760px;
  display:flex;
  align-items:center;
  border-bottom-color: rgba(255,255,255,.08);
  background:
    linear-gradient(105deg, rgba(10,8,7,.99) 0%, rgba(22,13,13,.98) 55%, rgba(58,17,23,.94) 100%);
}
.designed-home .hero::before {
  width: 600px; height:600px; right:-180px; top:-270px;
  border: 80px solid rgba(255,255,255,.035);
}
.designed-home .hero::after {
  width:340px; height:340px; left:-180px; bottom:-190px;
  background: rgba(228,181,95,.07);
}
.designed-home .hero h1 {
  max-width: 13ch;
  color:#fff;
  text-shadow: 0 10px 35px rgba(0,0,0,.35);
}
.designed-home .hero .lead { color:#eadfd7; }
.designed-home .hero p:not(.eyebrow):not(.lead) { color:#cdbfb4; }
.designed-home .eyebrow { color:#ff6976; }
.designed-home .button {
  border-color:#ff5260;
  background: linear-gradient(180deg,#ef4655,#c42031);
  color:#fff;
  box-shadow: 0 14px 34px rgba(227,61,77,.27);
}
.designed-home .button-secondary {
  border-color:rgba(255,255,255,.22);
  background:rgba(255,255,255,.06);
  color:#fff;
}
.designed-home .button-secondary:hover { background:rgba(255,255,255,.12); color:#fff; }
.designed-home .hero figure {
  border-color: rgba(255,255,255,.13);
  background: linear-gradient(145deg,rgba(255,255,255,.10),rgba(255,255,255,.025));
  box-shadow: 0 38px 100px rgba(0,0,0,.48);
}
.designed-home .hero figure::before { background: rgba(227,61,77,.18); }
.designed-home .hero img,
.designed-home figure img {
  background: linear-gradient(135deg,#2a201d,#4e2025);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
.designed-home figcaption { color:#a99587; }
.designed-home .quick-facts { margin-top:-56px; }
.designed-home .summary-card,
.designed-home .callout,
.designed-home .card,
.designed-home .checklist {
  border-color:rgba(255,255,255,.10);
  background: linear-gradient(145deg,#1b1513,#14100f);
  box-shadow:0 24px 70px rgba(0,0,0,.28);
}
.designed-home .summary-card { border-top:3px solid #e33d4d; }
.designed-home .table-scroll { border-color:rgba(255,255,255,.10); background:#15110f; }
.designed-home th { background:#211816; color:#e6d7cb; }
.designed-home th, .designed-home td { border-bottom-color:rgba(255,255,255,.08); }
.designed-home td { color:#f7eee8; }
.designed-home .source-note { color:#ae9f94; }
.designed-home .split,
.designed-home .media-grid { position:relative; }
.designed-home .callout {
  border-left:4px solid #e4b55f;
  background:linear-gradient(145deg,#241b17,#171211);
}
.designed-home .wide-band {
  border-block:1px solid rgba(255,255,255,.08);
  background:
    radial-gradient(circle at 80% 20%,rgba(227,61,77,.09),transparent 26rem),
    #15100f;
}
.designed-home .wide-band.soft {
  background:
    radial-gradient(circle at 18% 30%,rgba(228,181,95,.07),transparent 24rem),
    #12100f;
}
.designed-home .cards .card { transition: transform .2s ease,border-color .2s ease; }
.designed-home .cards .card:hover { transform:translateY(-4px); border-color:rgba(227,61,77,.45); }
.designed-home .card h3 { color:#fff; }
.designed-home .checklist { border-left:4px solid #e33d4d; }
.designed-home .decision-grid > div {
  border-color:rgba(255,255,255,.10);
  background:#181311;
  box-shadow:0 12px 34px rgba(0,0,0,.18);
}
.designed-home .decision-grid strong { color:#fff; }
.designed-home .decision-grid span { color:#c2b4aa; }
.designed-home .section-block { border-bottom:1px solid rgba(255,255,255,.035); }
.designed-home h1,.designed-home h2,.designed-home h3 { color:#fff; }
.designed-home p,.designed-home li { color:#d4c6bb; }
.designed-home strong { color:#fff; }
.designed-home footer { border-top-color:rgba(255,255,255,.10); background:#090807; }

@media (max-width: 900px) {
  .designed-home .hero { min-height:0; }
  .designed-home .hero-grid { grid-template-columns:1fr; }
  .designed-home .hero figure { max-width:680px; transform:none; }
  .designed-home .quick-facts { margin-top:-28px; }
}

:root { --bg-main: #fcfbf9 !important; --color-text: #2d2424 !important; --card-bg: #ffffff !important; --border-color: rgba(128,128,128,0.15) !important; --card-shadow: 0 4px 15px rgba(0,0,0,0.04) !important; --radius: 12px !important; --progress-bg: linear-gradient(90deg, #1e40af, #3b82f6) !important; --progress-glow: 0 2px 8px rgba(59, 130, 246, 0.4) !important; } body { background-color: var(--bg-main) !important; color: var(--color-text) !important; }
/* Кнопка наверх: Классика */
#md-scroll-top { background: linear-gradient(135deg, #1e40af, #3b82f6) !important; border: none !important; box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3) !important; }
#md-scroll-top:hover { box-shadow: 0 15px 30px rgba(59, 130, 246, 0.5) !important; }
#md-scroll-top svg { stroke: #ffffff !important; }
            
/* ================================================= */
/*  УНИВЕРСАЛЬНЫЙ НОРМАЛИЗАТОР ЦВЕТОВ (БРОНЕБОЙНЫЙ) */
/* ================================================= */

/* Hide default scrollbar for clean edge-to-edge layout */
html {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}
::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* Reading progress bar styles */
.md-scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    z-index: 9999999;
    pointer-events: none;
}
.md-scroll-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--progress-bg, linear-gradient(90deg, #6366f1, #a855f7, #ec4899));
    box-shadow: var(--progress-glow, 0 0 10px rgba(168, 85, 247, 0.6));
    transition: width 0.1s ease-out;
    border-radius: 0 2px 2px 0;
}

/* 0. Перехватываем переменные темы (РАСШИРЕННЫЙ СПИСОК) */
:root {
    --paper: var(--card-bg) !important;
    --panel: var(--card-bg) !important; 
    --surface: var(--card-bg) !important;
    --accent-soft: var(--card-bg) !important;
    --ink: var(--color-text) !important;
    --line: var(--border-color) !important;
    --card: var(--card-bg) !important;
    
    /* Захватываем специфичные переменные из Spinstralia */
    --soft: transparent !important; 
    --danger-soft: var(--card-bg) !important; 
    --deep: var(--bg-main) !important; 
    --muted: var(--color-text) !important;
}

/* 0.1 ЖЕСТКО УБИВАЕМ СВЕТЛЫЙ ГРАДИЕНТ ИЗ АРХИВА */
body {
    background: var(--bg-main) !important;
    background-color: var(--bg-main) !important;
    background-image: none !important;
    color: var(--color-text) !important;
}

/* 1. Бронебойная покраска текста (ПОЛНАЯ ИЗОЛЯЦИЯ ВИТРИН ЧЕРЕЗ LEVEL 4 SELECTORS) */
main p:not([class*="tc-"], [class*="tc-"] *),
main h1:not([class*="tc-"], [class*="tc-"] *),
main h2:not([class*="tc-"], [class*="tc-"] *),
main h3:not([class*="tc-"], [class*="tc-"] *),
main h4:not([class*="tc-"], [class*="tc-"] *),
main h5:not([class*="tc-"], [class*="tc-"] *),
main h6:not([class*="tc-"], [class*="tc-"] *),
main li:not([class*="tc-"], [class*="tc-"] *),
main blockquote:not([class*="tc-"], [class*="tc-"] *),
main figcaption:not([class*="tc-"], [class*="tc-"] *),
main strong:not([class*="tc-"], [class*="tc-"] *),
main span:not([class*="tc-"], [class*="tc-"] *),
main a:not([class*="tc-"], [class*="tc-"] *),
.standfirst, .eyebrow, .source-note {
    color: var(--color-text) !important;
}

/* ================================================= */
/* АДАПТАЦИЯ ПОЛЕЙ ВВОДА (КАЛЬКУЛЯТОРЫ И ФОРМЫ)      */
/* ================================================= */
input.tool-input,
main input[type="text"],
main input[type="number"],
main input[type="email"],
main input[type="search"],
main textarea,
main select {
    background-color: var(--bg-main) !important;
    color: var(--color-text) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius) !important;
}

input.tool-input:focus,
main input[type="text"]:focus,
main input[type="number"]:focus {
    border-color: var(--color-text) !important;
    outline: none !important;
}

/* 1.1 Защищаем кнопки от нормализатора (строго вне витрин) */
main .button:not([class*="tc-"], [class*="tc-"] *), 
main .btn:not([class*="tc-"], [class*="tc-"] *), 
main a.button:not([class*="tc-"], [class*="tc-"] *) {
    color: var(--bg-main) !important;
}

/* 1.2 Вторичные кнопки (secondary/outline) должны иметь темный текст */
main .button.button-secondary:not([class*="tc-"], [class*="tc-"] *),
main .btn.btn-secondary:not([class*="tc-"], [class*="tc-"] *),
main a.button.button-secondary:not([class*="tc-"], [class*="tc-"] *) {
    color: var(--color-text) !important;
}


/* 2. Оформление специфичных блоков в виде объемных карточек */
main .signal,
main .guide-card,
main .assessment-card, 
main .score-grid > div,
main .wrap, main .summary-box, main .check-box, 
main .regulation, main .box, main .card, 
main .info-box, main aside, main .band, main .source-box, 
main .device-card, main .device-screen,
main .fact-grid > *,
main .callout, 
main .resource-card, 
main .pros-cons > div,
main .decision-list li,
main .key-points,
main .status-panel,
main .fact-card,
main .cards-three .article-wrapper,
main .compare > div,
main .source-note {
    background-color: var(--card-bg) !important;
    background-image: none !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: var(--card-shadow) !important;
    border-radius: var(--radius) !important;
    padding: 24px !important;
    color: var(--color-text) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

main .fact-card:hover,
main .pros-cons .article-wrapper:hover,
main .cards-three .article-wrapper:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08) !important;
}

/* 2.05 ФИКС СВЕТЛЫХ ПЛАШЕК В ТЕМНЫХ ТЕМАХ (Убиваем вшитые фоны архива) */
main .layer-item,
main .checklist,
main .legal-distinction,
main [class*="-note"] {
    background: rgba(128, 128, 128, 0.08) !important;
    background-color: rgba(128, 128, 128, 0.08) !important;
    background-image: none !important;
    color: var(--color-text) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
}

/* Дополнительная гарантия, что текст внутри этих карточек останется читаемым */
main .legal-distinction *,
main [class*="-note"] * {
    color: var(--color-text) !important;
}

/* 2.1 Точечный фикс для таблиц (убираем белые заливки) */
main table, main table tr, main table th, main table td, main .table-scroll, main .table-wrap {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    color: var(--color-text) !important;
    border-color: var(--border-color) !important;
}
main table th {
    background: rgba(128, 128, 128, 0.05) !important;
}

/* 3. УБИВАЕМ БЕЛЫЕ ФОНЫ У СТРУКТУРНЫХ БЛОКОВ НА ЛЮБОЙ ГЛУБИНЕ */
#page, .site, #content, .site-content, #primary, .content-area, .site-main, .entry-content, .hentry,
main, main section, main article, main .article-wrapper,
main .section-body, main .article-header, main > div, main > div > div,
article > section:last-of-type, main .feature-figure {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
}

/* 4. Принудительно красим текст внутри специфичных карточек Donbet и прочих */
main .callout *, 
main .resource-card *, 
main .pros-cons > div *,
main .decision-list li *,
main .key-points *,
main .identity-note *,
main .badge *,
main .install-checks li *,
main .final-verdict *,
main .status-panel *,
main .fact-card *,
main .cards-three .article-wrapper *,
main .source-box *,
main .compare > div * {
    color: var(--color-text) !important;
}

/* Unbound protection against hardcoded white text in dark blocks */
.legal-band,
.legal-band *,
.legal-band a,
.legal-band .eyebrow {
    color: var(--color-text) !important;
}

/* ================================================= */
/*  АВТОМАТИЧЕСКОЕ ОГЛАВЛЕНИЕ (MD-TOC) */
/* ================================================= */
.md-toc-block {
    background: var(--card-bg, #ffffff) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius) !important;
    margin: 35px 0 !important;
    box-shadow: var(--card-shadow) !important;
    overflow: hidden;
    transition: all 0.3s ease;
}
.md-toc-block:hover { box-shadow: 0 10px 25px rgba(0,0,0,0.06) !important; }
.md-toc-title {
    padding: 18px 24px !important; font-size: 1.15rem !important; font-weight: 700 !important;
    color: var(--color-text) !important; cursor: pointer; display: flex !important;
    align-items: center !important; justify-content: space-between !important;
    background: rgba(128,128,128,0.02) !important; border-bottom: 1px solid transparent;
    transition: background 0.2s ease; list-style: none !important;
}
.md-toc-title::-webkit-details-marker { display: none !important; }
.md-toc-block[open] .md-toc-title { border-bottom-color: var(--border-color) !important; }
.md-toc-content { padding: 20px 24px 24px !important; }
.md-toc-content ul { list-style: none !important; padding: 0 !important; margin: 0 !important; }
.md-toc-content li { margin-bottom: 12px !important; padding-left: 18px !important; position: relative; line-height: 1.4 !important; }
.md-toc-content li {
    padding-left: 14px !important; 
    border-left: 2px solid rgba(128, 128, 128, 0.15) !important;
    transition: border-color 0.2s ease, padding-left 0.2s ease !important;
}

.md-toc-content li::before {
    content: none !important;
    display: none !important;
}

.md-toc-content li:hover {
    border-left-color: var(--accent, #8b5cf6) !important;
    padding-left: 18px !important;
}
.md-toc-content li:last-child { margin-bottom: 0 !important; }
.md-toc-content a {
    text-decoration: none !important; color: var(--color-text) !important;
    opacity: 0.8; font-weight: 500; font-size: 1.05rem; transition: all 0.2s ease; display: inline-block;
}
.md-toc-content a:hover { opacity: 1; transform: translateX(4px); }
.md-toc-content li:hover::before { opacity: 1; transform: scale(1.3); }

html { scroll-behavior: smooth !important; }

/* FIX: ИСПОЛЬЗУЕМ CLIP ДЛЯ СОХРАНЕНИЯ ЛИПКОЙ ШАПКИ */
html, body { 
    max-width: 100vw !important; 
    overflow-x: clip !important; 
}

/* ================================================= */
/* МОБИЛЬНАЯ АДАПТАЦИЯ (СТРОГО В САМОМ НИЗУ CSS!)    */
/* ================================================= */
@media (max-width: 768px) {
    body, #page, .site, main, article, section, .content-main, .article-wrapper { width: 100% !important; }
    
    /* 1. УБИВАЕМ ДВОЙНОЙ ОТСТУП, НО ВОЗВРАЩАЕМ ВОЗДУХ ДЛЯ .shell (важный фикс из нового кода) */
    main { padding-left: 0 !important; padding-right: 0 !important; }
    
    /* Умная защита отступов: спасает текст старых архивов, но не сжимает карточки и витрины */
    .shell:not(.section-block):not(.hero):not([class*="tc-"]):not([class*="brand"]), 
    .container:not(.section-block):not(.hero):not([class*="tc-"]):not([class*="brand"]), 
    .wrapper:not(.section-block):not(.hero):not([class*="tc-"]):not([class*="brand"]), 
    .inner-wrap:not(.section-block):not(.hero):not([class*="tc-"]):not([class*="brand"]) {
        padding-left: 16px !important;
        padding-right: 16px !important;
        box-sizing: border-box !important;
    }
        
    /* Защита "голого" текста внутри main */
    main > *:not(.section-block):not([data-content="hero"]):not(.cl-header):not(header):not(.cl-hero):not([class*="tc-"]):not([class*="brand"]), 
    main article > *:not(.section-block):not([data-content="hero"]):not(.cl-header):not(header):not(.cl-hero):not([class*="tc-"]):not([class*="brand"]) { 
        padding-left: 10px !important; 
        padding-right: 10px !important; 
    }
    
    /* Защита текста от вылетов и переносов */
    p, h1, h2, h3, h4, h5, h6, a, span, li, b, strong {
        word-wrap: break-word !important; overflow-wrap: break-word !important;
        word-break: break-word !important; white-space: normal !important;
    }
    span[class*="score-num"] { word-wrap: normal !important; word-break: normal !important; white-space: nowrap !important; }
    
    /* ТОТ САМЫЙ ЧИСТЫЙ И КРАСИВЫЙ БЛОК ВИТРИНЫ ИЗ СТАРОГО КОДА */
    .tc-brands-wrap {
        width: 100vw !important; 
        max-width: 100vw !important;
        margin-left: calc(-50vw + 50%) !important; 
        margin-right: calc(-50vw + 50%) !important;
        padding: 1rem !important; 
        box-sizing: border-box !important;
    }

    /* Возвращаем логотипам в баннерах нормальный компактный размер */
    .tc-s1-banner img.tc-s1-bn-logo, 
    [class*="tc-"] img[class*="logo"] {
        width: auto !important;
        max-width: 140px !important;
        height: auto !important;
        max-height: 48px !important;
        object-fit: contain !important;
        margin: 0 auto !important;
    }
    
    /* Защищаем звезды и рейтинги от глобального разрыва слов из body */
    [class*="tc-"] [class*="-stars"],
    [class*="tc-"] [class*="-rate"],
    [class*="tc-"] [class*="-score"] {
        overflow-wrap: normal !important;
        word-break: keep-all !important;
        white-space: nowrap !important;
    }

    .wrap {
        width: 100% !important;
        max-width: none !important;
        margin-inline: 0 !important;
        padding-inline: 0 !important;
    }

    

    /* Уменьшаем конские 30px отступы у оберток на телефонах */
    .regulatory-box, .box, .card, .info-box {
        padding: 14px !important; 
    }

    /* Немного сжимаем внутренние отступы самого оглавления для мобилок */
    .md-toc-title {
        padding: 14px 16px !important;
    }
    .md-toc-content {
        padding: 16px 16px 20px !important;
    }

}

/* FIX: PREMIUM GLASSMORPHISM STICKY HEADER */
.site-header {
    background-color: var(--card-bg) !important;
    background: color-mix(in srgb, var(--card-bg) 65%, transparent) !important;
    backdrop-filter: blur(24px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
    border-bottom: 1px solid color-mix(in srgb, var(--border-color) 60%, transparent) !important;
    position: sticky !important; 
    top: 0 !important; 
    z-index: 9999 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.3s ease !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.top-navigation-bar { width: 100%; margin: 0 auto; padding: 5px; display: flex; align-items: center; justify-content: space-between; }
.site-header .top-navigation-bar, .site-header__inner {
    max-width: var(--content-max-width, 1180px) !important; width: 100% !important;
    margin-left: auto !important; margin-right: auto !important;
    padding-left: 20px !important; padding-right: 20px !important; box-sizing: border-box !important;
}
.site-logo { min-width: 180px; margin: 0; display: flex; align-items: center; }
.site-logo img { max-height: 69px !important; max-width: none !important; width: auto !important; display: block; margin-left: 70px; background: transparent !important; transition: transform 0.2s ease; }
.site-logo img:hover { transform: scale(1.02); }

#crumbs {
    max-width: var(--content-max-width, 1180px) !important; margin-left: auto !important; margin-right: auto !important;
    padding-left: 20px !important; padding-right: 20px !important; box-sizing: border-box !important;
}
@media (max-width: 768px) { #crumbs { padding-left: 12px !important; padding-right: 12px !important; } }

.site-nav--desktop, #mobile-menu, .mobile-menu, .mobile-menu-overlay, .mobile-menu__close, .child-pages-showcase { display: none !important; }
.burger { display: flex; flex-direction: column; gap: 6px; background: transparent; border: none; cursor: pointer; padding: 5px; z-index: 1000; margin-left: auto; margin-right: 100px; }
@media (max-width: 768px) { .burger { margin-right: 10px !important; } }
.burger span { display: block; width: 28px; height: 3px; background-color: var(--color-text, #111827) !important; border-radius: 2px; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); transform-origin: center; }
.burger.is-active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.burger.is-active span:nth-child(2) { opacity: 0; transform: translateX(15px); }
.burger.is-active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* FIX: ИСПОЛЬЗУЕМ CLIP ДЛЯ МЕНЮ */
html.menu-is-open, body.menu-is-open { overflow: clip !important; overscroll-behavior: none !important; }
.cam-sidebar { overscroll-behavior: contain !important; }

.cam-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(4px); z-index: 999998; opacity: 0; visibility: hidden; transition: opacity 0.3s ease; }
.cam-overlay.is-active { opacity: 1; visibility: visible; }
.cam-sidebar { position: fixed; top: 0; right: -100%; width: 100%; max-width: 420px; height: 100vh; background: rgba(15, 23, 42, 0.95); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); border-left: 1px solid rgba(255,255,255,0.08); z-index: 999999; overflow-y: auto; opacity: 0; visibility: hidden; transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, visibility 0.4s; box-shadow: -10px 0 40px rgba(0,0,0,0.5); }
.cam-sidebar.is-open { right: 0; opacity: 1; visibility: visible; }
.cam-header { display: flex; justify-content: space-between; align-items: center; padding: 30px 25px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.cam-header-title { font-size: 16px; font-weight: 800; color: #ffffff; letter-spacing: 2px; }
.cam-close { background: none; border: none; font-size: 36px; line-height: 1; cursor: pointer; color: #ffffff; opacity: 0.6; transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; }
.cam-close:hover { opacity: 1; transform: rotate(90deg); background: rgba(255,255,255,0.1); }
.cam-nav { list-style: none; margin: 0; padding: 0; }
.cam-item { border-bottom: 1px solid rgba(255,255,255,0.05); }
.cam-item-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 25px; cursor: pointer; transition: all 0.3s ease; }
.cam-item-header:hover { background: rgba(255,255,255,0.03); padding-left: 32px; }
.cam-item-header a { font-size: 17px; font-weight: 700; color: #f8fafc; text-decoration: none; flex: 1; display: block; letter-spacing: 0.5px; }
.cam-toggle { background: rgba(255,255,255,0.05); border: none; cursor: pointer; padding: 8px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background 0.3s ease; }
.cam-toggle:hover { background: rgba(255,255,255,0.15); }
.cam-toggle svg { width: 12px; height: 8px; transition: transform 0.3s ease; }
.cam-toggle svg path { stroke: #ffffff; stroke-width: 2.5; }
.cam-toggle.is-open svg { transform: rotate(180deg); }
.cam-children { list-style: none; margin: 0; padding: 0; display: none; background: rgba(0,0,0,0.25); border-top: 1px solid rgba(255,255,255,0.03); box-shadow: inset 0 5px 15px rgba(0,0,0,0.1); }
.cam-children.is-open { display: block; animation: slideDown 0.3s ease-out forwards; }
.cam-child-item a { display: flex; padding: 18px 25px; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.02); gap: 18px; align-items: center; transition: all 0.3s ease; }
.cam-child-item a:hover { background: rgba(255,255,255,0.05); padding-left: 32px; }
.cam-child-item img { width: 65px; height: 45px; object-fit: cover; border-radius: 6px; box-shadow: 0 4px 10px rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1); opacity: 0.9; transition: opacity 0.3s ease; }
.cam-child-item a:hover img { opacity: 1; }
.cam-child-text strong { display: block; font-size: 14px; margin-bottom: 5px; color: #ffffff; line-height: 1.3; font-weight: 600; }
.cam-child-text span { display: block; font-size: 13px; color: #94a3b8; line-height: 1.4; }

@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

main > *:not([data-content="hero"]):not(.cl-header):not(header):not(.cl-hero), main article > *:not([data-content="hero"]):not(.cl-header):not(header):not(.cl-hero) { max-width: var(--content-max-width, 1180px) !important; margin-left: auto !important; margin-right: auto !important; padding-left: 20px !important; padding-right: 20px !important; box-sizing: border-box !important; }
main iframe, main article iframe { max-width: 100% !important; margin-left: auto !important; margin-right: auto !important; transform: none !important; width: 100% !important; }
main h1 { font-size: clamp(2rem, 4vw, 3.5rem) !important; font-weight: 800; margin-top: 30px; margin-bottom: 20px; line-height: 1.2; }
.cl-hero img, .article-wrapper p > img, .article-wrapper figure > img, img.article-image, img.wp-post-image { max-width: 100%; width: auto; max-height: 600px; height: auto !important; object-fit: contain; border-radius: 8px; display: block; margin: 0 auto; }

@media (max-width: 768px) {
    section table, table { display: block !important; width: 100% !important; max-width: 100vw !important; min-width: 0 !important; overflow-x: auto !important; -webkit-overflow-scrolling: touch !important; }
    table th, table td { min-width: 150px !important; word-wrap: break-word !important; }
}

.sitemap-main { max-width: 900px; margin: 0 auto; padding: 40px 24px; }
.sitemap-title { margin: 0 0 10px; text-align: center; font-size: 32px; font-weight: 800; }
.sitemap-subtitle { margin: 0 0 30px; text-align: center; opacity: 0.75; font-size: 16px; }
.sitemap-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.sitemap-link { display: block; padding: 14px 18px; border: 1px solid rgba(128,128,128,0.2); border-radius: 8px; text-decoration: none; color: var(--color-text); font-weight: 600; transition: all 0.2s ease; background: var(--card-bg); }
.sitemap-link:hover { border-color: rgba(128,128,128,0.5); transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.05); }

.site-footer { padding: 40px 20px; background: var(--card-bg) !important; border-top: 1px solid rgba(128,128,128,0.1) !important; margin-top: 60px; text-align: center; color: var(--color-text) !important; }
.site-footer p, .site-footer span, .site-footer div.wrap { color: var(--color-text) !important; opacity: 0.8 !important; margin-left: auto !important; margin-right: auto !important; line-height: 1.6 !important; }
.site-footer a { color: var(--color-text) !important; }
.footer-menu-list { list-style: none !important; padding: 0 !important; margin: 0 auto 20px; display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.footer-menu-list li { margin: 0; padding: 0; }
.footer-menu-list a { text-decoration: none; color: var(--color-text) !important; opacity: 0.7; font-size: 14px; font-weight: 500; transition: all 0.2s; }
.footer-menu-list a:hover { color: var(--color-text) !important; opacity: 1; text-decoration: underline; }

.md-child-grid { display: grid !important; grid-template-columns: repeat(2, 1fr) !important; gap: 24px !important; max-width: 1100px !important; margin: 40px auto !important; padding: 0 20px !important; }
@media (max-width: 768px) { .md-child-grid { grid-template-columns: 1fr !important; } }
.md-child-card { display: flex !important; flex-direction: column !important; background: var(--card-bg) !important; border-radius: var(--radius) !important; box-shadow: var(--card-shadow) !important; transition: transform 0.2s ease, box-shadow 0.2s ease !important; text-decoration: none !important; overflow: hidden !important; border: 1px solid var(--border-color) !important; }
.md-child-card:hover { transform: translateY(-4px) !important; box-shadow: 0 10px 25px rgba(0,0,0,0.12) !important; }
.md-child-card-img { width: 100% !important; height: 180px !important; object-fit: cover !important; background: rgba(128,128,128,0.1) !important; }
.md-child-card-content { padding: 20px !important; display: flex !important; flex-direction: column !important; flex-grow: 1 !important; }
.md-child-card-title { font-size: 18px !important; font-weight: 700 !important; color: var(--color-text) !important; margin: 0 0 10px 0 !important; line-height: 1.3 !important; }
.md-child-card-excerpt { font-size: 14px !important; color: var(--color-text) !important; opacity: 0.8 !important; margin: 0 !important; line-height: 1.5 !important; }

@media (max-width: 768px) { .site-logo img { margin-left: 0 !important; } }

/* Иммунитет логотипа от глобального min-height из архивов */
.site-logo img, 
img.custom-logo, 
.site-header img {
    min-height: 0 !important;
    height: auto !important;
    max-height: 65px !important;
    width: auto !important;
    max-width: none !important;
    object-fit: contain !important;
    display: block;
    margin-left: 70px;
    background: transparent !important;
    transition: transform 0.2s ease;
}

/* Базовый каркас кнопки (дизайн загружается из пресетов) */
#md-scroll-top { position: fixed; bottom: 30px; right: 30px; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); z-index: 99999; }
#md-scroll-top.is-visible { opacity: 1; visibility: visible; }
#md-scroll-top:hover { transform: translateY(-5px); }
#md-scroll-top svg { width: 22px; height: 22px; stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.3s ease; }

details { background: var(--card-bg, #ffffff) !important; border: 1px solid var(--border-color) !important; border-radius: var(--radius) !important; margin-bottom: 16px !important; box-shadow: var(--card-shadow) !important; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important; overflow: hidden !important; }
details:hover { border-color: rgba(139, 92, 246, 0.4) !important; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06) !important; transform: translateY(-2px) !important; }
details[open] { border-color: rgba(139, 92, 246, 0.5) !important; background: rgba(128, 128, 128, 0.02) !important; }
summary { padding: 20px 24px !important; font-size: 1.1rem !important; font-weight: 700 !important; cursor: pointer !important; color: var(--color-text, #111827) !important; position: relative !important; list-style: none !important; outline: none !important; display: flex !important; align-items: center !important; justify-content: space-between !important; line-height: 1.4 !important; }
summary::-webkit-details-marker { display: none !important; }
summary::after { content: '' !important; flex-shrink: 0 !important; width: 10px !important; height: 10px !important; margin-left: 20px !important; border-right: 2px solid var(--color-text) !important; border-bottom: 2px solid var(--color-text) !important; transform: rotate(45deg) !important; transition: transform 0.3s ease, opacity 0.3s ease !important; opacity: 0.6 !important; }
details[open] summary::after { transform: translateY(-4px) rotate(225deg) !important; opacity: 1 !important; }
details p, details .faq-answer { padding: 0 24px 24px !important; margin: 0 !important; color: var(--color-text, #111827) !important; opacity: 0.85 !important; font-size: 1rem !important; line-height: 1.7 !important; }

@media (max-width: 768px) {
    main h1 { font-size: 1.6rem !important; line-height: 1.25 !important; margin-top: 10px !important; margin-bottom: 12px !important; }
    .content-header, main > p:first-of-type, .post-date, .entry-meta { margin-bottom: 10px !important; font-size: 0.85rem !important; }
    .content-main > *:first-child, main > *:first-child { margin-top: 0 !important; }
}

a.brand { display: none !important; }
.content-header { display: none !important; margin: 0 !important; padding: 0 !important; height: 0 !important; }
.site-main, main, .content-main { padding-top: 0 !important; margin-top: 0 !important; }
main > *:first-child, .content-main > *:first-child, .site-main > *:first-child { margin-top: 0 !important; padding-top: 0 !important; }
h1, .content-main h1 { max-width: 100% !important; }
/* Safe hero reset (Protects .shell and .split original grids) */
.hero:not(.shell):not(.split), section.hero:not(.shell):not(.split), .hero-grid:not(.shell),
.article-header, article > section:not(.shell), article > section:last-of-type:not(.shell) {
    display: block !important;
    grid-template-columns: none !important;
    gap: 0 !important;
}

/* === АДАПТАЦИЯ ПОДПИСЕЙ ПОД КАРТИНКАМИ (FIGCAPTION) === */
figcaption { background-color: var(--card-bg) !important; color: var(--color-text) !important; border: 1px solid var(--border-color) !important; border-radius: 0 0 var(--radius) var(--radius) !important; opacity: 0.9; padding: 10px !important; }

/* БРОНЕЖИЛЕТ ДЛЯ ЛОГОТИПОВ ВИТРИН (глушим глобальные костыли) */
main [class*="tc-"] img, 
div[class*="tc-"] img { 
    min-height: 0 !important; /* Убиваем растягивание в 260px */
    max-width: 100% !important;
    background: transparent !important; 
    background-color: transparent !important; 
    object-fit: contain !important;
    box-shadow: none !important;
}

/* Применяем жесткий auto-размер только на мобилках, чтобы не сплющивать десктопные баннеры */
@media (max-width: 768px) {
    main [class*="tc-"] img, 
    div[class*="tc-"] img { 
        height: auto !important;
        width: auto !important; /* Запрещаем растягиваться на всю ширину колонки */
    }
}

body { min-height: 100vh !important; display: flex !important; flex-direction: column !important; margin: 0 !important; }
#page, .site { flex: 1 0 auto !important; display: flex !important; flex-direction: column !important; width: 100% !important; }
main, .site-main, .content-main { flex: 1 0 auto !important; display: block !important; width: 100% !important; }
.site-footer { margin-top: auto !important; flex-shrink: 0 !important; width: 100% !important; }

/* ================================================= */
/* SAFE GRID RESET (EXCLUDES .shell & .split)        */
/* ================================================= */
main, article:not([class]), .content-article, .cl-article, article[data-content="grid"]:not(.split),
.hero-grid:not(.shell), .split-section:not(.split),
.article-header, article > section:not(.shell), article > section:last-of-type:not(.shell),
main section:not(.shell), .content-main section:not(.shell) {
    display: block !important;
    grid-template-columns: none !important;
    grid-template-areas: none !important;
    gap: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    margin: 0 !important;
}

/* Принудительно растягиваем текстовые блоки во всю ширину */
.section-body, .content-body, .cl-body, .hero-copy, .standfirst {
    display: block !important;
    grid-column: 1 / -1 !important; /* Вырываем элемент из любых сеток */
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
}

main .decision-list li {
    padding-left: 64px !important;
}

.md-cookie-banner { position: fixed; bottom: 20px; left: 20px; right: 20px; background: var(--card-bg, #ffffff); border: 1px solid var(--border-color, #e2e8f0); box-shadow: 0 15px 40px rgba(0,0,0,0.12); border-radius: 12px; padding: 20px; z-index: 999999; display: flex; flex-direction: column; gap: 15px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
@media(min-width: 768px) { .md-cookie-banner { bottom: 30px; left: 30px; right: auto; width: 380px; } }
.md-cb-title { font-size: 16px; font-weight: 700; color: var(--color-text, #0f172a); margin-bottom: 6px; }
.md-cb-text { font-size: 13px; line-height: 1.5; color: var(--color-text, #475569); opacity: 0.85; margin: 0; }
.md-cb-actions { display: flex; gap: 10px; }
.md-cb-btn { flex: 1; padding: 10px 0; border-radius: 6px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s ease; border: none; text-align: center; }
.md-cb-accept { background: #10b981; color: #fff; }
.md-cb-accept:hover { background: #059669; }
.md-cb-decline { background: transparent; border: 1px solid var(--border-color, #cbd5e1); color: var(--color-text, #475569); }
.md-cb-decline:hover { background: rgba(128,128,128,0.05); }


main .decision-strip {
    background-color: var(--card-bg) !important;
    background-image: none !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: var(--card-shadow) !important;
    border-radius: var(--radius) !important;
    padding: 24px !important;
    color: var(--color-text) !important;
}

main .decision-strip div,
main .decision-strip section,
main .decision-strip article {
    background-color: transparent !important;
    background-image: none !important;
    border-color: var(--border-color) !important;
}

main .decision-strip *,
main .decision-strip strong,
main .decision-strip span {
    color: var(--color-text) !important;
}

#main a.btn-404, 
.error404 main a.btn-404 {
    color: var(--bg-main) !important;
    background-color: var(--color-text) !important;
    border-color: var(--color-text) !important;
}

/* Принудительно убиваем 2-колоночные сетки из новых архивов, 
   но сохраняем центрирование (не трогаем ширину) */
.hero-grid, .trust-grid, .hero > .shell, .hero.shell {
    display: block !important;
    grid-template-columns: none !important;
    gap: 0 !important;
}
