/* ===== Шрифты (лежат в папке fonts, внешних запросов нет) ===== */
@font-face { font-family: "PT Serif"; font-weight: 400; font-display: swap;
  src: url("fonts/pt-serif-cyrillic-400-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "PT Serif"; font-weight: 400; font-display: swap;
  src: url("fonts/pt-serif-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "PT Serif"; font-weight: 700; font-display: swap;
  src: url("fonts/pt-serif-cyrillic-700-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "PT Serif"; font-weight: 700; font-display: swap;
  src: url("fonts/pt-serif-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "PT Sans"; font-weight: 400; font-display: swap;
  src: url("fonts/pt-sans-cyrillic-400-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "PT Sans"; font-weight: 400; font-display: swap;
  src: url("fonts/pt-sans-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "PT Sans"; font-weight: 700; font-display: swap;
  src: url("fonts/pt-sans-cyrillic-700-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "PT Sans"; font-weight: 700; font-display: swap;
  src: url("fonts/pt-sans-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ===== Цвета и размеры (меняются в одном месте) ===== */
:root {
  --field: #1f2b24;      /* тёмная хвоя: шапка и плита */
  --field-2: #2a3a30;
  --paper: #eef0ec;      /* холодная архивная бумага */
  --sheet: #f8f9f6;
  --ink: #1c2420;        /* основной текст */
  --muted: #56615a;      /* второстепенный текст */
  --brass: #b08a3e;      /* латунь медальона: единственный акцент */
  --brass-light: #d9bd7f;
  --line: #c9cfc8;

  --serif: "PT Serif", Georgia, "Times New Roman", serif;
  --sans: "PT Sans", "Segoe UI", system-ui, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.7rem;
  --step-3: 2.3rem;
  --step-4: clamp(2.4rem, 5vw + 1rem, 4rem);

  --measure: 66ch;
  --gutter: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-color: var(--brass); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--brass); color: var(--field); padding: 8px 14px; z-index: 10; }
.skip:focus { left: 16px; top: 16px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }

/* ===== Шапка ===== */
.top {
  background: var(--field);
  color: var(--paper);
  border-bottom: 1px solid #344539;
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { flex: none; }
.brand span { font-family: var(--serif); font-size: 1.05rem; line-height: 1.2; }
.brand small { display: block; font-family: var(--sans); font-size: var(--step--1); color: #a9b5ad; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: var(--step--1); }
.nav a { text-decoration: none; color: #cdd6cf; padding: 6px 0; }
.nav a:hover { color: var(--brass-light); }

/* ===== Первый экран: памятная плита ===== */
.hero { background: var(--field); color: var(--paper); padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 9vw, 112px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.lenta { display: block; width: min(100%, 420px); height: auto; margin: -8px 0 18px -10px; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: var(--step-4); line-height: 1.08; margin: 0 0 24px; letter-spacing: -0.01em; }
.hero p { color: #c2ccc5; max-width: 34em; margin: 0 0 28px; font-size: 1.12rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-block; padding: 12px 22px; border-radius: 3px; text-decoration: none; font-weight: 700; font-size: var(--step--1); letter-spacing: .02em; }
.btn-main { background: var(--brass); color: var(--field); }
.btn-main:hover { background: var(--brass-light); }
.btn-line { border: 1px solid #5d7064; color: var(--paper); }
.btn-line:hover { border-color: var(--brass-light); color: var(--brass-light); }

.plate {
  background: linear-gradient(160deg, #26352c 0%, #1a251f 100%);
  border: 1px solid #3c5044;
  outline: 1px solid #3c5044;
  outline-offset: 8px;
  padding: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 48px);
  text-align: center;
  margin: 8px;
}
.plate-head { font-family: var(--serif); color: var(--brass-light); font-size: var(--step--1); letter-spacing: .08em; margin: 0 0 22px; }
.plate ol { list-style: none; margin: 0; padding: 0; }
.plate li { padding: 14px 0; border-top: 1px solid #34463b; }
.plate li:first-child { border-top: 0; }
.plate .name {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.2vw + 1rem, 1.6rem);
  color: #e9ece6;
  text-shadow: 0 1px 0 #0e1511, 0 -1px 0 #3b4e42; /* эффект гравировки */
}
.plate .where { display: block; font-size: var(--step--1); color: #93a198; margin-top: 2px; }
.plate-foot { margin: 22px 0 0; font-size: var(--step--1); color: #a9b5ad; line-height: 1.45; }

/* ===== Разделы ===== */
main section { padding: clamp(56px, 8vw, 96px) 0; border-top: 1px solid var(--line); }
main section:first-of-type { border-top: 0; }
.sec { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); }
.sec > header h2 { font-family: var(--serif); font-weight: 700; font-size: var(--step-2); line-height: 1.2; margin: 0; position: sticky; top: 24px; }
.body { max-width: var(--measure); }
.body > :first-child { margin-top: 0; }
.body p { margin: 0 0 1em; }
.lead { font-family: var(--serif); font-size: var(--step-1); line-height: 1.5; }
h3 { font-family: var(--serif); font-size: var(--step-1); margin: 2em 0 .6em; line-height: 1.3; }

/* Чем занимаемся: простой список с латунной чертой */
.duties { list-style: none; padding: 0; margin: 0; }
.duties li { padding: 14px 0 14px 28px; border-bottom: 1px solid var(--line); position: relative; }
.duties li::before { content: ""; position: absolute; left: 0; top: 1.45em; width: 14px; height: 2px; background: var(--brass); }
.duties li:last-child { border-bottom: 0; }

/* Хроника отряда: это настоящая последовательность событий */
.chronicle { list-style: none; margin: 8px 0 0; padding: 0; border-left: 2px solid var(--line); }
.chronicle li { position: relative; padding: 0 0 26px 26px; }
.chronicle li::before { content: ""; position: absolute; left: -7px; top: .45em; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--brass); }
.chronicle time { display: block; font-weight: 700; font-size: var(--step--1); color: var(--muted); }
.chronicle li:last-child { padding-bottom: 0; }

.figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 24px; margin: 28px 0 8px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.figures div { min-width: 0; }
.figures b { display: block; font-family: var(--serif); font-size: var(--step-3); line-height: 1; color: var(--field); }
.figures span { display: block; margin-top: 6px; font-size: var(--step--1); line-height: 1.35; color: var(--muted); }

/* Два пути: шаги */
.paths { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.path { background: var(--sheet); border: 1px solid var(--line); padding: 24px 26px 18px; }
.path h3 { margin-top: 0; }
.path ol { margin: 0; padding-left: 1.2em; }
.path li { margin-bottom: .6em; }

/* Новости */
.news { list-style: none; margin: 0; padding: 0; }
.news li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.news li:first-child { padding-top: 0; }
.news time { font-size: var(--step--1); color: var(--muted); }
.news h3 { margin: 4px 0 6px; font-size: 1.15rem; }
.news p { margin: 0 0 6px; }
.news a.more { font-size: var(--step--1); }

/* Документы и реквизиты */
.docs { list-style: none; margin: 0 0 8px; padding: 0; }
.docs li { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.docs .meta { color: var(--muted); font-size: var(--step--1); }
.req { width: 100%; border-collapse: collapse; font-size: .98rem; margin-top: 4px; }
.req th, .req td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.req th { font-weight: 400; color: var(--muted); width: 38%; }

/* Контакты */
.contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px 40px; }
.contacts h3 { margin: 0 0 6px; font-size: 1.05rem; }
.contacts p { margin: 0; }

/* ===== Подвал ===== */
.foot { background: var(--field); color: #a9b5ad; padding: 40px 0; font-size: var(--step--1); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.foot .motto { font-family: var(--serif); font-size: 1.1rem; color: var(--brass-light); }

/* ===== Мобильная версия ===== */
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .sec { grid-template-columns: 1fr; gap: 16px; }
  .sec > header h2 { position: static; }
  .nav { gap: 2px 16px; }
}
@media (max-width: 480px) {
  .req th { width: 45%; }
  .plate { margin: 8px 6px; }
}

/* Печать: без тёмных заливок */
@media print {
  .top, .hero, .foot { background: none; color: #000; }
  .plate { background: none; }
  .nav, .actions, .skip { display: none; }
}

/* ===== Новость с видео ===== */
.news-feature h3 { font-size: var(--step-1); }
.video { margin: 12px 0 20px; }
.video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--field); border: 1px solid var(--line); }
.video figcaption { margin-top: 6px; line-height: 1.35; font-size: var(--step--1); color: var(--muted); }
.news blockquote { margin: 20px 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--brass); }
.news blockquote p { font-family: var(--serif); font-size: 1.12rem; line-height: 1.55; margin: 0 0 8px; }
.news blockquote footer { font-size: var(--step--1); color: var(--muted); }
