/* ============================================
   1x-betguatemala.com — Global styles
   Palette: espresso + amber + cream (warm earthy luxury, кофейная)
   Fonts: Roboto Slab (headings, slab serif авторитетный) + Be Vietnam Pro (body, humanist)
   ============================================ */

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

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

:root {
  /* ===== Background layers — espresso/charcoal warmth ===== */
  --bg-dark: #1f1814;
  --bg-surface: #2a2018;
  --bg-elevated: #352a20;
  --bg-line: #4a3c2e;

  /* ===== Surface alphas (header / mobile menu / footer) ===== */
  --surface-bg: rgba(31, 24, 20, 0.78);
  --surface-bg-strong: rgba(31, 24, 20, 0.96);
  --surface-bg-deep: #14100c;

  /* ===== Accent — primary (amber / honey) ===== */
  --accent: #e8a043;
  --accent-dark: #b87a28;
  --accent-bright: #f4b860;
  --accent-soft: rgba(232, 160, 67, 0.14);
  --accent-glow: rgba(232, 160, 67, 0.34);
  --accent-glow-strong: rgba(232, 160, 67, 0.45);
  --accent-glow-bright: rgba(244, 184, 96, 0.55);
  --accent-line: rgba(232, 160, 67, 0.10);
  --accent-line-soft: rgba(232, 160, 67, 0.18);
  --accent-line-mid: rgba(232, 160, 67, 0.22);
  --accent-border: rgba(232, 160, 67, 0.35);

  /* ===== Accent 2 — secondary (warm copper) ===== */
  --accent-2: #d68847;
  --accent-2-dark: #a16830;
  --accent-2-soft: rgba(214, 136, 71, 0.14);

  /* ===== Text ===== */
  --text: #f5ead8;
  --text-muted: #bca890;
  --text-dim: #7a6b56;

  /* ===== Radius — subtle squared (mechanical key feel) ===== */
  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 10px;
  --radius-full: 999px;

  /* ===== Shadows ===== */
  --shadow-accent: 0 0 40px var(--accent-glow);
  --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.55);
  --shadow-glow-soft: 0 0 24px rgba(232, 160, 67, 0.18);

  /* ===== Gradients ===== */
  --gradient-hero:
    radial-gradient(ellipse at 75% 25%, rgba(232, 160, 67, 0.20) 0%, transparent 55%),
    radial-gradient(ellipse at 15% 85%, rgba(214, 136, 71, 0.10) 0%, transparent 50%),
    linear-gradient(160deg, #1f1814 0%, #2a2018 55%, #1f1814 100%);
  --gradient-accent: linear-gradient(135deg, #e8a043 0%, #b87a28 100%);
  --gradient-footer: linear-gradient(180deg, var(--bg-dark) 0%, var(--surface-bg-deep) 100%);

  /* ===== Spacing ===== */
  --main-padding: 50px;
}

body {
  font-family: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  display: flex;
  flex-direction: column;
  gap: 0;
}

section {
  padding: 8rem var(--main-padding);
  position: relative;
  overflow: hidden;
}

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

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

ul,
ol {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ============================================
   Text scale — Roboto Slab для headings (slab serif авторитетный)
   ============================================ */
.text-xxl,
.text-xl,
.text-l,
.text-ml {
  font-family: "Roboto Slab", Georgia, serif;
}

.text-xxl {
  font-size: 4.7rem;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.015em;
}
.text-xl {
  font-size: 3.36rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.005em;
}
.text-l {
  font-size: 2.44rem;
  font-weight: 700;
  line-height: 1.18;
}
.text-ml {
  font-size: 1.95rem;
  font-weight: 500;
  line-height: 1.25;
}
.text-m {
  font-size: 1.52rem;
  font-weight: 500;
  line-height: 1.55;
}
.text-ms {
  font-size: 1.46rem;
  font-weight: 400;
  line-height: 1.6;
}
.text-s {
  font-size: 1.22rem;
  font-weight: 400;
  line-height: 1.6;
}
.text-xs {
  font-size: 1.07rem;
  font-weight: 400;
  line-height: 1.55;
}
.text-xxs {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.text-accent {
  color: var(--accent);
}
.text-gold {
  color: var(--accent-2);
}
.text-muted {
  color: var(--text-muted);
}
.text-dim {
  color: var(--text-dim);
}

/* ============================================
   Buttons — squared с heavy border-bottom (mechanical key feel)
   На hover translateY(2px) + border-bottom уменьшается → ощущение нажатия клавиши
   ============================================ */
.primary_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.1rem 2.4rem;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--bg-dark);
  background: var(--accent);
  border: 2px solid var(--accent);
  border-bottom: 4px solid var(--accent-dark);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition:
    transform 0.12s ease,
    border-bottom-width 0.12s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
}

.primary_button:hover {
  background: var(--accent-bright);
  border-color: var(--accent-bright);
  border-bottom-color: var(--accent-dark);
  box-shadow: 0 0 24px var(--accent-glow);
}

.primary_button:active {
  transform: translateY(2px);
  border-bottom-width: 1px;
}

.outline_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.1rem 2.4rem;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent);
  background: transparent;
  border: 2px solid var(--accent);
  border-bottom: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition:
    transform 0.12s ease,
    border-bottom-width 0.12s ease,
    background 0.2s ease,
    color 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.outline_button:hover {
  background: var(--accent-soft);
  color: var(--accent-bright);
}

