/* ======================================== */
/* 0. СБРОС И ОСНОВНЫЕ СТИЛИ ДЛЯ HOME      */
/* ======================================== */
#home-content-wrapper * {
  /* Базовый сброс для всех дочерних элементов */
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

#home-content-wrapper {
  /* Устанавливаем основной шрифт и фон для обёртки */
  font-family: "Inter", sans-serif;
  background-color: #fff; /* Белый фон для секций, которые не внутри .page-wrapper */
}

/* ======================================== */
/* 1. ОБЁРТКА ДЛЯ ВСЕЙ СТРАНИЦЫ             */
/* ======================================== */
#home-content-wrapper .page-wrapper {
  /* --- ГРАДИЕНТ --- */
  background-image: linear-gradient(180deg, #0025b2 20%, #000 50%, #8e0d0d 100%);
  background-repeat: no-repeat;
  background-size: 100% 100%;

  /* --- ВЫСОТА --- */


  /* --- ЗАКРУГЛЕНИЯ --- */
  border-bottom-left-radius: 5.73vw;
  border-bottom-right-radius: 5.73vw;
}

/* ======================================== */
/* 2. ГЛАВНЫЙ ЭКРАН (HERO)                 */
/* ======================================== */
#home-content-wrapper .hero-main {
  position: relative;
  overflow-x: hidden;
  width: 100vw;
  height: 100vh;
}

/* ======================================== */
/* 3. ЭЛЕМЕНТЫ ВНУТРИ HERO                 */
/* ======================================== */

#home-content-wrapper .hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 74.2vw;
  background: linear-gradient(180deg, #0025b2 48.08%, rgba(0, 36, 178, 0) 100%);
  z-index: 0;
}

#home-content-wrapper .logo-top-left {
  position: absolute;
  left: 8vw;
  top: 8vw;
  width: 9vw;
  height: auto;
  z-index: 2;
}

#home-content-wrapper .logo-top-left svg {
  width: 100%;
  height: auto;
}
#home-content-wrapper .logo-top-left .logo-bg {
  fill: white;
}
#home-content-wrapper .logo-top-left .logo-text {
  fill: #0025b2;
}

#home-content-wrapper .logo-center {
  position: absolute;
  left: 14vw;
  top: 40vh;
  width: 71vw;
  height: auto;
  z-index: 2;
}

#home-content-wrapper .cloud-bottom-left {
  position: absolute;
  top: 47vh;
  right: 45vw;
  width: 81vw;
  height: auto;
  z-index: 3;
  pointer-events: none;
  animation: moveCloudLeft 2s ease-out forwards;

}

@keyframes moveCloudLeft {
  from {
    transform: translateX(-50vw); /* start off screen right */
  }
  to {
    transform: translateX(-5vw); /* move across and stop off screen left */
  }
}

#home-content-wrapper .cloud-top-right {
  position: absolute;
  top: 1.3vh;
  left: 69vw;
  width: 41vw;
  height: auto;
  z-index: 3;
  pointer-events: none;
    animation: moveCloud 2s ease-out forwards;
}

@keyframes moveCloud {
  from {
    transform: translateX(50vw); /* start off screen right */
  }
  to {
    transform: translateX(-5vw); /* move across and stop off screen left */
  }
}


/* ======================================== */
/* 4. КОНТЕНТ ПОД ГЛАВНЫМ ЭКРАНОМ          */
/* ======================================== */
#home-content-wrapper .content-section {
  padding: 0 1.04vw; /* 20px / 1920px */
}

/* --- Стили для текста "555" --- */
#home-content-wrapper .counter-text {
  color: #f00;
  text-align: center;
  font-family: "Inter", sans-serif;
  font-size: 13vw;
  font-style: normal;
  font-weight: 900;
  line-height: normal;
  margin-top: 1vh;
}

/* ======================================== */
/* 5. БЛОК СО СТАТИСТИКОЙ (STATS)          */
/* ======================================== */
#home-content-wrapper .stats-text {
  margin: 22vh auto 0;
  padding: 0 1.04vw; /* 20px / 1920px */
  color: #fff;
  text-align: center;
  font-family: "Franklin Gothic Heavy", "Arial Black", sans-serif;
  font-size: 1.67vw;
  font-style: normal;
  font-weight: 400;
  line-height: 1.875;
  text-transform: uppercase;
}

/* ======================================== */
/* 6. ДЕКОРАТИВНОЕ ИЗОБРАЖЕНИЕ (ZAVITUSHKA) */
/* ======================================== */
#home-content-wrapper .zavitushka-image {
  display: block;
  width: 70vw;
  height: auto;
}

