/* Top1G — premium RU casino rating */
:root {
  --bg: #0a0c12;
  --panel: #13161f;
  --panel2: #0d0f17;
  --edge: #232838;
  --text: #eef0f6;
  --mute: #9aa0b6;
  --gold: #e8c66a;
  --gold2: #f6dd8e;
  --red: #d23b32;
  --red2: #ff5147;
  --green: #28d07a;
  --bonus: #1fa866;
  --bonus-hover: #23c074;
  --radius: 16px;
  --max: 1120px;
  --font-display: "Manrope", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse at 12% -10%, rgba(232, 198, 106, 0.12), transparent 50%),
    radial-gradient(ellipse at 90% 110%, rgba(255, 81, 71, 0.1), transparent 48%);
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }
h1, h2, h3, .brand-name {
  font-family: var(--font-display);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(1.65rem, 4vw, 2.35rem); margin: 0 0 0.75rem; }
h2 { font-size: clamp(1.25rem, 2.5vw, 1.65rem); margin: 2.2rem 0 0.85rem; color: #fff; }
h3 { font-size: 1.1rem; margin: 1.4rem 0 0.55rem; color: var(--gold2); }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1.1rem; padding-left: 1.2rem; }
li { margin-bottom: 0.35rem; }
table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.4rem; font-size: 0.95rem; }
th, td { border: 1px solid var(--edge); padding: 0.65rem 0.75rem; text-align: left; }
th { background: var(--panel2); color: var(--gold2); }
.wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(10, 12, 18, 0.88);
  border-bottom: 1px solid var(--edge);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.75rem 0; width: min(100% - 2rem, var(--max)); margin-inline: auto;
}
.brand-name {
  font-size: 1.35rem; color: #fff; text-decoration: none;
  background: linear-gradient(135deg, #fff, var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-name span { color: var(--red2); -webkit-text-fill-color: var(--red2); }
@media (max-width: 400px) {
  .m-row .brand-name { font-size: 1rem; letter-spacing: -0.03em; }
}
.site-nav { display: flex; flex-wrap: wrap; gap: 0.35rem 0.85rem; }
.site-nav a {
  color: var(--mute); text-decoration: none; font-size: 0.9rem; font-weight: 600;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--gold2); }
.header-right { display: flex; align-items: center; gap: 0.65rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  border: 0; border-radius: 999px; padding: 0.7rem 1.15rem;
  font-weight: 800; font-family: var(--font-display); font-size: 0.92rem;
  cursor: pointer; text-decoration: none; color: #fff;
}
.btn-ext.sidebar-toggle {
  background: linear-gradient(135deg, var(--bonus-hover), var(--bonus));
  box-shadow: 0 8px 24px -12px rgba(31, 168, 102, 0.8);
  color: #fff !important;
}
.btn-ext.sidebar-toggle:hover { filter: brightness(1.08); color: #fff !important; }
.btn-primary {
  background: linear-gradient(135deg, var(--red2), var(--red));
  color: #fff !important; text-decoration: none;
}
.btn-primary:hover { filter: brightness(1.08); color: #fff !important; }
.nav-toggle {
  display: none; width: 42px; height: 42px; border-radius: 10px;
  border: 1px solid var(--edge); background: var(--panel); color: #fff; font-size: 1.2rem;
}

/* Mobile header */
.m-row { display: none; }
.brand-desktop { display: inline; }
.site-nav.mobile-nav { display: none; }
@media (max-width: 920px) {
  .site-nav.desktop-nav { display: none; }
  .brand-desktop { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .header-inner { flex-wrap: wrap; }
  .m-row {
    display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 0.5rem;
  }
  .m-row .brand-name { flex: 1; text-align: center; font-size: 1.15rem; }
  .header-right.desktop-only { display: none; }
  .m-row-actions { display: flex; gap: 0.45rem; align-items: center; }
  .site-nav.mobile-nav {
    display: none; width: 100%; flex-direction: column; padding: 0.5rem 0 0.85rem;
  }
  .site-nav.mobile-nav.open { display: flex; }
}

/* Layout */
.page-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 1.75rem;
  width: min(100% - 2rem, var(--max));
  margin: 1.5rem auto 3rem;
}
@media (max-width: 980px) {
  .page-shell { grid-template-columns: 1fr; }
  .site-sidebar { display: none; }
}

/* Hero */
.hero {
  position: relative;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  border: 1px solid var(--edge);
  margin-bottom: 1.5rem;
  min-height: 280px;
  display: grid;
  align-items: end;
}
.hero img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0.55;
}
.hero-content {
  position: relative; z-index: 1;
  padding: 2rem 1.5rem 1.6rem;
  background: linear-gradient(0deg, rgba(10,12,18,0.95), rgba(10,12,18,0.35) 55%, transparent);
}
.hero .eyebrow {
  color: var(--gold); font-weight: 700; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.4rem;
}
.lede { font-size: 1.05rem; color: #d5d8e6; max-width: 62ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.65rem; margin: 1rem 0 0.4rem; }

/* Rank cards */
.rank-list { display: flex; flex-direction: column; gap: 1rem; margin: 1.25rem 0; }
.rank-card {
  position: relative;
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 1.1rem;
  align-items: center;
  background: linear-gradient(165deg, var(--panel), var(--panel2));
  border: 1px solid var(--edge);
  border-radius: 20px;
  padding: 1.25rem 1.2rem 1.2rem 1.3rem;
  overflow: hidden;
  transition: transform 0.18s ease;
}
.rank-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  background: linear-gradient(180deg, var(--red2), var(--gold));
}
.rank-card.top { border-color: rgba(255, 81, 71, 0.35); box-shadow: 0 26px 62px -36px rgba(255, 81, 71, 0.55); }
.rank-card:hover { transform: translateY(-3px); }
@media (max-width: 720px) {
  .rank-card { grid-template-columns: 1fr; }
  .rank-cta { width: 100%; }
}
.rank-badge {
  position: absolute; top: 0; left: 0;
  font-size: 0.7rem; font-weight: 900; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 0.35rem 0.85rem; border-radius: 0 0 14px 0;
  background: linear-gradient(135deg, var(--red2), var(--red)); color: #fff;
}
.rank-logo-col { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; padding-top: 0.6rem; }
.rank-logo-col img { max-height: 42px; width: auto; object-fit: contain; }
.rank-score { color: var(--gold2); font-weight: 800; font-size: 1.35rem; line-height: 1; }
.rank-score span { font-size: 0.85rem; color: var(--mute); font-weight: 700; }
.rank-score-label {
  margin: 0.2rem 0 0; font-size: 0.68rem; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--mute); text-align: center;
}
.rank-meta { margin: 0.7rem 0 0; font-size: 0.92rem; color: var(--mute); }
.bonus-note { font-weight: 600; font-size: 0.78rem; color: var(--mute); }

.method-panel {
  margin: 1.25rem 0 1.5rem;
  padding: 1.1rem 1.2rem;
  background: linear-gradient(165deg, rgba(232,198,106,0.08), rgba(19,22,31,0.9));
  border: 1px solid rgba(232,198,106,0.28);
  border-radius: 16px;
}
.method-kicker {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--gold2);
  font-size: 1rem;
}
.method-table { margin: 0.85rem 0; font-size: 0.9rem; }
.method-table th { white-space: nowrap; }
.method-foot { margin: 0.5rem 0 0; font-size: 0.88rem; color: var(--mute); }

