:root {
  --bg: #e9eef1;
  --surface: #f6f9fa;
  --fg: #10191e;
  --muted: #55646d;
  --border: #c5d2d8;
  --accent: #c4511b;
  --accent-on: #ffffff;
  --font-display: "Unbounded", "Arial Black", sans-serif;
  --font-body: "Golos Text", "Segoe UI", sans-serif;
  --radius: 4px;
  --space-section: 104px;
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

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

a { color: inherit; }

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
  overflow-wrap: anywhere;
}

h1 { font-size: clamp(2.2rem, 6.5vw, 4.4rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.05rem, 2vw, 1.3rem); }

p { margin: 0 0 1em; }

.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 20px;
}

.section { padding-block: var(--space-section); }
.section--tight { padding-block: calc(var(--space-section) * 0.6); }

/* ---------- Шапка ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(233, 238, 241, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.wordmark {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.wordmark__ribbon {
  display: inline-flex;
  width: 26px;
  height: 10px;
  transform: skewX(-12deg);
  background: linear-gradient(90deg, #1f4e79 0 33.33%, #f2f5f6 33.33% 66.66%, #b03a2e 66.66% 100%);
  flex: none;
}

.nav { display: flex; align-items: center; gap: 22px; }

.nav a {
  font-size: 0.95rem;
  text-decoration: none;
  padding-block: 8px;
  border-bottom: 2px solid transparent;
}

.nav a:hover { border-bottom-color: var(--accent); }

.nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--fg);
  font: inherit;
  font-size: 0.85rem;
  padding: 10px 12px;
  min-height: 44px;
  cursor: pointer;
}

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  background: var(--accent);
  color: var(--accent-on);
  transition: background-color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.btn:hover { background: #a8420f; }
.btn:active { transform: translateY(1px); }

.btn--ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--fg);
}

.btn--ghost:hover { background: rgba(16, 25, 30, 0.06); }

.btn--light {
  background: var(--surface);
  color: var(--fg);
}

.btn--light:hover { background: #ffffff; }

.btn[disabled] { opacity: 0.6; cursor: progress; }

/* ---------- Первый экран ---------- */

.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  padding-block: 96px 56px;
  color: #f4f7f8;
  background: #17222a;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 16, 20, 0.55) 0%, rgba(10, 16, 20, 0.2) 38%, rgba(10, 16, 20, 0.88) 100%);
}

.hero__inner { position: relative; max-width: 880px; }

.hero h1 { margin-bottom: 0.35em; }

.hero__lede {
  font-size: clamp(1.02rem, 2vw, 1.22rem);
  max-width: 60ch;
  color: #dbe4e8;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero__note {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(244, 247, 248, 0.28);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  font-size: 0.92rem;
  color: #c3ced3;
}

.hero__note b {
  font-family: var(--font-display);
  font-weight: 700;
  color: #f4f7f8;
}

/* ---------- Служебная полоса ---------- */

.strip {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.strip__list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.strip__list li {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.strip__list li:last-child { border-bottom: 0; }

.strip__key {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 4px;
}

/* ---------- Направления ---------- */

.head {
  display: grid;
  gap: 18px;
  margin-bottom: 56px;
}

.head__num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--accent);
}

.head p {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.04rem;
}

.dirs { display: grid; gap: 0; }

.dir {
  display: grid;
  gap: 24px;
  padding-block: 44px;
  border-top: 1px solid var(--border);
  align-items: start;
}

.dir:last-child { border-bottom: 1px solid var(--border); }

.dir__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #cfd9de;
  overflow: hidden;
}

.dir__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dir__body { min-width: 0; }

.dir__title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.dir__index {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--accent);
}

.dir__body p { color: #2c3941; }

.dir__list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.dir__list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  align-items: start;
  color: #35434b;
}

.dir__list li::before {
  content: "";
  width: 9px;
  height: 9px;
  margin-top: 9px;
  background: var(--accent);
  transform: rotate(45deg);
}

.dir__cta {
  display: inline-block;
  margin-top: 20px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}

.dir__cta:hover { color: var(--accent); }

/* ---------- Альтаир ---------- */

.altair {
  background: #16212a;
  color: #e7edf0;
}

