/* =========================================================
   Всероссийский Земский Союз — FLAT (без объёма)
   Палитра: беж / бордо / сине-серый (как в первом дизайне)
   Шрифты: “старорусская” подача через гарнитуры с дореволюционным характером
   ========================================================= */

/* 1) ШРИФТЫ
   Если у тебя нет этих шрифтов локально — всё равно будет красиво за счёт падения в serif.
   При желании позже добавим файлы .woff2 в assets/fonts/ и пропишем @font-face.
*/
:root{
  --font-title: "Old Standard TT", "Cormorant Garamond", "PT Serif", "Georgia", "Times New Roman", serif;
  --font-body:  "PT Serif", "Cormorant Garamond", "Georgia", "Times New Roman", serif;
}

/* 2) ПАЛИТРА (вернули прежние оттенки) */
:root{
  --bg: #f6f1e6;
  --paper: #fffaf0;
  --paper2:#fbf3e6;

  --ink: #1f2a33;
  --muted:#51606b;

  --accent: #8b1e2d;   /* бордо */
  --accent2:#2b4a5a;   /* сине-серый */
  --line:  #dccbb2;

  /* flat-настройки */
  --radius: 14px;
  --radius2: 12px;
  --max: 1160px;

  --pad: 22px;
}

*{ box-sizing:border-box; }
html, body { height:100%; }
body{
  margin:0;
  min-height:100vh;
  display:flex;
  flex-direction:column;

  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
}

/* типографика */
h1,h2,h3{ font-family: var(--font-title); }
a{ color:inherit; text-decoration:none; }
a:hover{ color: var(--accent); }

.container{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 22px;
}

main{ flex: 1 0 auto; }

/* =========================================================
   ШАПКА — “официально”, но плоско (без теней и “картона”)
   ========================================================= */
.topbar{
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap: 14px;        /* было 12 — чуть свободнее */
}

.brand__mark{
  width:44px;
  height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex: 0 0 44px;
  background: transparent;
  border: none;
}

.brand__mark img{
  width:50px;
  height:50px;
  opacity:.95;
}


.brand__title{ line-height:1.1; }
.brand__title .name{
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 18px;          /* БЫЛО 15 */
  letter-spacing: .6px;     /* чуть благороднее */
  text-transform: uppercase;
}
.brand__title .sub{
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
  margin-top: 3px;
  letter-spacing: .2px;
}

/* меню */
.nav{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  align-items:center;
  justify-content:flex-end;
}

.nav a{
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent; /* flat */
}

.nav a:hover{
  border-color: var(--line);
  background: rgba(255,255,255,.55);
}

.nav a.active{
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255,255,255,.7);
}

/* =========================================================
   HERO — 2 колонки, ровная сетка, flat
   ========================================================= */
.hero{
  padding: 22px 0 10px;
}

.hero__grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 18px;
  align-items: stretch;
}

@media (max-width: 960px){
  .hero__grid{ grid-template-columns: 1fr; }
  .brand{ min-width: auto; }
}

.panel{
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--pad);
}

.h1{
  margin: 0 0 10px;
  font-size: 38px;
  line-height: 1.12;
  letter-spacing: .2px;
}

.lead{
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
  max-width: 760px;
}

/* воззвание */
.callout{
  margin-top: 14px;
  padding: 14px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(139,30,45,.05); /* flat-акцент */
}

.callout b{
  color: var(--accent);
  font-family: var(--font-title);
}

.callout .small{
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

/* правая картинка */
.hero__media{
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(43,74,90,.06);
  min-height: 280px;
}

.hero__media img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

.hero__label{
  position:absolute;
  left: 12px;
  bottom: 12px;
  font-size: 12px;
  color: #fff;
  background: rgba(0,0,0,.45);
  padding: 6px 10px;
  border-radius: 10px;
}

/* =========================================================
   СТАТ-ПЛИТКИ — flat (без градиентов и теней)
   ========================================================= */
.section{
  padding: 18px 0 30px;
}

.stats{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width: 960px){
  .stats{ grid-template-columns: 1fr; }
}

.stat{
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius2);
  padding: 16px 16px 14px;
  min-height: 150px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}

.stat__top{
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .7px;
  line-height: 1.35;
}

.stat__num{
  font-family: var(--font-title);
  font-size: 46px;
  font-weight: 800;
  line-height: 1;
  color: var(--ink);
  margin-top: 8px;
}

.stat__bottom{
  font-size: 13px;
  color: var(--muted);
  line-height: 1.35;
  margin-top: 10px;
}

/* разные “паспорта” плиток — всё равно flat */
.stat--neutral{ background: var(--paper); }
.stat--blue{ background: rgba(43,74,90,.06); }
.stat--burgundy{ background: rgba(139,30,45,.06); }

/* =========================================================
   БЛОКИ РАЗДЕЛОВ + аккордеоны — flat
   ========================================================= */
.section__title{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  gap: 10px;
  margin-bottom: 12px;
}

.section__title h2{
  margin: 0;
  font-size: 20px;
  letter-spacing: .2px;
}

.section__title .hint{
  font-size: 13px;
  color: var(--muted);
}

.card{
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--pad);
}

.list{
  display:flex;
  flex-direction:column;
  gap: 10px;
}

.item{
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.55);
  overflow: hidden;
}

.item__btn{
  width:100%;
  border:0;
  background: transparent;
  padding: 12px 14px;
  cursor: pointer;
  text-align:left;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 10px;
  font-family: var(--font-body);
}

.item__btn:hover{
  background: rgba(255,255,255,.40);
}

.item__btn .meta{
  color: var(--muted);
  font-size: 13px;
}

.item__btn .title{
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 700;
  margin-top: 2px;
}

.item__btn .chev{
  color: var(--muted);
  font-size: 18px;
  transition: .2s transform;
}

.item.open .item__btn .chev{ transform: rotate(90deg); }

.item__body{
  display:none;
  padding: 0 14px 14px;
  line-height: 1.7;
}

.item.open .item__body{ display:block; }

/* =========================================================
   РУКОВОДСТВО — карточки
   ========================================================= */
.grid-3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 960px){
  .grid-3{ grid-template-columns: 1fr; }
}

.person{
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow:hidden;
  background: rgba(255,255,255,.55);
}

.person__photo{
  height: 190px;
  border-bottom: 1px solid var(--line);
  background: rgba(43,74,90,.06);
  display:grid;
  place-items:center;
  color: var(--muted);
  font-size: 13px;
}

.person__photo img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

.person__body{ padding: 12px; }
.person__role{
  font-family: var(--font-title);
  font-weight: 700;
}
.person__note{
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

/* =========================================================
   ДОКУМЕНТЫ — фрейм
   ========================================================= */
.docframe{
  width:100%;
  height: 620px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow:hidden;
  background: rgba(255,255,255,.55);
}
@media (max-width: 960px){ .docframe{ height: 520px; } }

/* =========================================================
   ПОДВАЛ — всегда внизу (sticky footer) + flat
   ========================================================= */
.footer{
  margin-top:auto;
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 18px 0 26px;
  color: var(--muted);
  font-size: 13px;
}
.footer .row{
  display:flex;
  justify-content:space-between;
  gap: 12px;
  flex-wrap:wrap;
}
