:root {
  --navy: #002653;
  --navy-deep: #002348;
  --navy-dark: #001d3f;
  --blue: #006da8;
  --cyan: #00a9c9;
  --cyan-soft: #e9f8fb;
  --ice: #f4fbff;
  --line: #dce8f0;
  --text: #092653;
  --muted: #39516f;
  --white: #ffffff;
  --shadow: 0 14px 30px rgba(0, 38, 83, .11);
  --soft-shadow: 0 8px 22px rgba(0, 38, 83, .08);
  --wrap: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.45;
}

body.modal-open,
body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 14px rgba(0, 38, 83, .03);
}

.header-inner {
  width: min(var(--wrap), calc(100% - 56px));
  height: 84px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand {
  min-width: 385px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand-mark {
  font-size: 38px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--navy);
  white-space: nowrap;
}

.brand-name {
  color: var(--navy);
  font-size: 16px;
  line-height: 1.25;
  font-weight: 500;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 33px;
  flex: 1;
}

.main-nav a {
  position: relative;
  color: var(--navy-dark);
  font-size: 14px;
  font-weight: 600;
  padding: 32px 0 29px;
}

.main-nav a:first-child::after,
.main-nav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 19px;
  height: 3px;
  background: var(--cyan);
}

.header-action {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 0 19px;
  border-radius: 4px;
  background: var(--navy-dark);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 9px 20px rgba(0, 35, 72, .17);
  transition: transform .2s ease, background .2s ease;
}

.header-action:hover {
  transform: translateY(-1px);
  background: #003264;
}

.menu-toggle {
  display: none;
}

.hero {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, #fff 0%, #fff 41%, #eaf6fc 100%);
}

.hero-inner {
  width: min(var(--wrap), calc(100% - 56px));
  min-height: 522px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(440px, 520px) minmax(0, 1fr);
  align-items: stretch;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 66px 0 46px;
}

.hero-copy h1 {
  max-width: 560px;
  margin: 0 0 34px;
  color: var(--navy);
  font-size: 42px;
  line-height: 1.12;
  letter-spacing: 0;
  font-weight: 800;
}

.hero-points {
  position: relative;
  margin: 0 0 28px;
  padding: 0 0 0 27px;
  list-style: none;
}

.hero-points::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 6px;
  width: 2px;
  background: var(--cyan);
}

.hero-points li {
  position: relative;
  margin: 0 0 10px;
  color: var(--text);
  font-size: 17px;
  line-height: 1.35;
  font-weight: 500;
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 8px;
  width: 8px;
  height: 8px;
  border: 2px solid var(--cyan);
  border-radius: 50%;
  background: var(--white);
}

.hero-copy p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  font-weight: 500;
}

.hero-visual {
  min-height: 522px;
  background-image: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, .72) 9%, rgba(255, 255, 255, 0) 24%), url("../img/hero-visual.png");
  background-repeat: no-repeat;
  background-size: 100% 100%, cover;
  background-position: center;
}

.content-section {
  padding: 25px 0 31px;
  background: var(--white);
}

.section-head {
  margin: 0 auto 18px;
  text-align: center;
}

.section-head h2 {
  margin: 0;
  color: var(--navy);
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: .5px;
  font-weight: 800;
}

.section-head span {
  display: block;
  width: 36px;
  height: 3px;
  margin: 9px auto 0;
  background: var(--cyan);
}

