/* Лендинг «Русский Вектор» — тёмная палитра согласована с веб-чатом агента. */

:root {
  --bg: #0a0b10;
  --bg-soft: #0d0f15;
  --panel: #12141c;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.12);
  --text: #e9ebf0;
  --muted: #8d93a1;
  --faint: #5d6371;
  --gold: #d9b26a;
  --gold-soft: #f2d493;
  --gold-deep: #a97f3b;
  --crimson: #d0524a;
  --radius: 16px;
  --font-display: Georgia, "Times New Roman", "Liberation Serif", serif;
  --font-ui: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1100px 520px at 50% -8%, rgba(217, 178, 106, 0.13), transparent 65%),
    radial-gradient(700px 420px at 85% 110%, rgba(208, 82, 74, 0.07), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.page {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(48px, 9vh, 96px) 0 40px;
  flex: 1;
}

/* ——— Шапка ——— */

.hero {
  text-align: center;
  animation: rise 0.9s ease both;
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 7vw, 68px);
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--gold-soft);
  text-shadow: 0 2px 28px rgba(217, 178, 106, 0.22);
}

.hero-title::after {
  content: "";
  display: block;
  width: 96px;
  height: 2px;
  margin: 26px auto 0;
  background: linear-gradient(90deg, var(--gold-soft), var(--crimson));
  border-radius: 2px;
}

.hero-sub {
  margin: 22px 0 0;
  font-family: var(--font-display);
  font-size: clamp(19px, 2.8vw, 26px);
  font-weight: 400;
  line-height: 1.3;
  color: var(--text);
  opacity: 0.92;
}

.tagline {
  margin: 26px auto 0;
  max-width: 720px;
  font-size: 18px;
  color: var(--muted);
}

.lead {
  margin: 22px auto 0;
  max-width: 640px;
  font-family: var(--font-display);
  font-size: 17px;
  font-style: italic;
  color: var(--text);
  opacity: 0.92;
}

/* ——— Принципы ——— */

.pillars {
  margin-top: clamp(48px, 8vh, 80px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  animation: rise 0.9s 0.15s ease both;
}

.pillar {
  padding: 22px 22px 24px;
  background: linear-gradient(180deg, var(--panel), var(--bg-soft));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.pillar:hover {
  border-color: rgba(217, 178, 106, 0.35);
  transform: translateY(-2px);
}

.pillar h2 {
  margin: 0 0 10px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.pillar p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

/* ——— Финал ——— */

.closing {
  margin: clamp(56px, 9vh, 88px) auto 0;
  max-width: 560px;
  text-align: center;
  animation: rise 0.9s 0.3s ease both;
}

.closing-line {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.closing-line::after {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  margin: 18px auto 0;
  background: linear-gradient(90deg, var(--gold-soft), var(--crimson));
  border-radius: 2px;
}

.closing-sub {
  margin: 18px 0 0;
  font-size: 15px;
  color: var(--muted);
}

/* ——— Подвал ——— */

.footer {
  border-top: 1px solid var(--border);
  background: rgba(10, 11, 16, 0.6);
  padding: 26px 24px 30px;
  text-align: center;
}

.footer-org {
  margin: 0;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-note {
  margin: 10px auto 0;
  max-width: 560px;
  font-size: 13px;
  color: var(--faint);
}

.footer-contact {
  margin: 14px 0 0;
  font-size: 14px;
}

.footer-contact a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(217, 178, 106, 0.35);
}

.footer-contact a:hover {
  color: var(--gold-soft);
  border-bottom-color: var(--gold-soft);
}

/* ——— Декор и доступность ——— */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero,
  .pillars,
  .closing {
    animation: none;
  }

  .pillar {
    transition: none;
  }
}

@media (max-width: 560px) {
  .page {
    width: calc(100% - 32px);
  }

  .tagline {
    font-size: 16px;
  }

  .lead {
    font-size: 15px;
  }
}