<link href="https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap" rel="stylesheet">

/* ----------------------------------------------
   Основные стили шапки и логотипа
-------------------------------------------------*/
#sp-header, .header-logo-zone, .site-logo, #sp-logo {
  background: #eaeaea;
  min-height: 56px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  z-index: 10;
}

#sp-logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
  padding: 0 12px;
}

#sp-logo .logo a {
  display: flex;
  align-items: center;
  border-radius: 50%;
  transition: box-shadow 0.35s, background 0.35s;
  outline: none;
  margin: 0;
}

#sp-logo .logo-image, .logo-image, .logo-image-phone {
  display: block;
  max-height: 56px;
  height: 9vw;
  min-height: 32px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  transition: height 0.35s, max-height 0.25s, max-width 0.21s;
}

@media (max-width: 991.98px) {
  #sp-logo .logo-image, .logo-image, .logo-image-phone {
    height: 36px !important;
    max-height: 36px;
  }
  #sp-header, .header-logo-zone, .site-logo, #sp-logo {
    min-height: 40px;
  }
}

@media (max-width: 600px) {
  #sp-logo .logo-image, .logo-image, .logo-image-phone {
    height: 28px !important;
    max-height: 28px;
  }
  #sp-header, .header-logo-zone, .site-logo, #sp-logo {
    min-height: 30px;
    padding-left: 6px;
    padding-right: 6px;
  }
}

/* Эффекты наведения на логотип */
#sp-logo .logo a:hover .logo-image,
#sp-logo .logo a:focus .logo-image {
  filter: drop-shadow(0 0 18px #4dc3ffcc) brightness(1.08);
  box-shadow: 0 0 0 4px #4dc3ff33, 0 8px 24px #4dc3ff44;
}

/* ----------------------------------------------
   Стили меню — плавное сжатие и скрытие пунктов
-------------------------------------------------*/
.sp-megamenu-parent {
  display: flex !important;
  flex-wrap: nowrap;
  overflow: hidden;
  gap: 14px !important;
  transition: max-width 0.3s ease;
  align-items: center;
  height: 40px;
}

.sp-megamenu-parent > .sp-menu-item {
  flex-shrink: 1;
  min-width: 80px;
  opacity: 1;
  max-width: 240px; /* максимальная ширина пункта */
  transition: opacity 0.3s ease, max-width 0.3s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-right: 14px;
  padding: 0;
  display: inline-block;
}

.sp-megamenu-parent > .sp-menu-item:last-child {
  margin-right: 0;
}

.sp-megamenu-parent > .sp-menu-item > a {
  padding-left: 10px;
  padding-right: 10px;
}

/* Плавное скрытие пунктов меню справа налево */
@media (max-width: 1200px) {
  .sp-megamenu-parent > li:nth-last-child(1) {
    opacity: 0;
    max-width: 0;
    pointer-events: none;
  }
}
@media (max-width: 1050px) {
  .sp-megamenu-parent > li:nth-last-child(2) {
    opacity: 0;
    max-width: 0;
    pointer-events: none;
  }
}
@media (max-width: 930px) {
  .sp-megamenu-parent > li:nth-last-child(3) {
    opacity: 0;
    max-width: 0;
    pointer-events: none;
  }
}
@media (max-width: 820px) {
  .sp-megamenu-parent > li:nth-last-child(4) {
    opacity: 0;
    max-width: 0;
    pointer-events: none;
  }
}
@media (max-width: 700px) {
  .sp-megamenu-parent > li:nth-last-child(5) {
    opacity: 0;
    max-width: 0;
    pointer-events: none;
  }
}
@media (max-width: 600px) {
  .sp-megamenu-parent > li:nth-last-child(6) {
    opacity: 0;
    max-width: 0;
    pointer-events: none;
  }
  .sp-megamenu-parent {
    display: none !important;
  }
}


/* ----------------------------------------------
   Скрыть старую бургер-иконку
-------------------------------------------------*/
#offcanvas-toggler .burger-icon {
  display: none !important;
}

/* ----------------------------------------------
   СТАРАЯ Helix кнопка и niitp-hamburger-svg
-------------------------------------------------*/
.header-menu__hamburger {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: #fff;
  border: none;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(55,59,255,0.13);
  transition: box-shadow 0.3s, background 0.3s;
  position: relative;
  z-index: 1201;
  cursor: pointer;
  padding: 0;
}
.header-menu__hamburger:hover,
.header-menu__hamburger:focus {
  background: #f3f4ff;
  box-shadow: 0 0 0 4px #e4e6ff;
}
.button__icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.button__svg {
  width: 38px;
  height: 38px;
  display: block;
  transition: filter 0.3s;
}
.header-menu__hamburger:hover .button__svg {
  filter: drop-shadow(0 0 8px #373bff88);
}
.niitp-hamburger-svg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: none;
  border: none;
  border-radius: 50%;
  box-shadow: none;
  cursor: pointer;
  z-index: 1201;
  transition: box-shadow 0.3s, transform 0.25s cubic-bezier(.4,0,.2,1);
  padding: 0;
  position: relative;
  outline: none;
}
.button__icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 50px;
  height: 50px;
}
.button__svg {
  display: block;
  width: 50px;
  height: 50px;
  position: relative;
  z-index: 1;
  transition: transform 0.25s cubic-bezier(.4,0,.2,1);
}

