/* =========================================================
   98 ВДД — стили лендинга и страницы «Спасибо»
   ========================================================= */

/* ---------- Шрифт Inter (OFL, fonts/LICENSE.txt) ---------- */
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/inter-regular.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/inter-medium.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/inter-semibold.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/inter-bold.woff") format("woff"); }

/* ---------- Переменные ---------- */
:root {
  --green: #97bc52;        /* меню */
  --green-dark: #5d7f22;   /* текст/иконки на белом */
  --green-faq: #41b920;    /* «Вопрос» */
  --accent: #ffd014;       /* кнопки, номера шагов */
  --accent-hover: #f0c000;
  --text: #111;
  --muted: #555;
  --gray-bg: #ebebeb;
  --line: #c5c5c5;
  --error: #c62828;
  --radius: 12px;
  --header-h: 100px;
  --container: 1200px;
  --gutter: 20px;
  --section: 150px;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  color: var(--text);
  background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[id] { scroll-margin-top: 20px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 36px;
  border: 0; border-radius: 30px;
  font-size: 16px; font-weight: 700; text-decoration: none;
  cursor: pointer; transition: background-color .2s, transform .2s;
}
.btn--accent { background: var(--accent); color: #000; }
.btn--accent:hover { background: var(--accent-hover); }
.btn:active { transform: translateY(1px); }
.btn--block { width: 100%; }
.btn--sm { min-height: 44px; padding: 0 26px; font-size: 15px; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* ---------- Шапка ---------- */
.header { background: var(--green); color: #fff; position: relative; z-index: 10; }
.header__inner {
  display: flex; align-items: center; gap: 30px;
  height: var(--header-h); max-width: 1440px; margin: 0 auto; padding: 0 40px;
}
.header__logo img { max-height: 80px; width: auto; }
.nav { flex: 1; }
.nav ul { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 30px; }
.nav a {
  font-size: 16px; font-weight: 600; text-decoration: none;
  padding: 6px 0; border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav a:hover, .nav a:focus-visible { color: var(--accent); border-color: var(--accent); }
.header__burger { display: none; }

/* ---------- Обложки на весь экран ---------- */
.cover {
  position: relative; color: #fff;
  background: #2b2f24 center / cover no-repeat;
  min-height: 100vh; min-height: 100svh;
}
.cover::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .4); }
.cover > * { position: relative; }

/* ---------- Первый экран ---------- */
.hero { background-image: url("../images/top-banner.png"); min-height: calc(100svh - var(--header-h)); display: flex; align-items: center; }
.hero__inner { display: grid; grid-template-columns: 7fr 4fr; gap: 8%; align-items: center; padding-top: 60px; padding-bottom: 60px; }
.hero__title { font-size: 62px; line-height: 1.15; font-weight: 700; }
.hero__note { margin-top: 24px; font-size: 22px; opacity: .9; }

.card { background: rgba(255, 255, 255, .92); color: var(--text); border-radius: var(--radius); padding: 36px 32px; }
.card__title { font-size: 22px; line-height: 1.3; font-weight: 700; margin-bottom: 24px; }

/* ---------- Формы ---------- */
.form { display: grid; gap: 14px; }
.field { display: block; }
.input {
  width: 100%; min-height: 56px; padding: 14px 18px;
  font: inherit; font-size: 17px; color: #000;
  background: #fff; border: 2px solid #999; border-radius: 8px;
  transition: border-color .2s;
}
.input--filled { background: #f0f0f0; border-color: #f0f0f0; }
.input::placeholder { color: rgba(0, 0, 0, .5); }
.input:focus { outline: none; border-color: var(--green-dark); }
.input[aria-invalid="true"] { border-color: var(--error); }
textarea.input { min-height: 110px; resize: vertical; }
.form__error { color: var(--error); font-size: 15px; font-weight: 500; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Секции ---------- */
.section { padding: var(--section) 0; }
.section--pt { padding: var(--section) 0 0; }
.section--lg { padding: 180px 0; }
.section--sm { padding: 90px 0; }
.section--gray { background: var(--gray-bg); }
.section__head { text-align: center; max-width: 760px; margin: 0 auto 90px; }
.section__head--left { text-align: left; max-width: none; }
.section__title { font-size: 42px; line-height: 1.2; font-weight: 700; text-transform: uppercase; }
.section__descr { margin: 24px auto 0; max-width: 560px; font-size: 20px; color: var(--muted); }

/* ---------- Табы ---------- */
.tabs { display: grid; grid-template-columns: 5fr 7fr; gap: 40px; align-items: center; }
.tabs--reverse { grid-template-columns: 7fr 5fr; }
.tabs--reverse .tabs__list { order: 2; }
.tabs__list { display: grid; gap: 14px; }
.tabs__tab {
  display: block; width: 100%; text-align: left; cursor: pointer;
  padding: 22px 26px; background: none;
  border: 2px solid transparent; border-radius: var(--radius);
  transition: border-color .2s, background-color .2s;
}
.tabs__tab:hover { background: #f6f6f6; }
.tabs__tab[aria-selected="true"] { border-color: var(--line); background: #fff; }
.tabs__name { display: block; font-size: 24px; line-height: 1.25; font-weight: 700; }
.tabs__descr { display: block; margin-top: 8px; font-size: 16px; color: var(--muted); }
.tabs__panel img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }

/* ---------- О дивизии ---------- */
.about__title { font-size: 18px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--green-dark); margin-bottom: 24px; }
.about__text { font-size: 26px; line-height: 1.5; }

/* ---------- Полки ---------- */
.regiments { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; text-align: center; }
.regiment img { width: 100%; max-width: 240px; aspect-ratio: 1; object-fit: contain; margin: 0 auto 24px; }
.regiment h3 { font-size: 18px; line-height: 1.35; font-weight: 600; }

/* ---------- Участие в СВО ---------- */
.svo { background-image: url("../images/sturm.jpg"); display: flex; align-items: flex-end; }
.svo::before { background: linear-gradient(transparent 55%, rgba(0, 0, 0, .65)); }
.svo .container { padding-bottom: 80px; }
.svo__text { font-size: 40px; line-height: 1.2; font-weight: 700; max-width: 760px; }

/* ---------- Преимущества ---------- */
.adv { display: grid; gap: 80px; }
.adv__item { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.adv__item:nth-child(even) .adv__img { order: 2; }
.adv__img { width: 100%; max-width: 600px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); justify-self: center; }
.adv__text { max-width: 500px; }
.adv__text h3 { font-size: 26px; line-height: 1.25; font-weight: 700; margin-bottom: 16px; }
.adv__text p { font-size: 17px; color: var(--muted); }
.adv__text .btn { margin-top: 24px; }

/* ---------- Льготы ---------- */
.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 60px; }
.checklist li { position: relative; padding-left: 50px; font-size: 19px; line-height: 1.4; font-weight: 500; min-height: 30px; display: flex; align-items: center; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 50%; translate: 0 -50%;
  width: 30px; height: 30px; background: var(--green-dark);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M31.43 3.49c.44-.75.36-1.59-.23-2.01-.29-.21-.66-.27-1.02-.16-.35.11-.66.37-.91.74L25.73 7.5C23.27 11.29 17.09 20.85 14.71 24.72c-.98-1-2.68-2.73-3.68-3.66C8.16 18.37 5.2 15.88 2.05 13.23a1.03 1.03 0 0 0-1.35.1c-.3.31-.47.9-.07 1.4 0 0 11.13 12.08 13.28 14.59.35.43.88.52 1.31.45.42-.07.87-.31 1.11-.71C21.47 20.6 26.5 12.15 31.43 3.49Z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M31.43 3.49c.44-.75.36-1.59-.23-2.01-.29-.21-.66-.27-1.02-.16-.35.11-.66.37-.91.74L25.73 7.5C23.27 11.29 17.09 20.85 14.71 24.72c-.98-1-2.68-2.73-3.68-3.66C8.16 18.37 5.2 15.88 2.05 13.23a1.03 1.03 0 0 0-1.35.1c-.3.31-.47.9-.07 1.4 0 0 11.13 12.08 13.28 14.59.35.43.88.52 1.31.45.42-.07.87-.31 1.11-.71C21.47 20.6 26.5 12.15 31.43 3.49Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Шаги ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px 40px; counter-reset: step; }
.steps li { counter-increment: step; display: flex; gap: 20px; align-items: flex-start; font-size: 22px; line-height: 1.3; font-weight: 600; }
.steps li::before {
  content: counter(step); flex: 0 0 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: #000; font-size: 17px; font-weight: 700;
}

/* ---------- Вопрос-ответ ---------- */
.faq { max-width: 1000px; margin: 0 auto; display: grid; gap: 30px; }
.faq__bubble { position: relative; padding: 30px 36px; border-radius: 20px; font-size: 20px; line-height: 1.5; max-width: 85%; }
.faq__bubble--q { background: var(--green-faq); color: #fff; border-bottom-left-radius: 4px; }
.faq__bubble--a { background: #eee; justify-self: end; border-bottom-right-radius: 4px; }
.faq__label { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; opacity: .85; }

/* ---------- Видео ---------- */
.video { position: relative; max-width: 960px; margin: 0 auto; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #1d2116; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__play {
  position: absolute; inset: 0; width: 100%; border: 0; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  background: radial-gradient(circle at center, #3a4428, #1d2116); color: #fff; font-size: 18px; font-weight: 600;
}
.video__play svg { width: 84px; height: 84px; transition: transform .2s; }
.video__play circle { fill: var(--accent); }
.video__play path { fill: #000; }
.video__play:hover svg { transform: scale(1.08); }
.video noscript a { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; }

/* ---------- Контакты ---------- */
.contacts { display: grid; grid-template-columns: 6fr 5fr; gap: 60px; align-items: start; }
.contacts__label { font-size: 16px; color: var(--muted); margin-bottom: 10px; }
.contacts__phones { margin-bottom: 36px; }
.contacts__phones a { font-size: 32px; line-height: 1.4; font-weight: 600; text-decoration: none; }
.contacts__phones a:hover { color: var(--green-dark); }
.social { display: flex; gap: 14px; }
.social a { display: block; width: 44px; height: 44px; transition: transform .2s; }
.social a:hover { transform: scale(1.1); }
.social svg { width: 100%; height: 100%; fill: #000; }
.social img { width: 50px; }
.contacts__form .btn { justify-self: start; }

/* ---------- Подвал ---------- */
.footer { padding: 30px 0; font-size: 14px; color: var(--muted); }

/* ---------- Страница «Спасибо» ---------- */
.thanks { padding: 100px 0 120px; }
.thanks__box { max-width: 760px; }
.thanks__title { font-size: 48px; line-height: 1.15; font-weight: 700; margin-bottom: 20px; }
.thanks__lead { font-size: 22px; color: var(--muted); margin-bottom: 50px; }
.thanks h2 { font-size: 26px; font-weight: 700; margin: 44px 0 16px; }
.thanks .steps { grid-template-columns: 1fr; gap: 24px; }
.thanks .steps li { font-size: 19px; font-weight: 500; }
.thanks .checklist { grid-template-columns: 1fr; gap: 14px; }
.thanks .checklist li { font-size: 18px; }
.thanks__back { margin-top: 50px; }

/* ---------- Появление блоков (только при включённом JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   Адаптив
   ========================================================= */
@media (max-width: 1200px) {
  :root { --section: 120px; }
  .hero__title { font-size: 52px; }
  .nav ul { gap: 6px 20px; }
  .nav a { font-size: 15px; }
}

@media (max-width: 960px) {
  :root { --section: 90px; --header-h: 72px; }
  .section--lg { padding: 120px 0; }
  .section__head { margin-bottom: 45px; }
  .section__title { font-size: 32px; }

  /* Мобильное меню */
  .header__inner { padding: 0 var(--gutter); justify-content: space-between; }
  .header__logo img { max-height: 56px; }
  .header__burger {
    display: flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 44px; height: 44px; padding: 10px; background: none; border: 0; cursor: pointer;
  }
  .header__burger span { display: block; height: 3px; background: #fff; border-radius: 2px; transition: transform .25s, opacity .25s; }
  .header__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  .header__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .header__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--green); display: none; box-shadow: 0 10px 20px rgba(0, 0, 0, .15); }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: 10px var(--gutter) 20px; }
  .nav a { display: block; padding: 12px 0; font-size: 18px; border: 0; }

  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__title { font-size: 42px; }
  .hero__form { max-width: 520px; }

  .tabs, .tabs--reverse { grid-template-columns: 1fr; gap: 24px; }
  .tabs__panels { order: -1; }
  .tabs--reverse .tabs__list { order: 0; }
  .tabs__name { font-size: 20px; }

  .regiments { grid-template-columns: repeat(2, 1fr); }
  .about__text { font-size: 22px; }
  .svo__text { font-size: 32px; }

  .adv { gap: 60px; }
  .adv__item { grid-template-columns: 1fr; gap: 24px; }
  .adv__item:nth-child(even) .adv__img { order: 0; }
  .adv__text { max-width: none; }

  .checklist { grid-template-columns: 1fr; gap: 20px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .contacts { grid-template-columns: 1fr; gap: 40px; }
  .faq__bubble { max-width: 100%; }
}

@media (max-width: 640px) {
  :root { --section: 70px; --gutter: 16px; }
  body { font-size: 16px; }
  .section--lg { padding: 80px 0; }
  .section--sm { padding: 60px 0; }
  .section__title { font-size: 26px; }
  .section__descr { font-size: 17px; }
  .hero__title { font-size: 34px; }
  .hero__note { font-size: 17px; }
  .card { padding: 26px 20px; }
  .card__title { font-size: 19px; }
  .about__text { font-size: 19px; }
  .svo .container { padding-bottom: 50px; }
  .svo__text { font-size: 26px; }
  .adv__text h3 { font-size: 21px; }
  .adv__text p { font-size: 16px; }
  .checklist li { font-size: 17px; padding-left: 44px; }
  .checklist li::before { width: 26px; height: 26px; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .steps li { font-size: 19px; }
  .faq__bubble { padding: 22px 22px; font-size: 17px; }
  .contacts__phones a { font-size: 26px; }
  .contacts__form .btn { justify-self: stretch; }
  .thanks { padding: 60px 0 80px; }
  .thanks__title { font-size: 34px; }
  .thanks__lead { font-size: 18px; }
}

@media (max-width: 480px) {
  .hero__title { font-size: 29px; }
  .regiments { gap: 30px 16px; }
  .regiment h3 { font-size: 15px; }
  .tabs__tab { padding: 16px 18px; }
}

@media (max-width: 375px) {
  .hero__title { font-size: 26px; }
  .section__title { font-size: 23px; }
  .btn { padding: 0 24px; }
}

.about {
  display: flex;
  flex-direction: column;   /* мобильные: текст сверху, картинка снизу */
  gap: 24px;
}

.about__media {
  margin: 0;                /* у figure есть отступы по умолчанию */
}

.about__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;       /* по желанию */
}

/* от планшета и шире: в две колонки */
@media (min-width: 768px) {
  .about {
    flex-direction: row;
    align-items: center;    /* картинка по центру высоты текста; flex-start — по верху */
    gap: 40px;
  }

  .about__content {
    flex: 1 1 55%;
  }

  .about__media {
    flex: 1 1 45%;
  }
}