:root {
  /* Фон и поверхности */
  --bg: #ffffff;
  --bg-header: #000000;
  --bg-footer: #0a0a0a;
  --bg-card: #f8f9fa;
  --bg-surf: #141414;
  --bg-surf2: #e9ecef;

  /* Акценты */
  --accent: #e52521;
  --accent2: #ff3a35;
  --accent-red: #ff2a2a;
  --neon: #26d926;
  --success: #26d926;

  /* Текст */
  --text: #1a1a1a;
  --text-light: #ffffff;
  --text2: #6c757d;

  /* Декор */
  --border: rgba(0, 0, 0, 0.08);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.05);

  --radius: 10px;
  --radius-sm: 6px;
  --container: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent2); text-decoration: underline; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

h1, h2, h3, h4 {
  color: var(--text);
  line-height: 1.25;
  margin: 0 0 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(28px, 4vw, 40px); }
h2 { font-size: clamp(22px, 3vw, 30px); margin-top: 36px; }
h3 { font-size: clamp(18px, 2.4vw, 22px); margin-top: 28px; }

p { margin: 0 0 16px; }
ul, ol { margin: 0 0 20px; padding-left: 24px; }
li { margin-bottom: 8px; }

/* HEADER */
.site-header {
  background: var(--bg-header);
  color: var(--text-light);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid var(--accent);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 20px;
  max-width: var(--container);
  margin: 0 auto;
}
.logo-link { flex-shrink: 0; }
.logo-img { height: 40px; width: auto; display: block; }
.nav-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  justify-content: center;
}
.nav-menu a {
  color: var(--text-light);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: background .18s ease, color .18s ease;
  white-space: nowrap;
}
.nav-menu a:hover { background: rgba(255,255,255,0.08); color: var(--accent2); }
.nav-menu a.is-active {
  background: var(--accent);
  color: var(--text-light);
}
.play-btn {
  display: inline-block;
  background: var(--accent);
  color: var(--text-light) !important;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-size: 14px;
  box-shadow: 0 4px 14px rgba(229,37,33,0.35);
  transition: background .18s, transform .18s;
  flex-shrink: 0;
}
.play-btn:hover { background: var(--accent2); transform: translateY(-1px); color: var(--text-light); text-decoration: none; }

.burger {
  display: none;
  background: transparent;
  border: 0;
  color: var(--text-light);
  font-size: 26px;
  cursor: pointer;
  padding: 4px 8px;
  margin-left: auto;
}

