/* В. ИИ. Ленин — vlenin.com. Тёмная тема единственная (color-scheme: dark). */

:root {
  --bg-0: #0B0506;
  --bg-1: #150808;
  --haze: #5A0B0B;
  --accent: #EF4444;
  --accent-deep: #C81E1E;
  --paper: #EFE3CF;
  --paper-dim: #B9A99A;
  --line: rgba(239, 227, 207, 0.14);
  --max-w: 1180px;
}

* { box-sizing: border-box; }

html { color-scheme: dark; }

body {
  margin: 0;
  background: var(--bg-0);
  color: var(--paper);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- шапка ---------- */

.site-header {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 20px;
  text-decoration: none;
  color: var(--paper);
}

.header-links {
  display: flex;
  gap: 20px;
  font-size: 15px;
}

.header-links a {
  text-decoration: none;
  color: var(--paper-dim);
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.header-links a:hover,
.header-links a:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 70% at 78% 30%, var(--haze) 0%, transparent 60%),
    radial-gradient(ellipse 45% 55% at 15% 85%, rgba(90, 11, 11, 0.55) 0%, transparent 65%),
    var(--bg-0);
}

.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 32px;
  padding-top: 24px;
  padding-bottom: 40px;
}

.hero-text { position: relative; z-index: 2; }

.eyebrow {
  font-size: 14px;
  color: var(--paper-dim);
  margin: 0 0 10px;
}

h1 {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(40px, 5.4vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.005em;
  margin: 0 0 22px;
  color: var(--paper);
}

.lede {
  font-size: 18px;
  color: var(--paper-dim);
  max-width: 46ch;
  margin: 0 0 30px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 26px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.12s ease, background 0.15s, border-color 0.15s;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent-deep);
  color: var(--paper);
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.35), 0 14px 34px -14px rgba(200, 30, 30, 0.75);
}

.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--accent);
}

.btn-secondary {
  background: transparent;
  color: var(--paper);
  border-color: var(--line);
}

.btn-secondary:hover, .btn-secondary:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-portrait {
  position: relative;
  z-index: 1;
  justify-self: end;
  width: 100%;
  max-width: 400px;
}

.hero-portrait img {
  width: 100%;
  /* портрет не выше окна — иначе текст с кнопкой центрируется по нему и уходит за первый экран */
  max-height: calc(100vh - 150px);
  object-fit: cover;
  object-position: 50% 20%;
  /* края растворяются в дымке, как портрет на обложке, — без «рамки» */
  -webkit-mask-image: radial-gradient(ellipse 50% 52% at 50% 45%, black 50%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 52% at 50% 45%, black 50%, transparent 100%);
}

/* ---------- секции ---------- */

section.block {
  padding: 64px 0;
  border-top: 1px solid var(--line);
}

h2 {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: 0.01em;
  margin: 0 0 34px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  counter-reset: step;
}

.step {
  border-left: 2px solid var(--accent-deep);
  padding-left: 18px;
}

.step-num {
  font-family: "Oswald", sans-serif;
  font-size: 15px;
  color: var(--accent);
  margin-bottom: 8px;
}

.step h3 {
  font-family: "Inter", sans-serif;
  font-size: 19px;
  margin: 0 0 8px;
  color: var(--paper);
}

.step p {
  margin: 0;
  color: var(--paper-dim);
  font-size: 15px;
}

.questions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.q-link {
  display: block;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 4px;
  text-decoration: none;
  color: var(--paper);
  font-size: 16px;
  transition: border-color 0.15s, background 0.15s;
}

.q-link:hover, .q-link:focus-visible {
  border-color: var(--accent);
  background: rgba(239, 68, 68, 0.06);
}

/* ширина строки — у текста, а не у контейнера: иначе блок съезжает от общей левой кромки */
.honest > * {
  max-width: 74ch;
}

.honest p { color: var(--paper-dim); margin: 0 0 16px; }
.honest p:last-child { margin-bottom: 0; }
.honest strong { color: var(--paper); font-weight: 600; }

/* ---------- частые вопросы ---------- */

.faq {
  max-width: 74ch;
}

.faq-item {
  margin-bottom: 28px;
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-item h3 {
  font-family: "Inter", sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--paper);
}

.faq-item p {
  margin: 0;
  color: var(--paper-dim);
  font-size: 16px;
}

/* ---------- транскрипт видео ---------- */

.welcome-transcript {
  max-width: 880px;
  margin-top: 16px;
  color: var(--paper-dim);
  font-size: 15px;
}

.welcome-transcript summary {
  cursor: pointer;
  color: var(--paper);
  font-weight: 600;
}

.welcome-transcript summary:hover,
.welcome-transcript summary:focus-visible {
  color: var(--accent);
}

.welcome-transcript p {
  margin: 12px 0 0;
}

.closing {
  text-align: center;
  padding: 60px 0 72px;
}

.closing p {
  color: var(--paper-dim);
  margin: 0 0 26px;
}

/* ---------- подвал ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 34px 0;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--paper-dim);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-links a {
  color: var(--paper-dim);
  text-decoration: none;
}

.footer-links a:hover, .footer-links a:focus-visible { color: var(--accent); }

/* ---------- страницы политика/условия ---------- */

.legal {
  padding: 56px 0 72px;
  max-width: 76ch;
}

.legal h1 {
  font-size: clamp(30px, 4vw, 44px);
  margin-bottom: 8px;
}

.legal .updated {
  color: var(--paper-dim);
  font-size: 14px;
  margin: 0 0 40px;
}

.legal h2 {
  font-size: 21px;
  margin: 40px 0 14px;
  text-transform: none;
  letter-spacing: normal;
}

.legal p, .legal li {
  color: var(--paper-dim);
  font-size: 16px;
}

.legal strong { color: var(--paper); }

.legal a { color: var(--accent); text-decoration: underline; }

.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 8px; }

/* ---------- приветствие ---------- */

.welcome-lead { color: var(--paper-dim); margin: -8px 0 20px; }

.welcome-video {
  display: block;
  width: 100%;
  max-width: 880px;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--line);
  border-radius: 6px;
}

/* ---------- адаптив ---------- */

@media (max-width: 860px) {
  .hero .container {
    grid-template-columns: 1fr;
    padding-top: 0;
    min-height: 0;
  }

  .hero-portrait {
    order: -1;
    justify-self: stretch;
    max-width: none;
    margin: 0 -24px;
  }

  /* низкая полоса лица, чтобы главная кнопка оставалась на первом экране телефона */
  .hero-portrait img {
    height: 34vh;
    min-height: 220px;
    object-fit: cover;
    object-position: 50% 18%;
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
  }

  .hero-text { padding: 4px 0 40px; text-align: left; }

  .steps { grid-template-columns: 1fr; gap: 24px; }

  .questions { grid-template-columns: 1fr; }

  .site-footer .container { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  h1 { font-size: 38px; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ссылки подвала — цель нажатия не меньше 24px (WCAG 2.5.8, launch-gate 23.09) */
.site-footer a { display: inline-block; padding: 4px 0; min-height: 24px; }