/* ======================================== */
/* 7. ТЕКСТ ПОД СЧЕТЧИКОМ (WIKI LAUNCH)     */
/* ======================================== */
#home-content-wrapper .wiki-launch-text {
  color: #fff;
  text-align: center;
  font-family: "Inter", sans-serif;
  font-size: 5vw;
  font-weight: 700;
  line-height: normal;
  text-transform: uppercase;
  position: absolute;
  z-index: 2;
  width: 100%;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ======================================== */
/* 8. ИНФОРМАЦИОННЫЙ БЛОК НА БЕЛОМ ФОНЕ     */
/* ======================================== */
#home-content-wrapper .info-section {
  padding: 7vh 0 7vh 5vw;
}

#home-content-wrapper .info-grid {
  display: flex;
  align-items: center;
  width: 100%;
}

#home-content-wrapper .info-text-block {
  width: 100%;
  max-width: 25.1vw; /* 482px / 1920px */
  color: #000;
  font-family: "Inter", sans-serif;
  flex-shrink: 0;
}

#home-content-wrapper .info-text-block h2 {
  font-size: 3.07vw;
  font-weight: 800;
  line-height: 0.88; /* 52px / 59px */
  text-transform: uppercase;
  margin-bottom: 3.7vh; /* 40px / 1080px */
}

#home-content-wrapper .info-text-block p {
  font-size: 1.67vw;
  font-weight: 600;
  line-height: 1.25; /* 40px / 32px */
  text-transform: uppercase;
}

#home-content-wrapper .carousel-container {
  position: relative;
  width: 62.2vw;
  aspect-ratio: 1195/672;
  margin-left: 5vw;
  border-radius: 5.73vw;
  overflow: hidden;
  flex-shrink: 0;
}

#home-content-wrapper .carousel-slide {
  display: none;
  width: 100%;
  height: 100%;
}

#home-content-wrapper .carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#home-content-wrapper .carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 8px; /* 15px / 1080px */
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
}

#home-content-wrapper .carousel-button.prev {
  left: 1.04vw; /* 20px / 1920px */
}

#home-content-wrapper .carousel-button.next {
  right: 1.04vw; /* 20px / 1920px */
}

/* ======================================== */
/* 9. ФИНАЛЬНЫЙ ТЕКСТОВЫЙ БЛОК             */
/* ======================================== */
#home-content-wrapper .final-text-section {
  padding: 0 5vw;
  margin-top: -1vw;
  text-align: center;
}

#home-content-wrapper .breaking-cycle-text {
  max-width: 92.55vw; /* 1777px / 1920px */
  margin: 0 auto;
  color: #000;
  font-family: "Inter", sans-serif;
  font-size: 1.67vw;
  font-weight: 600;
  line-height: 1.25;
  text-transform: uppercase;
}

#home-content-wrapper .breaking-cycle-text a {
  color: #006fd0;
  text-decoration: underline;
}

/* ======================================== */
/* 10. БЛОК С УЧЕНЫМИ                       */
/* ======================================== */
#home-content-wrapper .scientists-section {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8vh 5vw;
}

#home-content-wrapper .scientists-image {
  width: 35%;
  max-width: 41.67vw; /* 800px / 1920px */
  height: auto;
  transform: rotate(0deg) translateX(-2vw);
}

#home-content-wrapper .nobel-prize-block {
  position: relative;
  width: 61.7vw;
  max-width: 61.72vw; /* 1185px / 1920px */
  margin-left: -10vw;
}

#home-content-wrapper .nobel-prize-svg {
  width: 79%;
  height: auto;
  transform: rotate(0deg) translateX(19vw);
}

#home-content-wrapper .nobel-prize-text {
  position: absolute;
  top: 8vw;
  left: 40vw;
  transform: translate(-50%, -50%);
  width: 90%;
  color: #000;
  text-align: right;
  font-family: "Inter", sans-serif;
  font-size: 2.5vw;
  font-style: normal;
  font-weight: 500;
  line-height: 1.35;
  text-transform: uppercase;
}

/* ======================================== */
/* 11. БЛОК С ИНФОРМАЦИЕЙ О ВАКЦИНЕ      */
/* ======================================== */
#home-content-wrapper .vaccine-info-section {
  padding: 0 5vw;
  margin-top: 3.33vw;
  text-align: center;
}

