/* =============================================
   GLOBAL — :root, reset, typography, utilities
   Проект: Apuestas Melbet Argentina (apuestas-melbet-argentina)
   Шрифт: Space Grotesk (Google Fonts)
   Палитра: Midnight Navy + Electric Cyan + Melbet Yellow + Casino Magenta
   ============================================= */

/* ===== :root ===== */

:root {
  /* Colors — midnight navy + electric cyan + melbet yellow + casino magenta */
  --bg-dark: #0a1128;
  --bg-deeper: #050a1a;
  --bg-card: #121e3d;
  --bg-elevated: #1a2a4e;

  --accent: #00b4ff;
  --accent-hover: #3acaff;
  --accent-deep: #0084cc;

  --yellow: #ffc107;
  --yellow-deep: #d49800;
  --yellow-glow: #ffdd5c;

  --magenta: #ff3d7f;
  --magenta-deep: #c42160;

  --text: #ffffff;
  --text-muted: #b8c5e0;
  --text-dim: #6b7a9e;
  --white: #ffffff;
  --black: #030614;

  /* Gradients */
  --gradient-hero: linear-gradient(
    160deg,
    #050a1a 0%,
    #0a1128 45%,
    #121e3d 100%
  );
  --gradient-accent: linear-gradient(135deg, #00b4ff 0%, #0084cc 100%);
  --gradient-yellow: linear-gradient(
    135deg,
    #ffdd5c 0%,
    #ffc107 50%,
    #d49800 100%
  );
  --gradient-magenta: linear-gradient(135deg, #ff3d7f 0%, #c42160 100%);

  /* Border */
  --border: rgba(0, 180, 255, 0.22);
  --border-subtle: rgba(0, 180, 255, 0.1);
  --border-yellow: rgba(255, 193, 7, 0.22);

  /* Radius */
  --rounded-sm: 0.4rem;
  --rounded-md: 0.6rem;
  --rounded-lg: 1rem;
  --rounded-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.55);
  --shadow-accent: 0 6px 24px rgba(0, 180, 255, 0.28);
  --shadow-yellow: 0 4px 20px rgba(255, 193, 7, 0.25);
  --shadow-magenta: 0 6px 24px rgba(255, 61, 127, 0.28);

  /* Layout */
  --main-padding: 50px;
  --max-width: 73.17rem;
}

/* ===== Fluid typography ===== */

html {
  font-size: calc(0.433vw + 0.433vh + 0.3175vmin);
  scroll-behavior: smooth;
}

/* ===== Reset ===== */

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

body {
  font-family:
    "Space Grotesk",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  font-weight: 400;
  color: var(--text);
  background-color: var(--bg-dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent);
}

ul,
ol {
  list-style: none;
}

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

/* ===== Typography classes — заголовки ===== */

.text-xxl {
  font-size: 4.7rem;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.text-xl {
  font-size: 3.36rem;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.text-l {
  font-size: 2.44rem;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.text-ml {
  font-size: 1.95rem;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ===== Typography classes — текст ===== */

.text-m {
  font-size: 1.52rem;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.005em;
}

.text-ms {
  font-size: 1.46rem;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.005em;
}

.text-s {
  font-size: 1.22rem;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: -0.005em;
}

.text-xs {
  font-size: 1.07rem;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: -0.005em;
}

.text-xxs {
  font-size: 0.85rem;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: -0.005em;
}

/* ===== Color utilities ===== */

.text-accent {
  color: var(--accent) !important;
}

.text-yellow {
  color: var(--yellow) !important;
}

.text-magenta {
  color: var(--magenta) !important;
}

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

.text-dim {
  color: var(--text-dim) !important;
}

.text-white {
  color: var(--white) !important;
}

/* ===== Buttons ===== */

.primary_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-yellow);
  color: var(--black);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 1.15rem 2.15rem;
  border-radius: var(--rounded-md);
  border: 1px solid rgba(255, 221, 92, 0.5);
  cursor: pointer;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-yellow);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
  text-align: center;
}

.primary_button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(255, 193, 7, 0.45);
  border-color: var(--yellow-glow);
  color: var(--black);
}

.outline_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: var(--accent);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 1.15rem 2.15rem;
  border-radius: var(--rounded-md);
  border: 2px solid var(--accent);
  cursor: pointer;
  letter-spacing: 0.02em;
  transition:
    transform 0.3s ease,
    background 0.3s ease,
    color 0.3s ease,
    box-shadow 0.3s ease;
}

