:root {
  --bg: #242a3a;
  --fg: #ffffff;
  --muted: #a9b0c3;
  --card: #2b3140;
  --accent: #ffdc12;
  --accent-contrast: #242a3a;
  --border: rgba(255,255,255,.08);
  --shadow: 0 6px 30px rgba(0,0,0,.35);
  --radius: 16px;
}

html, body {
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Navbar */
.navbar {
  background: var(--bg) !important;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1030;
}

.navbar .container-fluid {
  flex-wrap: wrap;
}

.navbar-brand {
  flex: 0 0 auto;
}

.navbar-brand img {
  max-height: 30px;
}

.navbar-collapse {
  width: 100%;
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
  padding-top: 0.5rem;
}

.navbar-nav .nav-link {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar-nav .nav-link:last-child {
  border-bottom: none;
}

@media (min-width: 992px) {
  .navbar .container-fluid {
    flex-wrap: nowrap;
    display: flex;
    align-items: center;
  }

  .navbar-collapse {
    width: auto;
    border-top: none;
    margin-top: 0;
    padding-top: 0;
    flex-grow: 1;
    display: flex !important;
    justify-content: space-between;
    align-items: center;
  }

  .navbar-nav {
    flex-direction: row !important;
    margin: 0 auto;
    flex: 1;
    justify-content: center;
  }

  .navbar-nav .nav-link {
    border-bottom: none;
    padding: 0.5rem 1rem !important;
    text-align: left !important;
  }

  .navbar-brand {
    margin-right: 0;
    flex-shrink: 0;
  }
  
  .navbar .d-flex.gap-2 {
    margin-left: auto;
    flex-shrink: 0;
  }
}

/* Buttons - accent */
.btn-accent {
  background: var(--accent);
  color: var(--accent-contrast) !important;
  border: none;
}

.btn-accent:hover, .btn-accent:focus {
  background: #ffdc12;
  filter: brightness(1);
  color: var(--accent-contrast) !important;
}

.btn-outline-light {
  border-color: rgba(255,255,255,.25);
}

.btn-outline-light:hover {
  background: #ffdc12;
  border-color: #ffdc12;
  color: #242a3a;
}

/* Hero */
.hero {
  padding: clamp(36px, 6vw, 72px) 0;
  text-align: center;
  background: radial-gradient(1200px 400px at 50% -10%, rgba(255,220,18,.12), transparent 70%), var(--bg);
}

.hero h1 {
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
}

.hero p {
  color: var(--muted);
  max-width: 780px;
  margin: 0 auto;
}

.cta-wrap {
  gap: 12px;
}

/* Cards / sections */
.section {
  padding: clamp(28px, 6vw, 56px) 0;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card h3 {
  font-size: 1.15rem;
}

/* Game Cards */
.game-card {
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ffdc12, #ffed4e);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.game-card:hover::before {
  transform: scaleX(1);
}

.game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(255, 220, 18, 0.2);
  border-color: rgba(255, 220, 18, 0.3);
}

.game-icon {
  font-size: 3rem;
  line-height: 1;
  text-align: center;
  filter: drop-shadow(0 4px 8px rgba(255, 220, 18, 0.3));
  transition: transform 0.3s ease;
}

.game-card:hover .game-icon {
  transform: scale(1.1) rotate(5deg);
}

.game-card h3 {
  font-weight: 600;
  color: #ffffff;
  position: relative;
}

.game-card p {
  color: var(--muted);
  line-height: 1.6;
}

/* Feature Cards */
.feature-card {
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ffdc12, #ffed4e);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(255, 220, 18, 0.2);
  border-color: rgba(255, 220, 18, 0.3);
}

.feature-icon {
  font-size: 3rem;
  line-height: 1;
  text-align: center;
  filter: drop-shadow(0 4px 8px rgba(255, 220, 18, 0.3));
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(-5deg);
}

.feature-card h3 {
  font-weight: 600;
  color: #ffffff;
  position: relative;
}

.feature-card p {
  color: var(--muted);
  line-height: 1.6;
}

.feature-list {
  list-style: none;
  padding-left: 0 !important;
}

.feature-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--muted);
  line-height: 1.6;
  transition: color 0.3s ease;
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #ffdc12;
  font-weight: bold;
  font-size: 1.1rem;
}

.feature-card:hover .feature-list li {
  color: #ffffff;
}

