/* ParyajPam — обновлённый layout (sidebar + main) */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #0a1124;
  --surface: #131c36;
  --surface-2: #1a2444;
  --table: #1a2444;
  --border: #243057;
  --border-strong: #2e3c6b;

  --text: #e6ebf5;
  --text-2: #b6c0d6;
  --muted: #8593b3;

  --accent: #ffcc33;
  --accent-2: #ffb800;
  --accent-text: #1a1208;

  --green: #2ed573;
  --red: #ff4757;

  --r: 8px;
  --r-lg: 12px;
  --r-xl: 16px;

  --side-w: 240px;
  --top-h: 64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
img { max-width: 100%; display: block; }
svg { display: block; }

/* ── TOP ───────────────────────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 17, 36, 0.92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  height: var(--top-h);
  display: flex; align-items: center;
  padding: 0 24px;
}
.top-row {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; gap: 24px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 20px; letter-spacing: -0.02em;
  color: var(--accent);
}
.brand .flag {
  width: 22px; height: 16px; border-radius: 3px;
  border: 1px solid var(--border);
  background:
    linear-gradient(to bottom, transparent calc(50% - 1px), #fff calc(50% - 1px), #fff calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(to right, transparent calc(50% - 1px), #fff calc(50% - 1px), #fff calc(50% + 1px), transparent calc(50% + 1px)),
    conic-gradient(from 0deg at 50% 50%, #ce1126 0deg 90deg, #002d62 90deg 180deg, #ce1126 180deg 270deg, #002d62 270deg 360deg);
}
.top-nav {
  display: flex; gap: 4px; flex: 1; justify-content: center;
}
.top-nav a {
  padding: 8px 14px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.04em;
  color: var(--text-2); text-transform: uppercase;
  border-radius: var(--r);
  transition: color .15s, background .15s;
}
.top-nav a:hover { color: var(--text); background: var(--surface); }
.top-nav a.on { color: var(--accent); }

.top-cta { display: inline-flex; gap: 10px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 20px; border-radius: var(--r);
  font-size: 13px; font-weight: 700;
  transition: all .15s ease;
  white-space: nowrap;
}
.btn-line { background: transparent; color: var(--text); border: 1px solid var(--border-strong); }
.btn-line:hover { border-color: var(--accent); color: var(--accent); }
.btn-primary { background: linear-gradient(180deg, var(--accent), var(--accent-2)); color: var(--accent-text); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(255, 204, 51, 0.25); }

.menu-toggle { display: none; padding: 0; width: 38px; height: 38px; background: var(--surface); color: var(--text); border-radius: var(--r); }
.menu-toggle:hover { background: var(--surface-2); }

/* ── LAYOUT ─────────────────────────────────────────────── */
.layout {
  display: grid;
  grid-template-columns: var(--side-w) 1fr;
  max-width: 1440px;
  margin: 0 auto;
  gap: 24px;
  padding: 24px;
}

/* ── SIDEBAR ────────────────────────────────────────────── */
.sidebar {
  position: sticky; top: calc(var(--top-h) + 24px);
  align-self: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 8px;
  max-height: calc(100vh - var(--top-h) - 48px);
  overflow-y: auto;
}
.cats { display: flex; flex-direction: column; gap: 2px; }
.cat {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 14px;
  border-radius: var(--r);
  font-size: 14px; font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.cat:hover { background: var(--surface-2); color: var(--text); }
.cat.on {
  background: var(--surface-2);
  color: var(--accent);
}
.cat .nm { display: inline-flex; align-items: center; gap: 12px; }
.cat .nm .ic {
  width: 20px; height: 20px; flex-shrink: 0;
  opacity: 0.85;
}
.cat.on .nm .ic { opacity: 1; }

/* ── MAIN ───────────────────────────────────────────────── */
.main { min-width: 0; display: flex; flex-direction: column; gap: 28px; }

/* ── HERO SLIDER ─────────────────────────────────────────── */
.hero-slider {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--table);
}
.hero-slider .slides {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.hero-slider .slides::-webkit-scrollbar { display: none; }
.hero-slider .slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  display: block;
  cursor: pointer;
  background: var(--table);
}
.hero-slider .slide img {
  width: 100%;
  aspect-ratio: 2.5 / 1;
  object-fit: cover;
}
.slider-nav {
  position: absolute; top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  background: rgba(10, 17, 36, 0.6);
  color: #fff;
  border-radius: 50%;
  font-size: 22px; font-weight: 700;
  backdrop-filter: blur(8px);
  transition: background .15s;
  z-index: 2;
  display: flex; align-items: center; justify-content: center;
  line-height: 1; padding-bottom: 3px;
}
.slider-nav:hover { background: rgba(10, 17, 36, 0.85); }
.slider-nav.prev { left: 14px; }
.slider-nav.next { right: 14px; }
.slider-dots {
  position: absolute; bottom: 14px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 6px;
  z-index: 2;
}
.slider-dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  transition: background .15s, width .15s;
}
.slider-dots button.on {
  background: var(--accent);
  width: 22px; border-radius: 4px;
}