#home-content-wrapper .vaccine-info-section p {
  max-width: 91.3vw; /* 1753px / 1920px */
  margin-left: auto;
  margin-right: auto;
  color: #000;
  font-family: Inter, sans-serif;
  text-transform: uppercase;
}

#home-content-wrapper .vaccine-info-header {
  font-size: 2.08vw;
  font-weight: 700;
  line-height: normal;
  margin-bottom: 2em;
}

#home-content-wrapper .vaccine-info-body {
  padding: 0 24px;
  font-size: 1.875vw;
  font-weight: 500;
  line-height: normal;
}

/* ======================================== */
/* 12. ФИНАЛЬНЫЙ СЕРЫЙ БЛОК                */
/* ======================================== */
#home-content-wrapper .placeholder-section {
  padding: 5vh 5vw;
}

#home-content-wrapper .grey-placeholder {
  width: 84.4vw;
  height: 23.6vw;
  border-radius: 5.73vw;
  background: #d9d9d9;
  margin: 0 auto;
}

/* ======================================== */
/* 12.5. СЕКЦИЯ "ENGINEERED SYSTEM"         */
/* ======================================== */
#home-content-wrapper .engineered-system-section {
  margin-top: 1vh;
  padding: 0 5vw;
  text-align: center;
  position: relative;
  z-index: 2;
}

#home-content-wrapper .engineered-system-text {
  max-width: 72.3vw; /* 1388px / 1920px */
  margin-left: auto;
  margin-right: auto;
  color: #000;
  font-family: "Inter", sans-serif;
  font-size: 4.63vw;
  font-weight: 700;
  line-height: 85.394%;
  text-transform: uppercase;
}

#home-content-wrapper .engineered-system-text .large-text {
  display: block;
  margin-top: 3vh;
  font-size: 7.42vw;
}

/* ======================================== */
/* 13. СЕКЦИЯ С АВТОМОБИЛЕМ (ИЗМЕНЕНО)      */
/* ======================================== */
#home-content-wrapper .car-section {
  padding: 20vh 0;
  overflow: hidden;
  position: relative;
  margin-top: -25vh;
  z-index: 1;
}

#home-content-wrapper .car-image {
  width: 120vw;
  max-width: none;
  height: auto;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

/* ======================================== */
/* 14. СЕКЦИЯ С ОПИСАНИЕМ CRISPR           */
/* ======================================== */
#home-content-wrapper .crispr-info-section {
  margin-top: -19vh;
  padding: 0 5vw;
  text-align: center;
  position: relative;
  z-index: 2;
}

#home-content-wrapper .crispr-header {
  max-width: 89.375vw; /* 1716px / 1920px */
  margin: 0 auto 4.63vh auto; /* 50px / 1080px */
  color: #000;
  font-family: "Inter", sans-serif;
  font-size: 2.5vw;
  font-weight: 500;
  line-height: normal;
  text-transform: uppercase;
}

#home-content-wrapper .crispr-body {
  max-width: 88vw; /* 1690px / 1920px */
  margin: 0 auto;
  color: #000;
  font-family: "Inter", sans-serif;
  font-size: 1.875vw;
  font-weight: 500;
  line-height: normal;
  text-transform: uppercase;
}

#home-content-wrapper .crispr-body a {
  color: #000;
  text-decoration: underline;
}

/* ======================================== */
/* 15. СЕКЦИЯ С ВИДЕОБАННЕРОМ              */
/* ======================================== */
#home-content-wrapper .video-banner-section {
  text-align: center;
  border-radius: 32px;
  overflow: hidden;
  width: 100%;
  height: 640px;
  margin: 56px auto;
}

#home-content-wrapper .video-banner-image {
  max-width: 80%;
  height: auto;
  border-radius: 5.73vw;
}

/* ======================================== */
/* 16. СЕКЦИЯ ССЫЛКИ НА YOUTUBE            */
/* ======================================== */
#home-content-wrapper .youtube-link-section {
  text-align: center;
  padding: 2vh 0 5vh 0;
}

#home-content-wrapper .youtube-link {
  display: inline-block;
  width: 61.3vw; /* 1177px / 1920px */
  max-width: 90%;
  height: 13.6vh; /* 147px / 1080px */
  color: #006fd0;
  font-family: "Inter", sans-serif;
  font-size: 2.08vw;
  font-weight: 400;
  text-decoration: underline;
  text-transform: uppercase;
  line-height: 13.6vh; /* 147px / 1080px */
}

