/* CSS Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Основная палитра в стиле Nagad88 */
  --primary: #ff8a00;           /* Ярко-оранжевый – ссылки, акценты, заголовки */
  --primary-dark-text: #050b3d; /* Тёмно-синий текст на оранжевых кнопках */
  --accent-register: #ff8a00;   /* Основные CTA (Регистрация) – оранжевые */
  --header-bg: #050b3d;         /* Тёмно-синяя навигационная полоса */
  --footer-bg: #020824;         /* Очень тёмный синий для подвала */
  --dark: #050b3d;              /* Основной фон страницы */
  --dark-light: #091653;        /* Чуть светлее фон для секций */
  --text-content: #e5e7ff;      /* Светлый текст на тёмном фоне */
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --pink-600: #db2777;
  --pink-900: #831843;
  --purple-900: #581c87;
  --yellow-900: #713f12;
  --blue-900: #1e3a8a;
  --green-900: #14532d;
  --cyan-900: #164e63;
  --orange-900: #7c2d12;
  --red-900: #7f1d1d;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 138, 0, 0.25) 0, transparent 55%),
    radial-gradient(circle at 100% 0%, rgba(91, 46, 255, 0.35) 0, transparent 60%),
    linear-gradient(180deg, #050b3d 0%, #020824 60%, #000000 100%);
  background-attachment: fixed;
  color: var(--text-content);
  line-height: 1.5;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: rgba(17, 146, 106, 0.9);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Gradient */
.gradient-overlay {
  background: linear-gradient(135deg, rgba(20, 20, 20, 0.95) 0%, rgba(20, 20, 20, 0.7) 100%);
}

/* Headings */
h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

h2 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  color: var(--primary);
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.4;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--primary);
}

h5, h6 {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.5;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

/* Paragraphs */
p {
  line-height: 1.7;
  margin-bottom: 1rem;
  color: var(--text-content);
  font-size: 1rem;
}

/* Lists */
ul, ol {
  margin: 1rem 0 1.5rem 1.5rem;
  padding-left: 1rem;
  line-height: 1.7;
}

ul li, ol li {
  margin-bottom: 0.5rem;
  color: var(--text-content);
}

ul li::marker {
  color: var(--primary);
}

ol li::marker {
  color: var(--primary);
  font-weight: 600;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background-color: var(--dark-light);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Horizontal scroll for tables (mobile as desktop) */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 2rem 0;
  border-radius: 0.5rem;
  background-color: var(--dark-light);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.table-responsive > table {
  margin: 0;
  background-color: transparent;
  border-radius: 0;
  box-shadow: none;
}

table thead tr {
  background-color: var(--primary);
}

table thead th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 1rem;
  color: var(--primary-dark-text);
  border-bottom: 2px solid var(--dark);
}

table tbody tr {
  border-bottom: 1px solid #2d3035;
  transition: background-color 0.2s ease;
}

table tbody tr:hover {
  background-color: #24272c;
}

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

table tbody td {
  padding: 1rem;
  font-size: 0.95rem;
  color: var(--text-content);
}

table tbody td:first-child {
  font-weight: 600;
  color: var(--text-content);
}

/* Header */
.header {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: linear-gradient(90deg, #050b3d 0%, #142f8f 45%, #050b3d 100%);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  display: flex;
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
}

.logo-text {
  display: none;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s;
  font-weight: 500;
}

.nav-links a:hover {
  color: #05103a;
}

.nav-actions {
  display: none;
  align-items: center;
  gap: 1rem;
}

.btn {
  padding: 0.5rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  display: inline-block;
  text-align: center;
}

.btn-gray {
  background-color: transparent;
  border: 2px solid rgba(255, 255, 255, 0.65);
  color: #ffffff;
}

.btn-gray:hover {
  background-color: rgba(5, 16, 58, 0.18);
}

.btn-primary {
  background-color: var(--accent-register);
  border: 2px solid var(--accent-register);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #e67600;
  color: #ffffff;
}

.btn-outline {
  border: 2px solid rgba(255, 255, 255, 0.75);
  color: #ffffff;
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.16);
}

/* Mobile buttons in header (visible without entering navigation) */
.header-mobile-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-mobile-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-aviator-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem;
  line-height: 0;
  transition: opacity 0.3s;
}

.header-aviator-link:hover {
  opacity: 0.8;
}

.header-aviator-icon {
  width: 28px;
  height: 14px;
  object-fit: contain;
}

