/* Брендбук · концепция 08 — «Маршрут результата»
   Inter + Raleway, фирменная синяя палитра и диагональ знака. */
:root {
  --navy: #19286d;
  --navy-deep: #10194d;
  --gov-blue: #0068b4;
  --cyan: #00a6ca;
  --steel: #296695;
  --ink: #141b34;
  --muted: #65718a;
  --line: #d7e0ec;
  --soft: #f2f6fb;
  --paper: #fbfcfe;
  --white: #fff;
  --shell: 1240px;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --head: "Raleway", var(--sans);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { color: inherit; background: none; border: 0; font: inherit; cursor: pointer; }
ol, ul { list-style: none; }
.shell { width: min(var(--shell), calc(100% - 48px)); margin-inline: auto; }
.skip {
  position: fixed;
  top: 0;
  left: -9999px;
  z-index: 200;
  padding: 11px 18px;
  color: var(--white);
  background: var(--navy);
}
.skip:focus { left: 0; }

.state-line {
  color: rgba(255,255,255,.72);
  background: var(--navy-deep);
  font-size: 11px;
  letter-spacing: .025em;
}
.state-line__inner,
.state-line__inner div { display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.state-line__inner { min-height: 32px; }
.state-line a:hover { color: var(--white); }

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px);
}
.header.is-stuck { box-shadow: 0 8px 24px rgba(16,25,77,.07); }
.header__inner { display: flex; align-items: center; min-height: 74px; gap: 28px; }
.logo { flex: 0 0 auto; }
.logo img { width: 186px; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a {
  position: relative;
  padding: 10px 11px;
  font-size: 13.5px;
  font-weight: 600;
}
.nav a::after {
  position: absolute;
  right: 11px;
  bottom: 4px;
  left: 11px;
  height: 2px;
  background: var(--cyan);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.nav a:hover { color: var(--gov-blue); }
.nav a:hover::after { transform: scaleX(1); }
.header__tools { display: flex; align-items: center; gap: 9px; }
.search {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
}
.search svg { width: 17px; fill: none; stroke: var(--navy); stroke-width: 1.7; }
.account {
  padding: 10px 16px;
  color: var(--white);
  background: var(--navy);
  font-size: 12.5px;
  font-weight: 700;
  transition: background .18s;
}
.account:hover { background: var(--gov-blue); }
.menu { display: none; width: 40px; height: 40px; flex-direction: column; justify-content: center; gap: 5px; padding: 9px; }
.menu span { width: 100%; height: 2px; background: var(--navy); transition: transform .2s, opacity .2s; }
.menu.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu.is-open span:nth-child(2) { opacity: 0; }
.menu.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.drawer { position: sticky; top: 74px; z-index: 49; border-bottom: 1px solid var(--line); background: var(--white); }
.drawer__inner { display: flex; flex-direction: column; padding-block: 12px 20px; }
.drawer__inner > a { padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.drawer__meta { display: flex; flex-wrap: wrap; gap: 16px; padding-top: 16px; color: var(--steel); font-size: 13px; }

.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(118deg, var(--navy-deep) 0%, var(--navy) 48%, #183e86 100%);
}
.hero::before {
  position: absolute;
  inset: 0;
  opacity: .19;
  background-image:
    linear-gradient(rgba(255,255,255,.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.16) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 52%, #000 100%);
  content: "";
}
.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 680px;
  grid-template-columns: 1.05fr .95fr;
  gap: 80px;
  align-items: center;
  padding-block: 68px 76px;
}
.eyebrow {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 28px;
  color: rgba(255,255,255,.58);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.eyebrow span { color: var(--white); font-size: 13px; letter-spacing: .02em; text-transform: none; }
.hero h1 {
  max-width: 770px;
  font-family: var(--head);
  font-size: clamp(48px, 5.25vw, 76px);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.045em;
}
.hero h1 em { color: #54d1e9; font-style: normal; }
.hero__lead { max-width: 570px; margin-top: 25px; color: rgba(255,255,255,.75); font-size: 17px; line-height: 1.65; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: 28px; padding: 12px 22px; font-size: 13px; font-weight: 700; }
.button--primary { color: #07193e; background: var(--cyan); }
.button--primary:hover { background: #32bfdc; }
.button--secondary { border: 1px solid rgba(255,255,255,.42); }
.button--secondary:hover { border-color: var(--white); background: rgba(255,255,255,.07); }

.route {
  position: relative;
  padding: 28px 31px 24px;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(10,20,67,.28);
  backdrop-filter: blur(4px);
}
.route__mesh {
  position: absolute;
  top: -42px;
  right: -46px;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(0,166,202,.55);
  transform: rotate(45deg);
}
.route__mesh::before,
.route__mesh::after {
  position: absolute;
  inset: 25px;
  border: 1px solid rgba(255,255,255,.2);
  content: "";
}
.route__mesh::after { inset: 51px; border-color: rgba(0,166,202,.5); }
.route__label {
  margin-bottom: 24px;
  color: rgba(255,255,255,.55);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.route ol { position: relative; }
.route ol::before {
  position: absolute;
  top: 29px;
  bottom: 29px;
  left: 18px;
  width: 1px;
  background: rgba(255,255,255,.25);
  content: "";
}
.route li {
  position: relative;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 17px;
  align-items: center;
  min-height: 82px;
  border-top: 1px solid rgba(255,255,255,.14);
}
.route li:first-child { border-top: 0; }
.route li > span {
  z-index: 1;
  display: grid;
  width: 37px;
  height: 37px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 50%;
  background: var(--navy);
  color: rgba(255,255,255,.75);
  font-size: 10px;
  font-weight: 700;
}
.route li strong,
.route li small { display: block; }
.route li strong { font-family: var(--head); font-size: 16px; font-weight: 700; }
.route li small { margin-top: 3px; color: rgba(255,255,255,.54); font-size: 11px; letter-spacing: .02em; }
.route .route__result > span { border-color: var(--cyan); color: var(--navy-deep); background: var(--cyan); }
.route .route__result strong { color: #54d1e9; }
.route__caption { margin-top: 14px; padding-top: 17px; border-top: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.62); font-size: 11px; }
.hero__rail { position: absolute; inset: 0; pointer-events: none; }
.hero__rail i { position: absolute; bottom: -180px; width: 18px; height: 440px; transform: skewX(-28deg); }
.hero__rail i:nth-child(1) { right: 12%; background: rgba(0,166,202,.26); }
.hero__rail i:nth-child(2) { right: 8%; background: rgba(0,104,180,.4); }
.hero__rail i:nth-child(3) { right: 4%; background: rgba(41,102,149,.45); }

.section-head {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 80px;
  align-items: end;
  margin-bottom: 46px;
}
.section-no { margin-bottom: 13px; color: var(--gov-blue); font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.section-no--light { color: #58c9e0; }
.section-head h2,
.programs h2,
.results h2,
.news h2,
.contact h2 { font-family: var(--head); font-size: clamp(34px, 4vw, 52px); font-weight: 700; line-height: 1.05; letter-spacing: -.035em; }
.section-head > p { color: var(--muted); line-height: 1.7; }
.entrances { padding-block: 105px 110px; }
.entrance-list { border-top: 2px solid var(--navy); }
.entrance-list a {
  display: grid;
  min-height: 90px;
  grid-template-columns: 65px minmax(240px, 1.1fr) 1fr 100px;
  gap: 24px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  transition: color .18s, background .18s, padding .18s;
}
.entrance-list a:hover { padding-inline: 14px; color: var(--white); background: var(--navy); }
.entrance-list__no { color: var(--gov-blue); font-size: 11px; font-weight: 700; }
.entrance-list a:hover .entrance-list__no { color: var(--cyan); }
.entrance-list strong { font-family: var(--head); font-size: 22px; }
.entrance-list small { color: var(--muted); font-size: 13px; }
.entrance-list a:hover small { color: rgba(255,255,255,.64); }
.entrance-list i { justify-self: end; font-size: 11px; font-style: normal; font-weight: 700; }
.entrance-list i b { margin-left: 12px; color: var(--cyan); font-size: 17px; }

.programs { padding-block: 105px; background: var(--soft); }
.programs__grid { display: grid; grid-template-columns: 350px 1fr; gap: 96px; }
.programs__intro { position: sticky; top: 130px; align-self: start; }
.programs__intro > p:not(.section-no) { margin-top: 22px; color: var(--muted); line-height: 1.7; }
.programs__intro > a { display: inline-flex; gap: 25px; margin-top: 28px; padding-bottom: 5px; border-bottom: 1px solid var(--navy); color: var(--navy); font-size: 12px; font-weight: 700; }
.program-list { border-top: 2px solid var(--navy); }
.program-list a {
  display: grid;
  min-height: 85px;
  grid-template-columns: 55px minmax(230px, .9fr) 1fr 24px;
  gap: 20px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  transition: transform .18s;
}
.program-list a:hover { transform: translateX(9px); }
.program-list span { color: var(--gov-blue); font-size: 10px; font-weight: 700; }
.program-list strong { font-family: var(--head); font-size: 17px; }
.program-list small { color: var(--muted); font-size: 12px; }
.program-list i { color: var(--gov-blue); font-size: 17px; font-style: normal; }

.results { padding-block: 92px 100px; color: var(--white); background: var(--navy); }
.results__head {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 70px;
  align-items: end;
  margin-bottom: 58px;
}
.results__head > p { color: rgba(255,255,255,.57); font-size: 13px; line-height: 1.7; }
.result-line { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.3); }
.result-line > div { min-height: 200px; padding: 25px 24px 10px 0; border-right: 1px solid rgba(255,255,255,.18); }
.result-line > div:not(:first-child) { padding-left: 25px; }
.result-line > div:last-child { border-right: 0; }
.result-line dt { min-height: 45px; color: rgba(255,255,255,.52); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.result-line dd { margin-top: 22px; font-family: var(--head); font-size: clamp(36px, 4vw, 54px); font-weight: 700; line-height: 1; letter-spacing: -.04em; }
.result-line dd small { color: var(--cyan); font-size: .35em; letter-spacing: 0; }
.result-line span { display: block; margin-top: 13px; color: rgba(255,255,255,.62); font-size: 12px; }

.news { padding-block: 110px; }
.news__grid { display: grid; grid-template-columns: .65fr 1.1fr 1fr; gap: 0; border-top: 2px solid var(--navy); border-bottom: 1px solid var(--line); }
.news__grid > * { padding: 34px 34px 36px; border-right: 1px solid var(--line); }
.news__grid > *:first-child { padding-left: 0; }
.news__grid > *:last-child { padding-right: 0; border-right: 0; }
.news__title h2 { font-size: clamp(34px, 3.6vw, 48px); }
.news__title > a { display: inline-flex; gap: 24px; margin-top: 67px; color: var(--navy); font-size: 12px; font-weight: 700; }
.news__lead > p:first-child { display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 10.5px; font-weight: 700; text-transform: uppercase; }
.news__lead > p:first-child span { color: var(--gov-blue); }
.news__lead h3 { margin-top: 45px; font-family: var(--head); font-size: 28px; line-height: 1.18; letter-spacing: -.02em; }
.news__lead h3 a:hover { color: var(--gov-blue); }
.news__lead > p:not(:first-child) { margin-top: 18px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.read { display: inline-flex; gap: 25px; margin-top: 37px; color: var(--navy); font-size: 11px; font-weight: 700; }
.news__list li { border-bottom: 1px solid var(--line); }
.news__list li:first-child a { padding-top: 0; }
.news__list li:last-child { border-bottom: 0; }
.news__list a { display: grid; grid-template-columns: 1fr 18px; gap: 12px; padding-block: 22px; }
.news__list time { grid-column: 1 / -1; color: var(--gov-blue); font-size: 10px; font-weight: 700; }
.news__list strong { font-size: 13px; line-height: 1.45; }
.news__list a > span { color: var(--gov-blue); }
.news__list a:hover strong { color: var(--gov-blue); }

.contact { color: var(--white); background: var(--gov-blue); }
.contact__inner { display: grid; min-height: 210px; grid-template-columns: 1.2fr .8fr auto auto; gap: 45px; align-items: center; }
.contact h2 { font-size: 38px; }
.contact__inner > p { max-width: 300px; color: rgba(255,255,255,.72); font-size: 13px; }
.contact__inner > a:not(.contact__button) { white-space: nowrap; font-family: var(--head); font-size: 21px; font-weight: 700; }
.contact__button { display: flex; min-height: 50px; align-items: center; gap: 28px; padding: 12px 20px; color: var(--navy); background: var(--white); font-size: 12px; font-weight: 700; }

.footer { padding-block: 67px 25px; color: rgba(255,255,255,.68); background: #0d153f; }
.footer__top { display: grid; grid-template-columns: 1.7fr repeat(3, 1fr); gap: 65px; padding-bottom: 58px; }
.footer__brand img { width: 190px; filter: brightness(0) invert(1); }
.footer__brand p { max-width: 300px; margin-top: 25px; font-size: 12px; line-height: 1.7; }
.footer__top h3 { margin-bottom: 17px; color: var(--white); font-family: var(--head); font-size: 13px; }
.footer__top > div:not(.footer__brand) { display: flex; flex-direction: column; gap: 10px; }
.footer__top > div:not(.footer__brand) a { font-size: 11.5px; }
.footer__top a:hover { color: var(--white); }
.footer__bottom { display: flex; justify-content: space-between; gap: 30px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.16); font-size: 10px; }
.footer__bottom a { margin-left: auto; color: var(--white); }

@media (max-width: 1100px) {
  .nav { display: none; }
  .header__tools { margin-left: auto; }
  .menu { display: flex; }
  .hero__grid { gap: 40px; }
  .programs__grid { grid-template-columns: 300px 1fr; gap: 55px; }
  .contact__inner { grid-template-columns: 1fr 1fr; padding-block: 45px; }
  .contact__inner > a:not(.contact__button) { justify-self: start; }
  .contact__button { justify-self: end; }
}

@media (max-width: 820px) {
  .state-line__inner > span { display: none; }
  .state-line__inner { justify-content: flex-end; }
  .hero, .hero__grid { min-height: 0; }
  .hero__grid { grid-template-columns: 1fr; padding-block: 62px 70px; }
  .hero__copy { max-width: 680px; }
  .route { max-width: 620px; }
  .section-head, .results__head { grid-template-columns: 1fr; gap: 22px; }
  .section-head > p, .results__head > p { max-width: 560px; }
  .entrance-list a { grid-template-columns: 45px 1fr 90px; padding-block: 17px; }
  .entrance-list small { grid-column: 2; }
  .entrance-list i { grid-column: 3; grid-row: 1 / span 2; }
  .programs__grid { grid-template-columns: 1fr; gap: 45px; }
  .programs__intro { position: static; max-width: 560px; }
  .result-line { grid-template-columns: repeat(2, 1fr); }
  .result-line > div:nth-child(2) { border-right: 0; }
  .result-line > div:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.18); }
  .news__grid { grid-template-columns: 1fr 1fr; }
  .news__title { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--line); }
  .news__title > a { margin-top: 28px; }
  .footer__top { grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .shell { width: min(100% - 30px, var(--shell)); }
  .state-line__inner div { width: 100%; justify-content: space-between; gap: 10px; }
  .state-line__inner div a:nth-child(2) { display: none; }
  .header__inner { min-height: 64px; }
  .logo img { width: 156px; }
  .search, .account { display: none; }
  .drawer { top: 64px; }
  .hero__grid { padding-block: 50px 58px; }
  .hero h1 { font-size: clamp(39px, 12vw, 56px); }
  .hero__lead { font-size: 15px; }
  .button { width: 100%; }
  .route { padding: 22px 18px; }
  .route li { gap: 12px; }
  .route li strong { font-size: 14px; }
  .entrances, .programs, .news { padding-block: 72px; }
  .section-head { margin-bottom: 30px; }
  .entrance-list a { grid-template-columns: 35px 1fr 28px; gap: 10px; }
  .entrance-list strong { font-size: 17px; }
  .entrance-list i { font-size: 0; }
  .entrance-list i b { margin: 0; }
  .program-list a { min-height: 92px; grid-template-columns: 43px 1fr 18px; gap: 10px; }
  .program-list small { grid-column: 2; }
  .program-list i { grid-column: 3; grid-row: 1 / span 2; }
  .results { padding-block: 72px; }
  .result-line { grid-template-columns: 1fr; }
  .result-line > div,
  .result-line > div:not(:first-child) { min-height: 150px; padding: 22px 0; border-right: 0; border-top: 1px solid rgba(255,255,255,.18); }
  .result-line > div:first-child { border-top: 0; }
  .result-line dt { min-height: 0; }
  .result-line dd { margin-top: 14px; }
  .news__grid { grid-template-columns: 1fr; }
  .news__grid > * { padding: 28px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .news__grid > *:last-child { border-bottom: 0; }
  .contact__inner { grid-template-columns: 1fr; gap: 22px; }
  .contact__button { width: 100%; justify-content: space-between; justify-self: stretch; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 38px 25px; }
  .footer__bottom { flex-direction: column; gap: 8px; }
  .footer__bottom a { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