/* ======================================== */
/* 17. СЕКЦИЯ С ГОРОЙ И ЗНАКОМ (ИЗМЕНЕНО)  */
/* ======================================== */
#home-content-wrapper .mountain-section {
  position: relative;
  overflow: hidden;
}

#home-content-wrapper .mountain-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 40vh;
  background: linear-gradient(to bottom, white 30%, transparent 100%);
  z-index: 2;
}

#home-content-wrapper .mountain-image-container {
  position: relative;
  width: 100%;
}

#home-content-wrapper .mountain-image {
  width: 102.315%;
  height: auto;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  margin-left: -1.16vw; /* 22.222px / 1920px */
  margin-top: -15.18vh; /* 164px / 1080px */
  z-index: 1;
  display: block;
}

#home-content-wrapper .roadsign-image {
  position: absolute;
  right: -10vw; /* подгони под макет */
  bottom: -1vh; /* или px/vw, как удобнее */
  width: 118vw;
  height: auto;
  z-index: 4;
}

/* ======================================== */
/* 18. ЭЛЕМЕНТЫ ФУТЕРА (ИЗМЕНЕНО)           */
/* ======================================== */

#home-content-wrapper .footer-left-content {
  position: absolute;
  left: 6.5vw;
  bottom: 7.5vh;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

#home-content-wrapper .footer-contact-block {
  text-align: left;
  margin-bottom: 1.85vh;
}

#home-content-wrapper .contact-header {
  width: 26.67vw;
  max-width: 100%;
  color: #fff800;
  font-family: Inter, sans-serif;
  font-size: 2.5vw;
  font-weight: 700;
  text-transform: uppercase;
  line-height: normal;
}

#home-content-wrapper .contact-emails {
  width: 39.74vw;
  max-width: 100%;
  color: #fff;
  font-family: Inter, sans-serif;
  font-size: 2.5vw;
  font-weight: 700;
  text-transform: lowercase;
  line-height: normal;
}

#home-content-wrapper .footer-logo-left {
  width: 9vw;
  height: 6.57vh;
}

#home-content-wrapper .footer-logo-left svg {
  width: 100%;
  height: 100%;
}

#home-content-wrapper .footer-logo-right {
  position: absolute;
  right: 4.48vw;
  bottom: 7.96vh;
  z-index: 5;
  width: 9vw; /* Уменьшаем размер для соответствия */
  height: auto;
  border-radius: 50%; /* <<<<<<<<<<<<<<< ВОТ ЭТО ДОБАВЛЕНО */
  object-fit: cover; /* <<<<<<<<<<<<<<< И ЭТО ТОЖЕ */
}

/* =================================================================== */
/* ADAPTIVE STYLES                                                     */
/* =================================================================== */

@media (max-width: 992px) {
  #home-content-wrapper .page-wrapper {
    border-bottom-left-radius: 8vw;
    border-bottom-right-radius: 8vw;
  }
  #home-content-wrapper .logo-top-left {
    width: 15vw;
  }
  #home-content-wrapper .logo-center {
    top: 38vh;
    left: 10vw;
    width: 80vw;
  }
  #home-content-wrapper .cloud-bottom-left {
    width: 100vw;
  }
  #home-content-wrapper .cloud-top-right {
    left: 60vw;
    width: 50vw;
  }
  #home-content-wrapper .stats-text {
    font-size: 2.5vw;
    margin-top: 0;
  }
  #home-content-wrapper .counter-text {
    font-size: 20vw;
  }
  #home-content-wrapper .wiki-launch-text {
    font-size: 5vw;
  }
  #home-content-wrapper .zavitushka-image {
    margin-top: -30vh;
  }
  #home-content-wrapper .info-section {
    padding: 5vh 5vw;
  }
  #home-content-wrapper .info-grid {
    flex-direction: column;
    gap: 5vh;
  }
  #home-content-wrapper .info-text-block {
    max-width: 100%;
    text-align: center;
  }
  #home-content-wrapper .info-text-block h2 {
    font-size: 6vw;
    line-height: 1;
  }
  #home-content-wrapper .info-text-block p {
    font-size: 3vw;
  }
  #home-content-wrapper .carousel-container {
    width: 90vw;
    margin-left: 0;
  }
  #home-content-wrapper .final-text-section {
    margin-top: 3vh;
  }
  #home-content-wrapper .breaking-cycle-text {
    font-size: 2.5vw;
  }
  #home-content-wrapper .scientists-section {
    flex-direction: column;
    gap: 5vh;
    padding-top: 2vh;
  }
  #home-content-wrapper .scientists-image {
    width: 60%;
    max-width: none;
    transform: none;
  }
  #home-content-wrapper .nobel-prize-block {
    width: 90vw;
    max-width: none;
    margin-left: 0;
  }
  #home-content-wrapper .nobel-prize-svg {
    transform: none;
    width: 100%;
  }
  #home-content-wrapper .nobel-prize-text {
    font-size: 3.5vw;
    text-align: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
  }
  #home-content-wrapper .vaccine-info-header {
    font-size: 4vw;
  }
  #home-content-wrapper .vaccine-info-body {
    padding: 0;
    font-size: 3vw;
  }
  #home-content-wrapper .engineered-system-text {
    font-size: 7vw;
  }
  #home-content-wrapper .engineered-system-text .large-text {
    font-size: 11vw;
  }
  #home-content-wrapper .car-section,
  #home-content-wrapper .crispr-info-section {
    margin-top: -15vh;
  }
  #home-content-wrapper .crispr-header {
    font-size: 4vw;
  }
  #home-content-wrapper .crispr-body {
    font-size: 3vw;
  }
  #home-content-wrapper .youtube-link {
    font-size: 3.5vw;
  }
  #home-content-wrapper .mountain-image {
    margin-top: -10vh;
  }
  #home-content-wrapper .roadsign-image {
    width: 140vw;
    right: -20vw;
  }
  #home-content-wrapper .footer-left-content {
    left: 5vw;
    bottom: 5vh;
  }
  #home-content-wrapper .footer-logo-right {
    right: 5vw;
    bottom: 5vh;
    width: 15vw;
  }
  #home-content-wrapper .contact-header,
  #home-content-wrapper .contact-emails {
    font-size: 3.5vw;
  }
  #home-content-wrapper .footer-logo-left {
    width: 15vw;
  }
}