/* Нативный 18+ — не модалка, не блокирует скролл, не уводит на сторонние сайты */
.age-banner {
  background: linear-gradient(90deg, rgba(210,59,50,0.18), rgba(232,198,106,0.08));
  border-bottom: 1px solid rgba(255,81,71,0.35);
  color: #ffdad5;
  font-size: 0.88rem;
}
.age-banner[hidden] { display: none !important; }
.age-banner-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 0.85rem;
  padding: 0.65rem 0;
}
.age-banner-inner p { margin: 0; line-height: 1.45; }
.age-banner-inner a { color: var(--gold2); }
.age-banner-dismiss {
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,0.2);
  background: var(--panel);
  color: #fff;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 0.8rem;
  cursor: pointer;
}
.age-banner-dismiss:hover { filter: brightness(1.1); }
@media (max-width: 640px) {
  .age-banner-inner { flex-direction: column; align-items: stretch; }
  .age-banner-dismiss { width: 100%; }
}
.rank-name { font-size: 1.2rem; font-weight: 800; color: #fff; margin: 0 0 0.25rem; }
.rank-bonus { margin: 0 0 0.55rem; font-weight: 700; }
.rank-bonus b { color: #fff; }
.rank-bonus .fs { color: var(--gold2); }
.chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.chips span {
  font-size: 0.75rem; color: var(--mute);
  background: rgba(255,255,255,0.04); border: 1px solid var(--edge);
  border-radius: 7px; padding: 0.25rem 0.55rem;
}
.rank-cta {
  display: inline-flex; flex-direction: column; align-items: center;
  padding: 0.85rem 1.2rem; border-radius: 12px; min-width: 150px;
  background: linear-gradient(135deg, var(--red2), var(--red));
  color: #fff !important; text-decoration: none; font-weight: 800; text-align: center;
}
.rank-cta small { font-weight: 600; opacity: 0.9; font-size: 0.7rem; margin-top: 0.15rem; }

/* Prose + figures */
.prose :where(p, li) { color: #dfe2ee; }
.editorial-shot {
  margin: 1.4rem 0;
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  overflow: hidden;
}
.editorial-shot img { width: 100%; }
.editorial-shot figcaption {
  padding: 0.75rem 1rem; font-size: 0.88rem; color: var(--mute);
  border-top: 1px solid var(--edge);
}
.callout {
  background: linear-gradient(135deg, rgba(232,198,106,0.08), rgba(255,81,71,0.05));
  border: 1px solid rgba(232,198,106,0.28);
  border-radius: 14px; padding: 1rem 1.15rem; margin: 1.2rem 0;
}
.trust-row {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0;
}
.trust-row span {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.8rem; color: var(--mute);
  background: var(--panel); border: 1px solid var(--edge);
  border-radius: 999px; padding: 0.4rem 0.75rem;
}
.trust-row span::before { content: "✓"; color: var(--green); font-weight: 900; }

/* TOC */
.simple-toc-details {
  margin: 1.25rem 0 1.5rem;
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: 14px;
  padding: 0.35rem 1rem 0.65rem;
}
.toc-summary {
  cursor: pointer; font-weight: 800; font-family: var(--font-display);
  color: var(--gold2); padding: 0.65rem 0;
}
.simple-toc-details .toc-list { list-style: none; padding: 0; margin: 0 0 0.5rem; }
.simple-toc-details .toc-list li {
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0.55rem;
  list-style: none; margin: 0.35rem 0;
}
.simple-toc-details .toc-list li::before {
  content: ""; flex: 0 0 7px; width: 7px; height: 7px; margin-top: 0.55em;
  border-radius: 50%; background: var(--gold); position: static;
}
.simple-toc-details .toc-list a { flex: 1 1 auto; min-width: 0; color: #dfe2ee; text-decoration: none; }
.simple-toc-details .toc-list a:hover { color: var(--gold2); }
.simple-toc-details .toc-list ul { width: 100%; margin: 0.2rem 0 0.2rem 1.1rem; padding: 0; list-style: none; }

/* FAQ */
.faq details {
  background: var(--panel); border: 1px solid var(--edge);
  border-radius: 12px; padding: 0.75rem 1rem; margin-bottom: 0.55rem;
}
.faq summary { cursor: pointer; font-weight: 700; color: #fff; }
.faq details p { margin: 0.65rem 0 0.2rem; color: var(--mute); }

/* Sidebar + drawer offers */
.site-sidebar .casino-row,
.drawer-offers .casino-row {
  display: grid; gap: 0.45rem;
  background: var(--panel2); border: 1px solid var(--edge);
  border-radius: 14px; padding: 0.85rem; margin-bottom: 0.75rem;
}
.casino-row img { max-height: 36px; width: auto; }
.casino-row .name { font-weight: 800; color: #fff; }
.casino-row .bonus-line { font-size: 0.88rem; color: var(--gold2); }
.sidebar-title { font-family: var(--font-display); font-weight: 800; margin: 0 0 0.75rem; }

#sidebar-drawer {
  position: fixed; inset: 0; z-index: 200; display: none;
}
#sidebar-drawer.open { display: block; }
.drawer-backdrop {
  position: absolute; inset: 0; background: rgba(0,0,0,0.65);
}
.drawer-panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(100%, 380px);
  background: var(--bg); border-left: 1px solid var(--edge);
  padding: 1.1rem; overflow: auto;
  animation: slideIn 0.22s ease;
}
@keyframes slideIn { from { transform: translateX(24px); opacity: 0.6; } to { transform: none; opacity: 1; } }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.drawer-close {
  border: 1px solid var(--edge); background: var(--panel); color: #fff;
  width: 38px; height: 38px; border-radius: 10px; cursor: pointer; font-size: 1.1rem;
}

/* Author box */
.author-box.page-buttom {
  display: grid; grid-template-columns: 160px 1fr; gap: 1.1rem;
  margin: 2.5rem 0 1rem; padding: 1.2rem;
  background: var(--panel); border: 1px solid var(--edge); border-radius: var(--radius);
}
.author-box img {
  width: 160px; height: 160px; object-fit: cover; border-radius: 14px;
}
@media (max-width: 640px) {
  .author-box.page-buttom { grid-template-columns: 1fr; }
  .author-box img { width: 140px; height: 140px; }
}
.author-box .role { color: var(--mute); font-size: 0.9rem; margin-bottom: 0.5rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--edge);
  padding: 2rem 0 6rem; color: var(--mute); font-size: 0.88rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1.5rem;
  width: min(100% - 2rem, var(--max)); margin-inline: auto;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer a { color: var(--mute); }
.site-footer a:hover { color: var(--gold2); }
.age-note {
  margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--edge);
  font-size: 0.8rem; line-height: 1.6;
}

.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  transform: translateY(110%); transition: transform 0.28s ease;
  background: linear-gradient(0deg, rgba(10,12,18,0.98), rgba(10,12,18,0.9));
  border-top: 1px solid var(--edge);
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
}
.sticky-cta.on { transform: translateY(0); }
.sticky-cta a {
  display: flex; justify-content: center; max-width: 520px; margin: 0 auto;
  padding: 0.9rem; border-radius: 12px;
  background: linear-gradient(135deg, var(--red2), var(--red));
  color: #fff !important; font-weight: 900; text-decoration: none; text-transform: uppercase;
  letter-spacing: 0.04em; font-size: 0.92rem;
}

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