/* Pinco78-casino.casino — общие стили */
:root {
  --bg-dark: #0f1214;
  --bg-sidebar: #151a1e;
  --bg-content: #1a2221;
  --text: #ffffff;
  --text-muted: #b0b8bc;
  --accent-red: #e6392e;
  --accent-red-hover: #ff4d42;
  --accent-orange: #d94a2e;
  --accent-green: #04CFAA;
  --footer-bg: #1c2128;
  --footer-link: #58a6ff;
  --footer-text: #8b949e;
  --border-red: rgba(230, 57, 46, 0.8);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Header */
.site-header {
  background: var(--bg-dark);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 8px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.site-header a {
  transition: opacity 0.2s;
}
.site-header a:hover {
  opacity: 0.9;
}

.logo-link {
  display: flex;
  align-items: center;
}
.logo-link img {
  height: 36px;
  width: auto;
  display: block;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.header-nav a {
  font-size: 15px;
  color: var(--text);
}
.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-cta .promo-text {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
}
.btn-reg {
  background: var(--accent-red);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-reg:hover {
  background: var(--accent-red-hover);
}
.btn-login {
  background: transparent;
  color: #fff;
  border: 2px solid var(--accent-orange);
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.btn-login:hover {
  background: rgba(217, 74, 46, 0.2);
  border-color: var(--accent-red);
}

/* Баннеры под хедером */
.header-banners {
  display: flex;
  gap: 12px;
  padding: 8px 24px 12px;
  background: var(--bg-dark);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
}
.header-banners .banner-link {
  display: block;
  flex: 1;
  min-width: 0;
  max-width: 640px;
  height: 280px;
  border-radius: 8px;
  overflow: hidden;
  transition: opacity 0.2s;
}
.header-banners .banner-link:hover {
  opacity: 0.9;
}
.header-banners .banner-link img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* Layout: sidebar + main */
.layout-with-sidebar {
  display: flex;
  flex: 0 1 auto;
}

/* Sidebar */
.sidebar {
  width: 200px;
  min-width: 200px;
  background: var(--bg-sidebar);
  padding: 8px 0;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.sidebar nav {
  display: flex;
  flex-direction: column;
}
.sidebar a {
  padding: 10px 20px;
  font-size: 14px;
  color: var(--text);
  border-left: 3px solid transparent;
  transition: background 0.2s, border-color 0.2s;
}
.sidebar a:hover,
.sidebar a.active {
  background: rgba(255,255,255,0.06);
  border-left-color: var(--accent-red);
}

/* Top banners under header */
.top-banners {
  background: var(--bg-dark);
  padding: 16px 24px;
}
.top-banners .banners-grid {
  max-width: 720px;
  margin: 0 auto;
  gap: 12px;
}

/* Main content */
.main-content {
  flex: 1;
  min-width: 0;
  padding: 12px 24px 24px;
  background: var(--bg-dark);
  overflow-x: hidden;
}

/* Banners grid (home) */
.banners-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 1100px;
}
@media (max-width: 900px) {
  .banners-grid {
    grid-template-columns: 1fr;
  }
}

.banner-card {
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #2a1515 0%, #0d1f1a 100%);
}
.banner-card.sport {
  background: linear-gradient(180deg, #3d1a1a 0%, #0d251e 50%, #0a1a16 100%);
}
.banner-card.casino {
  background: linear-gradient(180deg, #0d251e 0%, #0a1a16 100%);
}

.banner-bg,
.banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.banner-card .banner-img {
  opacity: 0.9;
}
.banner-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.7) 100%);
  pointer-events: none;
}

.banner-content {
  position: relative;
  z-index: 2;
  padding: 14px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.banner-title-block .label {
  font-size: 20px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.banner-title-block .sub {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-top: 2px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.banner-title-block .up-to {
  font-size: 12px;
  color: rgba(255,255,255,0.9);
  margin-top: 2px;
}
.banner-title-block .percent {
  font-size: 28px;
  font-weight: 800;
  color: #ffb347;
  margin-top: 4px;
  text-shadow: 0 0 20px rgba(255,179,71,0.4);
}
.banner-card.casino .banner-title-block .percent {
  color: #fff;
  font-size: 24px;
}
.banner-cta {
  margin-top: 8px;
}
.banner-cta .btn {
  display: inline-block;
  background: var(--accent-red);
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: background 0.2s;
}
.banner-cta .btn:hover {
  background: var(--accent-red-hover);
}

/* Casino page */
.casino-page .main-content {
  max-width: 1200px;
  margin: 0 auto;
}
.casino-header {
  text-align: center;
  margin-bottom: 12px;
}
.casino-header h1,
.casino-header .casino-title {
  font-size: 36px;
  font-weight: 800;
  color: var(--accent-red);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.casino-section .casino-header {
  margin-bottom: 12px;
}
.casino-section .casino-nav {
  margin-bottom: 16px;
}
.casino-section .games-grid {
  margin-bottom: 20px;
}
.casino-header .subtitle {
  font-size: 16px;
  color: var(--text-muted);
  margin-top: 4px;
}
.casino-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.casino-filters {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.casino-filters a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.casino-filters a:hover,
.casino-filters a.active {
  color: var(--text);
  border-bottom-color: var(--accent-red);
}
.casino-filters a.active {
  color: var(--accent-red);
}
.casino-nav .btn-casino {
  padding: 10px 20px;
  border: 1px solid var(--accent-red);
  color: #fff;
  border-radius: 6px;
  font-size: 14px;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s;
}
.casino-nav .btn-casino:hover {
  background: rgba(230, 57, 46, 0.2);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.game-tile {
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-content);
  position: relative;
  display: block;
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.2s, border-color 0.2s;
}
.game-tile:hover {
  transform: scale(1.02);
  border-color: var(--accent-red);
}
.game-tile .game-bg,
.game-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background-color: #1e2628;
}
.game-tile .game-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}
.game-tile .game-title .live {
  color: var(--accent-red);
  font-size: 12px;
}

/* Content page (text) */
.content-page .main-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 16px 24px 32px;
}
.content-page h1,
.content-page h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}
.content-page h1 {
  margin-top: 20px;
}
.content-page h2 {
  font-size: 20px;
  margin-top: 32px;
}
.content-page h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 24px 0 12px;
  color: var(--text);
}
.content-page p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.content-page ul {
  list-style: none;
  margin: 12px 0;
}
.content-page ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.5;
}
.content-page ul li::before {
  content: '■';
  position: absolute;
  left: 0;
  color: var(--accent-red);
  font-size: 10px;
  top: 4px;
}
.content-page ol {
  margin: 12px 0 24px;
  padding-left: 24px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}
.content-page ol li {
  margin-bottom: 8px;
}
.content-page .content-table {
  width: 100%;
  max-width: 520px;
  border-collapse: collapse;
  margin: 16px 0 20px;
  font-size: 14px;
}
.content-page .content-table th,
.content-page .content-table td {
  padding: 10px 14px;
  text-align: left;
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text-muted);
}
.content-page .content-table th {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  font-weight: 600;
}
.content-page .content-faq {
  margin: 16px 0 24px;
}
.content-page .content-faq dt {
  font-weight: 600;
  color: var(--text);
  margin-top: 16px;
  margin-bottom: 6px;
}
.content-page .content-faq dt:first-child {
  margin-top: 0;
}
.content-page .content-faq dd {
  margin: 0 0 0 0;
  padding-left: 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* Footer */
.site-footer {
  background: var(--footer-bg);
  padding: 32px 24px 24px;
  margin-top: auto;
  text-align: center;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
}
.footer-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--footer-link);
  transition: opacity 0.2s;
}
.footer-nav a:hover {
  opacity: 0.85;
}
.footer-copyright,
.footer-update {
  font-size: 14px;
  color: var(--footer-text);
  margin-top: 8px;
}

/* ========== Мобильная адаптация ========== */
@media (max-width: 768px) {
  .site-header {
    padding: 10px 12px;
    gap: 10px;
  }
  .site-header .header-cta .promo-text {
    display: none;
  }
  .header-nav {
    gap: 16px;
  }
  .header-nav a {
    font-size: 14px;
  }
  .logo-link img {
    height: 30px;
  }
  .btn-reg,
  .btn-login {
    padding: 8px 14px;
    font-size: 13px;
  }

  .layout-with-sidebar {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    min-width: 0;
    padding: 0;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .sidebar nav {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 8px 12px;
    gap: 0;
    scrollbar-width: none;
  }
  .sidebar nav::-webkit-scrollbar {
    display: none;
  }
  .sidebar a {
    flex-shrink: 0;
    padding: 10px 14px;
    font-size: 13px;
    border-left: none;
    border-bottom: 3px solid transparent;
  }
  .sidebar a:hover,
  .sidebar a.active {
    border-left: none;
    border-bottom-color: var(--accent-red);
  }

  .main-content {
    padding: 16px 12px;
  }
  .content-page .main-content {
    padding: 20px 12px;
  }

  .header-banners {
    padding: 12px;
    gap: 10px;
    flex-direction: column;
    align-items: center;
  }
  .header-banners .banner-link {
    max-width: 100%;
    width: 100%;
    height: 160px;
  }

  .casino-header .casino-title {
    font-size: 28px;
  }
  .casino-header .subtitle {
    font-size: 14px;
  }
  .casino-section .casino-header,
  .casino-section .casino-nav {
    margin-bottom: 16px;
  }
  .casino-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .casino-filters {
    justify-content: flex-start;
    gap: 12px;
  }
  .casino-filters a {
    font-size: 13px;
  }
  .casino-nav .btn-casino {
    width: 100%;
    text-align: center;
  }

  .games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
  }
  .games-grid.slot-banners + .header-banners {
    margin-top: 4px;
  }

  .content-page h1 {
    font-size: 20px;
    margin-top: 24px;
  }
  .content-page h2 {
    font-size: 18px;
    margin-top: 24px;
  }
  .content-page h3 {
    font-size: 16px;
  }
  .content-page p,
  .content-page ul li,
  .content-page ol {
    font-size: 14px;
  }

  .site-footer {
    padding: 24px 12px 20px;
  }
  .footer-nav {
    gap: 12px;
    margin-bottom: 16px;
  }
  .footer-nav a {
    font-size: 13px;
  }
  .footer-copyright,
  .footer-update {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .header-banners .banner-link {
    height: 140px;
  }
}