.btn-header-mobile {
  padding: 0.35rem 0.6rem;
  font-size: 0.75rem;
}

.mobile-menu-btn {
  display: block;
  color: #ffffff;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-top: 1px solid var(--gray-800);
}

.mobile-menu.show {
  display: flex;
}

.mobile-menu a {
  text-decoration: none;
  transition: color 0.3s;
}

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

/* Hero Section */
.hero {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 6.5rem 0 3.5rem;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 138, 0, 0.4) 0, transparent 55%),
    radial-gradient(circle at 100% 0%, rgba(91, 46, 255, 0.6) 0, transparent 65%),
    linear-gradient(135deg, #050b3d 0%, #080f4b 45%, #050b3d 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 100%;
  padding: 24px 0;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
  text-align: left;
}

.hero-text {
  min-width: 0;
}

.hero-text > p {
  margin-left: 0;
  margin-right: 0;
  max-width: 40rem;
}

.hero-text .hero-buttons {
  justify-content: flex-start;
  align-items: flex-start;
  max-width: none;
  margin: 0;
  padding: 0;
}

.hero-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.5rem;
}

.hero-side .hero-banner {
  width: 100%;
  max-width: 28rem;
  display: block;
  border-radius: 0.75rem;
  overflow: hidden;
}

.hero-side .hero-banner img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-side .trust-badges {
  margin-top: 0;
  justify-content: flex-end;
}

.hero h1 {
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  color: #ffffff;
}

.hero p {
  color: var(--text-content);
  margin-bottom: 1rem;
  max-width: 60rem;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 700;
  width: 100%;
}

.btn-outline-primary {
  background: transparent;
  border: 2px solid #4E4E4E;
  color: #ffffff;
}

.btn-outline-primary:hover {
  background-color: #4E4E4E;
  color: #ffffff;
}

/* Promo Code Block */
.promo-block {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  padding: 0 1rem;
}

.promo-card {
  background-color: rgba(20, 20, 20, 0.9);
  backdrop-filter: blur(8px);
  border: 2px dashed var(--primary);
  border-radius: 0.75rem;
  padding: 1.5rem 1rem 0.5rem;
  max-width: 28rem;
  width: 100%;
}

.promo-content {
  text-align: center;
  margin-bottom: 1rem;
}

.promo-label {
  color: var(--text-content);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.promo-inputs {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.promo-code-box {
  background-color: var(--dark);
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  width: 100%;
  text-align: center;
}

.promo-code {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.1em;
}

.copy-btn {
  background-color: var(--primary);
  color: var(--primary-dark-text);
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  transition: background-color 0.3s;
}

.copy-btn:hover {
  background-color: rgba(17, 146, 106, 0.9);
}

.copy-success {
  color: #4ade80;
  font-size: 0.75rem;
  margin-top: 0.5rem;
  display: none;
}

.copy-success.show {
  display: block;
}

/* Trust Badges */
.trust-badges {
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  font-size: 0.875rem;
  color: var(--text-content);
}

.badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.badge svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary);
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-dark {
  background: linear-gradient(180deg, #050b3d 0%, #020824 100%);
}

.section-light {
  background: radial-gradient(circle at 0% 0%, rgba(255, 138, 0, 0.18) 0, transparent 55%),
              radial-gradient(circle at 100% 0%, rgba(91, 46, 255, 0.32) 0, transparent 60%),
              #091653;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--primary);
}

.section-subtitle {
  text-align: center;
  color: var(--text-content);
  margin-bottom: 3rem;
}

/* Games Icons Section */
.games-icons-section {
  padding: 1rem 0;
  overflow: hidden;
  position: relative;
  background: linear-gradient(90deg, #050b3d 0%, #091653 50%, #050b3d 100%);
}

.games-icons-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--primary) 50%, transparent 100%);
  opacity: 0.3;
}

.games-icons-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--primary) 50%, transparent 100%);
  opacity: 0.3;
}

.games-section-row {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.games-header-wrap {
  flex-shrink: 0;
}

.games-header {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
}

.games-subtitle {
  font-size: 0.875rem;
  color: var(--text-content);
  margin-top: 0.25rem;
  line-height: 1.4;
  white-space: normal;
}

.games-icons-grid {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.games-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 0.75rem;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, var(--dark) 100%);
  border: 1px solid var(--gray-800);
  transition: all 0.3s ease;
}

