:root {
  --maroon: #7A1F2B;
  --maroon-dark: #5C1520;
  --gold: #C79A3E;
  --cream: #F7F5EE;
  --cream-dark: #ECE6D6;
  --charcoal: #2B2B26;
  --white: #FFFFFF;
  --font-heading: Georgia, 'Times New Roman', serif;
  --font-body: Arial, Helvetica, sans-serif;
  --max-width: 1080px;
  --radius: 14px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.55;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: 1.2;
  margin: 0 0 .5em;
}

p { margin: 0 0 1em; }

a { color: inherit; }

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

.section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.25rem;
}

.section--light {
  background: radial-gradient(ellipse at top right, rgba(199, 154, 62, .06), transparent 60%), var(--cream);
  color: var(--charcoal);
}
.section--dark {
  background: radial-gradient(ellipse at bottom left, rgba(199, 154, 62, .10), transparent 55%), var(--maroon);
  color: var(--cream);
}
.section--dark .section-title { color: var(--white); }
.section--dark a { color: var(--gold); }

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: var(--maroon);
}
.section--dark .section-title { color: var(--gold); }

.section-subtitle {
  font-family: var(--font-body);
  font-style: italic;
  opacity: .8;
  margin-bottom: 1.5rem;
}

/* Sticky nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--maroon);
  color: var(--cream);
}
.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: .75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header__logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--gold);
  text-decoration: none;
}
.site-nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--gold);
  color: var(--cream);
  padding: .4rem .8rem;
  border-radius: 8px;
  font-family: var(--font-body);
}
.site-nav__list {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.site-nav__list a {
  text-decoration: none;
  font-size: .95rem;
}
.site-nav__list a:hover { color: var(--gold); }
.site-nav__cta {
  background: var(--gold);
  color: var(--maroon-dark) !important;
  padding: .4rem .9rem;
  border-radius: 999px;
  font-weight: bold;
}

/* Hero */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  background: var(--maroon);
  color: var(--cream);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(122, 31, 43, .94) 0%, rgba(122, 31, 43, .62) 42%, rgba(122, 31, 43, .18) 100%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.25rem;
  width: 100%;
}
.hero__content { max-width: 640px; }
.hero__avatar {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  float: left;
  margin: 0 1.5rem 1rem 0;
  object-fit: cover;
  border: 3px solid var(--gold);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .35);
}
@media (max-width: 480px) {
  .hero__avatar { width: 120px; height: 120px; margin: 0 1rem 1rem 0; }
}
.hero h1 {
  font-size: clamp(2rem, 6vw, 3rem);
  color: var(--white);
}
.hero__tagline {
  color: var(--gold);
  font-family: var(--font-body);
  letter-spacing: .05em;
  text-transform: uppercase;
  font-size: .9rem;
  margin-bottom: 1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: .8rem 1.6rem;
  border-radius: 999px;
  font-weight: bold;
  text-decoration: none;
  font-family: var(--font-body);
  min-height: 44px;
  line-height: 1.6;
}
.btn--telegram { background: var(--gold); color: var(--maroon-dark); }
.btn--vk { background: var(--white); color: var(--maroon); }
.btn--max { background: transparent; color: var(--gold); border: 2px solid var(--gold); }
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* Cards / grids */
.stat-grid, .card-grid, .compare-grid, .format-grid, .promo-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin: 1.5rem 0;
}
.stat-card, .card {
  background: var(--white);
  color: var(--charcoal);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  border: 1px solid rgba(199, 154, 62, .25);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
  transition: transform .25s ease, box-shadow .25s ease;
}
.stat-card:hover, .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .15);
}
.section--dark .stat-card, .section--dark .card {
  background: var(--maroon-dark);
  color: var(--cream);
  box-shadow: 0 4px 20px rgba(0, 0, 0, .35);
}
.section--dark .stat-card:hover, .section--dark .card:hover {
  box-shadow: 0 10px 32px rgba(0, 0, 0, .45);
}
.stat-card__number {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--maroon);
}
.section--dark .stat-card__number { color: var(--gold); }
.card h3 { font-size: 1.1rem; margin-bottom: .4rem; }

.compare-card {
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid rgba(199, 154, 62, .25);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
  transition: transform .25s ease, box-shadow .25s ease;
}
.compare-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .15);
}
.compare-card--bad { background: var(--cream-dark); color: var(--charcoal); }
.compare-card--good {
  background: var(--maroon-dark);
  color: var(--cream);
  box-shadow: 0 4px 20px rgba(0, 0, 0, .35);
}
.compare-card--good:hover { box-shadow: 0 10px 32px rgba(0, 0, 0, .45); }
.compare-card h3 { color: var(--gold); }
.compare-card--bad h3 { color: var(--maroon); }

/* Callouts */
.callout {
  background: var(--cream-dark);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}
.section--dark .callout {
  background: var(--maroon-dark);
  border-left-color: var(--gold);
}
.test-callout {
  background: var(--gold);
  color: var(--maroon-dark);
  border-radius: var(--radius);
  padding: 1.25rem;
  font-weight: bold;
  margin: 1.5rem 0;
}

/* Tables */
.table-scroll { overflow-x: auto; margin: 1.5rem 0; }
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
  background: var(--white);
  color: var(--charcoal);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
}
.section--dark table { background: var(--maroon-dark); color: var(--cream); box-shadow: 0 4px 20px rgba(0, 0, 0, .35); }
tbody tr:nth-child(even) { background: rgba(0, 0, 0, .02); }
.section--dark tbody tr:nth-child(even) { background: rgba(255, 255, 255, .03); }
th, td {
  padding: .75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--cream-dark);
}
.section--dark th, .section--dark td { border-bottom: 1px solid var(--maroon); }
th { background: var(--maroon); color: var(--white); font-family: var(--font-heading); }
.section--dark th { background: var(--gold); color: var(--maroon-dark); }

/* Bonus groups */
.bonus-group { margin-bottom: 1.5rem; }
.bonus-group h3 { color: var(--gold); }
.bonus-group ul { padding-left: 1.25rem; }
.bonus-group li { margin-bottom: .5rem; }

/* Example / unit economics boxes */
.example-box {
  background: var(--white);
  color: var(--charcoal);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1.5rem 0;
}
.section--dark .example-box { background: var(--maroon-dark); color: var(--cream); }
.example-box__total {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--maroon);
}
.section--dark .example-box__total { color: var(--gold); }

/* FAQ accordion */
.faq-item { border-bottom: 1px solid var(--maroon-dark); }
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: inherit;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  padding: 1rem 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-answer {
  display: none;
  padding: 0 0 1rem;
}
.faq-item.is-open .faq-answer { display: block; }
.faq-item.is-open .faq-question__icon { transform: rotate(45deg); }
.faq-question__icon { transition: transform .2s; font-size: 1.3rem; color: var(--gold); }

/* Divider */
.divider { display: block; width: 100%; height: 50px; }

/* Footer */
.site-footer {
  background: var(--maroon-dark);
  color: var(--cream);
  text-align: center;
  padding: 2rem 1.25rem;
  font-size: .9rem;
}

/* Responsive */
@media (min-width: 640px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .compare-grid { grid-template-columns: repeat(2, 1fr); }
  .format-grid { grid-template-columns: repeat(2, 1fr); }
  .promo-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 767px) {
  .site-nav__toggle { display: inline-block; }
  .site-nav__list {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--maroon);
    padding: 1rem 1.25rem;
  }
  .site-nav__list.is-open { display: flex; }
  .site-header__inner { position: relative; flex-wrap: wrap; }
}
