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

:root {
  --navy: #19286d;
  --navy-deep: #121d52;
  --gov-blue: #0068b4;
  --cyan: #00a6ca;
  --steel: #296695;
  --ink: #17203a;
  --muted: #5a6780;
  --line: #d7e0ec;
  --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; }

/* ---------- Шапка ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.header.is-stuck { box-shadow: 0 2px 16px rgba(25, 40, 109, 0.1); }

.header-row {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 66px;
}

.logo img { width: 172px; height: auto; }

.nav { display: flex; gap: 2px; margin-left: auto; }

.nav a {
  padding: 8px 12px;
  font-size: 15px;
  font-weight: 500;
  border-bottom: 2px solid transparent;
}

.nav a:hover { color: var(--gov-blue); border-bottom-color: var(--cyan); }

.header-tools { display: flex; align-items: center; gap: 16px; }

.header-lang { font-size: 13.5px; font-weight: 600; color: var(--steel); }
.header-lang:hover { color: var(--gov-blue); }

.btn-lk {
  padding: 9px 18px;
  border: 1.5px solid var(--navy);
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-lk:hover { background: var(--navy); color: #fff; }

.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid var(--line);
  background: #fff;
}

.menu-btn span { height: 2px; background: var(--ink); transition: transform 0.2s ease, opacity 0.2s ease; }
.menu-btn.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.is-open span:nth-child(2) { opacity: 0; }
.menu-btn.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.drawer {
  position: sticky;
  top: 66px;
  z-index: 49;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.drawer-inner { display: flex; flex-direction: column; padding-block: 12px 20px; }
.drawer-inner > a { padding: 12px 4px; font-weight: 500; border-bottom: 1px solid var(--line); }
.drawer-meta { display: flex; flex-wrap: wrap; gap: 18px; padding-top: 16px; font-size: 14px; color: var(--muted); }

/* ---------- Табло ---------- */

.board-wrap {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding-block: 44px 56px;
}

.board-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.kicker {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 10px;
}

.board-intro h1 {
  font-family: var(--head);
  font-size: clamp(30px, 3.8vw, 42px);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--navy);
  line-height: 1.05;
}

.board-updated { font-size: 13px; color: var(--muted); white-space: nowrap; padding-bottom: 6px; }

.board {
  background: var(--navy-deep);
  color: #fff;
  border-top: 3px solid var(--cyan);
}

.board-head,
.board-row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr) minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 18px;
  align-items: center;
  padding: 14px 26px;
}

.board-head {
  padding-block: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.board-row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.12s ease;
}

.board-row:last-of-type { border-bottom: 0; }

.board-row:hover { background: rgba(255, 255, 255, 0.06); }

.cell-name {
  font-family: var(--head);
  font-size: 16.5px;
  font-weight: 700;
}

.cell-aud { font-size: 13px; color: rgba(255, 255, 255, 0.6); }

.cell-status {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  font-weight: 600;
}

