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

:root {
  --navy: #19286d;
  --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);
  --hexagon: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
}

* { 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: 14px; }

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

.btn-lk {
  padding: 9px 20px;
  background: var(--navy);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  clip-path: var(--hexagon);
  padding-inline: 26px;
  transition: background 0.15s ease;
}

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

.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); }

/* ---------- Первый экран ---------- */

.hero {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding-block: 56px 64px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.hero-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}

.hero-brand span {
  font-weight: 400;
  font-size: 11.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero h1 {
  font-family: var(--head);
  font-size: clamp(30px, 3.8vw, 44px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--navy);
  max-width: 18ch;
}

.hero-lead { margin-top: 14px; max-width: 52ch; font-size: 16.5px; color: var(--muted); }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

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

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

.btn-line {
  padding: 13px 26px;
  border: 1.5px solid var(--navy);
  color: var(--navy);
  font-weight: 600;
  font-size: 15px;
  transition: background 0.15s ease, color 0.15s ease;
}

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

.hero-note { margin-top: 22px; font-size: 13px; color: var(--steel); }

/* ---------- Соты ---------- */

.comb {
  display: flex;
  flex-direction: column;
  align-items: center;
  --hex-w: 176px;
  --hex-h: 152px;
}

.comb-row { display: flex; gap: 10px; }

/* смыкание рядов */
.comb-row + .comb-row { margin-top: calc(var(--hex-h) * -0.24); }

.hex {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: var(--hex-w);
  height: var(--hex-h);
  padding: 14px 26px;
  text-align: center;
  clip-path: var(--hexagon);
  background: #fff;
  border: 1px solid var(--line);
  transition: background 0.15s ease, transform 0.15s ease;
}

/* clip-path съедает border — рисуем гекс внутренней тенью */
.hex { border: 0; box-shadow: inset 0 0 0 1.5px var(--line); }

a.hex:hover { background: var(--navy); transform: translateY(-3px); }
a.hex:hover strong, a.hex:hover span { color: #fff; }

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

.hex span {
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--muted);
  transition: color 0.15s ease;
}

.hex--core {
  background: var(--navy);
  box-shadow: none;
}

.hex--core strong { color: var(--cyan); font-size: 13px; }

.hex--core img { width: 40px; height: 40px; margin-bottom: 6px; filter: brightness(0) invert(1); }

/* ---------- Входы ---------- */

.entries { padding-block: 56px; 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: 28px;
}

.sect-title--light { color: #fff; }

.entries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.entries-grid a {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 18px;
  border-top: 2px solid var(--navy);
}

.hex-mark {
  width: 22px;
  height: 19px;
  clip-path: var(--hexagon);
  background: var(--gov-blue);
}

.hex-mark--steel { background: var(--steel); }
.hex-mark--cyan { background: var(--cyan); }

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

.entries-grid span { font-size: 14px; color: var(--muted); }

.entries-grid em {
  margin-top: 4px;
  font-style: normal;
  font-size: 14px;
  font-weight: 600;
  color: var(--gov-blue);
}

.entries-grid a:hover em { text-decoration: underline; }

/* ---------- Узел ---------- */

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

.core-lead {
  max-width: 62ch;
  margin-top: -14px;
  margin-bottom: 34px;
  font-size: 15.5px;
  color: rgba(255, 255, 255, 0.78);
}

.core-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.core-item {
  padding: 22px 24px;
  background: rgba(255, 255, 255, 0.06);
  border-top: 3px solid var(--cyan);
}

.core-item:nth-child(2) { border-top-color: var(--gov-blue); }
.core-item:nth-child(3) { border-top-color: var(--steel); }

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

.core-item strong {
  display: block;
  margin-top: 6px;
  font-family: var(--head);
  font-size: 20px;
  font-weight: 800;
}

.core-item p { margin-top: 8px; font-size: 13.5px; color: rgba(255, 255, 255, 0.75); }

.core-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.core-facts dd {
  font-family: var(--head);
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.core-facts dt { margin-top: 6px; font-size: 13px; color: rgba(255, 255, 255, 0.7); }

/* ---------- Новости ---------- */

.news { padding-block: 54px; }

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

.news-head .sect-title { margin-bottom: 22px; }

.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: 104px minmax(0, 1fr);
  gap: 18px;
  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: 1060px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .comb { --hex-w: 168px; --hex-h: 146px; }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .menu-btn { display: flex; }
  .btn-lk { display: none; }
  .entries-grid { grid-template-columns: 1fr; gap: 26px; }
  .core-grid { grid-template-columns: 1fr; }
  .core-facts { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .hero { padding-block: 40px 48px; }

  /* Соты на мобильном: плотнее и мельче */
  .comb { --hex-w: 148px; --hex-h: 128px; }
  .comb-row { gap: 6px; }
  .hex { padding: 10px 20px; }
  .hex strong { font-size: 14px; }
  .hex span { font-size: 10.5px; }
  .hex--core img { width: 30px; height: 30px; }

  .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; }
}