.outline_button:hover {
  transform: translateY(-2px);
  background: var(--gradient-accent);
  color: var(--white);
  box-shadow: var(--shadow-accent);
}

/* ===== Layout ===== */

.base_position {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--main-padding);
}

/* ===== Universal CTA row (used at the bottom of content blocks) ===== */

.block_cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.4rem;
}

.block_cta--center {
  justify-content: center;
}

/* ===== Section tag marker ===== */

.section_tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 1.07rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 3px;
  text-transform: uppercase;
}

.section_tag::before {
  content: "";
  display: block;
  width: 1.5rem;
  height: 2px;
  background: var(--gradient-accent);
  border-radius: var(--rounded-full);
}

/* ===== Tables — casino style (rounded + overflow hidden + cyan border + navy thead with yellow underline) ===== */

._table {
  width: 100%;
  border-radius: var(--rounded-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

._table > table {
  width: 100%;
  border-collapse: collapse;
}

._table > table > thead > tr {
  background: var(--gradient-accent);
}

._table > table > thead > tr > th {
  padding: 1.2rem 1.4rem;
  text-align: left;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.03em;
  border-bottom: 2px solid var(--yellow);
}

._table > table > tbody > tr {
  transition: background 0.25s ease;
}

._table > table > tbody > tr:nth-child(odd) {
  background: var(--bg-card);
}

._table > table > tbody > tr:nth-child(even) {
  background: var(--bg-elevated);
}

._table > table > tbody > tr:hover {
  background: rgba(0, 180, 255, 0.08);
}

._table > table > tbody > tr > td {
  padding: 1rem 1.4rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
}

._table > table > tbody > tr:last-child > td {
  border-bottom: none;
}

/* ===== Cards ===== */

.card {
  background: var(--bg-card);
  border-radius: var(--rounded-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-subtle);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--border);
  box-shadow: var(--shadow-md);
}

/* ===== Check list — yellow sparks ===== */

.check_list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.check_list > li {
  padding-left: 2rem;
  position: relative;
  color: var(--text-muted);
}

.check_list > li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--yellow);
  font-weight: 700;
  font-size: 1.1em;
  line-height: 1.5;
}

/* ===== Mobile ===== */

@media (max-width: 1024px) {
  html {
    font-size: calc(0.333vw + 0.333vh + 0.2175vmin);
  }

  :root {
    --main-padding: 20px;
  }

  .text-xxl {
    font-size: 7.2rem;
  }

  .text-xl {
    font-size: 5.4rem;
  }

  .text-l {
    font-size: 4.2rem;
  }

  .text-ml {
    font-size: 3.6rem;
  }

  .text-m {
    font-size: 2.8rem;
  }

  .text-ms {
    font-size: 2.6rem;
  }

  .text-s {
    font-size: 2.4rem;
  }

  .text-xs {
    font-size: 2.2rem;
  }

  .text-xxs {
    font-size: 2rem;
  }

  .primary_button,
  .outline_button {
    font-size: 4rem;
    padding: 2rem 3rem;
  }

  .primary_button {
    width: 90%;
    height: 16rem;
  }

  .section_tag {
    font-size: 2.2rem;
    letter-spacing: 4px;
  }

  .section_tag::before {
    width: 2.5rem;
    height: 3px;
  }

  .block_cta {
    flex-direction: column;
    align-items: stretch;
    gap: 1.6rem;
    margin-top: 1.5rem;
  }

  .block_cta--center {
    align-items: center;
  }
}