.directions-grid {
  width: min(var(--wrap), calc(100% - 76px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 17px;
}

.direction-card,
.science-card,
.cooperation-card {
  border: 0;
  cursor: pointer;
  text-align: left;
  color: var(--text);
  background: transparent;
}

.direction-card {
  position: relative;
  min-height: 215px;
  padding: 28px 22px 52px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.direction-card:hover,
.science-card:hover {
  transform: translateY(-4px);
  border-color: #b9dbe8;
  box-shadow: var(--shadow);
}

.direction-card .icon {
  float: left;
  margin: -4px 17px 8px 0;
}

.direction-card h3 {
  min-height: 48px;
  margin: 0 0 29px;
  color: var(--navy);
  font-size: 16px;
  line-height: 1.22;
  font-weight: 800;
}

.direction-card p {
  clear: both;
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.52;
  font-weight: 500;
}

.card-arrow {
  position: absolute;
  right: 21px;
  bottom: 20px;
  color: var(--cyan);
  font-size: 28px;
  line-height: 1;
  font-weight: 300;
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 1px solid #d7edf4;
  border-radius: 50%;
  background: var(--cyan-soft);
  color: var(--cyan);
}

.icon svg {
  width: 33px;
  height: 33px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cooperation {
  padding: 23px 0 32px;
  background: linear-gradient(90deg, #fafdff 0%, #edf8fe 50%, #fafdff 100%);
  border-top: 1px solid #edf4f8;
  border-bottom: 1px solid #edf4f8;
}

.cooperation-grid {
  width: min(var(--wrap), calc(100% - 76px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.cooperation-card {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 22px;
  min-height: 142px;
  padding: 18px 34px 12px 6px;
  border-right: 1px solid #cadde8;
  transition: background .2s ease;
}

.cooperation-card:last-child {
  border-right: 0;
}

.cooperation-card:hover {
  background: rgba(255, 255, 255, .55);
}

.cooperation-card .icon {
  width: 65px;
  height: 65px;
  background: rgba(255, 255, 255, .45);
  color: var(--navy);
}

.cooperation-card .icon svg {
  width: 38px;
  height: 38px;
}

.cooperation-body {
  display: block;
}

.cooperation-body strong {
  display: block;
  margin: 2px 0 17px;
  color: var(--navy);
  font-size: 17px;
  line-height: 1.25;
  font-weight: 800;
}

.cooperation-body span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  font-style: normal;
  font-weight: 500;
}

.cooperation-body em {
  display: inline-flex;
  gap: 8px;
  margin-top: 22px;
  color: var(--cyan);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.science {
  position: relative;
  padding: 20px 0 29px;
}

.science .section-head {
  margin-bottom: 15px;
}

.section-link {
  position: absolute;
  top: 35px;
  right: max(38px, calc((100vw - var(--wrap)) / 2));
  color: var(--cyan);
  font-size: 13px;
  font-weight: 700;
}

.science-grid {
  width: min(var(--wrap), calc(100% - 76px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.science-card {
  position: relative;
  display: grid;
  grid-template-columns: 156px 1fr;
  min-height: 145px;
  padding: 0 48px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  box-shadow: 0 8px 22px rgba(0, 38, 83, .07);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.science-card strong {
  align-self: center;
  color: var(--navy);
  font-size: 15px;
  line-height: 1.25;
  font-weight: 800;
}

.science-image {
  display: block;
  min-height: 145px;
  margin-right: 18px;
  background-image: var(--science-image);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.science-image--network {
  --science-image: url("../img/science-network.png");
}

.science-image--analytics {
  --science-image: url("../img/science-analytics.png");
}

.science-image--human {
  --science-image: url("../img/science-human.png");
}

.stats {
  background: linear-gradient(90deg, #002653 0%, #003b73 50%, #002653 100%);
  color: var(--white);
}

.stats-inner {
  width: min(var(--wrap), calc(100% - 76px));
  min-height: 100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
}

.stat-item {
  min-height: 70px;
  display: grid;
  grid-template-columns: 74px auto;
  grid-template-rows: auto auto;
  align-items: center;
  padding: 0 28px;
  border-right: 1px solid rgba(255, 255, 255, .35);
}

.stat-item:first-child {
  padding-left: 0;
}

.stat-item:last-child {
  border-right: 0;
}

.stat-item .icon {
  grid-row: 1 / 3;
  width: 56px;
  height: 56px;
  border: 0;
  background: transparent;
  color: var(--white);
}

.stat-item .icon svg {
  width: 47px;
  height: 47px;
  stroke-width: 1.7;
}

.stat-item strong {
  align-self: end;
  font-size: 31px;
  line-height: 1;
  font-weight: 800;
}

.stat-item span {
  max-width: 120px;
  color: rgba(255, 255, 255, .94);
  font-size: 12px;
  line-height: 1.25;
  font-weight: 500;
}

.footer {
  color: var(--white);
  background: radial-gradient(circle at 50% 0%, #004578 0%, #002a57 42%, #001f43 100%);
}

.footer-inner {
  width: min(var(--wrap), calc(100% - 76px));
  min-height: 214px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.35fr .75fr .95fr 1.2fr;
  gap: 48px;
  padding: 28px 0 22px;
}

.footer-brand h2 {
  margin: 0 0 6px;
  font-size: 27px;
  line-height: 1;
  font-weight: 800;
}

.footer-brand p {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, .92);
  font-size: 13px;
  line-height: 1.42;
}

.socials {
  display: flex;
  gap: 10px;
}

.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
}

.footer-column {
  padding-top: 10px;
}

.footer-column h3 {
  margin: 0 0 15px;
  font-size: 13px;
  line-height: 1;
  font-weight: 800;
}

.footer-column a,
.footer-column p {
  display: block;
  margin: 0 0 9px;
  color: rgba(255, 255, 255, .9);
  font-size: 12px;
  line-height: 1.35;
}

.footer-column a:hover {
  color: var(--white);
}

.footer-contacts a,
.footer-contacts p {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: start;
  margin-bottom: 16px;
}

.footer-contacts .icon {
  width: 20px;
  height: 20px;
  border: 0;
  background: transparent;
  color: var(--white);
}

.footer-contacts .icon svg {
  width: 18px;
  height: 18px;
}

.copyright {
  width: min(var(--wrap), calc(100% - 76px));
  margin: 0 auto;
  padding: 12px 0 14px;
  border-top: 1px solid rgba(255, 255, 255, .18);
  color: rgba(255, 255, 255, .7);
  font-size: 10px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal.is-open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 24, 52, .58);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 34px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 24px 70px rgba(0, 24, 52, .25);
}

.modal-close {
  position: absolute;
  top: 13px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.modal-panel h2 {
  margin: 0 32px 16px 0;
  color: var(--navy);
  font-size: 26px;
  line-height: 1.2;
}

.modal-panel p {
  margin: 0 0 15px;
  color: var(--muted);
  font-size: 16px;
}

.modal-panel ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text);
}

.modal-panel li {
  margin-bottom: 8px;
}

.modal-action {
  display: inline-flex;
  margin-top: 20px;
  padding: 12px 18px;
  border-radius: 4px;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
}

.load-error {
  width: min(760px, calc(100% - 40px));
  margin: 80px auto;
  padding: 28px;
  border: 1px solid #ffd3d3;
  border-radius: 8px;
  background: #fff7f7;
}

@media (max-width: 1060px) {
  .header-inner {
    width: min(100% - 34px, var(--wrap));
    gap: 18px;
  }

  .brand {
    min-width: 330px;
  }

  .brand-mark {
    font-size: 31px;
  }

  .brand-name {
    font-size: 13px;
  }

  .main-nav {
    gap: 18px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 400px;
    background-position: center;
  }

  .directions-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .stats-inner {
    grid-template-columns: repeat(2, 1fr);
    padding: 18px 0;
  }

  .stat-item:nth-child(2) {
    border-right: 0;
  }

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

@media (max-width: 820px) {
  .header-inner {
    height: 72px;
  }

  .brand {
    min-width: 0;
    flex: 1;
    gap: 12px;
  }

  .brand-mark {
    font-size: 27px;
  }

  .brand-name {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--white);
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 0 auto;
    background: var(--navy);
  }

  .main-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 24px 24px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .menu-open .main-nav {
    display: flex;
  }

  .main-nav a {
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
  }

  .main-nav a::after {
    display: none;
  }

  .header-action {
    min-height: 38px;
    padding: 0 13px;
    font-size: 13px;
  }

  .hero-inner,
  .directions-grid,
  .cooperation-grid,
  .science-grid,
  .stats-inner,
  .footer-inner,
  .copyright {
    width: min(100% - 32px, var(--wrap));
  }

  .hero-inner {
    min-height: 0;
  }

  .hero-copy {
    padding: 42px 0 28px;
  }

  .hero-copy h1 {
    font-size: 34px;
  }

  .hero-points li {
    font-size: 15px;
  }

  .hero-visual {
    min-height: 300px;
    background-size: 100% 100%, cover;
    background-position: center;
  }

  .directions-grid,
  .cooperation-grid {
    grid-template-columns: 1fr;
  }

  .cooperation-card {
    border-right: 0;
    border-bottom: 1px solid #cadde8;
    padding-right: 6px;
  }

  .cooperation-card:last-child {
    border-bottom: 0;
  }

  .section-link {
    position: static;
    display: block;
    width: min(100% - 32px, var(--wrap));
    margin: -4px auto 16px;
    text-align: right;
  }

  .science-card {
    grid-template-columns: 140px 1fr;
  }

  .stats-inner {
    grid-template-columns: 1fr;
  }

  .stat-item {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .28);
    padding: 16px 0;
  }

  .stat-item:last-child {
    border-bottom: 0;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 520px) {
  .header-inner {
    width: calc(100% - 24px);
  }

  .header-action {
    display: none;
  }

  .hero-copy h1 {
    font-size: 30px;
  }

  .hero-visual {
    min-height: 245px;
    background-size: 100% 100%, cover;
    background-position: center;
  }

  .direction-card {
    min-height: 0;
  }

  .science-card {
    grid-template-columns: 1fr;
    padding: 0 44px 48px 0;
  }

  .science-card strong {
    padding: 18px 18px 0;
  }

  .science-image {
    min-height: 155px;
    margin-right: 0;
    background-size: cover;
  }

  .modal-panel {
    padding: 28px 22px;
  }
}
