html {
  box-sizing: border-box;
}

/* *,
*::before,
*::after {
  box-sizing: inherit;
} */

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

body {
  margin: 0;
  padding: 0;
  font-family: "Rubik", sans-serif;
  font-weight: 400;
  font-style: normal;
  color: var(--text-color);
  color: #1D1D1D;
  /* background-color: #F5F5F5; */
  color: #1D1D1D;
}

p {
  display: block;
  padding: 0;
  margin: 0;
}

.container {
  margin: 0 auto;
}


.main {
  display: flex;
  flex-direction: column;
  max-width: 1800px;
  min-height: 1024px;
  background-size: cover;
  overflow: hidden;
  align-items: center;

}


/* подключаем шрифты */

.spectral-regular {
  font-family: "Spectral", serif;
  font-weight: 400;
  font-style: normal;
}

.spectral-bold {
  font-family: "Spectral", serif;
  font-weight: 700;
  font-style: normal;
}

.spectral-regular-italic {
  font-family: "Spectral", serif;
  font-weight: 400;
  font-style: italic;
}

.spectral-semibold-italic {
  font-family: "Spectral", serif;
  font-weight: 600;
  font-style: italic;
}


.ibm-plex-sans-regular {
  font-family: "IBM Plex Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}


.ibm-plex-serif-regular {
  font-family: "IBM Plex Serif", serif;
  font-weight: 400;
  font-style: normal;
}

.ibm-plex-serif-bold {
  font-family: "IBM Plex Serif", serif;
  font-weight: 700;
  font-style: normal;
}

/* -------------------------- */
.nav-head-panel {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  font-size: 21px;
  width: 100%;
}

.nav-menu {
  background-color: white;
  padding: 10px;
  border-radius: 10px;
}

.nav-row {
  display: flex;
  justify-content: center;
  gap: 80px;
  padding-bottom: 15px;
  color: #222222;
}


.nav-item {
  transition: font-weight 0.3s ease;
}

.nav-item:hover {
  font-weight: 700;
}

/*********** section rayon-info ***********/

.rayon-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* max-width: 995px; */
}

.rayon-info_head {
  text-align: center;
  font-size: 74px;
  line-height: 1.1;
  padding-top: 30px;
  padding-bottom: 60px;

}


/**************** first-block ************/

.first-block {
  display: flex;
  /* gap: 50px; */
  max-width: 991px;
  padding-bottom: 80px;

}

.first-block_left {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 555px;
}

.first-block_left_par {
  font-size: 19px;
  line-height: 1.8;
}

.first-block_left_par span {
  font-weight: 700;
}

.first-block_right {
  display: flex;
  justify-content: center;
  width: 855px;
  align-items: center;
}

.first-block_right img {
  max-width: 120%;
  height: auto;
}


/**************** second-block ************/

.second-block {
  display: flex;
  flex-direction: column;
  max-width: 991px;
  gap: 65px;
}

.second-block_img {
  display: flex;
  justify-content: center;

  border-radius: 45px;
}

.second-block_img img {
  width: 100%;
  height: auto;
}

.second-block_content {
  display: flex;
  flex-direction: column;
  gap: 30px;
  font-size: 19px;
  line-height: 1.8;
}

/************* third-block ************/

.third-block {
  display: flex;
  font-size: 19px;
  line-height: 1.8;
  padding-top: 70px;
  gap: 30px;
  overflow-y: auto;
  max-height: 100vh;

}

.third-block_left {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 480px;
}

.third-block_left_head {
  font-size: 59px;
  line-height: 1.1;
}

.third-block_right {
  display: flex;
  flex-direction: column;
  max-width: 603px;
  gap: 45px;
  overflow-y: auto;
  max-height: 100vh;

}

.third-block_right_item {
  background-color: rgb(241 232 216 / 42%);
  border-radius: 85px;
  padding: 0px 35px 35px 50px;
}

.third-block_right_item span {
  color: #140d8c;
}

.third-block_right_item_number {
  font-size: 119px;
}

.third-block_right_item_content {
  font-size: 19px;
  font-weight: 700;
  padding-bottom: 30px;
}

.third-block_right_img {
  display: flex;
  justify-content: center;
  align-items: center;
}

.third-block_right_img img {
  width: 100%;
  height: auto;
}

