/* CasinoBlog.ru — White-Blue Premium Theme v3 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

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

:root {
  --bg-primary: #f5f7fb;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f0f3fa;
  --bg-elevated: #f0f4fc;
  --accent: #1a56db;
  --accent-light: #3b82f6;
  --accent-dark: #1345b5;
  --accent-glow: rgba(26,86,219,0.2);
  --accent-bg: rgba(26,86,219,0.06);
  --green: #16a34a;
  --green-light: #22c55e;
  --green-dark: #15803d;
  --green-bg: rgba(22,163,74,0.08);
  --red: #dc2626;
  --red-bg: rgba(220,38,38,0.06);
  --orange: #ea580c;
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;
  --border: #e5e7eb;
  --border-light: #f3f4f6;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.1);
  --shadow-accent: 0 4px 20px rgba(26,86,219,0.2);
  --max-width: 1240px;
  --sidebar-width: 300px;
  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
  --transition-fast: 0.15s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--accent-light); }
img { max-width: 100%; height: auto; display: block; }

/* === HEADER === */
.header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 8px rgba(0,0,0,0.05);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 68px;
  gap: 16px;
}

.logo {
  font-size: 26px;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -0.5px;
  white-space: nowrap;
}
.logo span { color: var(--text-primary); font-weight: 400; }

.nav { display: flex; gap: 2px; align-items: center; flex-wrap: nowrap; overflow-x: auto; }
.nav::-webkit-scrollbar { display: none; }

.nav a {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius-xs);
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.nav a:hover { color: var(--accent); background: var(--accent-bg); }
.nav a.active { color: var(--accent); background: rgba(26,86,219,0.1); }

.header-buttons { display: flex; gap: 8px; flex-shrink: 0; }

.btn-header-login {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 18px;
  border: 1.5px solid rgba(26,86,219,0.35);
  border-radius: var(--radius-xs);
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-header-login:hover {
  border-color: var(--accent);
  background: var(--accent-bg);
  color: var(--accent-dark);
}

.btn-header-reg {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 20px;
  border-radius: var(--radius-xs);
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
  box-shadow: var(--shadow-accent);
}
.btn-header-reg:hover {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(26,86,219,0.3);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  border-radius: var(--radius-xs);
  -webkit-tap-highlight-color: transparent;
  position: relative;
  z-index: 1001;
  touch-action: manipulation;
}
.nav-toggle:active { background: var(--accent-bg); }
.nav-toggle svg { width: 26px; height: 26px; stroke: var(--text-primary); display: block; pointer-events: none; }

/* === LAYOUT === */
.layout {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: 28px;
  padding: 28px 24px;
}
.content { min-width: 0; }

/* === HERO === */
.hero {
  background: linear-gradient(135deg, #eef2ff 0%, #dbeafe 50%, #e0f2fe 100%);
  border: 1px solid rgba(26,86,219,0.15);
  border-radius: var(--radius);
  padding: 48px 40px;
  margin-bottom: 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(26,86,219,0.06) 0%, transparent 50%),
              radial-gradient(circle at 70% 60%, rgba(59,130,246,0.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero h1 { font-size: 38px; font-weight: 900; margin-bottom: 16px; position: relative; line-height: 1.2; color: var(--text-primary); }
.hero p { font-size: 17px; color: var(--text-secondary); max-width: 660px; margin: 0 auto 28px; position: relative; line-height: 1.7; }

/* === ARTICLE === */
.article {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px;
  box-shadow: var(--shadow-sm);
}

.article h1 {
  font-size: 34px;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.article h2 {
  font-size: 24px;
  font-weight: 800;
  margin: 44px 0 18px;
  color: var(--text-primary);
  padding-bottom: 14px;
  border-bottom: 2px solid var(--border);
  position: relative;
}
.article h2::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--accent);
}

.article h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 32px 0 14px;
  color: var(--text-primary);
}

.article p { margin-bottom: 18px; color: var(--text-secondary); font-size: 15px; }
.article ul, .article ol { margin: 0 0 18px 24px; color: var(--text-secondary); font-size: 15px; }
.article li { margin-bottom: 10px; }

.article-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.article-meta span { display: flex; align-items: center; gap: 6px; }

/* === BREADCRUMB === */
.breadcrumb { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; padding: 0 4px; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 8px; opacity: 0.5; }

/* === RATING BOX === */
.rating-box {
  background: linear-gradient(135deg, #eef2ff, #dbeafe);
  border: 1px solid rgba(26,86,219,0.2);
  border-radius: var(--radius);
  padding: 28px;
  margin: 28px 0;
  display: flex;
  align-items: center;
  gap: 28px;
}

.rating-score {
  font-size: 56px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}
.rating-score span { font-size: 22px; color: var(--text-muted); font-weight: 400; }
.rating-stars { color: var(--orange); font-size: 22px; letter-spacing: 3px; margin-bottom: 4px; }
.rating-label { font-size: 14px; color: var(--text-secondary); }

/* === CTA BUTTONS === */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #ffffff;
  font-weight: 800;
  font-size: 16px;
  padding: 16px 36px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-accent);
  letter-spacing: 0.3px;
}
.cta-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}
.cta-btn:hover {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(26,86,219,0.35);
}
.cta-btn:hover::before { left: 100%; }