.cell-status i {
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.is-open { color: #7fd8ea; }
.is-open i { background: var(--cyan); box-shadow: 0 0 0 3px rgba(0, 166, 202, 0.25); }

.is-steady { color: rgba(255, 255, 255, 0.8); }
.is-steady i { background: #8ea3d8; }

.is-hold { color: #ffd9d9; }
.is-hold i { background: #e2726e; box-shadow: 0 0 0 3px rgba(226, 114, 110, 0.22); }

.cell-note { font-size: 13px; color: rgba(255, 255, 255, 0.55); font-variant-numeric: tabular-nums; }

.board-legend {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}

.board-legend span { display: flex; align-items: center; gap: 7px; }

.dot { width: 9px; height: 9px; border-radius: 50%; }
.dot-open { background: var(--cyan); }
.dot-steady { background: #8ea3d8; }
.dot-hold { background: #e2726e; }

.board-all {
  margin-left: auto;
  font-weight: 600;
  color: var(--gov-blue);
}

.board-all:hover { text-decoration: underline; }

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

.routes { padding-block: 54px; border-bottom: 1px solid var(--line); }

.sect-title {
  font-family: var(--head);
  font-size: clamp(23px, 2.7vw, 30px);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.01em;
  margin-bottom: 26px;
}

.sect-title--light { color: #fff; margin-bottom: 6px; }

.routes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
}

.routes-grid a {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 28px 30px;
  border-right: 1px solid var(--line);
  transition: background 0.15s ease;
}

.routes-grid a:last-child { border-right: 0; }

.routes-grid a:hover { background: var(--bg); }

.routes-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.08em;
}

.routes-grid strong {
  font-family: var(--head);
  font-size: 21px;
  font-weight: 800;
  color: var(--navy);
}

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

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

.digest {
  background: var(--navy);
  color: #fff;
  padding-block: 48px;
}

.digest-head { margin-bottom: 30px; }

.digest-head p { font-size: 14.5px; color: rgba(255, 255, 255, 0.65); }

.digest-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.digest-grid div {
  padding-left: 18px;
  border-left: 2px solid var(--cyan);
}

.digest-grid strong {
  display: block;
  font-family: var(--head);
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.digest-grid span {
  display: block;
  margin-top: 7px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- Сообщения и новости ---------- */

.feed { padding-block: 54px; }

.feed-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 60px;
}

.notice-list { list-style: none; }

.notice-list li {
  padding: 16px 0 16px 18px;
  border-left: 3px solid var(--gov-blue);
  border-bottom: 1px solid var(--line);
}

.notice-list li:first-child { border-left-color: #e2726e; }

.notice-list strong {
  display: block;
  font-family: var(--head);
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
}

.notice-list p { margin-top: 5px; font-size: 13.5px; color: var(--muted); }

.feed-col-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}

.more-link { font-size: 14.5px; font-weight: 600; color: var(--gov-blue); white-space: nowrap; }
.more-link:hover { text-decoration: underline; }

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

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

.news-list a {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 16px;
  padding-block: 15px;
  align-items: baseline;
}

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

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

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

/* ---------- Контакт ---------- */

.contact { padding-block: 0 56px; }

.contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 30px 34px;
  background: var(--bg);
  border: 1px solid var(--line);
}

.contact h2 { font-family: var(--head); font-size: 23px; font-weight: 800; color: var(--navy); }

.contact p { margin-top: 5px; font-size: 14.5px; color: var(--muted); }

.contact-side { text-align: right; flex-shrink: 0; }

.contact-phone {
  font-family: var(--head);
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 800;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

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

.contact-links {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
}

.contact-links a { color: var(--gov-blue); }
.contact-links a:hover { text-decoration: underline; }

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

.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: 46px 38px;
}

.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: 960px) {
  .board-head { display: none; }

  .board-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "name status"
      "aud aud"
      "note note";
    gap: 4px 16px;
    padding: 16px 20px;
  }

  .cell-name { grid-area: name; }
  .cell-status { grid-area: status; justify-self: end; }
  .cell-aud { grid-area: aud; }
  .cell-note { grid-area: note; }

  .feed-grid { grid-template-columns: 1fr; gap: 44px; }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .menu-btn { display: flex; }
  .btn-lk { display: none; }

  .board-intro { flex-direction: column; align-items: flex-start; gap: 8px; }
  .board-updated { padding-bottom: 0; }

  .routes-grid { grid-template-columns: 1fr; }
  .routes-grid a { border-right: 0; border-bottom: 1px solid var(--line); }
  .routes-grid a:last-child { border-bottom: 0; }

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

@media (max-width: 560px) {
  .board-legend { flex-wrap: wrap; gap: 12px 18px; }
  .board-all { margin-left: 0; width: 100%; }

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

  .contact-row { flex-direction: column; align-items: flex-start; }
  .contact-side { text-align: left; }
  .contact-links { justify-content: flex-start; flex-wrap: wrap; }

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