/* ===== Variables ===== */
:root {
  --bg: #080808;
  --bg-card: #121212;
  --bg-section-alt: #0e0e0e;
  --red: #e31e24;
  --red-bright: #ff2d35;
  --red-dark: #b0151a;
  --red-glow: rgba(227, 30, 36, 0.45);
  --text: #f0f0f0;
  --text-muted: #a0a0a0;
  --border: rgba(227, 30, 36, 0.25);
  --radius: 14px;
  --radius-sm: 10px;
  --header-h: 60px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --font: 'Montserrat', system-ui, -apple-system, sans-serif;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  padding-bottom: calc(24px + var(--safe-bottom));
}

a {
  color: var(--red-bright);
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ===== Background glow ===== */
.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, var(--red-glow) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 60%, rgba(227, 30, 36, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 50% 30% at 0% 80%, rgba(227, 30, 36, 0.08) 0%, transparent 45%);
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 8, 8, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 16px;
  max-width: 480px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.02em;
}

.logo__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  border-radius: 8px;
  font-size: 16px;
  color: #fff;
  box-shadow: 0 4px 12px var(--red-glow);
}

.logo__accent {
  color: var(--red-bright);
}

.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 8px;
  transition: border-color 0.2s, background 0.2s;
}

.burger span {
  display: block;
  height: 2px;
  background: var(--red-bright);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.burger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.is-open span:nth-child(2) {
  opacity: 0;
}

.burger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav {
  display: none;
  flex-direction: column;
  padding: 8px 16px 16px;
  max-width: 480px;
  margin: 0 auto;
  gap: 4px;
  border-top: 1px solid var(--border);
}

.nav.is-open {
  display: flex;
}

.nav a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}

.nav a:hover,
.nav a:focus {
  color: var(--text);
  background: rgba(227, 30, 36, 0.1);
}

/* ===== Main layout ===== */
main {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ===== Hero ===== */
.hero {
  padding: 28px 0 36px;
  animation: fadeUp 0.6s ease-out;
}

.hero__badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red-bright);
  background: rgba(227, 30, 36, 0.15);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.hero__title {
  font-size: clamp(1.5rem, 5.5vw, 1.85rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff 30%, var(--red-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__lead,
.hero__text {
  color: var(--text-muted);
  margin-bottom: 14px;
  font-size: 14px;
}

.hero__text {
  margin-bottom: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-weight: 700;
  font-size: 14px;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--red-bright), var(--red-dark));
  box-shadow: 0 6px 24px var(--red-glow);
  width: 100%;
  margin-bottom: 24px;
}

.btn--primary:active {
  transform: scale(0.98);
}

.hero__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.mini-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
}

.mini-card__icon {
  font-size: 22px;
}

.mini-card__label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.3;
}

/* ===== Sections ===== */
.section {
  padding: 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  animation: fadeUp 0.5s ease-out both;
}

.section--alt {
  background: var(--bg-section-alt);
  margin: 0 -16px;
  padding-left: 16px;
  padding-right: 16px;
  border-radius: var(--radius);
}

.section__header {
  margin-bottom: 20px;
}

.section__num {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: var(--red);
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.section__title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
}

.section__subtitle {
  font-weight: 600;
  color: var(--text);
  margin: 18px 0 12px;
  font-size: 14px;
}

.section__text {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 12px;
}

.section__text--muted {
  font-size: 13px;
  opacity: 0.9;
}

/* ===== Cards ===== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--text-muted);
}

.card--highlight {
  border-left: 3px solid var(--red);
  background: linear-gradient(90deg, rgba(227, 30, 36, 0.08), var(--bg-card));
}

.card--live {
  background: linear-gradient(135deg, rgba(227, 30, 36, 0.12), var(--bg-card));
  margin-top: 16px;
}

.card__subtitle {
  font-size: 1rem;
  font-weight: 700;
  color: var(--red-bright);
  margin-bottom: 8px;
}

/* ===== Lists ===== */
.list {
  list-style: none;
  margin-bottom: 16px;
}

