
/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
  /* Colors */
  --bg-body: #0f1219;
  --bg-card: #1a1e29;
  --bg-header: #151922;
  --bg-nav: #1e2330;
  
  --primary-color: #ff3e3e; /* Fire Red */
  --primary-hover: #ff6b6b;
  --secondary-color: #00c853; /* Success Green */
  --accent-color: #ffd700; /* Gold */
  
  --text-main: #f0f0f0;
  --text-muted: #a0a5b9;
  --border-color: #2d3446;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #ff3e3e 0%, #ff9000 100%);
  --gradient-dark: linear-gradient(180deg, rgba(26,30,41,0) 0%, rgba(15,18,25,0.95) 100%);
  --gradient-gold: linear-gradient(45deg, #ffd700, #fdb931);
  
  /* Spacing & Sizes */
  --container-width: 1200px;
  --header-height: 4.5rem;
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.2);
  --shadow-glow: 0 0 15px rgba(255, 62, 62, 0.4);
  --shadow-card: 0 10px 20px rgba(0,0,0,0.3);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', 'Roboto', system-ui, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul, ol {
  list-style: none;
  padding: 0;
}

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

/* =========================================
   2. UTILITIES & LAYOUT (Grid System Simulation)
   ========================================= */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -1rem;
  margin-right: -1rem;
}

.no-gutters {
  margin-left: 0;
  margin-right: 0;
}

[class*="col-"] {
  padding-left: 1rem;
  padding-right: 1rem;
  width: 100%;
}

/* Flex Utilities */
.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }
.text-center { text-align: center; }
.d-none { display: none; }

/* Spacing Utilities */
.pt-10 { padding-top: 0.625rem; }
.pb-10 { padding-bottom: 0.625rem; }
.pt-20 { padding-top: 1.25rem; }
.pb-20 { padding-bottom: 1.25rem; }
.pb-30 { padding-bottom: 1.875rem; }
.pt-5 { padding-top: 3rem; }

/* Responsive Grid Logic (simplified) */
@media (min-width: 768px) {
  .col-md-4 { flex: 0 0 33.333%; max-width: 33.333%; }
  .col-md-auto { flex: 0 0 auto; width: auto; max-width: 100%; }
  .text-md-left { text-align: left; }
  .text-md-right { text-align: right; }
  .d-md-block { display: block; }
}

@media (min-width: 992px) {
  .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
  .col-lg-auto { flex: 0 0 auto; width: auto; }
  .d-lg-block { display: block; }
  .d-lg-none { display: none; }
}

/* =========================================
   3. HEADER
   ========================================= */
.heder {
  background-color: var(--bg-header);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.logo {
  display: inline-block;
  width: 150px;
  height: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 80'%3E%3Ctext x='10' y='55' font-family='Arial' font-size='50' font-weight='bold' fill='%23ff3e3e'%3EAZINO%3C/text%3E%3Ctext x='180' y='55' font-family='Arial' font-size='50' font-weight='bold' fill='%23ffd700'%3E777%3C/text%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6em 1.5em;
  border-radius: var(--radius-md);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
  margin: 0 0.25rem;
}

.btn-regist {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(255, 62, 62, 0.3);
}

.btn-regist:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 62, 62, 0.5);
}

.btn-voiti {
  background: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-voiti:hover {
  background: rgba(255, 62, 62, 0.1);
  color: #fff;
  border-color: #fff;
}

.open-menu {
  width: 40px;
  height: 40px;
  background-color: var(--bg-nav);
  border-radius: var(--radius-sm);
  position: relative;
  vertical-align: middle;
  cursor: pointer;
}
.open-menu::before {
  content: "☰";
  color: white;
  font-size: 1.5rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* =========================================
   4. NAVIGATION
   ========================================= */
.navigation {
  background-color: var(--bg-nav);
  padding: 0;
  box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}

.navigation-bg {
  justify-content: center;
}

.navigation .item {
  text-align: center;
  padding: 1rem 0.5rem;
  position: relative;
  overflow: hidden;
}

.navigation .main {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-main);
  position: relative;
  z-index: 2;
  display: block;
}

.navigation .item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform var(--transition-smooth);
}