.games-icon-link:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(41, 180, 91, 0.25);
}

.games-icon-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 767px) {
  .games-section-row {
    flex-direction: column;
    gap: 1rem;
  }

  .games-header {
    font-size: 1.125rem;
  }

  .games-subtitle {
    font-size: 0.8125rem;
  }

  .games-icons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  
  .games-icon-link {
    width: 100%;
    padding-bottom: 100%;
    position: relative;
  }
  
  .games-icon-link img {
    position: absolute;
    top: 0;
    left: 0;
  }
}

@media (max-width: 480px) {
  .games-icons-grid {
    gap: 10px;
    width: 100%;
  }
}


/* Mobile Apps Section */
.mobile-grid {
  display: grid;
  gap: 3rem;
  max-width: 80rem;
  margin: 0 auto;
}

.mobile-card {
  background-color: var(--dark-light);
  padding: 2rem;
  border-radius: 0.75rem;
  border: 1px solid var(--gray-800);
}

.mobile-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.mobile-icon {
  font-size: 3rem;
  margin-right: 1rem;
}

.mobile-title {
  font-size: 1.5rem;
  font-weight: 700;
}

.mobile-version {
  color: var(--text-content);
}

.mobile-features {
  list-style: none;
  margin: 0 0 1.5rem 0;
  padding: 0;
}

.mobile-features li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  color: var(--text-content);
}

.mobile-features svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary);
  margin-right: 0.5rem;
  margin-top: 0.25rem;
  flex-shrink: 0;
}

/* FAQ Section */
.faq-section {
  padding: 4rem 0;
}

.faq-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.faq-item {
  background: linear-gradient(135deg, var(--dark-light) 0%, var(--dark) 100%);
  border-radius: 0.75rem;
  padding: 2rem;
  border: 1px solid var(--gray-800);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.faq-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.faq-item:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(41, 180, 91, 0.2);
}

.faq-item:hover::before {
  opacity: 1;
}

.faq-question {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  color: var(--primary);
}

.faq-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-register) 100%);
  color: #ffffff;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(41, 180, 91, 0.3);
}

.faq-answer {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-content);
  padding-left: 3rem;
}

.faq-cta {
  text-align: center;
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--gray-800);
}

.faq-cta p {
  font-size: 1.25rem;
  color: var(--text-content);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

/* FAQ Responsive */
@media (max-width: 768px) {
  .faq-section {
    padding: 3rem 0;
  }

  .faq-item {
    padding: 1.5rem;
  }

  .faq-question {
    font-size: 1.125rem;
    gap: 0.75rem;
  }

  .faq-number {
    min-width: 1.75rem;
    height: 1.75rem;
    font-size: 0.75rem;
  }

  .faq-answer {
    font-size: 0.9375rem;
    padding-left: 2.5rem;
  }

  .faq-cta p {
    font-size: 1.125rem;
  }
}

@media (max-width: 480px) {
  .faq-question {
    font-size: 1rem;
    flex-direction: column;
    gap: 0.5rem;
  }

  .faq-answer {
    padding-left: 0;
    margin-top: 0.5rem;
  }
}

/* CTA Section */
.cta-section {
  padding: 5rem 0;
  background: linear-gradient(to right, var(--primary), var(--accent-register));
  text-align: center;
}

.cta-section h2 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.cta-section p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.btn-white {
  background-color: #ffffff;
  color: var(--accent-register);
}

.btn-white:hover {
  background-color: #f3f4f6;
}

.btn-dark {
  background-color: var(--dark);
  color: #ffffff;
}

.btn-dark:hover {
  background-color: var(--dark-light);
}

/* Footer */
.footer {
  background-color: var(--footer-bg);
  padding: 3rem 0;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.6);
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
}

