/* =========================================================
   10rucasinos.top — Топ-10 онлайн казино (RU)
   Bootstrap 5 · mobile-first · светлая тема · без JavaScript
   ========================================================= */

:root {
  /* Цвета */
  --bg: #f4f6fa;
  --surface: #ffffff;
  --text: #101828;
  --muted: #667085;
  --muted-2: #98a2b3;
  --border: #e4e7ec;
  --border-strong: #d0d5dd;

  --primary: #16a34a;        /* CTA «Играть» */
  --primary-dark: #15803d;
  --primary-soft: #e6f6ec;   /* светлая подложка */
  --primary-soft-2: #d1f0dd;

  --gold: #f5a623;           /* звёзды, топ-места */
  --gold-soft: #fdf1dc;

  --link: #2563eb;

  --dark: #0f172a;           /* топбар / футер */

  /* Радиусы и тени */
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
  --shadow: 0 10px 30px rgba(16, 24, 40, .08);
  --shadow-lg: 0 20px 45px rgba(16, 24, 40, .12);

  --font-head: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
}

* { -webkit-tap-highlight-color: transparent; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--primary-dark); }

h1, h2, h3, h4, h5 { font-family: var(--font-head); font-weight: 800; color: var(--text); }

/* ============================= Топбар ============================= */
.topbar {
  background: var(--dark);
  color: #cbd5e1;
  font-size: 13px;
  padding: 8px 0;
}
.topbar .container { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.age-badge {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary);
  color: #fff; font-weight: 700; font-size: 12px;
  border-radius: 50px; padding: 2px 10px; line-height: 1.4;
  white-space: nowrap;
}
.topbar-text { margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ============================= Шапка ============================= */
.header {
  position: sticky; top: 0; z-index: 1030;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }

.logo { display: flex; align-items: center; gap: 8px; color: var(--text); }
.logo:hover { color: var(--text); }
.logo-mark {
  display: grid; place-items: center; width: 40px; height: 40px;
  background: var(--primary); color: #fff;
  font-family: var(--font-head); font-weight: 800; font-size: 18px;
  border-radius: 10px; box-shadow: 0 4px 12px rgba(22, 163, 74, .35);
}
.logo-star { color: var(--gold); font-size: 18px; line-height: 1; }
.logo-text { font-family: var(--font-head); font-weight: 800; font-size: 22px; letter-spacing: -.3px; line-height: 1; }
.logo-text .dot { color: var(--primary); }

.desktop-nav { display: flex; align-items: center; gap: 22px; font-family: var(--font-head); font-weight: 600; font-size: 14.5px; }
.desktop-nav a { color: var(--text); position: relative; padding: 6px 0; }
.desktop-nav a:hover { color: var(--primary); }
.desktop-nav a.active { color: var(--primary); }
.desktop-nav a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--primary); border-radius: 2px;
}

.header-actions { display: flex; align-items: center; gap: 10px; }

.btn-play {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--primary); color: #fff !important;
  font-family: var(--font-head); font-weight: 700; font-size: 15px;
  padding: 10px 22px; border-radius: 10px; white-space: nowrap;
  box-shadow: 0 6px 16px rgba(22, 163, 74, .30);
  transition: background .15s ease, transform .15s ease;
}
.btn-play:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); }
.btn-play--lg { font-size: 16px; padding: 13px 28px; border-radius: 12px; }

/* ============================= Бургер (без JS) ============================= */
.nav-toggle { display: none; }
.burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 10px;
  background: var(--primary-soft); border-radius: 10px; cursor: pointer;
}
.burger span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: .2s; }

.mobile-menu {
  display: none; background: #fff; border-top: 1px solid var(--border);
  box-shadow: var(--shadow); max-height: calc(100vh - 70px); overflow: auto;
}
.mobile-menu-inner { display: flex; flex-direction: column; gap: 4px; padding: 12px 16px 16px; }
.mobile-menu a {
  display: flex; align-items: center; gap: 12px; color: var(--text);
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
  padding: 12px 14px; border-radius: 10px;
}
.mobile-menu a i { color: var(--primary); font-size: 18px; }
.mobile-menu a:hover, .mobile-menu a.active { background: var(--primary-soft); }
.mobile-menu a.active { color: var(--primary); }

