:root {
  --accent: #8b6cf5;
  --accent-hover: #7a5ce8;
  --text: #ffffff;
  --text-dim: rgba(255, 255, 255, 0.78);
  --text-faint: rgba(255, 255, 255, 0.5);
  --line: rgba(255, 255, 255, 0.14);
  --line-bright: rgba(255, 255, 255, 0.28);
  --card-bg: rgba(20, 22, 45, 0.7);
  --card-bg-hover: rgba(30, 32, 60, 0.8);
}

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

html,
body {
  height: 100%;
}

body {
  font-family: "Inter", sans-serif;
  color: #ffffff;
  background-color: #0f172a;
  /* Fallback color */
  background-image: url("./assets/background.webp");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

/* ═══════════════════════════════════════════════════
ШАПКА: компактный заголовок проекта
═══════════════════════════════════════════════════ */
.top-bar {
  padding: 28px 48px;
  display: flex;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  background: rgba(15, 18, 40, 0.35);
}

.top-bar .logo-mark {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.top-bar .logo-mark svg {
  width: 62px;
  height: 62px;
  color: #fff;
}

.top-bar h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.top-bar h1 small {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0;
  margin-top: 4px;
}

/* ═══════════════════════════════════════════════════
ОСНОВНОЙ КОНТЕНТ
═══════════════════════════════════════════════════ */
main {
  flex: 1;
  padding: 56px 48px 40px;
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
}

/* ─── HERO ─────────────────────────────────────────── */
.hero {
  text-align: center;
  margin-bottom: 48px;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
  padding: 56px 24px;
  position: relative;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: var(--accent);
}
.hero::before {
  top: 16px;
}
.hero::after {
  bottom: 16px;
}

.hero h2 {
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: #fff;
  text-shadow:
    0 2px 20px rgba(0, 0, 0, 0.6),
    0 0 30px rgba(0, 0, 0, 0.4);
}

.hero h2 span {
  color: #e8dfff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
}

.hero p {
  font-size: 16px;
  line-height: 1.6;
  color: #fff;
  max-width: 680px;
  margin: 0 auto;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

/* ─── КАРТОЧКИ АУДИТОРИЙ ──────────────────────────── */
.audience {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 36px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px 28px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease;
}

.card:hover {
  background: var(--card-bg-hover);
  border-color: var(--line-bright);
  transform: translateY(-3px);
}

.card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--accent);
  border: 1px solid var(--accent);
  box-shadow: 0 4px 16px rgba(139, 108, 245, 0.4);
  display: grid;
  place-items: center;
  color: #fff;
  flex-shrink: 0;
}
.card-icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 2;
}

.card-title {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: start;
}

.feature-bullet {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(139, 108, 245, 0.2);
  border: 1px solid var(--accent);
  display: grid;
  place-items: center;
  margin-top: 3px;
  flex-shrink: 0;
}

.feature-bullet::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.feature-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 3px;
}

.feature-desc {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-dim);
}

/* ─── БЛОК «КАК ЭТО РАБОТАЕТ» ─────────────────────── */
.steps {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px 32px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  margin-bottom: 36px;
}

.steps-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.steps-head h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.steps-head .hint {
  font-size: 13px;
  color: var(--text-faint);
}

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

.step {
  display: flex;
  gap: 14px;
  align-items: start;
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}

.step h4 {
  font-size: 14.5px;
  font-weight: 600;
  margin-bottom: 4px;
}

.step p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-dim);
}

/* ─── CTA ─────────────────────────────────────────── */
.cta {
  text-align: center;
  padding: 12px 0 8px;
}

.cta p {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text);
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 44px;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 220px;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ═══════════════════════════════════════════════════
ФУТЕР: сетка карточек документов
═══════════════════════════════════════════════════ */
footer.docs-footer {
  margin-top: auto;
  padding: 28px 48px 32px;
  background: rgba(15, 18, 40, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-top: 1px solid var(--line);
}

.docs-footer-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  text-align: center;
  margin-bottom: 16px;
}

.docs-footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 900px;
  margin: 0 auto;
}

.doc-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(139, 108, 245, 0.06);
  border: 1px solid rgba(139, 108, 245, 0.18);
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.doc-card:hover {
  background: rgba(139, 108, 245, 0.12);
  border-color: rgba(139, 108, 245, 0.4);
}

.doc-card-icon {
  width: 28px;
  height: 28px;
  background: rgba(139, 108, 245, 0.15);
  border-radius: 6px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--accent);
}

.doc-card-icon svg {
  width: 15px;
  height: 15px;
}

.doc-card-name {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.35;
  flex: 1;
}

.doc-card-dl {
  color: var(--accent);
  flex-shrink: 0;
  opacity: 0.7;
  display: grid;
  place-items: center;
}

.doc-card-dl svg {
  width: 13px;
  height: 13px;
}

/* ─── АДАПТИВ ─────────────────────────────────────── */
@media (max-width: 900px) {
  .top-bar {
    padding: 20px 20px;
    gap: 14px;
  }
  .top-bar .logo-mark {
    width: 44px;
    height: 44px;
  }
  .top-bar .logo-mark svg {
    width: 24px;
    height: 24px;
  }
  .top-bar h1 {
    font-size: 20px;
  }
  .top-bar h1 small {
    font-size: 13px;
  }
  main {
    padding: 36px 20px 24px;
  }
  .hero {
    margin-bottom: 32px;
  }
  .hero h2 {
    font-size: 26px;
  }
  .audience {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 24px;
  }
  .card {
    padding: 22px 20px;
  }
  .steps {
    padding: 22px 20px;
    margin-bottom: 28px;
  }
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .cta-actions {
    flex-direction: column;
  }
  .btn {
    width: 100%;
    min-width: 0;
  }
  footer.docs-footer {
    padding: 20px 20px 24px;
  }
  .docs-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .docs-footer-grid {
    grid-template-columns: 1fr;
  }
}
