/* ============================================
   cuba-1x-bet — Global styles
   Palette: "Havana Sunset" (deep coffee + amber + rust)
   Fonts: Fraunces (headings, italic) + Albert Sans (body)
   ============================================ */

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

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

:root {
  /* ===== Background layers — "Havana Paper" warm cream ===== */
  --bg-dark: #f0e3cd;          /* основной фон — sand cream */
  --bg-surface: #f7eddc;       /* карточки — lighter cream */
  --bg-elevated: #fbf5e8;      /* hover — almost-white cream */
  --bg-line: #dcc9a8;           /* dividers — warm tan */

  /* ===== Surface alphas ===== */
  --surface-bg: rgba(240, 227, 205, 0.85);
  --surface-bg-strong: rgba(240, 227, 205, 0.97);
  --surface-bg-deep: #e5d4b6;

  /* ===== Accent — deep rust / terracotta (контрастный на cream) ===== */
  --accent: #b54a2f;
  --accent-dark: #933a23;
  --accent-bright: #d05a3d;
  --accent-soft: rgba(181, 74, 47, 0.10);
  --accent-glow: rgba(181, 74, 47, 0.28);
  --accent-glow-strong: rgba(181, 74, 47, 0.42);
  --accent-glow-bright: rgba(181, 74, 47, 0.55);
  --accent-line: rgba(181, 74, 47, 0.08);
  --accent-line-soft: rgba(181, 74, 47, 0.18);
  --accent-line-mid: rgba(181, 74, 47, 0.26);
  --accent-border: rgba(181, 74, 47, 0.36);

  /* ===== Accent 2 — ocean teal (карибский контрапункт) ===== */
  --accent-2: #1e6473;
  --accent-2-dark: #154f5c;
  --accent-2-bright: #2a8497;
  --accent-2-soft: rgba(30, 100, 115, 0.12);
  --accent-2-glow: rgba(30, 100, 115, 0.32);

  /* ===== Text — deep coffee, читаемый на cream ===== */
  --text: #2a1d12;
  --text-muted: #6a5236;
  --text-dim: #9a8866;
  --on-accent: #f4e9d6;        /* cream на rust-кнопке */
  --on-accent-2: #f4e9d6;      /* cream на teal-кнопке */

  /* ===== Radius — PILL (сохранена категория) ===== */
  --radius-sm: 999px;
  --radius: 999px;
  --radius-lg: 1.8rem;
  --radius-card: 1.4rem;
  --radius-full: 999px;

  /* ===== Shadows — мягче на светлом фоне ===== */
  --shadow-accent: 0 0 40px var(--accent-glow);
  --shadow-card: 0 14px 44px rgba(70, 50, 30, 0.18);
  --shadow-glow-soft: 0 0 24px rgba(181, 74, 47, 0.18);
  --shadow-glow-teal: 0 0 28px var(--accent-2-glow);

  /* ===== Gradients ===== */
  --gradient-hero:
    radial-gradient(ellipse at 78% 22%, rgba(181, 74, 47, 0.10) 0%, transparent 55%),
    radial-gradient(ellipse at 12% 88%, rgba(30, 100, 115, 0.08) 0%, transparent 50%),
    linear-gradient(160deg, #f0e3cd 0%, #f7eddc 55%, #e5d4b6 100%);
  --gradient-accent: linear-gradient(135deg, #b54a2f 0%, #933a23 100%);
  --gradient-rust-teal: linear-gradient(135deg, #b54a2f 0%, #1e6473 100%);
  --gradient-footer: linear-gradient(180deg, var(--bg-dark) 0%, var(--surface-bg-deep) 100%);

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

body {
  font-family: "Albert Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", 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;
}

h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 600;
}

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
   ============================================ */
.text-xxl {
  font-size: 4.7rem;
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.018em;
}
.text-xl {
  font-size: 3.36rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.012em;
}
.text-l {
  font-size: 2.44rem;
  font-weight: 600;
  line-height: 1.16;
}
.text-ml {
  font-size: 1.95rem;
  font-weight: 600;
  line-height: 1.25;
}
.text-m {
  font-size: 1.52rem;
  font-weight: 400;
  line-height: 1.55;
}
.text-ms {
  font-size: 1.46rem;
  font-weight: 400;
  line-height: 1.55;
}
.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: 500;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.text-italic {
  font-style: italic;
  font-family: "Fraunces", Georgia, serif;
}

.text-accent {
  color: var(--accent);
  font-style: italic;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
}
.text-rust {
  color: var(--accent-2);
  font-style: italic;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
}
.text-muted {
  color: var(--text-muted);
}
.text-dim {
  color: var(--text-dim);
}

/* ============================================
   Buttons — pill capsule (vintage casino chip)
   ============================================ */
.primary_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.25rem 2.6rem;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: "Albert Sans", sans-serif;
  color: var(--on-accent);
  background: var(--accent);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(244, 233, 214, 0.15), 0 6px 16px rgba(0, 0, 0, 0.35);
}

.primary_button:hover {
  background: var(--accent-bright);
  color: var(--on-accent);
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px rgba(244, 233, 214, 0.2), 0 0 36px var(--accent-glow-strong);
}

.outline_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.25rem 2.6rem;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: "Albert Sans", sans-serif;
  color: var(--accent);
  background: transparent;
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: inset 0 0 0 1px rgba(233, 165, 89, 0.15);
}

.outline_button:hover {
  background: var(--accent-soft);
  color: var(--accent-bright);
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px var(--accent-line-mid), 0 0 24px var(--accent-glow);
}

/* Rust variants — для блоков 7, 10 (accent-2 ритм) */
.primary_button--rust {
  background: var(--accent-2);
  color: var(--on-accent-2);
}
.primary_button--rust:hover {
  background: var(--accent-2-bright);
  color: var(--on-accent-2);
  box-shadow: inset 0 0 0 1px rgba(244, 233, 214, 0.22), 0 0 36px var(--accent-2-glow);
}
.outline_button--rust {
  color: var(--accent-2);
  border-color: var(--accent-2);
}
.outline_button--rust:hover {
  background: var(--accent-2-soft);
  color: var(--accent-2-bright);
  box-shadow: inset 0 0 0 1px rgba(201, 90, 61, 0.24), 0 0 24px var(--accent-2-glow);
}

/* ============================================
   Section tag — vintage line marker (no diamond)
   ============================================ */
.section_tag {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.section_tag::before {
  content: "";
  display: inline-block;
  width: 2.4rem;
  height: 1px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.section_tag::after {
  content: "";
  display: inline-block;
  width: 2.4rem;
  height: 1px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

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

/* ============================================
   Check list — amber tick
   ============================================ */
.check_list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.check_list > li {
  position: relative;
  padding-left: 2.6rem;
  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.5rem;
  height: 1.5rem;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: 50%;
}

.check_list > li::after {
  content: "";
  position: absolute;
  left: 0.5rem;
  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 — vintage paper-stamp look
   ============================================ */
._table {
  width: 100%;
  border-radius: var(--radius-card);
  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: "Fraunces", Georgia, serif;
  font-style: italic;
  color: var(--accent);
  font-weight: 600;
  font-size: 1.1rem;
  text-align: left;
  padding: 1.5rem 1.8rem;
  letter-spacing: 0.04em;
  border-bottom: 2px solid var(--accent);
  position: relative;
}

._table > table > thead > tr > th::after {
  content: "";
  position: absolute;
  left: 1.8rem;
  right: 1.8rem;
  bottom: -5px;
  height: 1px;
  background: var(--accent);
  opacity: 0.35;
}

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

._table > table > tbody > tr:nth-child(even) {
  background: rgba(220, 201, 168, 0.32);
}

._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 > td:first-child {
  color: var(--text);
  font-weight: 600;
}

._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(--on-accent);
}

/* ============================================
   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.5rem;
    padding: 2rem 3rem;
  }

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

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

  .section_tag::before,
  .section_tag::after {
    width: 4rem;
  }

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

  .check_list > li::before {
    width: 2.8rem;
    height: 2.8rem;
    top: 0.4rem;
  }

  .check_list > li::after {
    width: 1rem;
    height: 0.5rem;
    left: 0.9rem;
    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;
  }
}
