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);
  /* background-color: #fff; */
  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 family-info ***********/

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

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

}

.family-info_head span {
  color: #140d8c;
}


.family-info_img {
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
  padding-bottom: 60px;
  max-width: 991px;
}

.family-info_img_last {
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
  padding-bottom: 60px;
  max-width: 991px;
}



.family-info_img img {
  width: 100%;
  height: auto;
}


.family-info_img_last img {
  width: 100%;
  height: auto;
}


.img-description,
.history-block_item_content_descr {
  font-weight: 700;
  font-size: 19px;
}

.family-info_paragraphs {
  display: flex;
  flex-direction: column;
  gap: 50px;
  font-size: 19px;
  max-width: 650px;
  line-height: 1.8;
  padding-bottom: 30px;
  padding-top: 30px;
}

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

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

/*********** section history-block ************/

.history-block {
  display: flex;
  flex-direction: column;
}


#history-block_item_head {
  font-size: 128px;
  border-bottom: solid 4px #1D1D1D;
  width: 70vw;
}

.history-block_item {
  max-width: 710px;
}

.history-block_item_content_img {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.history-block_item_content_header {
  font-size: 45px;
  padding-bottom: 30px;
}

.history-block_item_content_img img {
  width: 100%;
  height: auto;
}

.history-block_item_content {
  background-color: #f6f3ee;
  padding: 80px;
}

.history-block_item_content_paragraphs {
  display: flex;
  flex-direction: column;
  gap: 50px;
  font-size: 19px;
  max-width: 650px;
  line-height: 1.8;
  padding-bottom: 30px;
  padding-top: 30px;
}


.left-par {
  text-align: left;
}

.right-par {
  text-align: right;
}

.alignment {
  display: flex;
  flex-direction: column;
  padding-bottom: 50px;
}

.left {
  align-items: flex-start;
}

.right {
  align-items: flex-end;
}


.last_head {
  font-size: 55px;
  padding-top: 70px;
  padding-bottom: 30px;
  text-align: center;
}

.last_head span {
  color: #140d8c;
}

.family-info_img {
  padding: 0;
}


.btn-next {
  position: relative;
  top: -205px;
  left: 537px;
}

.btn-prev {
  position: relative;
  top: -205px;
  left: 15px;
  transform: rotate(180deg);
}

.btn-prev {
  position: absolute;
  top: 34%;
  left: 4%;
}

.btn-next {
    position: absolute;
    top: 34%;
    left: 93%;
}


#family-slider ol {
  display: none;
}

.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;
}

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

.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;
}



@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;

  }



}

@media (max-width: 983px) {

  .family-info_img {
    width: 95vw;
  }

  .family-info_paragraphs {
    max-width: unset;
    width: 95vw;
  }

  #history-block_item_head {
    width: 90vw;
  }

  .history-block_item {
    margin: 0 8px;
  }

  .family-info_head {
    text-align: left;
    padding-left: 63px;
    padding-top: 80px;
  }

  .family-info_img_last {
    width: unset;
  }

  .btn-prev,
  .btn-next {
    position: absolute;
    top: 34%;
  }
  


}

@media (max-width: 840px) {

  .history-block_item {
    width: 70vw;
  }

  .family-info_head {
    font-size: 65px;
    width: 85vw;
  }

}

@media (max-width: 640px) {
  .family-info_img_last {
    width: 80vw;
  }

  #family-slider {
    width: 85vw;
  }
}

@media (max-width: 520px) {
  #history-block_item_head {
    font-size: 80px;
  }
  .history-block_item_content {
    padding: 25px;
  }

  .history-block_item_content_header {
    font-size: 31px;
  }

  .family-info_head {
    font-size: 45px;
  }

  .family-info_paragraphs {
    width: 85vw;
  }

  .last_head {
    font-size: 39px;
  }
}