.cta-btn-green {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  box-shadow: 0 4px 20px rgba(22,163,74,0.2);
}
.cta-btn-green:hover {
  background: linear-gradient(135deg, var(--green-light), var(--green));
  color: #ffffff;
  box-shadow: 0 8px 32px rgba(22,163,74,0.3);
}

.cta-btn-outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
  box-shadow: none;
}
.cta-btn-outline:hover {
  background: var(--accent-bg);
  color: var(--accent-dark);
  box-shadow: 0 4px 16px rgba(26,86,219,0.1);
}

.cta-btn-large { font-size: 18px; padding: 18px 44px; border-radius: var(--radius); }

.cta-center { text-align: center; margin: 32px 0; }
.cta-center .cta-btn { min-width: 280px; }

/* Pulsing CTA */
.cta-pulse { animation: pulse 2.5s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: var(--shadow-accent); }
  50% { box-shadow: 0 4px 30px rgba(26,86,219,0.4), 0 0 60px rgba(26,86,219,0.1); }
}

/* === INFO BOX === */
.info-box {
  background: #eef2ff;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 22px 26px;
  margin: 28px 0;
}
.info-box-title {
  font-weight: 800;
  font-size: 15px;
  color: var(--accent);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.info-box p { margin-bottom: 0; font-size: 14px; }

/* === PROS / CONS === */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 28px 0; }

.pros, .cons {
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  padding: 24px;
  border: 1px solid var(--border);
}
.pros { border-top: 3px solid var(--green); }
.cons { border-top: 3px solid var(--red); }

.pros h4 { color: var(--green); margin-bottom: 14px; font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.cons h4 { color: var(--red); margin-bottom: 14px; font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }

.pros ul, .cons ul { list-style: none; margin: 0; padding: 0; }
.pros li, .cons li { font-size: 14px; color: var(--text-secondary); margin-bottom: 8px; padding-left: 22px; position: relative; line-height: 1.5; }
.pros li::before { content: "+"; position: absolute; left: 0; color: var(--green); font-weight: 800; font-size: 16px; }
.cons li::before { content: "\2212"; position: absolute; left: 0; color: var(--red); font-weight: 800; font-size: 16px; }

/* === TABLE === */
.table-wrap { overflow-x: auto; margin: 28px 0; border-radius: var(--radius-sm); border: 1px solid var(--border); }

table { width: 100%; border-collapse: collapse; font-size: 14px; }

thead th {
  background: #eef2ff;
  color: var(--accent);
  font-weight: 700;
  text-align: left;
  padding: 14px 18px;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

tbody td { padding: 13px 18px; border-bottom: 1px solid var(--border-light); color: var(--text-secondary); }
tbody tr:hover { background: var(--accent-bg); }
tbody tr:last-child td { border-bottom: none; }

/* === BADGE === */
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(26,86,219,0.1);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-green { background: var(--green-bg); color: var(--green); }

/* === FAQ === */
.faq-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item:hover { border-color: rgba(26,86,219,0.25); }

.faq-q {
  font-weight: 700;
  font-size: 15px;
  color: var(--text-primary);
  padding: 18px 22px;
  cursor: pointer;
  position: relative;
  padding-right: 44px;
}
.faq-q::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--accent);
  font-weight: 300;
}
.faq-a { font-size: 14px; color: var(--text-secondary); padding: 0 22px 18px; line-height: 1.7; }

/* === FEATURE GRID === */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0; }

.feature-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 26px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  opacity: 0;
  transition: opacity var(--transition);
}
.feature-card:hover {
  border-color: rgba(26,86,219,0.25);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 48px; height: 48px;
  background: var(--accent-bg);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  font-size: 24px;
}

.feature-card h4 { font-size: 16px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-secondary); margin: 0; line-height: 1.6; }

/* === STEP LIST === */
.step-list { counter-reset: step; margin: 28px 0; }

.step-item {
  display: flex;
  gap: 18px;
  margin-bottom: 22px;
  counter-increment: step;
  padding: 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition);
}
.step-item:hover { border-color: rgba(26,86,219,0.25); }

.step-item::before {
  content: counter(step);
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #ffffff;
  font-weight: 800;
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
}

.step-item div h4 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.step-item div p { font-size: 14px; color: var(--text-secondary); margin: 0; }

/* === SIDEBAR === */
.sidebar { position: sticky; top: 96px; align-self: start; }

.sidebar-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.sidebar-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.sidebar-links { list-style: none; }
.sidebar-links li { margin-bottom: 2px; }
.sidebar-links a {
  display: block;
  padding: 10px 14px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-xs);
  transition: all var(--transition-fast);
}
.sidebar-links a:hover, .sidebar-links a.active {
  color: var(--accent);
  background: var(--accent-bg);
}

