/* ============================================================
   Воевода — лендинг партнёрской программы
   Палитра и геометрия по ТЗ (референс 1280×720)
   ============================================================ */

:root {
  --bg:        #030B05;
  --bg-green:  #06190A;
  --card:      #09200C;
  --card-alt:  #0A210D;
  --card-lt:   #102E16;
  --btn:       #456B10;
  --btn-hover: #527A12;
  --accent:    #9B8518;
  --text:      #F2F4F0;
  --text-2:    #C3CBC1;
  --text-3:    #8F9A8D;
  --border:    rgba(129, 151, 113, 0.18);
  --radius:    4px;
  --tr:        200ms ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Roboto Condensed", "PT Sans Narrow", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ---------- иконки ---------- */
.ico {
  width: 20px; height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  border-radius: var(--radius);
  transition: background var(--tr), border-color var(--tr), color var(--tr);
  white-space: nowrap;
}
.btn--primary {
  background: var(--btn);
  color: var(--text);
}
.btn--primary:hover { background: var(--btn-hover); }
.btn--ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--accent); }
.btn--ghost .ico { width: 16px; height: 16px; stroke: var(--text-2); }

/* ---------- заголовки секций ---------- */
.section-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ============================================================
   ШАПКА
   ============================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 64px;
  background: linear-gradient(to bottom, rgba(3, 11, 5, 0.55), rgba(3, 11, 5, 0));
  transition: background var(--tr);
}
.header.is-fixed {
  background: rgba(3, 11, 5, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.header__logo {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text);
  margin-right: auto;
}
.header__nav {
  display: flex;
  gap: 26px;
}
.header__nav a {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--text-2);
  transition: color var(--tr);
}
.header__nav a:hover { color: var(--text); }
.header__cta { height: 38px; padding: 0 18px; font-size: 11px; }

.burger { display: none; width: 40px; height: 40px; position: relative; }
.burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  margin: 5px auto;
  transition: transform var(--tr), opacity var(--tr);
}
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   ГЛАВНЫЙ ЭКРАН
   ============================================================ */
.hero {
  position: relative;
  min-height: 350px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: url("../assets/img/hero.jpg") center 25% / cover no-repeat;
  background-image: image-set(
    url("../assets/img/hero.webp") type("image/webp"),
    url("../assets/img/hero.jpg") type("image/jpeg")
  );
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(3, 14, 6, 0.88) 0%, rgba(3, 14, 6, 0.45) 32%, rgba(3, 14, 6, 0.05) 55%, rgba(3, 14, 6, 0.35) 78%, rgba(3, 14, 6, 0.55) 100%),
    linear-gradient(to bottom, rgba(3, 11, 5, 0.55) 0%, rgba(3, 11, 5, 0) 28%, rgba(3, 11, 5, 0.08) 72%, rgba(3, 11, 5, 0.5) 100%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-top: 108px;
  padding-bottom: 24px;
}
.hero__text { max-width: 640px; }
.hero__title {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero__subtitle {
  margin-top: 14px;
  font-size: 15px;
  font-weight: 400;
  color: var(--text-2);
  line-height: 1.5;
}
.hero__actions {
  margin-top: 26px;
  display: flex;
  gap: 12px;
}
.hero__actions .btn--primary { min-width: 150px; }

/* --- карточки героя --- */
.hero__cards {
  display: flex;
  gap: 9px;
  flex: 0 0 auto;
}
.hcard {
  width: 196px;
  min-height: 256px;
  background: rgba(9, 32, 12, 0.82);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 19px 18px;
  display: flex;
  flex-direction: column;
  transition: background var(--tr);
}
.hcard:hover { background: rgba(13, 40, 17, 0.86); }
.hcard--program { width: 216px; }
.hcard__title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hcard__sub {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-2);
}
.hcard__list {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  flex: 1;
}
.hcard__list li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 12px;
  line-height: 1.35;
  color: var(--text-2);
}
.hcard__list .ico { width: 17px; height: 17px; margin-top: 1px; }
.hcard__more {
  margin-top: 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hcard__more .arr { transition: transform var(--tr); }
.hcard__more:hover .arr { transform: translateX(4px); }
.hcard__steps {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  flex: 1;
}
.hcard__steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-2);
}
.hcard__steps .ico { width: 17px; height: 17px; }
.hcard__steps span:nth-child(2) { flex: 1; }
.hcard__steps .arr {
  color: var(--accent);
  transition: transform var(--tr);
}
.hcard__steps li:hover .arr { transform: translateX(4px); }
.hcard__btn {
  margin-top: 12px;
  width: 100%;
  height: 38px;
  font-size: 11px;
}

/* ============================================================
   ПОЛОСА ПРЕИМУЩЕСТВ
   ============================================================ */