.footer-rating {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.footer-stars {
  color: var(--primary);
  font-size: 1rem;
  letter-spacing: 0.05em;
  line-height: 1;
}

.footer-rating-value {
  font-weight: 700;
  color: var(--text-content);
  font-size: 1rem;
}

.footer-rating-divider {
  color: var(--gray-500);
  font-size: 0.875rem;
}

.footer-rating-count {
  color: var(--gray-500);
  font-size: 0.75rem;
}

.footer-desc {
  color: var(--text-content);
  font-size: 0.875rem;
}

.footer h4 {
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 1rem;
  color: var(--primary);
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer li {
  margin-bottom: 0.5rem;
  color: var(--text-content);
  font-size: 0.875rem;
}

.footer a {
  color: var(--text-content);
  text-decoration: none;
  transition: color 0.3s;
}

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

.footer-cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.footer-support {
  text-align: center;
  padding: 1rem 1rem;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, rgba(41, 180, 91, 0.08) 0%, rgba(231, 76, 60, 0.06) 100%);
  border: 1px solid rgba(41, 180, 91, 0.2);
}

.footer-apk {
  text-align: center;
  padding: 1rem 1rem;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, rgba(22, 78, 99, 0.12) 0%, rgba(20, 83, 45, 0.08) 100%);
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.footer-support h4,
.footer-apk h4 {
  margin: 0 0 0.375rem;
  font-size: 1rem;
}

.footer-support p {
  color: var(--text-content);
  font-size: 0.8125rem;
  margin: 0 0 0.75rem;
  line-height: 1.4;
}

.footer-support-rating,
.footer-apk-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.footer-support-stars {
  color: var(--primary);
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}

.footer-support-value {
  font-weight: 700;
  color: var(--text-content);
  font-size: 0.875rem;
}

.footer-support-count {
  color: var(--gray-500);
  font-size: 0.6875rem;
}

.footer-apk-stars {
  color: #22c55e;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}

.footer-apk-value {
  font-weight: 700;
  color: var(--text-content);
  font-size: 0.875rem;
}

.footer-apk-count {
  color: var(--gray-500);
  font-size: 0.6875rem;
}

.footer-cta-btn {
  display: block;
  width: 100%;
  padding: 0.625rem 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: center;
  color: #ffffff !important;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-register) 100%);
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(41, 180, 91, 0.35);
}

.footer-cta-btn:hover {
  background: linear-gradient(135deg, rgba(41, 180, 91, 0.95) 0%, rgba(231, 76, 60, 0.9) 100%);
  box-shadow: 0 6px 20px rgba(41, 180, 91, 0.45);
  transform: translateY(-1px);
}

.footer-apk-btn {
  background: linear-gradient(135deg, #059669 0%, #0d9488 100%) !important;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
}

.footer-apk-btn:hover {
  background: linear-gradient(135deg, #047857 0%, #0f766e 100%) !important;
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.45);
}

@media (max-width: 767px) {
  .footer-cta-row {
    grid-template-columns: 1fr;
  }
}

.footer-bottom {
  border-top: 1px solid var(--gray-800);
  padding-top: 2rem;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 2rem;
}

.footer-legal {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  color: var(--text-content);
  font-size: 0.75rem;
  line-height: 1.6;
  margin: 0;
}

.footer-legal p {
  margin: 0;
  color: var(--text-content);
}

.age-warning {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.125rem;
}

.footer-center {
  font-size: 0.75rem;
  color: var(--gray-500);
  margin: 0;
}

.footer-center p {
  margin: 0;
}

/* Utilities */
.hidden {
  display: none;
}

.show {
  display: block;
}

/* Media Queries */
@media (min-width: 768px) {
  /* Убрать стили шапки для компьютеров и планшетов */
  .header {
    position: static !important;
    background: var(--header-bg) !important;
    border-bottom: none !important;
    border-radius: 0 !important;
    backdrop-filter: none !important;
  }

  /* Убрать padding-top у hero секции, так как header больше не фиксированный */
  .hero {
    padding-top: 2rem !important;
  }

  /* Показать текст домена вместо логотипа */
  .logo-img {
    display: none;
  }

  .logo-text {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
  }

  .header-mobile-right {
    display: none;
  }

  .nav-links {
    display: flex;
  }

  .nav-actions {
    display: flex;
  }

  .mobile-menu-btn {
    display: none;
  }

  /* Hero блок: скрыть баннеры и всё кроме заголовка и описания */
  .hero-side {
    display: none !important;
  }

  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    display: none !important;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .btn-lg {
    width: auto;
  }

  .promo-inputs {
    flex-direction: row;
  }

  .copy-btn {
    width: auto;
  }

  .mobile-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-buttons {
    flex-direction: row;
  }

  /* Скрыть блок Popular Games */
  .games-icons-section {
    display: none !important;
  }

  /* Скрыть table-of-contents */
  .table-of-contents {
    display: none !important;
  }

  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* В футере скрыть логотип */
  .footer-brand img {
    display: none !important;
  }

  /* В футере скрыть Support 24/7 и Mobile App блоки */
  .footer-support,
  .footer-apk {
    display: none !important;
  }

  /* В футере скрыть блок Support (четвертая колонка) */
  .footer-grid > div:nth-child(4) {
    display: none !important;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  h4 {
    font-size: 1.25rem;
  }
}

/* Responsive for mobile */
@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-side {
    align-items: stretch;
  }

  .hero-side .hero-banner {
    max-width: 100%;
  }

  .hero-side .trust-badges {
    justify-content: center;
  }

  h1 {
    font-size: 1.875rem;
    margin-bottom: 1rem;
  }

  h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
  }

  h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
  }

  h4 {
    font-size: 1.125rem;
    margin-top: 1.25rem;
    margin-bottom: 0.625rem;
  }

  h5, h6 {
    font-size: 1rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
  }

  /* Tables on mobile: desktop-like + horizontal scroll */
  .table-responsive {
    margin: 1.5rem 0;
  }

  .table-responsive > table {
    font-size: 0.875rem;
  }

  /* Scroll appears only when there are many columns/content */
  .table-responsive > table th,
  .table-responsive > table td {
    min-width: 140px;
  }

  /* Responsive paragraphs and lists */
  p {
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 0.875rem;
  }

  ul, ol {
    margin: 0.875rem 0 1.25rem 1rem;
    padding-left: 0.75rem;
  }

  ul li, ol li {
    font-size: 0.9375rem;
    margin-bottom: 0.4rem;
  }

  .faq-container {
    grid-template-columns: 1fr;
  }

  /* Hide timer on mobile */
  .promo-timer {
    display: none !important;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  h3 {
    font-size: 1.125rem;
  }

  h4, h5, h6 {
    font-size: 1rem;
  }

  .table-responsive > table {
    font-size: 0.8125rem;
  }

  .table-responsive > table tbody td {
    font-size: 0.8125rem;
    padding: 0.875rem;
  }

  .table-responsive > table th,
  .table-responsive > table td {
    min-width: 120px;
  }

  /* Responsive paragraphs and lists for very small screens */
  p {
    font-size: 0.875rem;
    line-height: 1.6;
  }

  ul, ol {
    margin: 0.75rem 0 1rem 0.75rem;
    padding-left: 0.5rem;
  }

  ul li, ol li {
    font-size: 0.875rem;
    margin-bottom: 0.375rem;
  }
}


@media (max-width: 480px) {
  /* Adaptation of promo-block for small screens */
  .promo-block {
    margin-top: 2rem;
    padding: 0 0.5rem;
  }

  .promo-card {
    padding: 1rem 0.75rem 0.5rem;
  }

  .promo-label {
    font-size: 0.8125rem;
  }

  .promo-code-box {
    padding: 0.5rem 0.75rem;
  }

  .promo-code {
    font-size: 1.125rem;
    letter-spacing: 0.05em;
  }

  .copy-btn {
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
  }

  /* Hide timer on mobile */
  .promo-timer {
    display: none !important;
  }
}

/* Additional adaptation for screens 320px and smaller */
@media (max-width: 360px) {
  .promo-block {
    padding: 0 0.25rem;
  }

  .promo-card {
    padding: 0.875rem 0.5rem 0.5rem;
  }

  .promo-label {
    font-size: 0.75rem;
  }

  .promo-code-box {
    padding: 0.5rem;
  }

  .promo-code {
    font-size: 1rem;
    letter-spacing: 0.025em;
  }

  .copy-btn {
    padding: 0.5rem 0.75rem;
    gap: 0.25rem;
  }

  .copy-btn svg {
    width: 1rem;
    height: 1rem;
  }

  #copyText {
    font-size: 0.8125rem;
  }
}

/* Content Section Highlight */
.content-section .container {
  padding: 2rem;
  border-radius: 1rem;
}

@media (max-width: 768px) {
  .content-section .container {
    padding: 1.5rem 1rem;
  }
}

/* ===== Index page: Table of contents (TOC) ===== */
.table-of-contents {
  background: linear-gradient(135deg, var(--dark-light) 0%, #24272c 100%);
  border-radius: 0.75rem;
  padding: 1rem;
  margin: 2rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 0.75rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  user-select: none;
}

.toc-header:hover {
  background-color: rgba(41, 180, 91, 0.1);
}

.toc-toggle {
  font-size: 1rem;
  transition: transform 0.3s ease;
  color: var(--primary);
}

.toc-toggle.open {
  transform: rotate(180deg);
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.toc-list.show {
  max-height: 1000px;
  margin-top: 0.5rem;
}

.toc-list li {
  margin-bottom: 0.5rem;
}

.toc-list a {
  display: flex;
  align-items: center;
  color: var(--text-content);
  text-decoration: none;
  padding: 0.4rem 0.5rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.toc-list a:hover {
  background-color: rgba(41, 180, 91, 0.1);
  color: var(--primary);
  transform: translateX(5px);
}

.toc-list a::before {
  content: "→";
  margin-right: 0.5rem;
  color: var(--primary);
  font-weight: bold;
  font-size: 0.875rem;
}

/* ===== App Download Banner (mobile banner) ===== */
.app-download-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: #212121;
  padding: 0.75rem 1rem;
  padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
  .app-download-banner {
    display: flex;
  }

  .app-download-banner.hidden {
    display: none !important;
  }

  body.app-banner-visible .scroll-to-top {
    bottom: 5.5rem;
  }

  body.app-banner-visible .bonus-button {
    bottom: 5.5rem;
  }
}

.app-download-banner__logo {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: contain;
}

.app-download-banner__info {
  flex: 1;
  min-width: 0;
}

.app-download-banner__name {
  display: block;
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
}

.app-download-banner__stars {
  display: inline-flex;
  gap: 2px;
  margin-top: 2px;
}

.app-download-banner__stars .star {
  display: inline-block;
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}

.app-download-banner__stars .star.half {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cdefs%3E%3ClinearGradient id='half' x1='0%25' y1='0%25' x2='100%25' y2='0%25'%3E%3Cstop offset='50%25' style='stop-color:%23fff'/%3E%3Cstop offset='50%25' style='stop-color:rgba(255,255,255,0.3)'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23half)' d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}

.app-download-banner__btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.app-download-banner__btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

.app-download-banner__icon {
  flex-shrink: 0;
}

/* ===== Index page: Floating buttons ===== */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-register) 100%);
  border: none;
  border-radius: 50%;
  color: var(--primary-dark-text);
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(41, 180, 91, 0.4);
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(41, 180, 91, 0.6);
}

