/* ============================================================
   Брендбук · концепция 03 — «Вестник»
   Первая полоса официального издания вместо лендинга:
   центральный masthead с двойной линейкой, рубрики,
   колонки, блок официальных сообщений и сводка строкой.
   Строго по бренд-буку: Inter + Raleway, палитра только синяя
   (navy #19286d · гос-синий #0068b4 · cyan #00a6ca · стальной #296695).
   Без теней, скруглений и карточного шума.
   ============================================================ */

:root {
  --navy: #19286d;
  --gov-blue: #0068b4;
  --cyan: #00a6ca;
  --steel: #296695;
  --ink: #17203a;
  --muted: #5a6780;
  --line: #c9d5e4;
  --line-soft: #dfe7f1;
  --bg: #f5f8fc;
  --shell: 1180px;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --head: "Raleway", var(--sans);
}

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

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.shell { max-width: var(--shell); margin-inline: auto; padding-inline: 20px; }

.skip {
  position: absolute;
  left: -9999px; top: 0;
  background: var(--navy);
  color: #fff;
  padding: 10px 18px;
  z-index: 100;
}
.skip:focus { left: 0; }

/* Рубрики */
.rubric {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
}

.col-title {
  font-family: var(--head);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--navy);
  margin-bottom: 4px;
}

/* ---------- Служебная строка ---------- */

.dateline {
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
}

.dateline-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 34px;
}

.dateline-mid { color: var(--steel); }

.dateline-tools { display: flex; gap: 14px; }
.dateline-tools a:hover { color: var(--gov-blue); }

/* ---------- Masthead ---------- */

.masthead { border-bottom: 3px double var(--navy); }

.masthead-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-block: 30px 22px;
}

.masthead-logo img { width: 64px; height: auto; }
.masthead-logo { margin-bottom: 12px; }

/* Скрываем растянутый горизонтальный логотип, показываем только знак */
.masthead-logo { overflow: hidden; width: 64px; }
.masthead-logo img { width: 260px; max-width: none; }

.masthead-title {
  font-family: var(--head);
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
  line-height: 1;
}

.masthead-descriptor {
  margin-top: 10px;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Навигация ---------- */

.nav { border-top: 1px solid var(--line); }

.nav-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 48px;
}

.nav-row > a {
  padding: 12px 16px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
}

.nav-row > a:hover { color: var(--gov-blue); }

.nav-lk { color: var(--gov-blue) !important; }

.menu-btn {
  display: none;
  padding: 8px 16px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 600;
  font-size: 14px;
}

.drawer { border-top: 1px solid var(--line); }
.drawer-inner { display: flex; flex-direction: column; padding-block: 8px 16px; }
.drawer-inner a { padding: 11px 4px; font-weight: 500; border-bottom: 1px solid var(--line-soft); }

/* ---------- Первая полоса ---------- */

.front { padding-block: 40px 48px; }

.front-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
}

.front-grid > * { padding-inline: 28px; }
.front-grid > *:first-child { padding-left: 0; }
.front-grid > *:last-child { padding-right: 0; }
.front-grid > * + * { border-left: 1px solid var(--line); }

/* Главный материал */

.lead-story h1 {
  margin-top: 10px;
  font-family: var(--head);
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.005em;
  color: var(--navy);
}

.lead-story h1 a:hover { color: var(--gov-blue); }

.lead-text { margin-top: 14px; font-size: 16px; color: var(--ink); }

.lead-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 20px;
}

.btn-solid {
  padding: 11px 22px;
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  font-size: 14.5px;
  transition: background 0.15s ease;
}

.btn-solid:hover { background: var(--gov-blue); }

.btn-text { font-size: 14.5px; font-weight: 600; color: var(--gov-blue); }
.btn-text:hover { text-decoration: underline; }

.story-rule { border: 0; border-top: 1px solid var(--line); margin-block: 26px; }

.second-story h2 {
  margin-top: 8px;
  font-family: var(--head);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
}

.second-story h2 a:hover { color: var(--gov-blue); }

.second-story p { margin-top: 10px; font-size: 14.5px; color: var(--muted); }

/* Навигатор услуг */

.navigator ul { list-style: none; }