/* Один круг — по умолчанию серый, тонкий */
.button__svg .button__main-circle {
  stroke: #c3c7d0;
  stroke-width: 3px;
  transition: stroke 0.3s, stroke-width 0.3s;
  opacity: 1;
}

/* При hover/active — круг толще, градиентный, и увеличивается */
.niitp-hamburger-svg:hover .button__svg,
.niitp-hamburger-svg.active .button__svg {
  transform: scale(1.30);
}
.niitp-hamburger-svg:hover .button__svg .button__main-circle,
.niitp-hamburger-svg.active .button__svg .button__main-circle {
  stroke: url(#niitp-gradient);
  stroke-width: 5;
}

/* Три точки — белые, аккуратные, не слипаются */
.button__svg circle[cx="32"],
.button__svg circle[cx="40"],
.button__svg circle[cx="48"] {
  opacity: 1;
  transition: opacity 0.2s;
}
.niitp-hamburger-svg.active .button__svg circle[cx="32"],
.niitp-hamburger-svg.active .button__svg circle[cx="40"],
.niitp-hamburger-svg.active .button__svg circle[cx="48"] {
  opacity: 0;
}

/* Крестик (появляется при открытии меню) */
.niitp-cross {
  position: absolute;
  left: 50%; top: 50%;
  width: 24px; height: 24px;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.7);
  transition: opacity 0.25s, transform 0.25s;
  z-index: 2;
}
.niitp-cross:before,
.niitp-cross:after {
  content: '';
  position: absolute;
  left: 11px;
  top: 4px;
  width: 2px;
  height: 16px;
  background: #fff;
  border-radius: 1px;
}
.niitp-cross:before {
  transform: rotate(45deg);
}
.niitp-cross:after {
  transform: rotate(-45deg);
}
.niitp-hamburger-svg.active .niitp-cross {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Мобильная адаптация кнопки */
@media (max-width: 991.98px) {
  .niitp-hamburger-svg {
    left: 11px;
    top: 4px;
    width: 48px;
    height: 48px;
  }
  .niitp-cross {
    width: 18px;
    height: 18px;
  }
  .button__svg {
    width: 32px;
    height: 32px;
  }
}


/* --- СТАРЫЕ КНОПКИ-ТОЧКИ  */
.niitp-hamburger {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 56px;
  height: 56px;
  background: #fff;
  border: none;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(55,59,255,0.13);
  cursor: pointer;
  z-index: 1201;
  transition: box-shadow 0.3s, background 0.3s, transform 0.25s cubic-bezier(.4,0,.2,1);
  padding: 0;
  position: relative;
  outline: none;
}
.niitp-hamburger .dot {
  display: block;
  width: 7px;
  height: 7px;
  margin: 0 3px;
  background: #373bff;
  border-radius: 50%;
  transition: opacity 0.25s, transform 0.25s;
}
.niitp-hamburger .cross {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 22px;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.5);
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
}
.niitp-hamburger .cross:before,
.niitp-hamburger .cross:after {
  content: '';
  position: absolute;
  left: 10px;
  top: 3px;
  width: 2px;
  height: 16px;
  background: #373bff;
  border-radius: 1px;
}
.niitp-hamburger .cross:before {
  transform: rotate(45deg);
}
.niitp-hamburger .cross:after {
  transform: rotate(-45deg);
}
.niitp-hamburger:hover,
.niitp-hamburger:focus {
  background: #f3f4ff;
  box-shadow: 0 0 0 8px #e4e6ff;
  transform: scale(1.10);
}
.niitp-hamburger.active,
.niitp-hamburger:active {
  background: #e4e6ff;
  box-shadow: 0 0 0 8px #d5d8f7;
  transform: scale(1.10);
}
.niitp-hamburger.active .dot {
  opacity: 0;
  transform: scale(0.5);
}
.niitp-hamburger.active .cross {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}


/* ----------------------------------------------
   Offcanvas меню: скрытие и показ через класс active
-------------------------------------------------*/
.niitp-offcanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(30, 36, 50, 0.92) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #e6e6e6;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(.4,0,.2,1);
}
.niitp-offcanvas.active {
  opacity: 1;
  pointer-events: auto;
}