.navigation .item:hover::after {
  transform: scaleX(1);
}

.navigation .item:hover .main {
  color: var(--accent-color);
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

/* =========================================
   5. BANNERS & ALERTS
   ========================================= */
/* Pre-header alert */
.pre-header-dovnload {
  margin-top: 1.5rem;
  background: linear-gradient(90deg, #2b32b2 0%, #1488cc 100%);
  border-radius: var(--radius-lg);
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}

.pre-header-dovnload .text-box {
  color: #fff;
  font-weight: 500;
  font-size: 0.9rem;
  flex: 1;
}

.button_pp {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='white' d='M12 2L2 20h20L12 2zm0 4l6.5 11h-13L12 6z'/%3E%3C/svg%3E"); /* Placeholder icon */
  background-color: rgba(255,255,255,0.2);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-repeat: no-repeat;
  background-position: center;
  transition: transform var(--transition-fast);
}

.button_pp:hover {
  transform: rotate(15deg) scale(1.1);
  background-color: rgba(255,255,255,0.3);
}

/* Main Banner Carousel */
.baner {
  position: relative;
  margin-bottom: 2rem;
}

.owl-carousel .item {
  background: var(--bg-card);
  height: 300px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('data:image/svg+xml,%3Csvg width="800" height="400" xmlns="http://www.w3.org/2000/svg"%3E%3Crect width="100%25" height="100%25" fill="%232d3446"/%3E%3Ctext x="50%25" y="50%25" dominant-baseline="middle" text-anchor="middle" font-family="sans-serif" font-size="24" fill="%23ffffff"%3EBanner Area%3C/text%3E%3C/svg%3E');
  background-size: cover;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

/* =========================================
   6. JACKPOT / WINNERS
   ========================================= */
.main_menu_winners {
  background: linear-gradient(180deg, #200122 0%, #6f0000 100%);
  padding: 1.5rem 0;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  border: 1px solid rgba(255,255,255,0.1);
}

.main_menu_winners-call {
  display: flex;
  justify-content: center;
  font-family: 'Courier New', monospace;
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--accent-color);
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
}

.cifra, .valuta, .brecpoint {
  display: inline-block;
  padding: 0 2px;
}

.rubeli::before { content: "₽"; }

/* =========================================
   7. GAMES GRID
   ========================================= */
.games_list .item {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
  aspect-ratio: 4/3; /* Enforce aspect ratio */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid rgba(255,255,255,0.05);
}

/* Image Placeholder for Games */
.games_list .item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, #3a4155 0%, #1a1e29 100%);
  background-image: url('data:image/svg+xml,%3Csvg width="64" height="64" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath fill="%232d3446" d="M21 6H3c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-10 7H8v3H6v-3H3v-2h3V8h2v3h3v2zm4.5 2c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zm4-3c-.83 0-1.5-.67-1.5-1.5S18.67 9 19.5 9s1.5.67 1.5 1.5-.67 1.5-1.5 1.5z"/%3E%3C/svg%3E');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 50%;
  z-index: 1;
  transition: transform 0.5s ease;
}

.games_list .item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow), var(--shadow-card);
  border-color: var(--primary-color);
}

.games_list .item:hover::before {
  transform: scale(1.1);
  filter: blur(2px);
}

.games_list .title {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  z-index: 2;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
  pointer-events: none;
}

.games_list .btn-box {
  position: relative;
  z-index: 3;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: var(--gradient-dark);
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition-smooth);
}

.games_list .item:hover .btn-box {
  opacity: 1;
  transform: translateY(0);
}

.games_list .plau-game {
  background: var(--secondary-color);
  color: #000;
  width: 100%;
  margin: 0;
}
.games_list .plau-game:hover {
  background: #00e676;
  box-shadow: 0 0 10px #00c853;
}

.games_list .plau-demo {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  width: 100%;
  margin: 0;
}
.games_list .plau-demo:hover {
  background: #fff;
  color: #000;
}

/* "Play for money" large button */
.btn-game-color {
  background: var(--gradient-primary);
  color: white;
  padding: 1rem 3rem;
  font-size: 1.2rem;
  border-radius: 50px;
  box-shadow: var(--shadow-glow);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 62, 62, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(255, 62, 62, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 62, 62, 0); }
}