/* Показ меню при :checked — чистый CSS */
.nav-toggle:checked ~ .mobile-menu { display: block; }
.nav-toggle:checked ~ .header-inner .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle:checked ~ .header-inner .burger span:nth-child(2) { opacity: 0; }
.nav-toggle:checked ~ .header-inner .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 991.98px) {
  .burger { display: flex; }
  .desktop-nav, .btn-play--header { display: none; }
}

/* ============================= Hero ============================= */
.hero {
  background:
    radial-gradient(120% 90% at 85% -10%, rgba(22, 163, 74, .12) 0%, rgba(22, 163, 74, 0) 55%),
    radial-gradient(120% 90% at 10% 0%, rgba(37, 99, 235, .10) 0%, rgba(37, 99, 235, 0) 55%),
    #fff;
  border-bottom: 1px solid var(--border);
  padding: 40px 0 36px;
  text-align: center;
}
.badge-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary-soft); color: var(--primary-dark);
  font-family: var(--font-head); font-weight: 600; font-size: 12px;
  letter-spacing: .5px; text-transform: uppercase;
  border-radius: 50px; padding: 7px 16px;
}
.hero-title { font-size: clamp(26px, 5vw, 40px); letter-spacing: -.5px; margin: 16px auto 12px; max-width: 900px; line-height: 1.15; }
.hero-text { color: var(--muted); font-size: 16px; max-width: 680px; margin: 0 auto 18px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; align-items: center; color: var(--muted); font-size: 13.5px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta i { color: var(--primary); font-size: 15px; }
.hero-meta-link { font-family: var(--font-head); font-weight: 600; color: var(--link) !important; display: inline-flex; align-items: center; gap: 6px; }

/* Хлебные крошки категорий */
.cats {
  padding: 20px 0 0;
}
.cat-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.cat-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); font-family: var(--font-head); font-weight: 600; font-size: 13.5px;
  border-radius: 50px; padding: 8px 16px;
  box-shadow: var(--shadow-sm);
}
.cat-chip i { color: var(--primary); }
.cat-chip:hover { border-color: var(--primary); color: var(--primary); }
.cat-chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.cat-chip.active i { color: #fff; }

/* ============================= Рейтинг ============================= */
.rating { padding: 28px 0 44px; }
.rating-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.rating-title { font-size: clamp(20px, 3vw, 26px); margin: 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; }
.rating-count { font-family: var(--font-head); font-weight: 600; font-size: 13px; color: var(--muted); }

.casino-list { display: flex; flex-direction: column; gap: 14px; }

/* ============================= Карточка казино ============================= */
.casino-card {
  position: relative; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 20px; box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, border-color .2s ease;
}
.casino-card:hover { box-shadow: var(--shadow); border-color: var(--border-strong); }
.casino-card--top { border-color: var(--primary-soft-2); box-shadow: var(--shadow-lg); }
.casino-card--top::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 4px;
  background: var(--primary); border-radius: var(--radius) 0 0 var(--radius);
}

.ribbon {
  position: absolute; top: -13px; left: 22px;
  background: var(--gold); color: #3a2500;
  font-family: var(--font-head); font-weight: 700; font-size: 11px;
  letter-spacing: .5px; text-transform: uppercase;
  padding: 5px 14px; border-radius: 8px; box-shadow: var(--shadow-sm);
}

