/* ===========================================================================
   Сайт проекта «Модернизация оросительных систем»
   Оформление в строгом стиле государственных информационных ресурсов
   Республики Таджикистан
   =========================================================================== */

/* --- Переменные ---------------------------------------------------------- */
:root {
  --green:        #0f6b3f;
  --green-dark:   #0a4f2e;
  --green-darker: #073a22;
  --green-bright: #018943;
  --green-pale:   #eef4f0;
  --gold:         #e0a800;
  --gold-soft:    #fff7e0;
  --red:          #b3182c;
  --blue:         #14568f;

  --ink:      #16211c;
  --ink-soft: #3b4a42;
  --muted:    #62726a;
  --line:     #dde4e0;
  --line-2:   #eaefec;
  --bg:       #f3f6f4;
  --white:    #ffffff;

  --wrap:  1240px;
  --gap:   24px;
  --radius: 2px;

  --font: 'Roboto', 'Segoe UI', 'Noto Sans', Tahoma, Arial, sans-serif;
  --fs-base: 16px;

  --shadow-sm: 0 1px 2px rgba(7, 58, 34, .08);
  --shadow-md: 0 2px 10px rgba(7, 58, 34, .10);
}

/* --- Сброс --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { font-size: var(--fs-base); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.62;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .6em; line-height: 1.25; font-weight: 700; color: var(--ink); }
h1 { font-size: 1.95rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.05rem; }
p  { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.35em; }
li { margin-bottom: .35em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
mark { background: #fff2a8; color: inherit; padding: 0 .15em; }

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

/* --- Служебные ----------------------------------------------------------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--gold); color: #000;
  padding: 10px 18px; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ===========================================================================
   Верхняя служебная панель
   =========================================================================== */
.topbar {
  background: var(--green-darker);
  color: rgba(255, 255, 255, .88);
  font-size: .8125rem;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 38px; flex-wrap: wrap;
}
.topbar__note { margin: 0; letter-spacing: .02em; }
.topbar__tools { display: flex; align-items: center; gap: 6px; }

.topbar__btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: none; border: 0; cursor: pointer;
  color: inherit; font: inherit; padding: 6px 10px;
  border-radius: var(--radius);
}
.topbar__btn svg { width: 15px; height: 15px; fill: currentColor; }
.topbar__btn:hover { background: rgba(255, 255, 255, .12); }

.langbar { display: flex; border-left: 1px solid rgba(255, 255, 255, .22); margin-left: 6px; }
.langbar__item {
  color: rgba(255, 255, 255, .8);
  padding: 8px 12px; font-weight: 600; letter-spacing: .04em;
  text-decoration: none;
}
.langbar__item:hover { background: rgba(255, 255, 255, .12); color: #fff; text-decoration: none; }
.langbar__item.is-active { background: var(--gold); color: #241c00; }

/* ===========================================================================
   Шапка
   =========================================================================== */
.masthead { background: var(--white); border-bottom: 3px solid var(--green); }
.masthead__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; padding-top: 18px; padding-bottom: 18px;
}

.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; color: inherit; min-width: 0; flex: 1 1 auto; }
.brand:hover { text-decoration: none; }
.brand__emblem { flex: none; width: 62px; height: 62px; }
.brand__text { display: flex; flex-direction: column; min-width: 0; }
.brand__kicker {
  font-size: .6875rem; text-transform: uppercase; letter-spacing: .07em;
  color: var(--muted); font-weight: 600; line-height: 1.35;
}
.brand__name {
  font-size: 1.3rem; font-weight: 800; color: var(--green-darker);
  line-height: 1.2; margin: 3px 0 2px; letter-spacing: -.01em;
}
.brand__sub { font-size: .8125rem; color: var(--ink-soft); }

.masthead__aside { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex: 0 0 auto; }

/* Логотип Евразийского фонда стабилизации и развития */
.masthead__efsd {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  flex: 0 0 auto; padding: 0 22px;
  border-left: 1px solid var(--line); border-right: 1px solid var(--line);
  text-decoration: none;
}
.masthead__efsd:hover { text-decoration: none; }
.masthead__efsd img { height: 52px; width: auto; }
.masthead__efsd-label {
  font-size: .625rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); text-align: center; line-height: 1.3;
}