.last-par {
  font-size: 36px;
  text-align: left;
  padding-top: 100px;
  max-width: 994px;
}


#svg-prev {
  position: relative;
  top: -240px;
  left: 20px;
}

#svg-next {
  position: relative;
  top: -240px;
  left: 533px;
}


.svg-hidden {
  display: flex;
  justify-content: flex-end;
  margin-right: 25px;
  position: fixed;
  right: 0;
  z-index: 300;
  display: none;
  padding-top: 30px;
}

footer {
  display: flex;
  justify-content: center;
  padding: 100px 0px;
}

.footer_par {
  display: flex;
  flex-direction: column;
  align-items: center;
}


/* Скрытие полосы прокрутки в WebKit браузерах */
.scrollable-div::-webkit-scrollbar {
  display: none;
}

/* Скрытие полосы прокрутки в IE/Edge */
.scrollable-div {
  -ms-overflow-style: none;
  /* IE and Edge */
}

/* Скрытие полосы прокрутки в Firefox */
.scrollable-div {
  scrollbar-width: none;
  /* Firefox */
}

/*************для пропадания хэдера при скроллинге********/

.block {
  height: 50px;
  /* Задайте высоту блоков */
  transition: opacity 0.5s ease;
  /* Плавное изменение прозрачности */
}

.block-1 {
  /* background-color: lightblue; */
  opacity: 1;
  /* Блок 1 видим */
  z-index: 100;
}

.block-2 {
  background-color: white;
  opacity: 0;
  /* Блок 2 скрыт */
  position: absolute;
  /* Позиционирование, чтобы блоки перекрывались */
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  position: fixed;
  width: 100%;
  color: #808080;
  padding: 0px 10px;
  z-index: 50;
  gap: 60px;
}

.hidden {
  opacity: 0;
}

.visible {
  opacity: 1;
}

.disable {
  display: none;
}

.enable {
  display: flex;
}




.to-right-menu {
  display: flex;
  flex-direction: column;
  font-size: 21px;
  gap: 10px;
  padding-top: 25px;
}


#right-hidden {

  position: fixed;
  display: none;
  right: 0;
  margin-top: 70px;
  z-index: 600;
}

#block-1 {
  flex-direction: column;
  height: unset;
}

.drop-block {
  position: relative;
  display: flex;
  gap:9px;
  z-index: -100;
}

.drop-block img {
  padding-top: 4px;
}



@media (max-width: 1024px) {
  .svg-hidden {
    display: flex;
    z-index: 1000;
    transform: scale(1);
    transition: transform 0.3s ease;
    /* Плавный переход */
  }

  .svg-hidden:active {
    transform: scale(1.1);
    /* Увеличение при наведении */
  }

  #right-hidden {
    display: none;
    flex-direction: column;
  }


  /* .nav-head-panel {
    flex-direction: row;
    justify-content: flex-end;
    padding-top: 70px;
    position: fixed;
    z-index: 500;
    display: none;
  } */

  /* .content {
    display: none;
  } */

  .nav-row {
    flex-direction: column;
    gap: 17px;
    background-color: #fff;

  }

  .rayon-info_head {
    padding-top: 111px;
  }

}

@media (max-width: 981px) {


  .rayon-info {
    align-items: flex-start;
    width: 90vw;
  }

  #rayon-slider.itcss {
    max-width: unset;
  }

  .third-block {
    gap: 25px;
  }

  .third-block_left {
    max-width: 45%;
  }

  .third-block_left_head {
    font-size: 55px;
  }

  .third-block_right_item {
    border-radius: 55px;
  }

  .last-par {
    font-size: 28px;
  }

  #svg-prev {
    position: absolute;
    top: 41%;
  }

  #svg-next {
    position: absolute;
    top: 41%;
    left: 94%;
  }

  .rayon-info ol {
    bottom: 2%;
  }

}


@media (max-width: 482px) {

  .first-block {
    flex-direction: column-reverse;
  }

  .first-block_right {
    width: 100%;
  }

  .rayon-info_head {
    font-size: 60px;
  }

  .third-block {
    flex-direction: column;
    align-items: center;
  }

  .third-block_left {
    max-width: unset;
  }

  .third-block_left_head {
    font-size: 46px;
  }

  #scrollContainer {
    overflow-y: unset;
  }

  .last-par {
    font-size: 20px;
  }

}