/* Идентификация бренда */
.cc-identity { display: flex; gap: 12px; align-items: flex-start; }
.rank {
  flex: 0 0 auto; display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 9px;
  font-family: var(--font-head); font-weight: 800; font-size: 15px;
  background: #eef1f5; color: var(--muted);
}
.rank--gold { background: var(--gold); color: #3a2500; }
.rank--silver { background: #b9c1cc; color: #1a2333; }
.rank--bronze { background: #d28a5c; color: #3d1d06; }

.brand-logo {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
  width: 96px; height: 64px; border-radius: 12px;
  font-family: var(--font-head); font-weight: 800; font-size: 21px; letter-spacing: .5px;
  color: #fff; box-shadow: var(--shadow-sm); overflow: hidden;
}
.brand-logo img {
  width: 100%; height: 100%; object-fit: contain; display: block; padding: 7px;
}
.brand-logo--img {
  background: #fff; border: 1px solid var(--border);
}
.cc-name { font-size: 19px; margin: 0 0 4px; }
.cc-rating { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.stars { position: relative; color: var(--border-strong); font-size: 14px; letter-spacing: 1px; line-height: 1; }
.stars-fill {
  position: absolute; top: 0; left: 0; white-space: nowrap; overflow: hidden;
  color: var(--gold);
}
.cc-score { font-family: var(--font-head); font-weight: 700; font-size: 15px; }
.cc-reviews { color: var(--muted); font-size: 12.5px; }

.cc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--primary-soft); color: var(--primary-dark);
  border: 1px solid var(--primary-soft-2);
  font-size: 12px; font-weight: 500;
  border-radius: 50px; padding: 4px 11px;
}
.tag--accent { background: #eef4ff; color: #1d4ed8; border-color: #dbe7ff; }
.tag--warn { background: var(--gold-soft); color: #92600a; border-color: #f7e3bf; }

/* Бонус */
.cc-bonus {
  display: flex; flex-direction: column; gap: 3px;
  background: var(--primary-soft); border: 1px dashed var(--primary-soft-2);
  border-radius: var(--radius-sm); padding: 12px 14px; height: 100%;
}
.cc-bonus-label {
  color: var(--primary-dark); font-family: var(--font-head);
  font-weight: 600; font-size: 11px; letter-spacing: .5px; text-transform: uppercase;
}
.cc-bonus-value { font-family: var(--font-head); font-weight: 800; font-size: 17px; line-height: 1.3; }
.cc-bonus-extra { color: var(--muted); font-size: 12px; line-height: 1.45; }

/* Характеристики */
.cc-specs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; height: 100%; }
.cc-specs li {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 2px;
  background: #f8fafc; border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 6px;
}
.cc-specs i { color: var(--primary); font-size: 17px; margin-bottom: 2px; }
.cc-specs b { font-family: var(--font-head); font-weight: 700; font-size: 14px; line-height: 1.2; }
.cc-specs span { color: var(--muted); font-size: 11.5px; }

/* CTA */
.cc-cta { display: flex; flex-direction: column; gap: 8px; height: 100%; justify-content: center; }
.cc-note { color: var(--muted-2); font-size: 11.5px; text-align: center; }

@media (max-width: 991.98px) {
  .cc-cta { margin-top: 2px; }
  .btn-play--lg { width: 100%; }
}

/* ============================= SEO-текст ============================= */
.seo { padding: 34px 0 44px; }
.seo-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow-sm);
}
.seo-card h2 { font-size: 22px; margin-bottom: 14px; }
.seo-card h3 { font-size: 17px; margin: 20px 0 8px; }
.seo-card p, .seo-card li { color: var(--muted); font-size: 15.5px; }
.seo-card ul, .seo-card ol { padding-left: 1.3rem; }
.seo-card li { margin-bottom: 6px; }
.seo-card strong { color: var(--text); }

/* ============================= Критерии ============================= */
.criteria { padding: 0 0 44px; }
.criteria-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.criteria-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 18px; box-shadow: var(--shadow-sm);
}
.criteria-item i { font-size: 24px; color: var(--primary); margin-bottom: 10px; display: block; }
.criteria-item h3 { font-size: 15.5px; margin-bottom: 6px; }
.criteria-item p { color: var(--muted); font-size: 13.5px; margin: 0; }
@media (max-width: 991.98px) { .criteria-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .criteria-grid { grid-template-columns: 1fr; } }

/* ============================= FAQ ============================= */
.faq { padding: 0 0 44px; }
.faq-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: 0; }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  gap: 16px; padding: 18px 22px; font-family: var(--font-head); font-weight: 700; font-size: 15.5px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 22px; color: var(--primary); transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 22px 18px; color: var(--muted); font-size: 15px; }

/* ============================= Футер ============================= */
.footer { background: var(--dark); color: #94a3b8; padding: 40px 0 28px; margin-top: 10px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer a { color: #cbd5e1; }
.footer a:hover { color: #fff; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-links li a { font-size: 14px; }
.footer-disclaimer { font-size: 12.5px; color: #7c8798; border-top: 1px solid rgba(255,255,255,.08); margin-top: 26px; padding-top: 20px; }
.footer-disclaimer .age-badge { margin-right: 8px; }
.footer-brand { display: flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 800; font-size: 20px; color: #fff; margin-bottom: 12px; }
.footer-brand .logo-mark { width: 34px; height: 34px; font-size: 16px; border-radius: 9px; box-shadow: none; }
.footer-brand .dot { color: var(--primary); }