/* Внутренности offcanvas меню */
.niitp-offcanvas-close {
  position: absolute;
  top: 32px; right: 32px;
  background: none;
  border: none;
  font-size: 2.5rem;
  color: #373bff;
  cursor: pointer;
  z-index: 2100;
}
.niitp-offcanvas .sp-module-content,
.niitp-offcanvas-inner {
  background: transparent !important;
}
.niitp-offcanvas-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.niitp-offcanvas-inner ul,
.niitp-offcanvas-inner .mod-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}
.niitp-offcanvas-inner ul li,
.niitp-offcanvas-inner .mod-menu li {
  margin: 24px 0;
}
.niitp-offcanvas-inner ul li a,
.niitp-offcanvas-inner .mod-menu li a {
  font-size: 2.2rem;
  color: #4dc3ff !important;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.niitp-offcanvas-inner ul li a:hover,
.niitp-offcanvas-inner .mod-menu li a:hover {
  color: #373bff !important;
}
.niitp-offcanvas-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30,36,60,0.36);
  opacity: 0;
  pointer-events: none;
  z-index: 1999;
  transition: opacity 0.4s cubic-bezier(.4,0,.2,1);
}
.niitp-offcanvas.active ~ .niitp-offcanvas-overlay,
.niitp-offcanvas-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.niitp-offcanvas .menu a {
  color: #4dc3ff;
}
.niitp-offcanvas .menu li.current > a,
.niitp-offcanvas .menu li.active > a {
  color: #4dc3ff;
  background: rgba(77,195,255,0.11);
  border-radius: 7px;
}
.niitp-offcanvas .menu a:hover,
.niitp-offcanvas .menu a:focus {
  color: #82cbff;
  background: rgba(77,195,255,0.17);
  border-radius: 7px;
}

/* ----------------------------------------------
   Мобильная адаптация (кнопки, offcanvas)
-------------------------------------------------*/
@media (max-width: 991.98px) {
  .niitp-hamburger,
  .niitp-hamburger-svg {
    position: fixed !important;
    top: 16px;
    right: 16px;
    z-index: 1300;
    width: 48px;
    height: 48px;
  }
  .niitp-hamburger .cross,
  .niitp-hamburger-svg .niitp-cross {
    width: 18px;
    height: 18px;
  }
  .button__svg {
    width: 32px;
    height: 32px;
  }
}

/* ----------------------------------------------
   Фон для всего сайта и оверлей
-------------------------------------------------*/
body {
  background: url('/images/bg.jpg') no-repeat center center fixed;
  background-size: cover;
  color: #e6e6e6;
  position: relative;
  min-height: 100vh;
  font-family: 'Roboto', sans-serif;
  font-size: 36px;
  text-decoration: none;
}

body::before {
  content: "";
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(15, 17, 22, 0.45);
  z-index: 0;
  pointer-events: none;
}

/* ----------------------------------------------
   Шапка и меню — padding и фиксированная высота
-------------------------------------------------*/
#sp-header {
  background: rgba(23, 25, 28, 0.75) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  padding-top: 5px;
  padding-bottom: 80px;
  height: 56px; /* фиксированная высота */
  overflow: hidden;
  position: relative;
  z-index: 10;
}

/* Меню по центру, стилизация ul/li */
.sp-megamenu-parent, .menu-with-offcanvas ul.menu, .sp-megamenu-parent.menu-animation-none {
  display: flex !important;
  gap: 44px;
  list-style: none;
  margin: 0;
  padding: 0;
  background: transparent !important;
}

.sp-menu-item, .menu > li {
  position: relative;
}

.sp-menu-item a,
.menu > li > a {
  color: #e6e6e6 !important;
  font-size: 1.14rem;
  font-weight: 500;
  padding: 8px 0 8px 0;
  border-bottom: 2px solid transparent;
  text-decoration: none;
  transition: color 0.2s, border-bottom 0.2s;
  background: none !important;
  letter-spacing: 0.01em;
  display: inline-block;
}

/* Активный пункт меню */
.sp-menu-item.current-item > a,
.sp-menu-item.active > a,
.menu > li.current > a,
.menu > li.active > a {
  color: #4dc3ff !important;
  border-bottom: 2px solid #4dc3ff;
  background: none !important;
}

/* Ховер по пункту меню */
.sp-menu-item a:hover,
.menu > li > a:hover {
  color: #4dc3ff !important;
  border-bottom: 2px solid #4dc3ff;
  background: none !important;
}