@media (max-width: 768px) {
  #home-content-wrapper .stats-text {
    font-size: 16px;
    line-height: 1.6;
  }
  #home-content-wrapper .wiki-launch-text {
    font-size: 6vw;
  }
  #home-content-wrapper .zavitushka-image {
    width: 90vw;
    margin: -20vh auto 0;
  }
  #home-content-wrapper .info-text-block h2 {
    font-size: 8vw;
  }
  #home-content-wrapper .info-text-block p {
    font-size: 4.5vw;
  }
  #home-content-wrapper .carousel-button {
    font-size: 16px;
    padding: 8px;
  }
  #home-content-wrapper .breaking-cycle-text {
    font-size: 16px;
  }
  #home-content-wrapper .scientists-image {
    width: 80%;
  }
  #home-content-wrapper .nobel-prize-text {
    font-size: 18px;
    line-height: 1.4;
  }
  #home-content-wrapper .vaccine-info-header {
    font-size: 20px;
  }
  #home-content-wrapper .vaccine-info-body {
    padding: 0;
    font-size: 16px;
    line-height: 1.5;
  }
  #home-content-wrapper .engineered-system-text {
    font-size: 9vw;
  }
  #home-content-wrapper .engineered-system-text .large-text {
    font-size: 8vw;
  }
  #home-content-wrapper .car-section,
  #home-content-wrapper .crispr-info-section {
    margin-top: -10vh;
  }
  #home-content-wrapper .crispr-header {
    font-size: 18px;
  }
  #home-content-wrapper .crispr-body {
    font-size: 16px;
  }
  #home-content-wrapper .youtube-link {
    font-size: 18px;
    width: 90vw;
    line-height: 1.5;
    height: auto;
    padding: 20px 0;
  }
  #home-content-wrapper .mountain-section {
    padding-bottom: 200px;
  }
  #home-content-wrapper .mountain-image {
    margin-top: 0;
  }
  #home-content-wrapper .roadsign-image {
    width: 180vw;
    right: -45vw;
    bottom: 120px;
  }
  #home-content-wrapper .footer-left-content {
    position: relative;
    bottom: auto;
    left: auto;
    align-items: center;
    padding-top: 50vh;
  }
  #home-content-wrapper .footer-logo-right {
    position: relative;
    display: block;
    margin: 20px auto 0;
    bottom: auto;
    right: auto;
    width: 25vw;
  }
  #home-content-wrapper .footer-contact-block {
    text-align: center;
  }
  #home-content-wrapper .contact-header,
  #home-content-wrapper .contact-emails {
    font-size: 18px;
    width: 100%;
  }
  #home-content-wrapper .footer-logo-left {
    width: 25vw;
    height: auto;
    margin: 0 auto;
  }
}
