/* style.css — Дизайн-система для bet365 Аргентина */

:root {
  --accent:       #006046;   /* Фирменный зеленый bet365 */
  --accent-yellow:#ffdf1b;   /* Вторичный желтый/золотой bet365 */
  --accent-light: #008f68;
  --accent-hover: #004b36;
  --bg-dark:      #0a0f0d;   /* Глубокий темно-зеленый/черный фон */
  --bg-card:      #121b18;   /* Темные карточки */
  --bg-header:    #0d1412;   /* Хедер */
  --text-primary: #f5f5f5;
  --text-muted:   #9ea8a5;
  --border-color: #1b2b26;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  padding-bottom: 0;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--accent-yellow);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: #fff;
  text-decoration: underline;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent-yellow);
  outline-offset: 3px;
}
.skip-link {
  position: absolute;
  left: 16px;
  top: 8px;
  z-index: 500;
  transform: translateY(-140%);
  background: var(--accent-yellow);
  color: #0a0f0d;
  font-weight: 800;
  padding: 10px 14px;
  border-radius: 6px;
}
.skip-link:focus {
  transform: translateY(0);
  text-decoration: none;
}

/* CTA Button */
.cta-btn {
  display: inline-block;
  background: var(--accent-yellow);
  color: #0a0f0d;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 6px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
  font-size: 1.05rem;
  text-decoration: none;
  border: none;
  box-shadow: 0 4px 12px rgba(255, 223, 27, 0.2);
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}
.cta-btn:hover {
  background: #ffe552;
  text-decoration: none;
  transform: translateY(-1px);
}
.cta-btn:active {
  transform: translateY(0);
}

/* Header & Navigation */
header {
  background: var(--bg-header);
  border-bottom: 2px solid var(--accent);
  padding: 0 16px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.logo {
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.2s ease, text-shadow 0.2s ease;
}
.logo:hover {
  text-decoration: none;
  transform: translateY(-1px);
  text-shadow: 0 0 10px rgba(0, 255, 183, 0.3);
}
.logo span {
  color: var(--accent-yellow);
}
.logo::before {
  content: "";
  display: block;
  width: 32px;
  height: 32px;
  background: url('/foto/logo-mob.svg') no-repeat center/contain;
  filter: drop-shadow(0 2px 6px rgba(0, 255, 183, 0.2));
  transition: filter 0.2s ease, transform 0.2s ease;
}
.logo:hover::before {
  transform: scale(1.05) rotate(-2deg);
  filter: drop-shadow(0 2px 10px rgba(255, 234, 121, 0.5));
}

/* Desktop nav links */
.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}
.nav-links a {
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 4px;
  transition: all 0.2s ease;
}
.nav-links a:hover {
  color: var(--accent-yellow);
  background: rgba(255,255,255,0.03);
  text-decoration: none;
}

/* Burger Button */
.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #e0e0e0;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  margin: 5px 0;
  transition: all 0.3s;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav dropdown */
@media (max-width: 768px) {
  .burger { display: block; }
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg-header);
    padding: 12px 0;
    box-shadow: 0 8px 16px rgba(0,0,0,0.6);
    border-bottom: 1px solid var(--border-color);
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 14px 24px; font-size: 1.05rem; border-bottom: 1px solid rgba(255,255,255,0.02); }
  .nav-links a:hover { background: rgba(255,255,255,0.05); }
}