.sitesearch { display: flex; width: 320px; max-width: 100%; }
.sitesearch input {
  flex: 1; min-width: 0;
  border: 1px solid var(--line); border-right: 0;
  padding: 9px 12px; font: inherit; font-size: .875rem;
  background: #fbfcfb; border-radius: var(--radius) 0 0 var(--radius);
}
.sitesearch input:focus { outline: none; border-color: var(--green); background: #fff; }
.sitesearch button {
  border: 0; background: var(--green); color: #fff;
  padding: 0 14px; cursor: pointer; border-radius: 0 var(--radius) var(--radius) 0;
}
.sitesearch button svg { width: 17px; height: 17px; fill: currentColor; }
.sitesearch button:hover { background: var(--green-dark); }

.burger { display: none; background: none; border: 0; cursor: pointer; padding: 10px; }
.burger span { display: block; width: 26px; height: 3px; background: var(--green-darker); margin: 5px 0; }

/* ===========================================================================
   Главное меню
   =========================================================================== */
.mainnav { background: var(--green); border-bottom: 1px solid var(--green-dark); }
.mainnav__list {
  display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0;
}
.mainnav__item { position: relative; }
.mainnav__item > a {
  display: block; color: rgba(255, 255, 255, .95);
  padding: 13px 15px; font-size: .8125rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .035em; text-decoration: none;
  border-right: 1px solid rgba(255, 255, 255, .14);
}
.mainnav__item:first-child > a { border-left: 1px solid rgba(255, 255, 255, .14); }
.mainnav__item > a:hover { background: var(--green-dark); text-decoration: none; }
.mainnav__item.is-active > a { background: var(--green-darker); box-shadow: inset 0 -3px 0 var(--gold); }

.submenu {
  position: absolute; top: 100%; left: 0; z-index: 40;
  min-width: 260px; margin: 0; padding: 6px 0; list-style: none;
  background: var(--white); border: 1px solid var(--line);
  border-top: 3px solid var(--gold); box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .14s, transform .14s, visibility .14s;
}
.mainnav__item.has-sub:hover > .submenu,
.mainnav__item.has-sub:focus-within > .submenu {
  opacity: 1; visibility: visible; transform: none;
}
.submenu a {
  display: block; padding: 9px 16px; font-size: .875rem; color: var(--ink);
  text-decoration: none;
}
.submenu a:hover { background: var(--green-pale); color: var(--green-dark); text-decoration: none; }

/* ===========================================================================
   Хлебные крошки
   =========================================================================== */
.breadcrumbs { background: var(--white); border-bottom: 1px solid var(--line); font-size: .8125rem; }
.breadcrumbs ol {
  display: flex; flex-wrap: wrap; gap: 6px;
  list-style: none; margin: 0; padding: 10px 0;
}
.breadcrumbs li { margin: 0; color: var(--muted); }
.breadcrumbs li + li::before { content: '›'; margin-right: 8px; color: var(--line); }
.breadcrumbs a { color: var(--green); }

/* ===========================================================================
   Базовые блоки страниц
   =========================================================================== */
.main { display: block; }

.section { padding: 44px 0; }
.section--tight { padding: 30px 0; }
.section--pale { background: var(--white); }
.section--grey  { background: var(--bg); }

.page { background: var(--white); }
.page__body { padding: 34px 0 54px; }

.page-head { background: var(--white); border-bottom: 1px solid var(--line); padding: 28px 0 24px; }
.page-head h1 { margin: 0 0 8px; }
.page-head__lead { margin: 0; color: var(--ink-soft); max-width: 74ch; font-size: 1.0625rem; }

/* Заголовок раздела с золотой чертой */
.sec-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  margin: 0 0 22px; padding-bottom: 12px;
  border-bottom: 2px solid var(--line);
}
.sec-head h2 {
  margin: 0; font-size: 1.4rem; position: relative; padding-left: 14px;
}
.sec-head h2::before {
  content: ''; position: absolute; left: 0; top: .15em; bottom: .15em;
  width: 4px; background: var(--gold);
}
.sec-head__more { font-size: .875rem; font-weight: 600; white-space: nowrap; }
.sec-head__more::after { content: ' →'; }