.altair h2, .altair h3 { color: #f6f9fa; }

.altair p { color: #c5d1d6; }

.altair__grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

.altair__emblem {
  background: #f6f9fa;
  padding: 26px;
  display: flex;
  justify-content: center;
}

.altair__emblem img { width: min(340px, 100%); }

.altair__lead {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  color: #eef4f6;
  border-left: 3px solid var(--accent);
  padding-left: 20px;
  margin-bottom: 28px;
}

.roles {
  display: grid;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  border-top: 1px solid #33434e;
}

.roles li {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #33434e;
}

.roles b {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
}

.roles span { color: #b9c6cc; }

.roles--light { border-top-color: var(--border); }
.roles--light li { grid-template-columns: 1fr; gap: 4px; }
.roles--light li { border-bottom-color: var(--border); }
.roles--light b { color: var(--fg); }
.roles--light span { color: var(--muted); }
.roles--light a { color: var(--accent); }
.roles--light span { white-space: normal; }
.roles--light li > span { min-width: 0; }
.roles--light a:hover { color: #a8420f; }

.hymn {
  margin-top: 34px;
  padding: 26px 28px;
  background: #1f2c36;
  border-left: 3px solid #b03a2e;
}

.hymn p {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1rem, 2.1vw, 1.2rem);
  line-height: 1.5;
  color: #f2f6f7;
  margin: 0 0 10px;
}

.hymn cite {
  font-style: normal;
  font-size: 0.86rem;
  color: #9fb0b8;
}

/* ---------- Помощь ---------- */

.two-col {
  display: grid;
  gap: 44px;
  align-items: start;
}

.prose { max-width: 66ch; }

.prose p { color: #2c3941; }

.prose h3 { margin-top: 1.6em; }

.faq { border-top: 1px solid var(--border); }

.faq details {
  border-bottom: 1px solid var(--border);
  padding-block: 18px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.02rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  align-items: center;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--accent);
  flex: none;
}

.faq details[open] summary::after { content: "−"; }

.faq p { color: var(--muted); margin: 12px 0 0; }

/* ---------- Формы ---------- */

.form-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
}

.field { display: grid; gap: 6px; margin-bottom: 18px; }

.field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #2c3941;
}

.field input,
.field select,
.field textarea {
  font: inherit;
  color: var(--fg);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  min-height: 48px;
  width: 100%;
}

.field textarea { min-height: 120px; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.field__hint { font-size: 0.8rem; color: var(--muted); }

.consent {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 0 18px;
}

.consent a { color: var(--accent); }

.form-status {
  margin: 16px 0 0;
  font-size: 0.92rem;
  min-height: 1.2em;
}

.form-status--ok { color: #1c6b3c; font-weight: 600; }
.form-status--err { color: #a3271b; font-weight: 600; }

.grid-2 { display: grid; gap: 0 18px; }

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

.footer {
  background: #16212a;
  color: #c5d1d6;
  padding-block: 56px 32px;
}

.footer h3 { color: #f2f6f7; font-size: 1rem; }

.footer__grid {
  display: grid;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid #33434e;
}

.footer a { text-decoration: none; }

.footer a:hover { color: #ffffff; text-decoration: underline; }

.footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: 0.95rem;
}

.footer__bottom {
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #93a3ab;
}

.placeholder {
  color: inherit;
  border-bottom: 1px dotted #93a3ab;
}

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

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }

  .strip__list { grid-template-columns: repeat(3, 1fr); gap: 26px; }

  .strip__list li { border-bottom: 0; }

  .dir { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; }

  .dir:nth-child(even) .dir__media { order: 2; }

  .altair__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }

  .footer__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767px) {
  :root { --space-section: 72px; }

  .nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 20px 18px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
  }

  .nav.is-open { display: flex; }

  .nav a {
    padding: 12px 0;
    width: 100%;
    border-bottom: 1px solid var(--border);
  }

  .nav__toggle { display: inline-block; }

  .roles li { grid-template-columns: 1fr; gap: 4px; }

  .hero { min-height: 70vh; padding-block: 64px 40px; }
}

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

/* ---------- автор ---------- */
.author { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 28px; align-items: start; }
.author img { width: 100%; border-radius: 4px; display: block; }
.author__text p { color: #2c3941; margin: 0 0 14px; }
@media (max-width: 720px) {
  .author { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .author img { max-width: 320px; }
}

/* ---------- поле: видео ---------- */
.field__video { margin: 0; max-width: 420px; }
.field__video video { width: 100%; display: block; border-radius: 4px; background: #0d1418; }
.field__video figcaption { margin-top: 12px; font-size: 0.9rem; color: #55646d; }

/* ---------- пресс-страница: логотипы ---------- */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.logo-card {
  margin: 0;
  padding: 28px 24px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.logo-card--light { background: #ffffff; }

.logo-card img {
  width: min(200px, 70%);
  aspect-ratio: 1;
  object-fit: contain;
}

.logo-card figcaption {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--fg);
}

.logo-card .btn {
  padding: 8px 18px;
  font-size: 0.82rem;
}

@media (max-width: 860px) {
  .logo-grid { grid-template-columns: 1fr; }
}

.press-contacts b { color: var(--fg); }