/* Layout */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 16px;
  width: 100%;
  overflow-x: clip;
}
section {
  margin-bottom: 56px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  max-width: 100%;
}
h1 {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  color: #fff;
  margin-bottom: 20px;
  font-weight: 800;
  border-left: 4px solid var(--accent-yellow);
  padding-left: 12px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
h2 {
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  color: #fff;
  margin-bottom: 16px;
  font-weight: 700;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
h3 {
  font-size: 1.2rem;
  color: var(--accent-yellow);
  margin-bottom: 12px;
  font-weight: 600;
}
p {
  margin-bottom: 16px;
  color: var(--text-muted);
}
ul, ol {
  margin-bottom: 20px;
  padding-left: 24px;
  color: var(--text-muted);
}
li {
  margin-bottom: 8px;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 64px 24px;
  background-image: linear-gradient(135deg, rgba(0, 50, 36, 0.8) 0%, rgba(6, 31, 24, 0.95) 100%), url('/foto/banner.jpg');
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-bottom: 40px;
  box-shadow: inset 0 0 100px rgba(0,0,0,0.6), 0 8px 30px rgba(0,0,0,0.4);
  overflow: hidden;
}
.hero h1 {
  border-left: none;
  padding-left: 0;
  font-size: clamp(2rem, 6vw, 3.2rem);
  margin-bottom: 8px;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  line-height: 1.08;
}
.hero-subtitle {
  font-size: clamp(1.1rem, 3.5vw, 1.6rem);
  color: var(--accent-yellow);
  font-weight: 700;
  margin-bottom: 24px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.hero-badge {
  display: inline-block;
  background: rgba(0, 0, 0, 0.45);
  border-left: 4px solid var(--accent-yellow);
  padding: 10px 24px;
  border-radius: 4px;
  margin-bottom: 28px;
  text-align: center;
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  max-width: 100%;
}
.badge-title {
  display: block;
  color: var(--accent-yellow);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 4px;
}
.badge-value {
  display: block;
  color: #fff;
  font-size: clamp(1.05rem, 3vw, 1.35rem);
  font-weight: 800;
}
.hero p {
  font-size: 1.15rem;
  color: #e0e8e5;
  max-width: 800px;
  margin: 0 auto 32px;
  line-height: 1.6;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.hero .cta-btn {
  background: var(--accent-yellow);
  color: #061f18;
  font-size: 1.15rem;
  padding: 16px 36px;
  border-radius: 30px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 8px 24px rgba(255, 223, 27, 0.35);
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  max-width: min(100%, 390px);
  white-space: normal;
  line-height: 1.25;
}
.hero .cta-btn:hover {
  background: #ffe33b;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 223, 27, 0.5);
}

/* Brand Banner (legacy/fallback) */
.brand-banner {
  display: none;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  background: rgba(0,0,0,0.2);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}
th, td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}
th {
  background: #08120f;
  color: var(--accent-yellow);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
td {
  color: var(--text-primary);
  font-size: 0.95rem;
}
tr:last-child td {
  border-bottom: none;
}
tr:hover td {
  background: rgba(255,255,255,0.01);
}
@media (max-width: 600px) {
  table, thead, tbody, th, td, tr { display: block; }
  thead tr { display: none; }
  td { padding: 12px 16px; border-bottom: none; position: relative; }
  td::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--accent-yellow);
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 2px;
  }
  tr { border: 1px solid var(--border-color); border-radius: 8px; margin-bottom: 14px; background: rgba(0,0,0,0.3); overflow: hidden; }
}

/* Game Cards Grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
  min-width: 0;
}
.game-card {
  background: var(--bg-header);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: block;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.game-card img {
  width: 100%;
  aspect-ratio: 226 / 338;
  object-fit: cover;
  display: block;
}
.game-card p {
  padding: 8px 12px 0;
  margin-bottom: 4px;
  font-size: 0.9rem;
}
.game-card p:first-of-type {
  font-weight: 700;
  color: var(--text-primary);
}
.game-card p:last-of-type {
  color: var(--text-muted);
  font-size: 0.78rem;
  padding-bottom: 12px;
}
.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  border-color: var(--accent-yellow);
}
@media (max-width: 450px) {
  .games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .game-card p {
    padding-left: 8px;
    padding-right: 8px;
    overflow-wrap: anywhere;
  }
}

/* FAQ Accordion */
details {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease;
  background: var(--bg-dark);
}
details:hover {
  border-color: var(--accent);
}
summary {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 700;
  background: rgba(255,255,255,0.01);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: "+";
  color: var(--accent-yellow);
  font-size: 1.4rem;
  font-weight: 400;
}
details[open] summary::after {
  content: "−";
}
details p {
  padding: 16px 20px;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid var(--border-color);
  margin-bottom: 0;
}

/* Footer */
footer {
  background: var(--bg-header);
  border-top: 2px solid var(--accent);
  padding: 60px 16px 40px 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 64px;
}
footer a {
  color: var(--accent-yellow);
}
footer a:hover {
  color: #fff;
}
.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto 32px auto;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 32px;
}
.footer-column h3 {
  color: var(--text-primary);
  font-size: 0.95rem;
  margin-bottom: 16px;
  font-weight: 700;
  border-left: 3px solid var(--accent-yellow);
  padding-left: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-column li {
  margin-bottom: 10px;
}
.footer-column a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}
.footer-column a:hover {
  color: var(--accent-yellow);
  text-decoration: none;
}
.footer-bottom {
  margin-top: 24px;
  text-align: center;
}
.footer-nav {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-nav a {
  color: var(--text-primary);
  font-weight: 600;
}
.footer-nav a:hover {
  color: var(--accent-yellow);
}

@media (max-width: 768px) {
  .footer-links-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }
  .footer-column h3 {
    border-left: none;
    border-bottom: 1px solid var(--border-color);
    padding-left: 0;
    padding-bottom: 8px;
    display: inline-block;
  }
}

/* Responsive tweaks */
@media (max-width: 480px) {
  .hero {
    padding: 36px 16px;
    border-radius: 8px;
  }
  .hero h1 {
    font-size: clamp(1.55rem, 8.6vw, 2rem);
  }
  .hero-subtitle {
    font-size: 1.08rem;
  }
  .hero .cta-btn {
    font-size: 0.98rem;
    padding: 15px 12px;
    text-transform: none;
    letter-spacing: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
  }
  .cta-btn { width: 100%; display: block; padding: 16px; }
  main { padding: 20px 12px; }
  section { padding: 20px 16px; }
}

/* Mobile Sticky CTA Bar */
.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--accent-yellow);
  padding: 12px 16px;
  z-index: 300;
  text-align: center;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.5);
  border-top: 1px solid rgba(255,255,255,0.2);
}
.mobile-cta-bar a {
  color: #0a0f0d;
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
  display: block;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.mobile-cta-bar a:hover {
  text-decoration: none;
}
.mobile-cta-bar .mcta-bonus {
  font-size: clamp(0.88rem, 4vw, 1.05rem);
  font-weight: 800;
  display: block;
}
.mobile-cta-bar .mcta-sub {
  font-size: 0.72rem;
  color: rgba(0,0,0,0.7);
  display: block;
  margin-top: 2px;
  font-weight: 600;
}
@media (max-width: 768px) {
  .mobile-cta-bar { display: block; }
  body { padding-bottom: 75px; } /* Предотвращает перекрытие контента липкой панелью */
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-light);
}