@media (max-width: 900px) {
  .burger { display: block; order: 2; }
  .play-btn { order: 3; margin-left: 8px; }
  .nav-menu {
    order: 4;
    flex-basis: 100%;
    flex-direction: column;
    display: none;
    background: #111;
    margin-top: 12px;
    padding: 8px;
    border-radius: var(--radius-sm);
    gap: 2px;
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu a { display: block; }
  .logo-link { order: 1; }
}

/* HERO */
.hero {
  padding: 40px 0 20px;
  background: var(--bg);
}
.hero .intro { max-width: 800px; }

/* CASINO SHOWCASE (main page) */
.showcase {
  padding: 30px 0 20px;
}
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.casino-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease;
}
.casino-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,0.08); }
.casino-card.top-tier { border: 2px solid var(--accent); }
.rank-badge {
  position: absolute;
  top: -12px;
  left: 22px;
  background: var(--bg-surf2);
  color: var(--text);
  font-weight: 800;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.casino-card.top-tier .rank-badge { background: var(--accent); color: var(--text-light); }
.editor-pick {
  display: inline-block;
  background: var(--neon);
  color: #063806;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  align-self: flex-start;
}
.casino-logo {
  height: 60px;
  width: 100%;
  object-fit: contain;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 8px;
}
.stars {
  color: #ffb300;
  font-size: 18px;
  letter-spacing: 2px;
  line-height: 1;
}
.stars .rating-num {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  margin-left: 8px;
  letter-spacing: 0;
}
.usp { font-size: 14px; color: var(--text); margin: 0; }
.usp strong { color: var(--accent); }
.card-actions { display: flex; gap: 10px; margin-top: auto; flex-wrap: wrap; }
.btn-cta {
  background: var(--accent);
  color: var(--text-light);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  text-decoration: none;
  flex: 1;
  text-align: center;
  min-width: 130px;
  transition: background .18s;
}
.btn-cta:hover { background: var(--accent2); color: var(--text-light); text-decoration: none; }
.btn-alt {
  background: transparent;
  color: var(--text);
  padding: 10px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
  flex: 1;
  text-align: center;
  min-width: 120px;
  transition: border-color .18s, color .18s;
}
.btn-alt:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

@media (max-width: 900px) {
  .showcase-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .showcase-grid { grid-template-columns: 1fr; }
}

/* AVIATOR ARTICLE WIDGET (dark strip) */
.game-strip {
  background: var(--bg-surf);
  border-radius: var(--radius);
  padding: 26px;
  margin: 30px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
  color: var(--text-light);
}
.game-strip img { border-radius: var(--radius-sm); }
.game-strip h2 { color: var(--text-light); margin-top: 0; }
.game-strip p { color: #dcdcdc; }
.game-strip .btn-cta { display: inline-block; flex: none; padding: 12px 22px; }
.multi-value {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.multi-value div { }
.multi-value .label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text2); }
.multi-value .val { font-size: 22px; font-weight: 800; color: var(--neon); }

@media (max-width: 700px) {
  .game-strip { grid-template-columns: 1fr; }
}

/* CONTENT */
.content { padding: 30px 0 40px; }
.content .lead { font-size: 18px; color: var(--text); }
.content article { max-width: 900px; }
.content article.wide { max-width: 1200px; }

.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 24px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.info-table th, .info-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.info-table th { background: var(--bg-surf2); font-weight: 700; }
.info-table tr:last-child td { border-bottom: 0; }

.callout {
  background: var(--bg-card);
  border-left: 4px solid var(--accent);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin: 20px 0;
}
.callout strong { color: var(--accent); }

/* REVIEWS SLIDER */
.reviews {
  padding: 40px 0;
  background: var(--bg-card);
}
.reviews-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.slider-controls { display: flex; gap: 8px; }
.slider-btn {
  background: var(--text);
  color: var(--text-light);
  border: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  transition: background .18s;
}
.slider-btn:hover { background: var(--accent); }
.slider-btn:disabled { background: #ccc; cursor: not-allowed; }

.reviews-viewport { overflow: hidden; }
.reviews-track {
  display: flex;
  gap: 20px;
  transition: transform 0.4s ease;
}
.review-card {
  flex: 0 0 calc((100% - 40px) / 3);
  background: var(--bg);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.review-card .who { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.review-card .name { font-weight: 700; }
.review-card .date { font-size: 13px; color: var(--text2); }
.review-card .text { font-size: 14px; color: var(--text); line-height: 1.6; margin: 0; }

@media (max-width: 900px) {
  .review-card { flex: 0 0 calc((100% - 20px) / 2); }
}
@media (max-width: 600px) {
  .review-card { flex: 0 0 100%; }
}

/* FAQ */
.faq { padding: 30px 0; }
.faq-item {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  padding: 16px 20px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  color: var(--accent);
  font-weight: 800;
  transition: transform .2s;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-body { padding: 0 20px 18px; color: var(--text); }
.faq-item .faq-body p:last-child { margin-bottom: 0; }

/* AUTHOR BLOCK */
.author-box {
  display: flex;
  gap: 20px;
  padding: 22px;
  background: var(--bg-card);
  border-radius: var(--radius);
  margin: 40px 0 20px;
  border: 1px solid var(--border);
  align-items: flex-start;
}
.author-box img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--accent);
}
.author-box h4 { margin: 0 0 6px; }
.author-box .role { color: var(--text2); font-size: 14px; margin-bottom: 8px; }
.author-box .bio { font-size: 14px; margin-bottom: 8px; }
.author-box .updated { font-size: 13px; color: var(--text2); }

/* FINAL CTA */
.final-cta {
  background: var(--bg-surf);
  color: var(--text-light);
  padding: 40px 0;
  text-align: center;
}
.final-cta h2 { color: var(--text-light); margin-bottom: 12px; }
.final-cta p { color: #cccccc; max-width: 600px; margin: 0 auto 20px; }
.final-cta .btn-cta { display: inline-block; font-size: 16px; padding: 14px 32px; }

/* FOOTER */
.site-footer {
  background: var(--bg-footer);
  color: #d0d0d0;
  padding: 40px 0 20px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 30px;
}
.footer-col h5 {
  color: var(--text-light);
  font-size: 15px;
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #d0d0d0; }
.footer-col a:hover { color: var(--accent2); text-decoration: none; }

.footer-cta {
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 20px;
}
.footer-cta .btn-cta { display: inline-block; padding: 12px 26px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 12px;
  color: #999;
  font-size: 13px;
}
.footer-badges { display: flex; gap: 14px; align-items: center; }
.footer-badges span {
  background: rgba(255,255,255,0.08);
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.footer-disclaimer { color: #777; font-size: 12px; margin-top: 10px; }

@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* PLAY PAGE */
.play-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surf);
  color: var(--text-light);
  text-align: center;
  padding: 20px;
}
.play-body .spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(255,255,255,0.15);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}
@keyframes spin { to { transform: rotate(360deg); } }