/* ── TABS ───────────────────────────────────────────────── */
.tabs {
  display: flex; gap: 4px; overflow-x: auto;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  padding: 10px 16px;
  font-size: 14px; font-weight: 600;
  color: var(--text-2); white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .15s, border-color .15s;
}
.tab:hover { color: var(--text); }
.tab.on { color: var(--accent); border-color: var(--accent); }

/* ── INTRO (H1 + текст после Popilè) ─────────────────────── */
.intro {
  padding: 4px 0;
  max-width: 880px;
}
.intro h1 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800; letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--text);
}
.intro p {
  font-size: 15px; line-height: 1.65;
  color: var(--text-2);
  margin-bottom: 12px;
}
.intro p:last-child { margin-bottom: 0; }

/* ── SEO (после Live Casino) ───────────────────────────── */
.seo {
  padding: 8px 0 12px;
  max-width: 880px;
}
.seo h2 {
  font-size: 24px; font-weight: 800; letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.seo h3 {
  font-size: 17px; font-weight: 700; letter-spacing: -0.01em;
  margin-top: 24px; margin-bottom: 10px;
  color: var(--text);
}
.seo p {
  font-size: 14px; line-height: 1.65;
  color: var(--text-2);
}

/* ── SECTION ────────────────────────────────────────────── */
.section { display: flex; flex-direction: column; gap: 14px; }
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.section-head h2 {
  font-size: 22px; font-weight: 800; letter-spacing: -0.01em;
}
.section-nav { display: inline-flex; gap: 6px; }
.section-nav button {
  width: 32px; height: 32px;
  background: var(--surface);
  border-radius: var(--r);
  color: var(--text-2);
  font-size: 16px; font-weight: 700;
  transition: background .15s, color .15s;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}
.section-nav button:hover { background: var(--surface-2); color: var(--text); }
.seeall { color: var(--accent); font-size: 13px; font-weight: 700; }
.seeall:hover { color: var(--accent-2); }

/* ── GAMES ROW (horizontal scroll, snap) ────────────────── */
.games-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}
.games-row::-webkit-scrollbar { height: 6px; }
.games-row::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }
.games-row::-webkit-scrollbar-track { background: transparent; }

.game {
  flex: 0 0 160px;
  scroll-snap-align: start;
  position: relative;
  display: block;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--table);
  aspect-ratio: 4 / 5;
  transition: transform .2s ease, box-shadow .2s;
  cursor: pointer;
}
.game:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.4);
}
.game img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}

.game-more {
  background: transparent;
  border: 1px dashed var(--border-strong);
}
.game-more:hover { border-color: var(--accent); }
.game-more .more-inner {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 16px;
  padding: 18px;
  color: var(--text-2);
  text-align: center;
}
.game-more svg { color: var(--text-2); }
.game-more span {
  font-size: 13px; font-weight: 700;
  letter-spacing: -0.01em;
}
.game-more .cnt {
  font-size: 14px; font-weight: 800;
  color: var(--muted); letter-spacing: 0.06em;
}

/* ── BLOG ───────────────────────────────────────────────── */
.blog-teaser {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .15s, transform .2s;
}
.blog-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.blog-card .cover {
  aspect-ratio: 16 / 9;
  background-size: cover; background-position: center;
}
.blog-card .body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.blog-card .tag {
  display: inline-block; align-self: flex-start;
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent);
}
.blog-card h3 {
  font-size: 16px; font-weight: 700; line-height: 1.3;
  letter-spacing: -0.01em;
}
.blog-card p {
  font-size: 13px; color: var(--text-2); line-height: 1.5;
}

/* ── FOOTER ─────────────────────────────────────────────── */
.foot {
  margin-top: 48px;
  border-top: 1px solid var(--border);
  padding: 36px 24px 28px;
  max-width: 1440px; margin-left: auto; margin-right: auto;
}
.foot-row { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: center; }
.foot .copy { font-size: 12px; color: var(--muted); }
.foot .pay { display: inline-flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.foot .pay img { width: 38px; height: 24px; object-fit: contain; opacity: 0.7; }
.foot .age {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: var(--red); color: #fff;
  border-radius: 50%;
  font-size: 11px; font-weight: 800;
}
.foot-bot {
  margin-top: 22px; padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 12px; color: var(--muted); line-height: 1.6;
}

/* ── MOBILE ─────────────────────────────────────────────── */
@media (max-width: 980px) {
  .top { padding: 0 14px; gap: 10px; }
  .top-nav { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .brand { font-size: 17px; }

  .layout {
    grid-template-columns: 1fr;
    padding: 14px;
    gap: 18px;
  }

  .sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 80%; max-width: 320px;
    z-index: 100;
    border-radius: 0;
    border-right: 1px solid var(--border);
    max-height: 100vh;
    padding: 20px 12px;
    transform: translateX(-100%);
    transition: transform .25s ease;
  }
  .sidebar.open { transform: translateX(0); }
  .scrim {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 99;
  }
  .scrim.on { display: block; }

  .slider-nav { display: none; }
  .game { flex-basis: 140px; }
  .section-head h2 { font-size: 18px; }
}

@media (max-width: 480px) {
  .top-cta .btn-line { display: none; }
  .game { flex-basis: 120px; }
}