/* Двухколоночная сетка «контент + боковая колонка» */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.layout--reverse { grid-template-columns: 300px minmax(0, 1fr); }

.aside-box {
  background: var(--white); border: 1px solid var(--line);
  border-top: 3px solid var(--green); margin-bottom: 22px;
}
.aside-box__head {
  margin: 0; padding: 13px 18px; font-size: .875rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
  background: var(--green-pale); color: var(--green-darker);
  border-bottom: 1px solid var(--line);
}
.aside-box__body { padding: 16px 18px; font-size: .9375rem; }
.aside-box__body > :last-child { margin-bottom: 0; }

.sidenav { list-style: none; margin: 0; padding: 0; }
.sidenav li { margin: 0; border-bottom: 1px solid var(--line-2); }
.sidenav li:last-child { border-bottom: 0; }
.sidenav a {
  display: block; padding: 11px 18px; font-size: .9375rem; color: var(--ink);
  text-decoration: none; border-left: 3px solid transparent;
}
.sidenav a:hover { background: var(--green-pale); text-decoration: none; }
.sidenav .is-active > a {
  border-left-color: var(--gold); background: var(--green-pale);
  color: var(--green-darker); font-weight: 600;
}
.sidenav__num {
  float: right; font-size: .75rem; font-weight: 700;
  background: var(--green-pale); color: var(--green-dark); padding: 1px 8px;
}

/* Подраздел внутри страницы */
.subsection { margin-bottom: 46px; scroll-margin-top: 20px; }
.subsection:last-child { margin-bottom: 0; }

/* ===========================================================================
   Главная: заглавный блок
   =========================================================================== */