/* Подменю */
.sp-megamenu-parent > li {
  flex-shrink: 1;
  min-width: 80px;
  max-width: 240px; /* максимум ширины пункта */
  opacity: 1;
  transition: opacity 0.3s ease, max-width 0.3s ease;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.sp-megamenu-parent > li > a,
.menu-with-offcanvas ul.menu > li > a {
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sp-megamenu-parent .sp-dropdown,
.menu .nav-child {
  background: #23252a !important;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.13);
}
.sp-megamenu-parent .sp-dropdown li > a,
.menu .nav-child li > a {
  color: #e6e6e6 !important;
  padding: 8px 20px;
  font-size: 1rem;
  transition: color 0.2s, background 0.2s;
}
.sp-megamenu-parent .sp-dropdown li > a:hover,
.menu .nav-child li > a:hover {
  color: #4dc3ff !important;
  background: #232e3a !important;
}

/* ----------------------------------------------
   Логотип Роскосмос — всегда видимый и адаптивный
-------------------------------------------------*/
.logo-roscosmos-wrapper {
  display: flex !important;
  align-items: center;
  padding-left: 30px;
  transition: padding 0.3s ease;
}

.logo-roscosmos {
  display: block !important;
  transition: all 0.3s ease;
  padding-left: 30px;
}

.logo-roscosmos img {
  height: 46px;
  width: auto;
  display: block;
  padding-left: 20px;
  transition: height 0.3s ease, filter 0.3s, opacity 0.3s;
}

.logo-roscosmos:hover img,
.logo-roscosmos:focus img {
  filter: brightness(2.2);
}

@media (max-width: 991.98px) {
  .logo-roscosmos-wrapper {
    padding-left: 18px;
  }
  .logo-roscosmos img {
    height: 36px !important;
  }
}

@media (max-width: 600px) {
  .logo-roscosmos-wrapper {
    padding-left: 10px;
  }
  .logo-roscosmos img {
    height: 28px !important;
  }
}

@media (max-width: 991.98px) {
  #sp-header {
    padding-top: 14px;
    padding-bottom: 10px;
  }
}

/* ----------------------------------------------
   Поиск — модальное окно
-------------------------------------------------*/
#search-modal {
  display: none;
  position: fixed;
  z-index: 1100;
  top: 0; left: 0; right: 0; bottom: 0;
}
#search-modal.active {
  display: block;
}

.search-modal__overlay {
  position:fixed;top:0;left:0;width:100vw;height:100vh;
  background:rgba(24,36,50,0.86);z-index:0;
}