.navigator li { border-bottom: 1px solid var(--line-soft); }

.navigator a {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-block: 13px;
}

.navigator strong {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  transition: color 0.15s ease;
}

.navigator a:hover strong { color: var(--gov-blue); }

.navigator .btn-text { display: inline-block; margin-top: 14px; }

/* Официальные сообщения */

.official-title {
  font-family: var(--head);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--navy);
  padding: 10px 14px;
}

.official ul { list-style: none; border: 1px solid var(--line); border-top: 0; }

.official li { padding: 14px; border-bottom: 1px solid var(--line-soft); }
.official li:last-child { border-bottom: 0; }

.official time {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}

.official p { margin-top: 4px; font-size: 13.5px; line-height: 1.5; }

.official > .btn-text { display: inline-block; margin-top: 12px; }

/* Приёмная */

.reception {
  margin-top: 26px;
  padding: 18px;
  background: var(--bg);
  border: 1px solid var(--line);
}

.reception h3 {
  font-family: var(--head);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
}

.reception-phone {
  display: block;
  margin-top: 8px;
  font-family: var(--head);
  font-size: 24px;
  font-weight: 800;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

.reception-phone:hover { color: var(--gov-blue); }

.reception p { margin-top: 2px; font-size: 12.5px; color: var(--muted); }

.reception .btn-text { display: inline-block; margin-top: 10px; font-size: 13.5px; }

/* ---------- Сводка ---------- */

.digest {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
}

.digest-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  padding-block: 22px;
}

.digest p {
  font-size: 13px;
  line-height: 1.45;
  padding-left: 14px;
  border-left: 2px solid var(--cyan);
}

.digest b {
  display: block;
  font-family: var(--head);
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

/* ---------- Разделы ---------- */

.sections { padding-block: 46px 40px; }

.sections-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 22px;
}

.sections-grid a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.sections-grid a:hover strong { color: var(--gov-blue); }

.sections-grid strong {
  font-family: var(--head);
  font-size: 19px;
  font-weight: 800;
  color: var(--navy);
  transition: color 0.15s ease;
}

.sections-grid a > span:last-child { font-size: 13px; color: var(--muted); }

/* ---------- Хроника ---------- */

.chronicle { padding-block: 8px 56px; }

.chronicle-grid { display: grid; grid-template-columns: minmax(0, 1fr); }

.chron-list { list-style: none; margin-top: 22px; }

.chron-list li { border-bottom: 1px solid var(--line-soft); }

.chron-list a {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 18px;
  padding-block: 13px;
  align-items: baseline;
}

.chron-list time { font-size: 13px; color: var(--steel); font-variant-numeric: tabular-nums; }

.chron-list span { font-size: 15px; font-weight: 500; transition: color 0.15s ease; }

.chron-list a:hover span { color: var(--gov-blue); }

/* ---------- Футер ---------- */

.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-block: 44px 36px;
}

.footer-col { display: flex; flex-direction: column; gap: 9px; }

.footer-col h3 {
  font-family: var(--head);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cyan);
  margin-bottom: 6px;
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-block: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 12.5px;
}

.footer-social { display: flex; gap: 16px; }
.footer-social a:hover { color: #fff; }

/* ---------- Адаптив ---------- */

@media (max-width: 1024px) {
  .front-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .official {
    grid-column: 1 / -1;
    border-left: 0 !important;
    border-top: 1px solid var(--line);
    padding: 28px 0 0 !important;
    margin-top: 28px;
  }
  .digest-row { grid-template-columns: 1fr 1fr; }
  .sections-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .dateline-mid { display: none; }

  .nav-row > a { display: none; }
  .menu-btn { display: block; margin-block: 8px; width: 100%; }

  .front { padding-block: 28px 36px; }
  .front-grid { grid-template-columns: 1fr; }
  .front-grid > * { padding-inline: 0; }
  .front-grid > * + * {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 26px;
    margin-top: 26px;
  }
  .official { margin-top: 0; }

  .digest-row { grid-template-columns: 1fr; gap: 16px; }
  .sections-grid { grid-template-columns: 1fr; gap: 20px; }

  .chron-list a { grid-template-columns: 1fr; gap: 3px; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
}
