/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red: #d0021b;
  --dark: #1a1a1a;
  --gray-900: #222;
  --gray-700: #444;
  --gray-500: #777;
  --gray-300: #bbb;
  --gray-100: #f5f5f5;
  --bg: #fff;
  --border: #e0e0e0;
  --link: #d0021b;
  --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --max-w: 1200px;
}

html { font-size: 16px; }
body {
  font-family: var(--font-main);
  background: #f0f0f0;
  color: var(--gray-900);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

/* ===== TOP UTILITY BAR ===== */
.top-bar {
  background: #222;
  color: #bbb;
  font-size: 12px;
  padding: 5px 0;
}
.top-bar .inner {
  max-width: var(--max-w);
  margin: auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.top-bar a { color: #bbb; }
.top-bar a:hover { color: #fff; }
.top-bar .date { margin-left: auto; }

/* ===== HEADER ===== */
header.site-header {
  background: #fff;
  border-bottom: 3px solid var(--red);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
header.site-header .inner {
  max-width: var(--max-w);
  margin: auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 28px;
  height: 56px;
}
.logo-wrap { display: flex; align-items: center; gap: 8px; }
.logo-wrap .logo-icon {
  width: 36px; height: 36px;
  background: var(--red);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 900; font-size: 18px;
}
.logo-wrap .logo-text { font-weight: 800; font-size: 22px; letter-spacing: -0.5px; }
.logo-wrap .logo-text span { color: var(--red); }

nav.main-nav { display: flex; gap: 0; }
nav.main-nav a {
  padding: 0 14px;
  height: 56px;
  display: flex; align-items: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  border-bottom: 3px solid transparent;
  transition: all .2s;
  white-space: nowrap;
}
nav.main-nav a:hover, nav.main-nav a.active {
  color: var(--red);
  border-bottom-color: var(--red);
}
.header-search {
  margin-left: auto;
  display: flex;
  background: var(--gray-100);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}
.header-search input {
  border: none; background: transparent;
  padding: 6px 14px; font-size: 13px; outline: none; width: 180px;
}
.header-search button {
  background: var(--red); border: none; color: #fff;
  padding: 0 14px; cursor: pointer; font-size: 14px;
}

/* ===== CATEGORY RIBBON ===== */
.cat-ribbon {
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.cat-ribbon .inner {
  max-width: var(--max-w);
  margin: auto;
  padding: 0 16px;
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.cat-ribbon .inner::-webkit-scrollbar { display: none; }
.cat-ribbon a {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--gray-700);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: all .2s;
}
.cat-ribbon a:hover, .cat-ribbon a.active {
  color: var(--red);
  border-bottom-color: var(--red);
}

/* ===== LAYOUT ===== */
.page-wrapper {
  max-width: var(--max-w);
  margin: 24px auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
}
@media (max-width: 900px) {
  .page-wrapper { grid-template-columns: 1fr; }
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  font-size: 12px;
  color: var(--gray-500);
  margin-bottom: 16px;
  display: flex; gap: 6px; align-items: center; flex-wrap: wrap;
}
.breadcrumb a { color: var(--red); }
.breadcrumb .sep { color: var(--gray-300); }

/* ===== ARTICLE CARD ===== */
.article-card {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

/* ===== ARTICLE META ===== */
.article-meta-top {
  padding: 20px 24px 0;
}
.article-label {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
  margin-bottom: 12px;
}
.article-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--dark);
  margin-bottom: 12px;
}
@media (max-width: 600px) { .article-title { font-size: 22px; } }

.article-deck {
  font-size: 17px;
  color: var(--gray-700);
  line-height: 1.5;
  margin-bottom: 16px;
  font-weight: 400;
}
.article-byline {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--gray-500);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}
.author-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--red);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 15px;
  flex-shrink: 0;
}
.author-name { font-weight: 600; color: var(--gray-900); }
.byline-sep { color: var(--gray-300); }
.reading-time { display: flex; align-items: center; gap: 4px; }

/* ===== HERO IMAGE ===== */
.article-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
}
.article-hero img {
  width: 100%; max-height: 480px;
  object-fit: cover;
  display: block;
}
.hero-caption {
  background: rgba(0,0,0,.6);
  color: rgba(255,255,255,.8);
  font-size: 12px;
  padding: 8px 16px;
  position: absolute;
  bottom: 0; left: 0; right: 0;
}

/* ===== ARTICLE BODY ===== */
.article-body {
  padding: 24px 24px 32px;
}
.article-body p {
  font-size: 17px;
  line-height: 1.75;
  color: #333;
  margin-bottom: 20px;
}
.article-body h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--dark);
  margin: 32px 0 12px;
  padding-left: 14px;
  border-left: 4px solid var(--red);
}
.article-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin: 24px 0 10px;
}
.article-body ul, .article-body ol {
  padding-left: 24px;
  margin-bottom: 20px;
}
.article-body li {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 8px;
  color: #333;
}
.article-body strong { color: var(--dark); }