.bonus-button {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  background: linear-gradient(135deg, var(--primary) 0%, #1F8A4A 100%);
  color: var(--primary-dark-text);
  padding: 1rem 1.5rem;
  border-radius: 50px;
  border: none;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(41, 180, 91, 0.4);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bonus-button.show {
  opacity: 1;
  visibility: visible;
}

.bonus-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(41, 180, 91, 0.6);
}

/* ===== Index page: Promo timer ===== */
.promo-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(41, 180, 91, 0.1);
  border-radius: 0.5rem;
  border: 1px solid rgba(41, 180, 91, 0.3);
}

.timer-label {
  color: var(--text-content);
  font-size: 0.9rem;
  font-weight: 500;
}

.timer-display {
  display: flex;
  gap: 0.5rem;
}

.timer-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(41, 180, 91, 0.2);
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
}

.timer-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.timer-text {
  font-size: 0.7rem;
  color: var(--text-content);
  margin-top: 0.25rem;
}

/* ===== Index page: Responsive tweaks ===== */
@media (max-width: 768px) {
  .table-of-contents {
    padding: 0.75rem;
  }

  .toc-header {
    font-size: 1.125rem;
    padding: 0.6rem;
  }

  .toc-list a {
    font-size: 0.9rem;
    padding: 0.35rem 0.4rem;
  }

  .toc-list a::before {
    margin-right: 0.4rem;
    font-size: 0.8rem;
  }

  .scroll-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 45px;
    height: 45px;
    font-size: 1.25rem;
  }

  .bonus-button {
    bottom: 1rem;
    left: 1rem;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  .timer-value {
    font-size: 1.25rem;
  }

  .timer-unit {
    padding: 0.4rem 0.6rem;
  }
}

@media (max-width: 480px) {
  .table-of-contents {
    padding: 0.6rem;
  }

  .toc-header {
    font-size: 1rem;
    padding: 0.5rem;
  }

  .toc-list a {
    font-size: 0.85rem;
    padding: 0.3rem 0.35rem;
  }

  .bonus-button {
    padding: 0.6rem 0.8rem;
    font-size: 0.85rem;
  }
}