.benefits {
  background: var(--bg-green);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 16px 0 18px;
  margin-top: 4px;
}
.benefits__title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.benefits__row {
  display: flex;
}
.benefits__row li {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border-right: 1px solid var(--border);
  font-size: 12px;
  line-height: 1.35;
  color: var(--text-2);
}
.benefits__row li:first-child { padding-left: 0; }
.benefits__row li:last-child { border-right: none; }
.benefits__row .ico {
  width: 26px; height: 26px;
  padding: 0;
  transition: filter var(--tr);
}
.benefits__row li:hover .ico { filter: brightness(1.35); }

/* ============================================================
   НИЖНИЙ РЯД КАРТОЧЕК
   ============================================================ */
.grid4 {
  margin-top: 6px;
  padding-bottom: 6px;
}
.grid4__row {
  display: grid;
  grid-template-columns: 25fr 24fr 18fr 33fr;
  gap: 8px;
  align-items: stretch;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 18px;
  min-height: 244px;
  display: flex;
  flex-direction: column;
  transition: background var(--tr);
}
.card:hover { background: var(--card-alt); }
.card__title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* --- отзывы --- */
.reviews {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.reviews li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.reviews img {
  width: 45px; height: 45px;
  border-radius: 4px;
  object-fit: cover;
  flex: 0 0 auto;
}
.reviews p {
  font-size: 12px;
  line-height: 1.4;
  color: var(--text);
}
.reviews__name {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: var(--accent);
}

/* --- новости --- */
.news {
  display: flex;
  flex-direction: column;
  gap: 13px;
  flex: 1;
}
.news li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.news img {
  width: 78px; height: 48px;
  border-radius: 3px;
  object-fit: cover;
  flex: 0 0 auto;
}
.news__link {
  font-size: 12px;
  line-height: 1.35;
  color: var(--text);
  transition: color var(--tr);
  display: block;
}
.news__link:hover { color: var(--accent); }
.news time {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: var(--accent);
}
.card__allnews {
  margin-top: 14px;
  height: 34px;
  font-size: 11px;
  align-self: flex-start;
  padding: 0 16px;
}

/* --- призыв --- */
.card--cta { background: var(--card-lt); }
.card--cta:hover { background: #12331a; }
.card__title--big {
  font-size: 16px;
  line-height: 1.3;
  margin-bottom: 8px;
}
.card__sub {
  font-size: 12px;
  color: var(--text-2);
  margin-bottom: 14px;
}
.card--cta .btn { align-self: flex-start; height: 40px; font-size: 11px; }
.cta-points {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.cta-points li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-2);
}
.dot-ico {
  width: 18px; height: 18px;
  flex: 0 0 auto;
  display: inline-flex;
}
.dot-ico svg {
  width: 18px; height: 18px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --- наши партнёры --- */
.card--partners {
  padding: 0;
  position: relative;
  overflow: hidden;
  background: url("../assets/img/partners.jpg") center / cover no-repeat;
}
.card--partners::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(3, 11, 5, 0.8) 0%, rgba(3, 11, 5, 0.1) 35%, rgba(3, 11, 5, 0.12) 70%, rgba(3, 11, 5, 0.55) 100%),
    linear-gradient(to right, rgba(3, 11, 5, 0) 60%, rgba(3, 11, 5, 0.45) 100%);
}
.card--partners .card__title {
  position: relative;
  z-index: 1;
  padding: 18px;
  margin: 0;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq {
  background: var(--bg);
  padding: 56px 0;
}
.faq__inner { max-width: 880px; }
.faq .section-title { margin-bottom: 24px; }
.faq__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.faq details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 18px;
  font-size: 14px;
  font-weight: 500;
  transition: color var(--tr);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq__plus {
  position: relative;
  width: 16px; height: 16px;
  flex: 0 0 auto;
}
.faq__plus::before, .faq__plus::after {
  content: "";
  position: absolute;
  background: var(--accent);
  transition: transform 250ms ease;
}
.faq__plus::before { left: 0; top: 7px; width: 16px; height: 2px; }
.faq__plus::after { left: 7px; top: 0; width: 2px; height: 16px; }
.faq details[open] .faq__plus::after { transform: rotate(90deg); }
.faq__body {
  overflow: hidden;
  padding: 0 18px 15px;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
}
.faq details[open] .faq__body { animation: faqOpen 250ms ease; }
@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   ФОРМА
   ============================================================ */
.apply {
  background: var(--bg-green);
  border-top: 1px solid var(--border);
  padding: 56px 0;
}
.apply__inner { max-width: 720px; }
.apply__sub {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-2);
}
.form { margin-top: 24px; }
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.form__field { display: flex; flex-direction: column; }
.form__field label {
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 6px;
}
.form__field input,
.form__field select {
  height: 44px;
  padding: 0 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  transition: border-color var(--tr);
}
.form__field input:focus,
.form__field select:focus {
  outline: none;
  border-color: var(--accent);
}
.form__field input.is-error { border-color: #a33f2e; }
.form__error {
  display: none;
  margin-top: 5px;
  font-size: 11px;
  color: #d0674f;
}
.form__error.is-visible { display: block; }
.form__hp { position: absolute; left: -9999px; opacity: 0; height: 0; }
.form__agree {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12px;
  color: var(--text-3);
  cursor: pointer;
  margin-top: 4px;
}
.form__agree input {
  margin-top: 2px;
  width: 15px; height: 15px;
  accent-color: var(--btn);
  flex: 0 0 auto;
}
.form__agree a { color: var(--accent); text-decoration: underline; }
.form__submit {
  margin-top: 18px;
  min-width: 200px;
}
.form__submit:disabled { opacity: 0.55; cursor: default; }
.form__status {
  margin-top: 12px;
  font-size: 13px;
  color: var(--accent);
  display: none;
}
.form__status.is-visible { display: block; }
.form__status.is-error { color: #d0674f; }

/* ============================================================
   ПОДВАЛ
   ============================================================ */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 40px 0 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 28px;
}
.footer__logo {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.footer__desc {
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.5;
  max-width: 320px;
}
.footer__nav, .footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer__nav a, .footer__contacts a {
  font-size: 12px;
  color: var(--text-2);
  transition: color var(--tr);
}
.footer__nav a:hover, .footer__contacts a:hover { color: var(--accent); }
.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  padding-bottom: 14px;
  font-size: 11px;
  color: var(--text-3);
}

/* ============================================================
   МОДАЛЬНОЕ ОКНО
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
}
.modal.is-open { display: block; }
.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(1, 5, 2, 0.75);
}
.modal__window {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(680px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--bg-green);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 28px;
  animation: modalIn 200ms ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translate(-50%, -48%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}
.modal__close {
  position: absolute;
  top: 14px; right: 14px;
  width: 32px; height: 32px;
  color: var(--text-3);
  font-size: 16px;
  transition: color var(--tr);
}
.modal__close:hover { color: var(--text); }

/* ============================================================
   АНИМАЦИЯ ПОЯВЛЕНИЯ
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 300ms ease, transform 300ms ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* focus-видимость */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ============================================================
   АДАПТИВ
   ============================================================ */

/* Десктоп 1024–1439 */
@media (max-width: 1279px) {
  .container { padding-left: 28px; padding-right: 28px; }
  .header__nav { gap: 16px; }
  .hero__title { font-size: 30px; }
}

/* Планшет 768–1023 */
@media (max-width: 1023px) {
  .header__nav, .header__cta { display: none; }
  .burger { display: block; }
  .header__nav.is-open {
    display: flex;
    position: fixed;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(3, 11, 5, 0.97);
    border-bottom: 1px solid var(--border);
    padding: 8px 0 12px;
  }
  .header__nav.is-open a {
    padding: 12px 28px;
    font-size: 13px;
  }
  .hero { min-height: 0; }
  .hero__bg { background-image: url("../assets/img/hero-1024.webp"); }
  .hero__inner {
    flex-direction: column;
    padding-top: 96px;
    padding-bottom: 32px;
  }
  .hero__cards { width: 100%; }
  .hcard, .hcard--program { flex: 1; width: auto; }
  .benefits__row { flex-wrap: wrap; row-gap: 14px; }
  .benefits__row li {
    flex: 1 1 33%;
    border-right: none;
    padding: 0;
  }
  .grid4__row { grid-template-columns: 1fr 1fr; }
  .card--partners { min-height: 220px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

/* Мобильный 360–767 */
@media (max-width: 767px) {
  .container { padding-left: 16px; padding-right: 16px; }
  body { font-size: 14px; }
  .hero__bg {
    background-position: center 20%;
    background-image: url("../assets/img/hero-mobile.jpg");
    background-image: image-set(
      url("../assets/img/hero-mobile.webp") type("image/webp"),
      url("../assets/img/hero-mobile.jpg") type("image/jpeg")
    );
  }
  .hero__title { font-size: 26px; }
  .hero__subtitle br { display: none; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .hero__cards { flex-direction: column; }
  .hcard { min-height: 0; }
  .benefits__row li { flex: 1 1 100%; font-size: 13px; }
  .benefits__row li br { display: none; }
  .grid4__row { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .card--partners { min-height: 240px; }
  .reviews p, .news__link, .hcard__list li, .hcard__steps li { font-size: 14px; }
  .form__row { grid-template-columns: 1fr; }
  .form__submit { width: 100%; }
  .footer__grid { grid-template-columns: 1fr; gap: 24px; }
  .modal__window {
    width: 100vw;
    height: 100vh;
    max-height: none;
    top: 0; left: 0;
    transform: none;
    border-radius: 0;
    border: none;
  }
  @keyframes modalIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
}