/* Blockquote */
.article-body blockquote {
  border-left: 4px solid var(--red);
  background: #fafafa;
  padding: 16px 20px;
  margin: 24px 0;
  border-radius: 0 4px 4px 0;
}
.article-body blockquote p {
  font-size: 18px;
  font-style: italic;
  color: var(--gray-700);
  margin: 0;
}
.article-body blockquote cite {
  display: block;
  font-size: 13px;
  color: var(--gray-500);
  font-style: normal;
  margin-top: 8px;
}

/* Infobox */
.infobox {
  background: #fff8f8;
  border: 1px solid #ffd0d0;
  border-radius: 8px;
  padding: 20px 22px;
  margin: 28px 0;
}
.infobox-title {
  font-weight: 700;
  font-size: 15px;
  color: var(--red);
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.infobox ul { padding-left: 20px; margin: 0; }
.infobox li { font-size: 14px; margin-bottom: 6px; color: var(--gray-700); }

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 28px 0;
}
@media (max-width: 600px) { .stats-grid { grid-template-columns: 1fr 1fr; } }
.stat-card {
  background: var(--gray-100);
  border-radius: 8px;
  padding: 18px 16px;
  text-align: center;
  border-top: 3px solid var(--red);
}
.stat-num {
  font-size: 28px;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
}
.stat-label {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 6px;
  line-height: 1.3;
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  border-radius: 10px;
  padding: 28px 28px;
  margin: 32px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(208,2,27,.15) 0%, transparent 70%);
}
.cta-banner-badge {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
  margin-bottom: 14px;
}
.cta-banner h3 {
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 8px;
}
.cta-banner p {
  color: rgba(255,255,255,.75);
  font-size: 14px;
  margin-bottom: 20px;
}
.cta-banner-amount {
  font-size: 38px;
  font-weight: 900;
  color: #ffd700;
  display: block;
  margin-bottom: 18px;
  text-shadow: 0 0 20px rgba(255,215,0,.4);
}
.cta-btn {
  display: inline-block;
  background: var(--red);
  color: #fff !important;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 32px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: .5px;
  transition: all .2s;
  position: relative;
  z-index: 1;
}
.cta-btn:hover { background: #b0021a; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(208,2,27,.4); }

/* Steps */
.steps-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}
.steps-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
  padding: 0 !important;
}
.step-num-circle {
  width: 34px; height: 34px;
  background: var(--red);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px;
  flex-shrink: 0;
  margin-top: 2px;
}
.step-content strong { display: block; font-size: 15px; margin-bottom: 4px; }
.step-content span { font-size: 14px; color: var(--gray-500); }