.outline_button:active {
  transform: translateY(2px);
  border-bottom-width: 1px;
}

/* ---- Accent-2 (warm copper) variants ---- */
.primary_button--accent2 {
  background: var(--accent-2);
  border-color: var(--accent-2);
  border-bottom-color: var(--accent-2-dark);
}
.primary_button--accent2:hover {
  background: #e69d62;
  color: var(--bg-dark);
  box-shadow: 0 0 24px rgba(214, 136, 71, 0.4);
}

.outline_button--accent2 {
  color: var(--accent-2);
  border-color: var(--accent-2);
  border-bottom-color: var(--accent-2);
}
.outline_button--accent2:hover {
  background: var(--accent-2-soft);
  color: #e69d62;
}

/* ============================================
   Section tag — slab marker + caps text
   ============================================ */
.section_tag {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.section_tag::before {
  content: "—";
  color: var(--accent);
  font-weight: 900;
  letter-spacing: 0;
}

/* ============================================
   Layout helper
   ============================================ */
.base_position {
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
}

/* ============================================
   Check list — square marker + accent tick
   ============================================ */
.check_list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.check_list > li {
  position: relative;
  padding-left: 2.4rem;
  color: var(--text-muted);
  font-size: 1.22rem;
  line-height: 1.6;
}

.check_list > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4rem;
  width: 1.4rem;
  height: 1.4rem;
  background: var(--accent-soft);
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-sm);
}

.check_list > li::after {
  content: "";
  position: absolute;
  left: 0.45rem;
  top: 0.7rem;
  width: 0.55rem;
  height: 0.28rem;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* ============================================
   Tables — rounded soft, accent thead, hover
   ============================================ */
._table {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--bg-line);
  box-shadow: var(--shadow-card);
}

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

._table > table > thead > tr {
  background: var(--bg-elevated);
}

._table > table > thead > tr > th {
  font-family: "Roboto Slab", serif;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.07rem;
  text-align: left;
  padding: 1.5rem 1.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 2px solid var(--accent);
}

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

._table > table > tbody > tr:nth-child(even) {
  background: rgba(53, 42, 32, 0.4);
}

._table > table > tbody > tr:hover {
  background: var(--accent-soft);
}

._table > table > tbody > tr > td {
  padding: 1.4rem 1.8rem;
  color: var(--text-muted);
  font-size: 1.1rem;
  border-bottom: 1px solid var(--bg-line);
  vertical-align: top;
}

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

/* ============================================
   Inline section CTA row (universal)
   ============================================ */
.section_cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-top: 2.5rem;
}

.section_cta > .cta_note {
  font-size: 0.95rem;
  color: var(--text-dim);
  margin-left: 0.6rem;
  letter-spacing: 0.02em;
}

.section_cta > .cta_note > span {
  color: var(--accent);
  font-weight: 600;
}

/* ============================================
   Selection
   ============================================ */
::selection {
  background: var(--accent);
  color: var(--bg-dark);
}

/* ============================================
   Mobile — ≤1024px
   ============================================ */
@media (max-width: 1024px) {
  html {
    font-size: calc(0.333vw + 0.333vh + 0.2175vmin);
  }

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

  section {
    padding: 10rem var(--main-padding);
  }

  .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: 3.4rem;
    padding: 2rem 3rem;
  }

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

  .section_tag {
    font-size: 2.2rem;
    letter-spacing: 0.26em;
  }

  .check_list > li {
    padding-left: 4.4rem;
    font-size: 2.4rem;
  }

  .check_list > li::before {
    width: 2.6rem;
    height: 2.6rem;
    top: 0.4rem;
    border-width: 2px;
  }

  .check_list > li::after {
    width: 1rem;
    height: 0.5rem;
    left: 0.85rem;
    top: 1.15rem;
    border-left-width: 3px;
    border-bottom-width: 3px;
  }

  ._table > table > thead > tr > th,
  ._table > table > tbody > tr > td {
    padding: 2rem 1.8rem;
    font-size: 2.2rem;
  }

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

  .section_cta > .cta_note {
    font-size: 2rem;
    text-align: center;
    margin-left: 0;
    margin-top: 0.5rem;
  }
}
