/* ===========================
   Bilion — Unified Stylesheet
   =========================== */

/* Box sizing & base reset */
*,
*::before,
*::after { box-sizing: border-box; }

html { 
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

:root {
  /* Design tokens */
  --bg: #000; /* сохранили черный фон как в оригинале */
  --surface: #16181d;
  --text: #ffffff;
  --muted: #b8c0cc;
  --primary: #ffcc00;            /* кнопка CTA (желтая) */
  --primary-contrast: #000000;
  --accent: #cc66ff;             /* фиолетовый акцент заголовка */
  --ring: 0 0 0 3px rgba(204,102,255,.35);

  --container: 960px;
  --radius: 10px;

  /* Fluid type & spacing */
  --fs-hero: clamp(32px, 4vw + 12px, 56px);
  --fs-h3: clamp(20px, 1.2vw + 14px, 26px);
  --fs-body: clamp(16px, .5vw + 12px, 18px);
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
}

/* Base typography */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  font-size: var(--fs-body);
  line-height: 1.6;
}

/* Links */
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }

/* Containers */
.content {
  max-width: var(--container);
  margin: auto;
  padding: 40px 20px;
  margin-top: 100px;
}

/* ===========================
   Hero Section
   =========================== */

.hero {
  background-image: url('background.jpg');
  background-size: cover;
  background-position: center;
  height: 100vh;
  position: relative;
  text-align: center;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.hero .overlay {
  background: rgba(0, 0, 0, 0.6);
  height: 100%;
  width: 100%;
  max-width: var(--container);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  border-radius: var(--radius);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

h1 {
  font-size: 3em;
  margin-bottom: 0.5em;
  color: var(--accent);
  text-shadow: 0 0 10px var(--accent);
  line-height: 1.1;
}

@media (max-width: 768px) {
  h1 { font-size: 2em; }
}

/* ===========================
   Buttons
   =========================== */

.btn,
.hero .cta-button {
  display: inline-block;
  padding: 1em 2em;
  background-color: var(--primary);
  color: var(--primary-contrast);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  margin-top: 1rem;
  transition: all 0.15s ease-in-out;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(255, 204, 0, 0.3);
}

.btn:hover,
.hero .cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(255, 204, 0, 0.5);
}

.btn:active,
.hero .cta-button:active {
  transform: translateY(0);
}

.btn:focus-visible,
.hero .cta-button:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

/* ===========================
   Headings & Paragraphs
   =========================== */

h3 {
  font-size: var(--fs-h3);
  margin-top: var(--space-5);
  color: var(--accent);
}

p {
  margin: 0 0 var(--space-3);
  color: var(--text);
}

p.lead {
  font-size: 1.3em;
  margin-bottom: 1em;
}

/* ===========================
   Lists
   =========================== */

ul, ol {
  padding-left: 1.2rem;
  margin: 0 0 var(--space-4);
}
li { margin: 6px 0; color: var(--muted); }
li::marker { color: var(--accent); }

/* ===========================
   FAQ & Content formatting
   =========================== */

.content p strong {
  display: inline-block;
  margin-bottom: 2px;
  color: var(--text);
}

.content p + p strong {
  margin-top: var(--space-2);
}

.content h3 + ul,
.content h3 + ol,
.content h3 + p { margin-top: var(--space-3); }

/* ===========================
   Responsive adjustments
   =========================== */

@media (max-width: 900px) {
  .content { padding: 32px 16px; margin-top: 64px; }
  .hero .overlay { padding: var(--space-4); }
}

@media (max-width: 600px) {
  .hero { height: auto; min-height: 56vh; padding: 48px 16px; }
  .hero .overlay { padding: 20px; }
  .hero p { margin-bottom: 12px; }
  .btn, .hero .cta-button { font-size: 1em; padding: 0.8em 1.6em; }
}

/* ===========================
   Accessibility & Motion
   =========================== */

:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 8px; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ===========================
   Print
   =========================== */

@media print {
  body { background: #fff; color: #000; }
  .hero { background: none; padding: 0; height: auto; }
  .hero .overlay { box-shadow: none; border: none; backdrop-filter: none; }
  a { color: #000; text-decoration: underline; }
  .btn, .cta-button { display: none !important; }
}
footer {
  text-align: center;
  padding: 40px 20px;
  background: #0e0f12; /* или var(--bg), если используется общий дизайн Bilion */
  color: #b8c0cc;
  font-size: 0.95em;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

footer p {
  margin: 0;
  color: inherit;
}

@media (max-width: 600px) {
  footer {
    padding: 30px 16px;
    font-size: 0.9em;
  }
}