/* Tags */
.article-tags {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 8px;
  align-items: center;
}
.tags-label { font-size: 12px; color: var(--gray-500); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--gray-100);
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: 12px;
  color: var(--gray-700);
  cursor: pointer;
  transition: all .2s;
}
.tag:hover { background: var(--red); color: #fff; border-color: var(--red); }

/* Share bar */
.share-bar {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
}
.share-label { font-size: 13px; color: var(--gray-500); font-weight: 600; }
.share-btn {
  padding: 6px 16px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  color: #fff;
}
.share-vk { background: #4a76a8; }
.share-tg { background: #229ed9; }
.share-ok { background: #ee8208; }
.share-cp { background: #666; }

/* ===== RELATED ARTICLES ===== */
.related-section {
  margin-top: 24px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  overflow: hidden;
}
.related-title {
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 800;
  color: var(--dark);
  border-bottom: 2px solid var(--red);
  text-transform: uppercase;
  letter-spacing: .3px;
}
.related-list { padding: 0 }
.related-item {
  display: flex;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  transition: background .2s;
  cursor: pointer;
}
.related-item:last-child { border-bottom: none; }
.related-item:hover { background: var(--gray-100); }
.related-thumb {
  width: 72px; height: 54px;
  background: #ddd;
  border-radius: 4px;
  flex-shrink: 0;
  overflow: hidden;
}
.related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-info { flex: 1; }
.related-info h4 { font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--dark); margin-bottom: 4px; }
.related-info span { font-size: 11px; color: var(--gray-500); }

/* ===== SIDEBAR ===== */
aside.sidebar { display: flex; flex-direction: column; gap: 20px; }

.sidebar-widget {
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  overflow: hidden;
}
.widget-header {
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 800;
  color: var(--dark);
  background: var(--gray-100);
  border-bottom: 2px solid var(--red);
  text-transform: uppercase;
  letter-spacing: .4px;
}
.widget-body { padding: 12px 16px; }

/* Casino rating widget */
.casino-rating {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 16px;
}
.casino-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: var(--gray-100);
  border-radius: 6px;
  transition: background .2s;
  cursor: pointer;
}
.casino-item:hover { background: #ffeaea; }
.casino-rank {
  width: 24px; height: 24px;
  background: var(--gray-300);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.casino-rank.gold { background: #f5a623; }
.casino-rank.silver { background: #9b9b9b; }
.casino-rank.bronze { background: #b87333; }
.casino-name { font-size: 13px; font-weight: 700; color: var(--dark); }
.casino-bonus { font-size: 11px; color: var(--red); font-weight: 600; }
.casino-stars { color: #f5a623; font-size: 11px; }
.casino-item-cta {
  margin-left: auto;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 3px;
  white-space: nowrap;
}

/* Popular posts widget */
.pop-post {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.pop-post:last-child { border-bottom: none; padding-bottom: 0; }
.pop-num {
  font-size: 22px;
  font-weight: 900;
  color: var(--gray-300);
  line-height: 1;
  min-width: 28px;
}
.pop-post:hover .pop-num { color: var(--red); }
.pop-text { font-size: 13px; line-height: 1.4; color: var(--gray-700); }
.pop-text:hover { color: var(--red); }

/* Promo widget */
.promo-widget {
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  color: #fff;
  padding: 20px 16px;
  text-align: center;
}
.promo-widget .pw-label {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: 8px;
}
.promo-widget .pw-title {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 6px;
}
.promo-widget .pw-amount {
  font-size: 30px;
  font-weight: 900;
  color: #ffd700;
  margin-bottom: 14px;
  text-shadow: 0 0 15px rgba(255,215,0,.3);
}
.promo-widget .pw-btn {
  display: block;
  background: var(--red);
  color: #fff;
  padding: 10px;
  border-radius: 5px;
  font-weight: 700;
  font-size: 13px;
  transition: all .2s;
}
.promo-widget .pw-btn:hover { background: #b0021a; }

/* ===== FOOTER ===== */
footer.site-footer {
  background: #1a1a1a;
  color: #999;
  font-size: 13px;
  margin-top: 48px;
  padding: 32px 0 20px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: auto;
  padding: 0 16px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 28px;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand .ft-logo { font-size: 20px; font-weight: 900; color: #fff; margin-bottom: 8px; }
.footer-brand .ft-logo span { color: var(--red); }
.footer-brand p { font-size: 12px; line-height: 1.6; }
.footer-col h5 { color: #ddd; font-size: 13px; font-weight: 700; margin-bottom: 12px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #999; font-size: 12px; transition: color .2s; }
.footer-col a:hover { color: var(--red); }
.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 11px; color: #666; }
.footer-warn { color: #e87c7c; font-size: 11px; }

/* ===== UTILS ===== */
.text-red { color: var(--red); }
.text-center { text-align: center; }
.mt-4 { margin-top: 32px; }