.search-modal__content {
  position:fixed; top:4vh; left:50%; transform:translateX(-50%);
  width:95vw; max-width:530px; background:#181f28; border-radius:15px;
  box-shadow:0 4px 40px #0007; z-index:1; padding:38px 36px 36px 36px;
  min-height:160px; transition:.24s;
}
.search-modal__close {
  position:absolute;top:13px;right:19px;background:transparent;
  border:none;font-size:2.1rem;color:#a4b7db;cursor:pointer;padding:0;
}
.search-modal__form { display:flex; gap:9px; align-items:center; margin-bottom:28px;}
.search-modal__input {
  flex:1; border-radius:8px;border:none;padding:12px 16px;
  background:#212e3e; color:#fff;font-size:1.07rem; outline: none;
  box-shadow: 0 2px 10px #4dc3ff20;
  transition: box-shadow .19s;
}
.search-modal__input:focus { box-shadow: 0 4px 24px #4dc3ff70;}
.search-modal__submit { background:none;border:none;cursor:pointer;}
.search-modal__results { margin-top:18px; min-height:60px;}
.search-loading {padding:24px;text-align:center;color:#4dc3ff;}
.no-search-results {padding:24px;text-align:center;color:#b74848;font-weight:500;}


/* -- Карточка и кнопка -- */
.products-card.tech-animated {
  background:#202b37;
  border-radius:17px;
  box-shadow:0 4px 22px #4dc3ff17,0 1px 7px #0003;
  padding: 22px 26px 20px 26px;
  margin-bottom:16px;
}
.products-card .products-header {
  display:flex;align-items:center; margin-bottom:18px; position:relative;
}
.products-card .products-glow {
  width:16px; height:16px;
  background: radial-gradient(circle,#4dc3ff77 15%,#477bb040 85%);
  border-radius:50%; margin-right:14px; display:block;
  box-shadow: 0 0 14px 2px #4dc3ff99;
}
.products-card .products-header h2 {
  margin:0;color:#4dc3ff;font-weight:600; font-size:1.18rem; letter-spacing:0.01em;
}
.products-card .products-row {
  display:flex;align-items:flex-start; gap:18px;
  margin-bottom:17px; opacity:0;transform:translateY(30px) scale(0.97);animation:none;transition: opacity 0.3s, transform 0.3s;
}
.products-card .products-row.reveal {
  opacity:1;
  animation:rowFadeIn 0.89s cubic-bezier(.4,0,.2,1) forwards;
}
@keyframes rowFadeIn { to { opacity:1; transform:none; } }
.products-icon.gradient-icon {
  width:38px; min-width:38px; height:38px;
  display:flex;align-items:center;justify-content:center;
  background:linear-gradient(144deg,#52afea 0%,#354afc 99%);
  border-radius:50%; box-shadow:0 1px 10px #4dc3ff25;
  color:#fff; font-size:1.45rem;
}
.products-text {
  color:#e8edf7;font-size:1rem; line-height:1.55;
}
.products-text b { color:#4dc3ff; font-weight:500;}

/* Кнопка "Подробнее" */
.btn.btn-primary {
  background: linear-gradient(90deg,#4dc3ff 0%,#196ebd 100%);
  color:#fff !important;
  border-radius:8px;
  padding:7px 19px;
  border:none;
  font-weight:500;
  box-shadow:0 2px 16px #4dc3ff30;
  text-decoration: none;
  transition: box-shadow .18s, background .18s;
  margin-top:6px;
}
.btn.btn-primary:hover,.btn.btn-primary:focus {
  background: linear-gradient(90deg,#196ebd 0%,#4dc3ff 100%);
  box-shadow:0 4px 22px #196ebd49;
  color:#fff !important;
  text-decoration: none;
}
.products-row .btn-primary i {margin-right:7px;}

/* Адаптив */
@media (max-width:600px) {
  .search-modal__content {padding:16px 6px 18px 6px;}
  .products-card.tech-animated {padding:12px 3vw;}
  .products-row {gap:11px;}
  .products-icon.gradient-icon {width:28px;height:28px;min-width:28px;font-size:1.14rem;}
  .products-header h2 {font-size:1.01rem;}
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(32px) scale(0.98);}
  to { opacity: 1; transform: none;}
}

/* Основной контейнер контента */
main#main-content {
  font-size: 1.14rem;
  color: #e6e6e6;
  background: none;
  padding-bottom: 40px;
}

/* Главный герой-блок */
.main-hero-section {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: none;
}
.main-hero-bg {
  position: absolute;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(23,25,28,0.86);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
  padding: 60px 0 40px 0;
}
.main-hero-section h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: #fff;
  letter-spacing: 0.01em;
}
.main-hero-section p {
  font-size: 1.18rem;
  margin-bottom: 32px;
  color: #e6e6e6;
}
.hero-btn {
  display: inline-block;
  background: #4dc3ff;
  color: #17191c;
  font-weight: 700;
  padding: 12px 32px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  box-shadow: 0 2px 8px rgba(77,195,255,0.12);
}
.hero-btn:hover {
  background: #2226a0;
  color: #fff;
}

/* Общие стили секций */
.main-section {
  padding: 64px 0 48px 0;
  background: none;
  margin: 0;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(.4,0,.2,1), transform 0.8s cubic-bezier(.4,0,.2,1);
}
.main-section.visible {
  opacity: 1;
  transform: none;
}
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
}
.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 36px;
  color: #4dc3ff;
  text-align: center;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 24px rgba(77,195,255,0.13);
}
/* преимущества */
.advantages-list {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin: 0 auto;
  padding: 0;
}
.advantage-item {
  background: linear-gradient(120deg, #232a38 80%, #26344d 100%);
  border: 1.5px solid rgba(77,195,255,0.19);
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0,30,60,0.09);
  min-width: 220px;
  max-width: 310px;
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 38px 22px 26px 22px;
  text-align: center;
  transition: box-shadow 0.3s, border 0.3s, background 0.3s;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  animation: fadeInUp 1.1s cubic-bezier(.4,0,.2,1) 0.2s forwards;
}
.advantage-item:nth-child(1) { animation-delay: 0.2s; }
.advantage-item:nth-child(2) { animation-delay: 0.4s; }
.advantage-item:nth-child(3) { animation-delay: 0.6s; }
.advantage-item:hover {
  box-shadow: 0 8px 36px #4dc3ff44, 0 2px 0 #4dc3ff22;
  border-color: #4dc3ff;
  background: linear-gradient(120deg, #24304a 80%, #284a6d 100%);
}
.advantage-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  margin-bottom: 18px;
  border-radius: 50%;
  background: linear-gradient(120deg, #232a38 60%, #4dc3ff 100%);
  box-shadow: 0 2px 16px #4dc3ff22;
  color: #4dc3ff;
  transition: background 0.3s, color 0.3s;
}
.advantage-item:hover .advantage-icon {
  background: linear-gradient(120deg, #4dc3ff 60%, #0b1e63 100%);
  color: #fff;
}
.advantage-icon i {
  font-size: 2.1rem;
  color: inherit;
  line-height: 1;
  display: block;
}
.advantage-title {
  color: #4dc3ff;
  font-weight: 700;
  font-size: 1.18rem;
  margin-bottom: 8px;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 12px #4dc3ff22;
}
.advantage-desc {
  color: #e6e6e6;
  font-size: 1.07rem;
  line-height: 1.55;
}
@media (max-width: 900px) {
  .advantages-list { gap: 18px; }
  .advantage-item { padding: 28px 12px 18px 12px; }
  .advantage-icon { width: 52px; height: 52px; font-size: 1.7rem; }
}
@media (max-width: 600px) {
  .advantages-list { flex-direction: column; gap: 12px; }
  .advantage-item { min-width: unset; max-width: 98vw; border-radius: 12px; }
  .advantage-icon { border-radius: 9px; }
  .section-title { font-size: 1.3rem; margin-bottom: 18px; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px) scale(0.98);}
  to { opacity: 1; transform: none;}
}

/* Блок проектов */
.projects-list {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin: 0 auto;
}
.project-card {
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(77,195,255,0.18);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  min-width: 240px;
  max-width: 320px;
  flex: 1 1 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px 18px 16px;
  text-align: center;
  transition: box-shadow 0.3s, border 0.3s;
  margin-bottom: 24px;
}
.project-card img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 14px;
  object-fit: cover;
  max-height: 160px;
}
.project-title {
  color: #4dc3ff;
  font-weight: 700;
  font-size: 1.13rem;
  margin-bottom: 6px;
}
.project-desc {
  color: #fff;
  font-size: 1.02rem;
  line-height: 1.5;
}
.project-card:hover {
  box-shadow: 0 6px 24px rgba(77,195,255,0.16);
  border: 1.5px solid #4dc3ff;
}

/* Новости */
.news-list {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 24px;
}
.news-card {
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(77,195,255,0.18);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  min-width: 220px;
  max-width: 300px;
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px 18px 18px 18px;
  text-align: left;
  transition: box-shadow 0.3s, border 0.3s;
}
.news-card:hover {
  box-shadow: 0 6px 24px rgba(77,195,255,0.16);
  border: 1.5px solid #4dc3ff;
}
.news-date {
  color: #4dc3ff;
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.news-title {
  color: #fff;
  font-size: 1.13rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.news-desc {
  color: #fff;
  font-size: 1.01rem;
  line-height: 1.5;
}
.news-btn {
  display: block;
  margin: 0 auto;
  background: #4dc3ff;
  color: #fff;
  font-weight: 700;
  border-radius: 24px;
  padding: 12px 36px;
  font-size: 1.09rem;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(77,195,255,0.10);
  transition: background 0.2s, color 0.2s;
  text-align: center;
}
.news-btn:hover {
  background: #003a6c;
  color: #fff;
}

/* Контакты */
.contact-card {
  background: linear-gradient(120deg, #232a38 80%, #26344d 100%);
  border: 1.5px solid rgba(77,195,255,0.19);
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0,30,60,0.09);
  max-width: 480px;
  margin: 0 auto;
  padding: 38px 32px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  text-align: left;
  transition: box-shadow 0.3s, border 0.3s, background 0.3s;
  position: relative;
  overflow: visible;
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  animation: fadeInUp 1.1s cubic-bezier(.4,0,.2,1) 0.2s forwards;
}
.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
.contact-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  border-radius: 50%;
  background: linear-gradient(120deg, #232a38 60%, #4dc3ff 100%);
  box-shadow: 0 2px 16px #4dc3ff22;
  color: #4dc3ff;
  margin-top: 2px;
  margin-bottom: 0;
  transition: background 0.3s, color 0.3s;
}
.contact-card:hover {
  box-shadow:
    0 0 0 2px rgba(77,195,255,0.12),
    0 8px 36px #4dc3ff44,
    0 2px 0 #4dc3ff22,
    0 0 24px 4px #4dc3ff44;
  border-color: #4dc3ff;
  background: linear-gradient(120deg, #24304a 80%, #284a6d 100%);
  transition: box-shadow 0.3s, border 0.3s, background 0.3s;
}

.contact-card:hover .contact-icon {
  background: linear-gradient(120deg, #4dc3ff 60%, #0b1e63 100%);
  color: #fff;
  box-shadow: 0 0 16px 4px #4dc3ff66;
}
.contact-title {
  color: #4dc3ff;
  font-weight: 700;
  font-size: 1.08rem;
  margin-bottom: 2px;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 12px #4dc3ff22;
}
.contact-text {
  color: #e6e6e6;
  font-size: 1.07rem;
  line-height: 1.55;
  font-weight: 400;
  word-break: break-word;
  margin: 0;
}
.contact-text a {
  color: #4dc3ff;
  text-decoration: none;
  border-bottom: 1px dashed #4dc3ff33;
  transition: color 0.2s, border-bottom 0.2s;
}
.contact-text a:hover {
  color: #fff;
  border-bottom: 1px solid #4dc3ff;
}
@media (max-width: 600px) {
  .contact-card {
    padding: 16px 8px 10px 8px;
    border-radius: 12px;
    max-width: 98vw;
  }
  .contact-icon {
    width: 36px;
    height: 36px;
    font-size: 1.15rem;
    min-width: 36px;
    min-height: 36px;
  }
  .contact-title { font-size: 1rem; }
  .contact-text { font-size: 0.98rem; }
  .contact-row { gap: 10px; }
}

/* Анимация появления для карточек и секций */
.animated-block {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 0.9s cubic-bezier(.4,0,.2,1) forwards;
}
.advantages-list .advantage-item:nth-child(1),
.projects-list .project-card:nth-child(1),
.news-list .news-card:nth-child(1),
.contact-card .contact-row:nth-child(1) { animation-delay: 0.2s; }
.advantages-list .advantage-item:nth-child(2),
.projects-list .project-card:nth-child(2),
.news-list .news-card:nth-child(2),
.contact-card .contact-row:nth-child(2) { animation-delay: 0.4s; }
.advantages-list .advantage-item:nth-child(3),
.projects-list .project-card:nth-child(3),
.news-list .news-card:nth-child(3),
.contact-card .contact-row:nth-child(3) { animation-delay: 0.6s; }
.advantages-list .advantage-item:nth-child(4),
.projects-list .project-card:nth-child(4),
.news-list .news-card:nth-child(4),
.contact-card .contact-row:nth-child(4) { animation-delay: 0.8s; }

@keyframes fadeInUp {
  to { opacity: 1; transform: none; }
}

/* Адаптивность */
@media (max-width: 991.98px) {
  .advantages-list, .projects-list, .news-list {
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }
  .main-section {
    padding: 32px 0 18px 0;
  }
  .section-title {
    font-size: 1.3rem;
    margin-bottom: 16px;
  }
  .section-content {
    font-size: 1rem;
  }
}
@media (max-width: 600px) {
  .main-hero-section {
    min-height: 320px;
  }
  .hero-content {
    padding: 36px 0 24px 0;
  }
  .main-section {
    padding: 18px 0 8px 0;
  }
  .advantages-list .advantage-item,
  .projects-list .project-card,
  .news-list .news-card,
  .contact-card {
    padding: 16px 8px;
    border-radius: 10px;
    min-width: 0;
    max-width: 100%;
  }
}

/* Десктоп: показывать верхнее меню, скрывать мобильное */
.top-menu { display: flex; }
.menu-mobile__button,
.top-menu-mobile { display: none; }


@media (max-width: 1050px) {
  .top-menu {
    display: none !important;
  }
  .menu-mobile__button {
    display: flex !important;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
  }
  .top-menu-mobile {
    display: block;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(23,25,28,0.98);
    z-index: 2000;
    padding: 80px 24px 24px 24px;
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }
  body.mobile-menu-open .top-menu-mobile {
    opacity: 1;
    pointer-events: auto;
  }
}


/* Скрыть десктоп-меню и все его обёртки на мобильных */
@media (max-width: 1050px) {
  .sp-megamenu-wrapper,
  .menu-with-social,
  .menu-with-offcanvas,
  .header-modules,
  .lang-selector {
    display: none !important;
  }
  /* Показать бургер */
  .menu-mobile__button,
  #offcanvas-toggler,
  .niitp-hamburger-svg {
    display: flex !important;
    align-items: center;
    z-index: 1100;
  }
}

/* О ВНИИЭМ */
.about-card {
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(77,195,255,0.18);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  margin: 0 auto;
  padding: 32px 24px;
  transition: box-shadow 0.3s, border 0.3s;
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: left;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 0.9s cubic-bezier(.4,0,.2,1) forwards;
}
.main-section.visible .about-card,
.visible .about-card {
  opacity: 1;
  transform: none;
}

.about-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.about-text {
  color: #fff;
  font-size: 1.07rem;
  line-height: 1.5;
  font-weight: 400;
}

.about-icon {
  font-size: 1.5rem;
  color: #4dc3ff;
  min-width: 2em;
  text-align: center;
  margin-top: 2px;
}

@media (max-width: 600px) {
  .about-card {
    padding: 16px 8px;
    border-radius: 10px;
    max-width: 100%;
    gap: 12px;
  }
  .about-text {
    font-size: 1rem;
  }
}

/* Адаптация размера экрана */

/* Скрываем поиск на меньших экранах */
@media (max-width: 991.98px) {
  .header-modules {
    display: none !important;
  }
}
/* Для адаптивного скрытия пунктов справа налево */
@media (max-width: 1200px) {
  .sp-megamenu-parent > li:nth-last-child(1) {
    opacity: 0;
    max-width: 0;
    pointer-events: none;
  }
}
@media (max-width: 1050px) {
  .sp-megamenu-parent > li:nth-last-child(2) {
    opacity: 0;
    max-width: 0;
    pointer-events: none;
  }
}
@media (max-width: 930px) {
  .sp-megamenu-parent > li:nth-last-child(3) {
    opacity: 0;
    max-width: 0;
    pointer-events: none;
  }
}
@media (max-width: 820px) {
  .sp-megamenu-parent > li:nth-last-child(4) {
    opacity: 0;
    max-width: 0;
    pointer-events: none;
  }
}
@media (max-width: 700px) {
  .sp-megamenu-parent > li:nth-last-child(5) {
    opacity: 0;
    max-width: 0;
    pointer-events: none;
  }
  #niitp-offcanvas-toggler {
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: fixed; /* или relative, в зависимости от дизайна */
    top: 16px;
    right: 16px;
    z-index: 1300;
    width: 48px;
    height: 48px;
    background: none;
    border: none;
    cursor: pointer;
    transition: box-shadow 0.3s, transform 0.25s cubic-bezier(.4,0,.2,1);
  }

}
@media (max-width: 600px) {
  .sp-megamenu-parent > li:nth-last-child(6) {
    opacity: 0;
    max-width: 0;
    pointer-events: none;
  }
  .sp-megamenu-parent {
    display: none !important;
  }
  #niitp-offcanvas-toggler {
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: fixed; /* или relative, в зависимости от дизайна */
    top: 16px;
    right: 16px;
    z-index: 1300;
    width: 48px;
    height: 48px;
    background: none;
    border: none;
    cursor: pointer;
    transition: box-shadow 0.3s, transform 0.25s cubic-bezier(.4,0,.2,1);
  }
}

/* Когда все пункты скрыты — показываем только offcanvas-toggler */
@media (max-width: 600px) {
  .sp-megamenu-parent {
    display: none !important;
  }
  #niitp-offcanvas-toggler {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }
}

#niitp-offcanvas-toggler-mobile {
  display: none;
}
@media (max-width: 991.98px) {
  #niitp-offcanvas-toggler-mobile {
    display: inline-flex !important;
    position: fixed !important;
    top: 16px;
    right: 16px;
    left: auto;
    bottom: auto;
    z-index: 1300;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
  }
  /* Чтобы не мешать лого при scroll */
  #sp-header, .header-logo-zone, .site-logo {
    position: relative;
    z-index: 100;
  }
}

/* Небольшой адаптив для совсем маленьких экранов */
@media (max-width: 600px) {
  #niitp-offcanvas-toggler-mobile {
    width: 38px;
    height: 38px;
    top: 10px;
    right: 10px;
  }
}

/* ----------------------------------------------
    Прелоадер - при загрузке страниц 
-------------------------------------------------*/

.sp-pre-loader {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: #000; /* или background: url('/images/bg.jpg') center/cover no-repeat; */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2147483647;
  transition: opacity 0.7s;
}

.sp-preloader-gif {
  /* Максимально крупный, но не выходит за экран */
  width: min(90vw, 90vh, 900px);
  height: auto;
  max-height: 80vh;
  max-width: 98vw;
  object-fit: contain;
  margin-bottom: 36px;
  display: block;
  border-radius: 0;
  box-shadow: none;
  background: none;
  padding: 0;
}

.sp-preloader-text {
  font-family: 'Roboto', 'Arial', sans-serif;
  font-size: 1.2rem;
  color: #4dc3ff;
  letter-spacing: 0.18em;
  margin-bottom: 24px;
  text-shadow: 0 2px 16px #0b1e6380;
  font-weight: 600;
  text-align: center;
}

.sp-preloader-progress-bar {
  width: min(60vw, 420px);
  max-width: 95vw;
  height: 12px;
  background: #223042;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: 0 2px 16px #4dc3ff33;
  position: relative;
}

.sp-preloader-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #4dc3ff 0%, #0b1e63 100%);
  border-radius: 6px 0 0 6px;
  transition: width 0.15s linear;
}