/* =========================================
   8. CONTENT & TYPOGRAPHY
   ========================================= */
.main_content {
  padding: 3rem 0;
  background: #13161f;
  border-top: 1px solid var(--border-color);
}

h1 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 2rem;
  color: var(--text-main);
  background: linear-gradient(90deg, #fff, #a0a5b9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: 1.8rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--accent-color);
}

p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

blockquote {
  border-left: 4px solid var(--primary-color);
  background: rgba(255, 255, 255, 0.05);
  margin: 1.5rem 0;
  padding: 1.5rem;
  font-style: italic;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
}

table td, table th {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-muted);
}

table tr:last-child td {
  border-bottom: none;
}

table tr:nth-child(even) {
  background: rgba(255,255,255,0.02);
}

.main_pg_table td:first-child {
  font-weight: 700;
  color: var(--text-main);
  width: 40%;
}

/* Table of Contents (.box-pagenav) */
.box-pagenav {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
}

.box-pagenav .box-href-naw span {
  font-size: 1.25rem;
  font-weight: 700;
  display: block;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 0.5rem;
  width: fit-content;
}

.box-pagenav table td {
  padding: 0.5rem 0;
  border: none;
}

.box-pagenav a {
  color: var(--primary-hover);
  text-decoration: none;
}
.box-pagenav a:hover {
  text-decoration: underline;
}

/* Subscribe Form */
.content-form {
  background: var(--bg-header);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 3rem;
  text-align: center;
  border: 1px solid var(--border-color);
}

.subscribe-form .form-box {
  display: flex;
  gap: 1rem;
  max-width: 600px;
  margin: 2rem auto 0;
  flex-wrap: wrap;
}

.form-group {
  flex: 1;
  min-width: 200px;
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 62, 62, 0.2);
}

.btn-green {
  background: var(--secondary-color);
  color: #000;
  width: 100%;
  height: 100%;
}

/* FAQ */
#faq .item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  background: var(--bg-card);
  padding: 1.5rem;
  transition: background-color 0.3s;
}

#faq .item:hover {
  background: #232936;
}

.question {
  display: block;
  font-size: 1.1rem;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
  cursor: pointer;
}

.answer {
  color: var(--text-muted);
}

/* =========================================
   9. FOOTER
   ========================================= */
.footer {
  background-color: #0a0c11;
  border-top: 1px solid var(--border-color);
  padding-top: 3rem;
  font-size: 0.9rem;
}

.footer p {
  color: #6c757d;
  margin-bottom: 0.5rem;
}

.footer span {
  color: var(--text-main);
  font-weight: 600;
}

.footer a {
  color: #8b9bb4;
  transition: color 0.3s;
}

.footer a:hover {
  color: var(--primary-hover);
}

/* =========================================
   10. MOBILE / RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
  /* Hide navigation on mobile as per structure logic */
  .navigation {
    display: none; /* Logic exists in HTML classes d-none d-lg-block, but ensuring fallback */
  }

  /* Header adjustments */
  .header .row {
    flex-direction: row; /* Keep row for logo and burger */
  }
  
  .btn-regist, .btn-voiti {
    padding: 0.5em 0.8em;
    font-size: 0.75rem;
  }
  
  /* Games Grid - 2 columns on mobile */
  .games_list .col-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  
  .games_list .btn-box {
    opacity: 1; /* Always show buttons on mobile or adapt tap behavior */
    transform: none;
    background: rgba(0,0,0,0.8);
    padding: 0.5rem;
  }
  
  .games_list .title {
    font-size: 0.8rem;
  }
  
  /* Form stacking */
  .subscribe-form .form-box {
    flex-direction: column;
  }
  
  .main_menu_winners-call {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .logo {
    width: 100px;
  }
  
  .pre-header-dovnload {
    flex-direction: column;
    text-align: center;
  }
  
  /* Single column table for mobile readability */
  .main_pg_table td {
    display: block;
    width: 100%;
  }
  
  .main_pg_table td:first-child {
    color: var(--accent-color);
    border-bottom: none;
    padding-bottom: 0;
  }
}