/* Sidebar Bonus Card */
.sidebar-bonus {
  background: linear-gradient(135deg, #eef2ff, #dbeafe);
  border-color: rgba(26,86,219,0.25);
  text-align: center;
  padding: 28px 22px;
}
.sidebar-bonus-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.sidebar-bonus h3 {
  font-size: 28px;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 6px;
}
.sidebar-bonus p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 18px;
}
.sidebar-bonus .cta-btn {
  width: 100%;
  justify-content: center;
  font-size: 15px;
  padding: 14px 20px;
}

/* === FOOTER === */
.footer {
  background: #1e293b;
  border-top: none;
  margin-top: 60px;
  padding: 48px 24px 32px;
}

.footer-inner { max-width: var(--max-width); margin: 0 auto; }

.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-bottom: 32px; }

.footer-col h4 {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #93c5fd;
  margin-bottom: 16px;
}

.footer-col a { display: block; color: #94a3b8; font-size: 14px; padding: 5px 0; transition: color var(--transition-fast); }
.footer-col a:hover { color: #ffffff; }

.footer-bottom {
  border-top: 1px solid #334155;
  padding-top: 24px;
  text-align: center;
  font-size: 12px;
  color: #64748b;
}
.footer-disclaimer { margin-top: 8px; font-size: 11px; color: #64748b; }

/* === FLOATING MOBILE CTA === */
.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 999;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.97) 30%);
  padding: 12px 16px calc(env(safe-area-inset-bottom, 8px) + 12px);
  pointer-events: none;
}
.mobile-cta-bar .cta-btn {
  pointer-events: all;
  width: 100%;
  justify-content: center;
  font-size: 16px;
  padding: 16px 24px;
  border-radius: 14px;
}

/* === BONUS BANNER (in-article) === */
.bonus-banner {
  background: linear-gradient(135deg, #eef2ff, #dbeafe, #e0f2fe);
  border: 1px solid rgba(26,86,219,0.2);
  border-radius: var(--radius);
  padding: 32px;
  margin: 32px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.bonus-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(26,86,219,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.bonus-banner h3 {
  font-size: 24px;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 8px;
  position: relative;
}
.bonus-banner p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  position: relative;
}
.bonus-banner .cta-btn { position: relative; }

/* === RESPONSIVE === */

/* Tablet + Mobile: hamburger menu appears, sidebar hides */
@media (max-width: 1024px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .mobile-cta-bar { display: block; }
  body { padding-bottom: 76px; }

  /* Hamburger ON at 1024px */
  .nav {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 68px;
    left: 0; right: 0; bottom: 0;
    background: #ffffff;
    border-top: 1px solid var(--border);
    padding: 16px;
    z-index: 999;
    overflow-y: auto;
    gap: 4px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  }
  .nav.open { display: flex; }
  .nav a { font-size: 15px; padding: 14px 16px; border-radius: var(--radius-xs); }
  .nav a:hover { background: var(--accent-bg); }
  .nav-toggle { display: block; }
  .header-buttons { display: none; }
}

/* Mobile */
@media (max-width: 768px) {
  body { font-size: 15px; }

  .header-inner { height: 58px; padding: 0 16px; }
  .logo { font-size: 22px; }

  .nav { top: 58px; }
  .nav a { font-size: 16px; padding: 14px 16px; }

  .layout { padding: 16px; gap: 16px; }

  .hero { padding: 28px 20px; margin-bottom: 16px; }
  .hero h1 { font-size: 24px; }
  .hero p { font-size: 15px; margin-bottom: 20px; }

  .article { padding: 24px 18px; border-radius: 12px; }
  .article h1 { font-size: 24px; }
  .article h2 { font-size: 20px; margin: 32px 0 14px; }
  .article h3 { font-size: 18px; margin: 24px 0 12px; }

  .rating-box { flex-direction: column; text-align: center; padding: 22px 18px; gap: 12px; }
  .rating-score { font-size: 44px; }

  .pros-cons { grid-template-columns: 1fr; gap: 12px; }
  .feature-grid { grid-template-columns: 1fr; gap: 12px; }

  .step-item { padding: 16px; gap: 14px; }
  .step-item::before { width: 38px; height: 38px; font-size: 16px; }

  .table-wrap { margin: 20px -18px; border-radius: 0; border-left: none; border-right: none; }
  table { font-size: 13px; }
  thead th { padding: 12px 14px; }
  tbody td { padding: 10px 14px; }

  .cta-btn { font-size: 15px; padding: 14px 28px; width: 100%; justify-content: center; }
  .cta-btn-large { font-size: 16px; padding: 16px 28px; }
  .cta-center .cta-btn { min-width: auto; }

  .bonus-banner { padding: 24px 18px; margin: 24px 0; }
  .bonus-banner h3 { font-size: 20px; }

  .faq-q { font-size: 14px; padding: 16px 40px 16px 18px; }
  .faq-a { padding: 0 18px 16px; font-size: 13px; }

  .footer { padding: 32px 16px 24px; margin-top: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }

  .info-box { padding: 18px 20px; }
  .breadcrumb { font-size: 12px; }
}

/* Small phones */
@media (max-width: 380px) {
  .hero h1 { font-size: 21px; }
  .article h1 { font-size: 21px; }
  .footer-grid { grid-template-columns: 1fr; }
  .logo { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