.list--bullets li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.list--bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--red-glow);
}

.list--grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.list--grid li {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
}

/* ===== Access grid ===== */
.access-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.access-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  color: var(--text);
  transition: border-color 0.2s, transform 0.2s;
}

.access-item:active {
  transform: scale(0.97);
  border-color: var(--red);
}

.access-item--wide {
  grid-column: 1 / -1;
}

.access-item__icon {
  font-size: 24px;
}

/* ===== Tip & warning boxes ===== */
.tip-box,
.warning-box {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.tip-box {
  background: rgba(227, 30, 36, 0.08);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.warning-box {
  background: rgba(255, 193, 7, 0.08);
  border: 1px solid rgba(255, 193, 7, 0.25);
  color: var(--text-muted);
  margin-top: 8px;
}

.warning-box__icon {
  font-size: 18px;
  flex-shrink: 0;
}

/* ===== Checklist ===== */
.checklist {
  list-style: none;
  margin-bottom: 16px;
}

.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 14px;
  color: var(--text-muted);
}

.checklist li:last-child {
  border-bottom: none;
}

.checklist__mark {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 50%;
}

/* ===== Steps ===== */
.steps {
  list-style: none;
  counter-reset: step;
  margin-bottom: 20px;
}

.steps li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  font-size: 14px;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.steps__num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 2px solid var(--red);
  color: var(--red-bright);
  font-size: 12px;
  font-weight: 800;
  border-radius: 50%;
}

/* ===== Bonus cards ===== */
.bonus-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.bonus-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 12px;
  background: linear-gradient(160deg, rgba(227, 30, 36, 0.2), var(--bg-card));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  min-height: 90px;
}

.bonus-card--wide {
  grid-column: 1 / -1;
  min-height: auto;
  padding: 14px;
}

.bonus-card__value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--red-bright);
  line-height: 1;
  margin-bottom: 4px;
}

.bonus-card__desc {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

/* ===== Tags ===== */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.tag {
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text);
}

/* ===== FAQ ===== */
.section--faq {
  padding-bottom: 48px;
}

.faq {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq__item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq__question {
  padding: 16px 44px 16px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  position: relative;
  user-select: none;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question::after {
  content: '+';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(227, 30, 36, 0.2);
  color: var(--red-bright);
  border-radius: 50%;
  font-size: 18px;
  font-weight: 400;
  transition: transform 0.3s, background 0.3s;
}

.faq__item[open] .faq__question::after {
  content: '−';
  background: var(--red);
  color: #fff;
}

.faq__answer {
  padding: 0 16px 16px;
}

.faq__answer p {
  font-size: 14px;
  color: var(--text-muted);
}

/* ===== Footer ===== */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 24px 16px calc(24px + var(--safe-bottom));
  border-top: 1px solid var(--border);
  max-width: 480px;
  margin: 0 auto;
}

.footer__domain {
  font-weight: 700;
  font-size: 14px;
  color: var(--red-bright);
  margin-bottom: 6px;
}

.footer__note {
  font-size: 11px;
  color: var(--text-muted);
  opacity: 0.7;
}

/* ===== To top button ===== */
.to-top {
  position: fixed;
  bottom: calc(20px + var(--safe-bottom));
  right: 20px;
  z-index: 90;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--red-bright), var(--red-dark));
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px var(--red-glow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ===== Animations ===== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stagger sections on scroll via JS class */
.section.is-visible {
  animation: fadeUp 0.5s ease-out both;
}

/* ===== Tablet+ (still mobile-first, slightly wider) ===== */
@media (min-width: 481px) {
  .header__inner,
  main,
  .nav,
  .footer {
    max-width: 520px;
  }

  .hero__title {
    font-size: 2rem;
  }

  .btn--primary {
    width: auto;
  }
}