/* Warning Card */
.warning-card {
  background: linear-gradient(135deg, rgba(255, 220, 18, 0.1), rgba(36, 42, 58, 0.9));
  border: 2px solid rgba(255, 220, 18, 0.3);
  position: relative;
  overflow: hidden;
}

.warning-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ffdc12, #ffaa00);
}

.warning-header {
  display: flex;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 220, 18, 0.2);
}

.age-icon {
  background: linear-gradient(135deg, #ffdc12, #ffaa00);
  color: #242a3a;
  font-weight: bold;
  font-size: 1.2rem;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(255, 220, 18, 0.4);
  flex-shrink: 0;
}

.warning-card h3 {
  color: #ffdc12;
  font-weight: 700;
}

.warning-content p {
  color: var(--fg);
  line-height: 1.7;
}

.warning-content strong {
  color: #ffdc12;
}

.warning-tips {
  background: rgba(255, 220, 18, 0.05);
  padding: 1rem;
  border-radius: 8px;
  border-left: 3px solid #ffdc12;
  margin-top: 1rem;
}

.warning-tips p {
  color: var(--fg);
  margin-bottom: 0.5rem;
}

.warning-list {
  list-style: none;
  padding-left: 0 !important;
  margin-bottom: 0;
}

.warning-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--muted);
  line-height: 1.6;
}

.warning-list li::before {
  content: '⚠';
  position: absolute;
  left: 0;
  color: #ffdc12;
  font-weight: bold;
  font-size: 1rem;
}

/* FAQ Card */
.faq-card {
  background: linear-gradient(135deg, rgba(255, 220, 18, 0.1), rgba(36, 42, 58, 0.9));
  border: 2px solid rgba(255, 220, 18, 0.3);
  position: relative;
  overflow: hidden;
}

.faq-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ffdc12, #ffaa00);
}

.faq-header {
  display: flex;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 220, 18, 0.2);
}

.faq-icon {
  background: linear-gradient(135deg, #ffdc12, #ffaa00);
  color: #242a3a;
  font-weight: bold;
  font-size: 1.5rem;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(255, 220, 18, 0.4);
  flex-shrink: 0;
}

.faq-card h2 {
  color: #ffdc12;
  font-weight: 700;
}

.faq-list {
  margin-top: 1rem;
}

.faq-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 220, 18, 0.2);
  border-radius: 8px;
  padding: 1rem;
  transition: all 0.3s ease;
}

.faq-item:hover {
  background: rgba(255, 220, 18, 0.1);
  border-color: rgba(255, 220, 18, 0.4);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  font-weight: 600;
  color: #ffffff;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  margin-left: auto;
  color: #ffdc12;
  font-size: 1.5rem;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
  content: '−';
  transform: rotate(0deg);
}

.faq-item summary:hover {
  color: #ffdc12;
}

.faq-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #ffdc12;
  color: #242a3a;
  border-radius: 50%;
  font-weight: bold;
  font-size: 0.9rem;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.faq-content {
  margin-top: 1rem;
  padding-left: 2.5rem;
  border-left: 2px solid #ffdc12;
  padding-top: 0.5rem;
}

.faq-content p {
  color: var(--muted);
  line-height: 1.7;
}

.faq-item[open] .faq-content p {
  color: #ffffff;
}

/* Lists */
.check-list li {
  margin-bottom: .5rem;
}

.check-list li::marker {
  color: var(--accent);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
}

/* Sticky mobile bar */
.mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(36,42,58,.85);
  backdrop-filter: blur(6px);
  padding: 10px 12px;
  display: none;
  z-index: 1031;
  border-top: 1px solid var(--border);
}

@media (max-width: 575.98px) {
  .mobile-cta {
    display: flex;
    justify-content: center;
    gap: 10px;
  }
}

/* Links */
a {
  color: #ffdc12;
  text-decoration: none;
}

a:hover {
  color: #ffdc12;
  text-decoration: underline;
}

/* Tables */
.table {
  --bs-table-bg: transparent;
  color: var(--fg);
}

.table thead th {
  color: var(--muted);
  border-bottom-color: var(--border);
}

.table td, .table th {
  border-color: var(--border);
}

/* SEO anchors spacing */
.anchor-offset {
  scroll-margin-top: 84px;
}

section * {
  color: #fff !important;
}

/* Override для кнопок в секциях */
section .btn-accent {
  color: var(--accent-contrast) !important;
}

section .btn-outline-light {
  color: #ffffff !important;
}

