/* =============================================
   GLOBAL — :root, reset, typography, utilities
   Проект: Melbet Argentina (melbet-app-argentina)
   Шрифт: Outfit (Google Fonts)
   Палитра: Black-burgundy + Red + Gold
   ============================================= */

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

:root {
  /* Colors — casino black-burgundy + red + gold */
  --bg-dark: #0e0707;
  --bg-deeper: #080404;
  --bg-card: #1a0d0d;
  --bg-elevated: #2a1516;

  --accent: #e11e26;
  --accent-hover: #f23a42;
  --accent-deep: #8b1016;

  --gold: #d4a94a;
  --gold-deep: #9e7a2e;
  --gold-glow: #f0c868;

  --text: #ffffff;
  --text-muted: #c9b8a8;
  --text-dim: #7a6a5e;
  --white: #ffffff;
  --black: #070202;

  /* Gradients */
  --gradient-hero: linear-gradient(
    160deg,
    #080404 0%,
    #0e0707 45%,
    #1a0d0d 100%
  );
  --gradient-accent: linear-gradient(135deg, #e11e26 0%, #8b1016 100%);
  --gradient-gold: linear-gradient(
    135deg,
    #f0c868 0%,
    #d4a94a 50%,
    #9e7a2e 100%
  );

  /* Border */
  --border: rgba(212, 169, 74, 0.22);
  --border-subtle: rgba(212, 169, 74, 0.1);
  --border-red: rgba(225, 30, 38, 0.2);

  /* 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(225, 30, 38, 0.28);
  --shadow-gold: 0 4px 20px rgba(212, 169, 74, 0.22);

  /* 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:
    "Outfit",
    -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: 800;
  letter-spacing: -0.02em;
}

.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: 700;
  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.01em;
}

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

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

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

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

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

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

.text-gold {
  color: var(--gold) !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-accent);
  color: var(--white);
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 1.15rem 2.15rem;
  border-radius: var(--rounded-md);
  border: 1px solid rgba(240, 200, 104, 0.35);
  cursor: pointer;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-accent);
  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(225, 30, 38, 0.4);
  border-color: var(--gold);
  color: var(--white);
}

.outline_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: var(--gold);
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 1.15rem 2.15rem;
  border-radius: var(--rounded-md);
  border: 2px solid var(--gold);
  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-gold);
  color: var(--black);
  box-shadow: var(--shadow-gold);
}

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

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

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

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

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

/* ===== Tables — casino style (rounded + overflow hidden + gold border + red thead) ===== */

._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: 1px solid var(--gold-deep);
}

._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(225, 30, 38, 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 — gold checkmarks ===== */

.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(--gold);
  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: 5.8rem;
    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;
  }
}