.sp-preloader-percent {
  font-family: 'Roboto', 'Arial', sans-serif;
  font-size: 1rem;
  color: #e6e6e6;
  letter-spacing: 0.09em;
  text-shadow: 0 1px 8px #4dc3ff55;
  text-align: center;
}

@media (max-width: 600px) {
  .sp-preloader-gif {
    width: 85vw;
    height: 40vw;
    max-width: 98vw;
    max-height: 40vh;
  }
  .sp-preloader-text {
    font-size: 1rem;
  }
  .sp-preloader-progress-bar {
    width: 90vw;
    height: 8px;
  }
  .sp-preloader-percent {
    font-size: 1rem;
  }
}

/* ----------------------------------------------
    Карта сайта 
-------------------------------------------------*/
.header-sitemap-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  margin-left: 20px; /* Отступ слева  */
  cursor: pointer;
  color: #4dc3ff;
  text-decoration: none;
  transition:
    color 0.3s ease,
    transform 0.3s ease;
  will-change: color, transform;
}

.header-sitemap-button:hover,
.header-sitemap-button:focus {
  color: #73eaff;
  transform: scale(1.1); /* Лёгкое увеличение всей кнопки */
  text-decoration: none;
}

.header-sitemap-button svg {
  display: block;
  width: 24px;
  height: 24px;
  transition: stroke 0.3s ease;
  stroke: #4dc3ff;
}

.header-sitemap-button:hover svg,
.header-sitemap-button:focus svg {
  stroke: #73eaff; /* Плавное изменение цвета иконки */
}