.hero {
  background: linear-gradient(120deg, var(--green-darker) 0%, var(--green) 62%, #147a4c 100%);
  color: #fff; position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cpath d='M0 60c20-18 40-18 60 0s40 18 60 0' fill='none' stroke='%23ffffff' stroke-opacity='.07' stroke-width='2'/%3E%3Cpath d='M0 90c20-18 40-18 60 0s40 18 60 0' fill='none' stroke='%23ffffff' stroke-opacity='.05' stroke-width='2'/%3E%3Cpath d='M0 30c20-18 40-18 60 0s40 18 60 0' fill='none' stroke='%23ffffff' stroke-opacity='.05' stroke-width='2'/%3E%3C/svg%3E");
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; padding: 52px 0 46px; max-width: 860px; }
.hero__kicker {
  display: inline-block; font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  background: var(--gold); color: #241c00; padding: 5px 12px; margin-bottom: 18px;
}
.hero h1 { color: #fff; font-size: 2.3rem; margin-bottom: 14px; letter-spacing: -.015em; }
.hero__lead { font-size: 1.15rem; color: rgba(255, 255, 255, .92); margin-bottom: 26px; max-width: 62ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Плитки показателей */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stat { background: var(--white); padding: 22px 18px; display: flex; flex-direction: column; }
.stat__value { font-size: 1.95rem; font-weight: 800; color: var(--green); line-height: 1.1; }
.stat__value--text { font-size: 1.2rem; line-height: 1.25; }
.stat__label { font-size: .8125rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-top: 6px; }
.stat__sub   { font-size: .8125rem; color: var(--ink-soft); margin-top: 4px; }

/* ===========================================================================
   Кнопки
   =========================================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 22px; font-size: .9375rem; font-weight: 600;
  border: 2px solid transparent; border-radius: var(--radius);
  cursor: pointer; text-decoration: none; font-family: inherit;
  transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--gold); border-color: var(--gold); color: #241c00; }
.btn--primary:hover { background: #c99700; border-color: #c99700; }
.btn--ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .14); border-color: #fff; }
.btn--green { background: var(--green); border-color: var(--green); color: #fff; }
.btn--green:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn--outline { border-color: var(--green); color: var(--green); background: transparent; }
.btn--outline:hover { background: var(--green-pale); }
.btn--sm { padding: 7px 14px; font-size: .8125rem; }
.btn--block { display: flex; justify-content: center; width: 100%; }
.btn svg { width: 16px; height: 16px; fill: currentColor; flex: none; }

/* ===========================================================================
   Новости
   =========================================================================== */
.newsgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }

.newscard {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line);
  transition: box-shadow .15s, border-color .15s;
}
.newscard:hover { box-shadow: var(--shadow-md); border-color: #c9d6cf; }
.newscard__media { display: block; position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--green-pale); }
.newscard__media img { width: 100%; height: 100%; object-fit: cover; }
.newscard__body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.newscard__title { font-size: 1.0625rem; margin: 0 0 8px; line-height: 1.35; }
.newscard__title a { color: var(--ink); }
.newscard__title a:hover { color: var(--green); }
.newscard__text { font-size: .9rem; color: var(--ink-soft); margin: 0 0 14px; }
.newscard__foot { margin-top: auto; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: .8125rem; color: var(--muted); }
.meta time { white-space: nowrap; }

/* Метка категории */
.tag {
  display: inline-block; font-size: .6875rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  padding: 4px 9px; background: var(--green-pale); color: var(--green-dark);
  border-radius: var(--radius);
}
.tag--announce { background: var(--gold-soft); color: #7a5c00; }
.tag--press    { background: #e9f0f8; color: var(--blue); }
.tag--info     { background: #f0f0f0; color: #4c4c4c; }
.tag--pinned   { background: var(--red); color: #fff; }
.tag--open     { background: #e5f4ea; color: #146c3a; }
.tag--closed   { background: #f0f0f0; color: #555; }
.tag--awarded  { background: #e9f0f8; color: var(--blue); }
.tag--cancelled{ background: #fbeaec; color: var(--red); }
.tag--done     { background: #e5f4ea; color: #146c3a; }
.tag--progress { background: var(--gold-soft); color: #7a5c00; }
.tag--planned  { background: #f0f0f0; color: #4c4c4c; }
.tag--delayed  { background: #fbeaec; color: var(--red); }

/* Список-строки новостей */
.newslist { list-style: none; margin: 0; padding: 0; }
.newslist > li {
  margin: 0; padding: 20px 0; border-bottom: 1px solid var(--line);
  display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 22px;
}
.newslist > li:first-child { padding-top: 0; }
.newslist__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--green-pale); }
.newslist__media img { width: 100%; height: 100%; object-fit: cover; }
.newslist__title { font-size: 1.125rem; margin: 6px 0 8px; }
.newslist__title a { color: var(--ink); }
.newslist__title a:hover { color: var(--green); }
.newslist__text { font-size: .9375rem; color: var(--ink-soft); margin: 0; }

/* Компактный список для боковой колонки */
.minilist { list-style: none; margin: 0; padding: 0; }
.minilist li { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.minilist li:last-child { border-bottom: 0; padding-bottom: 0; }
.minilist time { display: block; font-size: .75rem; color: var(--muted); margin-bottom: 3px; }
.minilist a { color: var(--ink); font-size: .9375rem; line-height: 1.4; }
.minilist a:hover { color: var(--green); }

/* Заглушка вместо отсутствующего изображения */
.ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #e6efe9 0%, #d5e5dc 100%);
}
.ph svg { width: 46%; max-width: 90px; height: auto; opacity: .5; }

/* Полная запись */
.article { max-width: 78ch; }
.article__head { margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.article__head h1 { margin-bottom: 12px; }
.article__figure { margin: 0 0 24px; }
.article__figure img { width: 100%; border: 1px solid var(--line); }
.article__figure figcaption { font-size: .8125rem; color: var(--muted); padding-top: 8px; }
.article__body { font-size: 1.0625rem; }
.article__body h2 { font-size: 1.35rem; margin-top: 1.6em; }
.article__body h3 { font-size: 1.15rem; margin-top: 1.5em; }
.article__body img { border: 1px solid var(--line); margin: 1.2em 0; }
.article__foot { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }

/* ===========================================================================
   Документы
   =========================================================================== */
.doclist { list-style: none; margin: 0; padding: 0; }
.doclist > li {
  display: grid; grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 18px; align-items: center;
  margin: 0; padding: 16px 18px;
  background: var(--white); border: 1px solid var(--line); border-bottom: 0;
}
.doclist > li:last-child { border-bottom: 1px solid var(--line); }
.doclist > li:hover { background: #fafcfb; }

.fico {
  width: 46px; height: 52px; flex: none;
  display: flex; align-items: flex-end; justify-content: center;
  font-size: .625rem; font-weight: 700; letter-spacing: .04em;
  color: #fff; padding-bottom: 7px;
  background: #7b8a82;
  clip-path: polygon(0 0, 72% 0, 100% 22%, 100% 100%, 0 100%);
}
.fico--pdf { background: #b3182c; }
.fico--doc { background: #1a5fb4; }
.fico--xls { background: #14803c; }
.fico--ppt { background: #c1521d; }
.fico--zip { background: #6b5b95; }
.fico--img { background: #0e7c86; }

.doclist__title { font-size: 1rem; font-weight: 600; margin: 0 0 4px; }
.doclist__title a { color: var(--ink); }
.doclist__title a:hover { color: var(--green); }
.doclist__desc { font-size: .875rem; color: var(--muted); margin: 0; }
.doclist__actions { display: flex; align-items: center; gap: 14px; }

/* ===========================================================================
   Закупки
   =========================================================================== */
.proclist { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.proccard { background: var(--white); padding: 20px 22px; margin: 0; }
.proccard__top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.proccard__ref {
  font-family: 'Roboto Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  font-size: .8125rem; font-weight: 700; color: var(--green-dark);
  background: var(--green-pale); padding: 3px 9px;
}
.proccard__title { font-size: 1.0625rem; margin: 0 0 8px; }
.proccard__title a { color: var(--ink); }
.proccard__title a:hover { color: var(--green); }
.proccard__desc { font-size: .9375rem; color: var(--ink-soft); margin: 0 0 12px; }
.proccard__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px 24px; padding-top: 12px; border-top: 1px dashed var(--line);
}
.kv__k { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.kv__v { font-size: .9375rem; font-weight: 600; color: var(--ink); }
.kv__v--alert { color: var(--red); }

/* Действующий план закупок */
.planbox {
  display: flex; align-items: center; justify-content: space-between;
  gap: 26px; flex-wrap: wrap;
  background: var(--white); border: 1px solid var(--line);
  border-left: 4px solid var(--gold); padding: 22px 24px; margin-bottom: 22px;
}
.planbox__kicker {
  margin: 0 0 6px; font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; color: var(--gold);
}
.planbox__title { margin: 0 0 8px; font-size: 1.2rem; }
.planbox__note { margin: 0 0 10px; font-size: .9375rem; color: var(--ink-soft); max-width: 70ch; }
.planbox__main { flex: 1; min-width: 260px; }
.planbox__action { flex: none; }

/* ===========================================================================
   Ход реализации
   =========================================================================== */
.progressbar { background: var(--line-2); height: 10px; overflow: hidden; }
.progressbar__fill { height: 100%; background: var(--green); }
.progressbar__fill--done     { background: var(--green-bright); }
.progressbar__fill--progress { background: var(--gold); }
.progressbar__fill--delayed  { background: var(--red); }

.timeline { list-style: none; margin: 0; padding: 0 0 0 26px; border-left: 2px solid var(--line); }
.timeline > li { position: relative; margin: 0 0 30px; padding: 0 0 0 6px; }
.timeline > li::before {
  content: ''; position: absolute; left: -33px; top: 5px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--line);
}
.timeline > li.is-done::before     { border-color: var(--green-bright); background: var(--green-bright); }
.timeline > li.is-progress::before { border-color: var(--gold); background: var(--gold); }
.timeline > li.is-delayed::before  { border-color: var(--red); background: var(--red); }
.timeline__title { font-size: 1.0625rem; margin: 0 0 6px; }
.timeline__dates { font-size: .8125rem; color: var(--muted); margin: 0 0 8px; }
.timeline__desc  { font-size: .9375rem; color: var(--ink-soft); margin: 0 0 10px; }
.timeline__pct { display: flex; align-items: center; gap: 12px; }
.timeline__pct .progressbar { flex: 1; max-width: 320px; }
.timeline__pct b { font-size: .875rem; min-width: 42px; }

/* ===========================================================================
   Компоненты проекта
   =========================================================================== */
.compgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.compcard {
  background: var(--white); border: 1px solid var(--line);
  border-top: 3px solid var(--green); padding: 24px 24px 22px;
  display: flex; flex-direction: column;
}
.compcard__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; margin-bottom: 14px;
  background: var(--green-pale); color: var(--green-dark);
  font-size: 1.125rem; font-weight: 800;
}
.compcard__label { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 4px; }
.compcard__title { font-size: 1.125rem; margin: 0 0 10px; }
.compcard__text { font-size: .9375rem; color: var(--ink-soft); margin: 0; }

/* ===========================================================================
   Галерея
   =========================================================================== */
.albumgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.album { background: var(--white); border: 1px solid var(--line); }
.album__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--green-pale); }
.album__media img { width: 100%; height: 100%; object-fit: cover; }
.album__body { padding: 14px 16px 16px; }
.album__title { font-size: 1rem; margin: 0 0 6px; }
.album__title a { color: var(--ink); }
.album__title a:hover { color: var(--green); }

.photogrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.photogrid a { display: block; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--line); background: var(--green-pale); }
.photogrid img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.photogrid a:hover img { transform: scale(1.05); }

.videogrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.videoframe { position: relative; aspect-ratio: 16 / 9; background: #000; }
.videoframe iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ===========================================================================
   Фильтры / вкладки
   =========================================================================== */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.filters a {
  display: inline-block; padding: 8px 16px; font-size: .875rem; font-weight: 600;
  background: var(--white); border: 1px solid var(--line); color: var(--ink-soft);
  text-decoration: none; border-radius: var(--radius);
}
.filters a:hover { border-color: var(--green); color: var(--green); text-decoration: none; }
.filters a.is-active { background: var(--green); border-color: var(--green); color: #fff; }

/* ===========================================================================
   Таблицы
   =========================================================================== */
.tablewrap { overflow-x: auto; margin-bottom: 1.4em; }
.table { width: 100%; border-collapse: collapse; font-size: .9375rem; background: var(--white); }
.table th, .table td { padding: 11px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.table thead th {
  background: var(--green-pale); color: var(--green-darker);
  font-size: .8125rem; text-transform: uppercase; letter-spacing: .03em;
}
.table tbody tr:nth-child(even) { background: #fafcfb; }

/* ===========================================================================
   Формы
   =========================================================================== */
.form { max-width: 720px; }
.form__row { margin-bottom: 18px; }
.form__row--split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: 6px; color: var(--ink-soft); }
.form .req { color: var(--red); }

.form input[type=text], .form input[type=email], .form input[type=tel],
.form input[type=password], .form input[type=date], .form input[type=datetime-local],
.form input[type=number], .form input[type=url], .form input[type=file],
.form select, .form textarea {
  width: 100%; padding: 10px 12px; font: inherit; font-size: .9375rem;
  border: 1px solid var(--line); background: var(--white); color: var(--ink);
  border-radius: var(--radius);
}
.form textarea { min-height: 160px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(15, 107, 63, .12);
}
.form__check { display: flex; align-items: flex-start; gap: 10px; font-size: .9375rem; }
.form__check input { margin-top: .25em; flex: none; width: 17px; height: 17px; accent-color: var(--green); }
.form__check label { font-weight: 400; margin: 0; color: var(--ink); }
.form__hint { font-size: .8125rem; color: var(--muted); margin: 6px 0 0; }
.form__note { font-size: .8125rem; color: var(--muted); margin-bottom: 18px; }
.form__hp { position: absolute; left: -9999px; }

.alert {
  padding: 14px 18px; margin-bottom: 22px; font-size: .9375rem;
  border-left: 4px solid var(--muted); background: #f4f4f4;
}
.alert--success { border-left-color: var(--green-bright); background: #eaf6ee; color: #0d5b31; }
.alert--error   { border-left-color: var(--red); background: #fbecee; color: #85101f; }
.alert--info    { border-left-color: var(--blue); background: #eaf1f8; color: #12446f; }
.alert--warning { border-left-color: var(--gold); background: var(--gold-soft); color: #6b4f00; }

/* ===========================================================================
   Контакты
   =========================================================================== */
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line-2); display: grid; grid-template-columns: 150px 1fr; gap: 16px; }
.contact-list li:last-child { border-bottom: 0; }
.contact-list dt, .contact-list__k { font-size: .8125rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.contact-list__v { font-size: .9375rem; }

.mapbox { border: 1px solid var(--line); background: var(--green-pale); aspect-ratio: 16 / 9; }
.mapbox iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ===========================================================================
   Постраничная навигация
   =========================================================================== */
.pagination { margin-top: 32px; }
.pagination ul { display: flex; flex-wrap: wrap; gap: 5px; list-style: none; margin: 0; padding: 0; }
.pagination li { margin: 0; }
.pagination a, .pagination span {
  display: inline-block; min-width: 40px; text-align: center;
  padding: 9px 12px; font-size: .9375rem; font-weight: 600;
  border: 1px solid var(--line); background: var(--white); color: var(--ink-soft);
  text-decoration: none;
}
.pagination a:hover { border-color: var(--green); color: var(--green); text-decoration: none; }
.pagination .current span { background: var(--green); border-color: var(--green); color: #fff; }
.pagination .gap { border: 0; background: none; color: var(--muted); }

/* Пустой раздел */
.empty {
  padding: 44px 24px; text-align: center; color: var(--muted);
  background: var(--white); border: 1px dashed var(--line);
}

/* ===========================================================================
   Подвал
   =========================================================================== */
.footer { background: var(--green-darker); color: rgba(255, 255, 255, .82); margin-top: 0; }
.footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1.3fr; gap: 44px;
  padding-top: 44px; padding-bottom: 38px;
}
.footer__emblem { margin-bottom: 14px; }

.footer__efsd {
  display: inline-flex; flex-direction: column; gap: 8px;
  margin-top: 20px; padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .16); text-decoration: none;
}
.footer__efsd:hover { text-decoration: none; }
.footer__efsd span {
  font-size: .6875rem; text-transform: uppercase; letter-spacing: .07em;
  color: rgba(255, 255, 255, .6);
}
.footer__efsd img { height: 58px; width: auto; }
.footer__title { font-size: 1.0625rem; font-weight: 700; color: #fff; margin-bottom: 10px; }
.footer__text { font-size: .875rem; line-height: 1.65; margin: 0; }
.footer__head {
  font-size: .8125rem; text-transform: uppercase; letter-spacing: .07em;
  color: var(--gold); margin: 0 0 16px; font-weight: 700;
}
.footer__links, .footer__contacts { list-style: none; margin: 0 0 16px; padding: 0; font-size: .9rem; }
.footer__links li, .footer__contacts li { margin-bottom: 9px; }
.footer a { color: rgba(255, 255, 255, .88); }
.footer a:hover { color: #fff; }
.footer__cta {
  display: inline-block; padding: 9px 18px; font-size: .875rem; font-weight: 600;
  border: 2px solid var(--gold); color: var(--gold) !important; text-decoration: none;
}
.footer__cta:hover { background: var(--gold); color: #241c00 !important; text-decoration: none; }

.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .14); font-size: .8125rem; }
.footer__bottom-inner {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding-top: 16px; padding-bottom: 16px;
}
.footer__bottom p { margin: 0; }

/* ===========================================================================
   Просмотр фотографий
   =========================================================================== */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 40px 20px; background: rgba(7, 22, 14, .93);
}
.lightbox[hidden] { display: none; }
.lightbox__figure { margin: 0; max-width: min(1100px, 100%); max-height: 100%; text-align: center; }
.lightbox__figure img { max-height: 78vh; width: auto; margin: 0 auto; border: 1px solid rgba(255, 255, 255, .2); }
.lightbox__figure figcaption { color: rgba(255, 255, 255, .85); font-size: .9375rem; padding-top: 14px; }
.lightbox__close {
  position: absolute; top: 14px; right: 18px;
  background: none; border: 0; color: #fff; font-size: 2.4rem; line-height: 1;
  cursor: pointer; padding: 4px 12px;
}
.lightbox__nav {
  flex: none; background: rgba(255, 255, 255, .1); border: 0; color: #fff;
  font-size: 2.2rem; line-height: 1; cursor: pointer; padding: 14px 18px;
}
.lightbox__nav:hover { background: rgba(255, 255, 255, .22); }
@media (max-width: 640px) {
  .lightbox__nav { position: absolute; bottom: 16px; }
  .lightbox__nav--prev { left: 16px; }
  .lightbox__nav--next { right: 16px; }
}

/* ===========================================================================
   Версия для слабовидящих
   =========================================================================== */
body.is-a11y { --fs-base: 20px; font-size: 20px; }
body.is-a11y { background: #fff; color: #000; }
body.is-a11y img:not(.brand__emblem):not(.footer__emblem) { filter: grayscale(1) contrast(1.15); }
body.is-a11y .topbar,
body.is-a11y .mainnav,
body.is-a11y .footer,
body.is-a11y .hero { background: #000 !important; color: #fff; }
body.is-a11y .hero::after { display: none; }
body.is-a11y .hero h1, body.is-a11y .hero__lead { color: #fff; }
body.is-a11y .hero__kicker { background: #ff0; color: #000; }
body.is-a11y a { color: #00429b; text-decoration: underline; }
body.is-a11y .mainnav a, body.is-a11y .footer a, body.is-a11y .topbar a { color: #ff0; }
body.is-a11y .tag, body.is-a11y .btn { border: 1px solid currentColor; }
body.is-a11y .newscard, body.is-a11y .doclist > li,
body.is-a11y .proccard, body.is-a11y .album { border-color: #000; }

/* ===========================================================================
   Адаптивность
   =========================================================================== */
@media (max-width: 1240px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .masthead__efsd { padding: 0 16px; }
  .masthead__efsd img { height: 46px; }
  .sitesearch { width: 240px; }
}

@media (max-width: 1080px) {
  .newsgrid { grid-template-columns: repeat(2, 1fr); }
  .albumgrid { grid-template-columns: repeat(2, 1fr); }
  .photogrid { grid-template-columns: repeat(3, 1fr); }
  .layout, .layout--reverse { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer__col--about { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .masthead__inner { flex-wrap: wrap; gap: 14px; }
  .masthead__aside { order: 4; width: 100%; align-items: stretch; }
  .masthead__efsd {
    order: 3; width: 100%; flex-direction: row; justify-content: flex-start;
    gap: 12px; align-items: center; margin-left: 0; padding: 12px 0 0;
    border: 0; border-top: 1px solid var(--line);
  }
  .masthead__efsd-label { text-align: left; }
  .masthead__efsd img { height: 40px; }
  .sitesearch { width: 100%; }
  .burger { display: block; order: 2; }
  .brand { flex: 1; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .brand__name { font-size: 1.1rem; }
  .brand__emblem { width: 48px; height: 48px; }

  .mainnav__list { display: none; flex-direction: column; padding-bottom: 8px; }
  .mainnav.is-open .mainnav__list { display: flex; }
  .mainnav__item > a { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .14); }
  .mainnav__item:first-child > a { border-left: 0; }
  .submenu {
    position: static; opacity: 1; visibility: visible; transform: none;
    background: rgba(0, 0, 0, .16); border: 0; box-shadow: none; padding: 0;
  }
  .submenu a { color: rgba(255, 255, 255, .88); padding-left: 34px; }
  .submenu a:hover { background: rgba(0, 0, 0, .25); color: #fff; }

  .compgrid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.75rem; }
  .hero__inner { padding: 36px 0 32px; }
  .newslist > li { grid-template-columns: 1fr; gap: 12px; }
  .newslist__media { max-width: 320px; }
  .form__row--split { grid-template-columns: 1fr; }
  .contact-list li { grid-template-columns: 1fr; gap: 4px; }
  .doclist > li { grid-template-columns: 40px minmax(0, 1fr); gap: 14px; }
  .doclist__actions { grid-column: 2; }
}

@media (max-width: 560px) {
  .newsgrid, .albumgrid { grid-template-columns: 1fr; }
  .photogrid { grid-template-columns: repeat(2, 1fr); }
  .videogrid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  h1 { font-size: 1.5rem; }
  .topbar__note { display: none; }
  .topbar__inner { justify-content: flex-end; }
}

/* ===========================================================================
   Печать
   =========================================================================== */
@media print {
  .topbar, .mainnav, .burger, .sitesearch, .footer__cta,
  .pagination, .filters, .skip-link, .masthead__aside { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .wrap { max-width: none; padding: 0; }
  a { color: #000; text-decoration: none; }
  .article__body a::after { content: ' (' attr(href) ')'; font-size: .85em; color: #555; }
  .footer { background: none; color: #000; border-top: 1px solid #000; }
  .newscard, .doclist > li, .proccard { break-inside: avoid; }
}
