
html {
    font-family: Inter;
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    height: 100%;
    overflow: hidden;
}

* {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

*::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

*:focus {
    outline: none;
}

* {
  box-sizing: border-box;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
menu,
nav,
section,
summary {
    display: block;
}

a {
  text-decoration: none;
  cursor: pointer;
  color: #000;
}

p {
  margin: 0px;
  padding: 0px;
}
.container {
  width: 100%;
  margin: 0 auto;
  height: 100%;
  padding: 0 var(--container-padding);
  align-items: center;
}

@media (min-width: 768px)  { .container { max-width: 90vw; } }
/* @media (min-width: 992px)  { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1140px; } }
@media (min-width: 1400px) { .container { max-width: 1320px; } } */

.hidden {
    display: none !important;
}

h1 {
    font-size: 2em;
    margin: 0.67em 0;
}

h2 {
  margin: 0px;
}

@font-face {
    font-family: "Volshebstvo";
    font-style: normal;
    font-weight: 400;
    src: url("../fonts/TDVolshebstvo.woff2") format("woff2"), url("../fonts/TDVolshebstvo.woff") format("woff");
    font-display: swap;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/Manrope-Regular.woff2") format("woff2"), url("../fonts/Manrope-Regular.woff") format("woff");
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 500;
  src: url("../fonts/Manrope-Medium.woff2") format("woff2"), url("../fonts/Manrope-Medium.woff") format("woff");
  font-display: swap;
}


body {
    margin: 0;
    background-color: #fbfbfb; 
    overflow: hidden;
    position: relative;
    color: #000;
    height: 100vh;
  }

.loader {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  position: absolute;
  /* background-color: #fbfbfb; */
  z-index: 5555;

}
.loader::after {  
  /* content: ''; */
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  background-image: url(../img/preloader_bg_16_9.webp);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  overflow: hidden;
}
@media (max-width: 768px) {
  .loader::after {  
    /* content: ''; */
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    background-image: url(../img/preloader_bg_9_16.webp);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    overflow: hidden;
  }
}


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

.main_title {
  font-family: Volshebstvo;
  font-size: 48px;
  color: #371923;
  position: relative;
}

.main_title br {
  display: none;
}

.main_title2 {
    font-family: Volshebstvo;
    font-size: 36px;
    color: #371923;
}
.main_title span{
    font-size: 65px;
    color: #d63c34;
}

.video-bg {
    position: relative;
    height: 120px;
    border-radius: 20px;
    width: 100px;
    overflow: hidden;

  }
  
  .video-bg__video {
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    z-index: 1; 
  }
  
  .video-bg__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2; 
  }
  
  .video-bg__content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 20px;
  }


  .slide-in {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-family: sans-serif;
    transform: translateX(100vw);
    
  }

  /* @keyframes slideRightToLeft {
    from {
      transform: translateX(100vw);
      opacity: 0;
    }
    to {
      transform: translateX(0);
      opacity: 1;
    }
  }

.main_title2 {
    transform: scale(10000%);
    opacity: 0;
    animation-name: subtitleScale;
    animation-duration: 1s;
    animation-timing-function: ease-out;
    animation-delay: 4s;
    animation-fill-mode: forwards;
}

  @keyframes subtitleScale {
    from {
      transform: scale(10000%);
      opacity: 0;
    }
    to {
      transform: scale(100%);
      opacity: 1;
    }
  }

  .slide-in.wait_video.video_ready {
    animation: slideRightToLeft 4s ease-out forwards;
  }

  .main_title2.wait_video.video_ready {
    animation: subtitleScale 1s ease-out 4s forwards;
  }

.behavior_opacity {
  transition: 1s ease-in-out;
  opacity: 0;
}

.scale_loader {
  transition: 1s ease-in-out;
  transform: scale(10000%);
} */


/* --- начальные (скрытые) состояния --- */

/* --- стартовые состояния --- */
.loader_content.slide-in {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-family: sans-serif;
  transform: translateX(100vw);
  opacity: 0;
}

.main_title2 {
  font-family: Volshebstvo;
  font-size: 36px;
  color: #371923;
  transform: scale(0);
  opacity: 0;
  text-align: center;
  /* никаких animation-* здесь! */
}

/* --- keyframes --- */
@keyframes slideRightToLeft {
  from { transform: translateX(100vw); opacity: 0; }
  to   { transform: translateX(0);     opacity: 1; }
}

@keyframes subtitleScale {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* --- триггеры --- */
.loader_content.slide-in.video_ready {
  animation: slideRightToLeft 5s ease-out forwards; /* = длительности видео */
}

.main_title2.video_ready {
  animation: subtitleScale 1s ease-out forwards;
}

@keyframes preloaderExit {
  from {
    transform: scale(1);
    opacity: 1;
  }
  to {
    transform: scale(10);   /* 1000% = scale(10) */
    opacity: 0;
  }
}

.preloader_exit {
  animation: preloaderExit 0.8s ease-in-out forwards;
  pointer-events: none;
}

/* контент по умолчанию скрыт */
#content {
  /* opacity: 0; */
  transition: opacity 1s ease-in-out;
}

#content.visible {
  opacity: 1;
}








header {
  /* position: fixed; */
  left: 0;
  z-index: 1001;
  height: 55px;
  padding: 15px 30px;
  width: 100%;
  background: #39130594;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: .3s ease-in-out;
}

.navbar {
  position: fixed;
  top: 55px;
  left: 0;
  width: 100%;
  height: 94vh;
  background-color: rgba(0, 0, 0, 0);
  color: #fff;
  transform: translateY(-150%);
  transition: all 0.6s;
  z-index: 1000;

}

.navbar-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.navbar-menu-item {
  margin-bottom: 20px;
}

.navbar-menu-link {
  color: #fff;
  font-family: Volshebstvo;
  text-decoration: none;
  font-size: 26px;

}

.burger-checkbox:checked+.burger+.navbar {
  transform: translateY(0);
  background: #39130594;
  height: 94vh;
}

.header__logos {
  display: flex;
  gap: 24px;
  align-items: center;
}
.header__logos a:nth-of-type(2) {
  padding-top: 3px;
}

.top_img {
  max-width: 125px;

}

@media (max-width:750px) {
  .top_img {
      max-width: 75px;
  }

}

.burger__block {
  width: 26px;
  height: 50px;
  display: flex;
  flex-direction: column;
}

.burger-checkbox {
  position: absolute;
  visibility: hidden;

}

.burger {
  cursor: pointer;
  display: block;
  position: relative;
  border: none;
  background: transparent;
  width: 40px;
  height: 26px;
}

.burger::before,
.burger::after {
  content: '';
  left: 0;
  position: absolute;
  display: block;
  width: 100%;
  height: 4px;
  border-radius: 10px;
  background: #d4905b;
}

.burger::before {
  top: 0;
  box-shadow: 0 11px 0 #d4905b;
  transition: box-shadow .3s .15s, top .3s .15s, transform .3s;
}

.burger::after {
  bottom: 0;
  transition: bottom .3s .15s, transform .3s;
}

.burger-checkbox:checked+.burger::before {
  top: 11px;
  transform: rotate(45deg);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0);
  transition: box-shadow .15s, top .3s, transform .3s .15s;
}

.burger-checkbox:checked+.burger::after {
  bottom: 11px;
  transform: rotate(-45deg);
  transition: bottom .3s, transform .3s .15s;
}

/* главная  ****************************************************************************/




    /* ===== Layout страницы ===== */
    html, body {
      height: 100%;
      margin: 0;
    }

    body {
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }

    /* header занимает свою высоту, .hero — всё остальное */
    header { flex: 0 0 auto; }

    .hero {
      flex: 1 1 auto;       /* всё оставшееся место */
      min-height: 0;        /* критично для flex-детей с overflow */
      display: flex;
      width: 100%;
      position: relative;
      gap: 50px;
      background-image: url(../img/main_bg_7.webp);
      background-size: cover;
      background-position: center;
      z-index: 1;
    }
    .hero::before {
      content: '';
      position: absolute;
      z-index: -1;
      width: 100%;
      height: 100%;
      background-color: #f4ddcdb8;

    }

    /* ЛЕВАЯ ЧАСТЬ — картинки */
    .hero__left {
      width: 50%;
      height: 100%;
      position: relative;
      overflow: hidden;
    }

    .hero__images {
      width: 100%;
      height: 100%;
    }

    .hero__images .swiper-slide {
      overflow: hidden;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .hero__images .swiper-slide a {
      display: block;
      width: 100%;
      height: 100%;
    }

    .hero__images .swiper-slide img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      display: block;
    }

    /* ПРАВАЯ ЧАСТЬ — тексты */
    .hero__right {
      width: 50%;
      height: 100%;
      position: relative;
      color: #111;
      overflow: hidden;
    }

    .hero__texts {
      width: 100%;
      height: 100%;
    }

    .hero__texts .swiper-slide {
      /* display: flex;
      align-items: center; */
      padding: 0 10%;
      height: 100%;
      /* box-sizing: border-box; */
    }

    .hero__link {
      text-decoration: none;
    color: inherit;
    display: block;
    position: absolute;
    top: calc(50% - 100px);
    }

    .hero__title {
      font-size: clamp(24px, 3.5vw, 42px);
      opacity: 0;
      transform: translateY(20px);
      transition: opacity 0.6s ease, transform 0.6s ease;
      font-weight: 700;
      line-height: 1.25;
      color: #111;
      font-family: Volshebstvo, serif;
      letter-spacing: .05em;
    }

    .hero__title::first-letter {
      text-transform: uppercase;
      color: #c0392b;
    }
    .hero__title span {
      color: #c0392b;
    }

    .hero__subtitle {
      font-family: Manrope, sans-serif;
      font-size: clamp(16px, 1.4vw, 26px);
      color: #444;
      margin-top: 12px;
      line-height: 1.4;
    }

    .hero__texts .swiper-slide-active .hero__title {
      opacity: 1;
      transform: translateY(0);
      transition-delay: 0.3s;
    }

    /* Пагинация */
    .hero__pagination {
      position: absolute;
      bottom: 30px;
      left: 50%;
      transform: translateX(-50%);
      z-index: 10;
      display: flex;
      gap: 10px;
    }

    .hero__pagination .swiper-pagination-bullet {
      width: 40px;
      height: 2px;
      border-radius: 0;
      background: rgba(0,0,0,0.15);
      opacity: 1;
      transition: background 0.3s;
    }

    .hero__pagination .swiper-pagination-bullet-active {
      background: #c0392b;
    }

    /* ===== Кнопки навигации ===== */

    .slider_nav {
      width: 50px;
      position: absolute;
      top: calc(50% - 100px);
      display: flex;
      flex-direction: column;
      left: calc(50% - 25px);
      z-index: 1;
      gap: 20px;
      font-size: 35px;
      font-family: Volshebstvo;
      text-align: center;
      align-items: center;
      justify-content: center;
      font-weight: 800;
    }

    .hero__nav {
      cursor: pointer;
      width: 50px;
      height: 50px;
    }
    .hero__home {
      cursor: pointer;
    }
    .hero__nav--prev {
      transform: rotate(90deg);
    } 
    .hero__nav--next {
      transform: rotate(90deg);
    }
@media (max-width:576px) {
  .hero {
    flex-direction: column;
    gap: 80px;
  }
  .hero__left {
    width: 100%;
    height: 70%;
  }

  .hero__link { 
    width: calc(100% - 30px);
    top: auto;
    left: 15px;
  }

  .hero__right {
    width: 100%;
    height: 30%;
  }
  .slider_nav {
    flex-direction: row;
  }
  .slider_nav {
    top: calc(70% - 45px);
    gap: 35px;
  }
    
  .hero__nav--prev {
      transform: rotate(0deg);
  }

  .hero__nav--next {
    transform: rotate(0deg);
  }

  .hero__texts .swiper-slide { 
    padding: 20px 20px;
  }

  .hero__subtitle {
    font-weight: 500;
  }

  .main_title {
    font-family: Volshebstvo;
    font-size: 27px;
    color: #371923;
    position: relative;
  }
  
  .main_title br {
    display: block;
  }
  
  .main_title2 {
      font-family: Volshebstvo;
      font-size: 20px;
      color: #371923;
  }
  .main_title span{
      font-size: 30px;
      color: #d63c34;
  }

}



/* Содержание************************************************************************** */
/* 
.bg-video {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;   
  z-index: -1;          
  pointer-events: none; 
} */

.bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  z-index: -1;
  pointer-events: none;
}


.content {
  position: absolute;
  z-index: 1;
  color: #fff;
  text-align: center;
  width: 100%;
  height: 100%;
  background-color: #00000078;
}

.content {
  width: 100%;
  padding-top: 55px;
}

.container_content {
  width: 100%;
  margin: 0px auto;
  max-width: 1170px;
}

@media (min-width: 768px)  { .container_content { max-width: 1170px; } }
@media (min-width: 992px)  { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1140px; } }
@media (min-width: 1400px) { .container { max-width: 1320px; } }


.content_block {}

.content_block__list {
  height: 100vh;
  overflow: scroll;
  scrollbar-width: none;
  /* display: flex;
  flex-direction: column; */
  gap: 30px;
  margin: 0px auto;
  width: max-content;
  padding-left: 50px;
  padding-right: 50px;
  padding-bottom: 50px;
}

.content_block__list--content--title {
  padding-top: 40px;
  font-size: 50px;
  font-family: Volshebstvo;
  margin-bottom: 20px;
}

.content_block__list--content--title::first-letter {
  font-size: 60px;
  font-family: Volshebstvo;
  margin-bottom: 20px;
  text-transform: uppercase;
  color: #c0392b;
}

.content_block__list::-webkit-scrollbar {
  display: none;
}

.content_block__list--item {
  /* background-image: url(../img/list_bg_middle.png); */
  background-position: center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  display: flex;
  /* width: 1061px; */
  height: 300px;
  padding: 0px 0px;
  justify-content: flex-start;
  gap: 20px;
  align-items: flex-start;
  width: max-content;
  /* background-color: #7b5b3585; */
  transition: .3s ease-in-out;
}

.content_block__list--item:hover {
  transform: scale(1.01);
}

.content_block__list--item:first-child {
  /* background-image: url(../img/list_bg_first.png); */
}

.content_block__list--item:last-child {
  /* background-image: url(../img/list_bg_end.png); */
}

.content_block__list--item--img {
  height: 100%;
}
.content_block__list--item--img img {
  object-fit: contain;
  height: 100%;
}

.content_block__list--item--text {
  text-align: left;
  width: 600px;
}

.content_block__list--item--text--title {
  font-family: Volshebstvo;
  font-size: 32px;
  margin: 0px;
  margin-bottom: 0px;
  color: #fff;
  margin-top: 0px;
}

.content_block__list--item--text--title::first-letter {
  font-family: Volshebstvo;
  font-size: 42px;
  color: #c0392b;
  text-transform: uppercase;
}

.content_block__list--item--text--title:has(.fletter_no)::first-letter {
  font-size: 32px;
  color: #fff;
}
.content_block__list--item--text--title span{
  font-family: Volshebstvo;
  font-size: 42px;
  color: #c0392b;
  text-transform: uppercase;
}
.content_block__list--item--text--subtitle {
  font-family: Manrope;
  font-size: 20px;
  margin: 0px;
  margin-bottom: 15px;
  display: inline-block;
  color: #fff;
  font-weight: 500;
}

.content_block__list--item--text--author {
  font-family: Manrope;
  font-size: 20px;
  margin: 0px;
  margin-bottom: 20px;
  /* display: inline-block; */
  color: #fff;
  font-weight: 500;
}

.content_final__link {
  font-family: Manrope;
  font-size: 20px;
  color: #fff;
  font-weight: 500;
  display: block;
  width: max-content;
  margin: 0px auto 20px;
  padding: 10px 20px;
  background-color: #6666669c;
  transition: .3s ease-in-out;
}
.content_final__link:hover {
  background-color: #a8a8a89c;
}

.content_final__link--parrent {
  padding-left: 52px;
  display: block;
}
@media (max-width: 768px)  { 

  .content_block__list { 
    width: 100%;
    padding-left: 50px;
    padding-right: 50px;
    padding-bottom: 150px;
  }

  .content_block__list--item {
    width: 100%;
  }
}

@media (max-width: 576px)  { 
  
  .content_block__list { 
    width: 100%;
    padding-left: 10px;
    padding-right: 10px;
    gap: 20px;
    padding-bottom: 50px;
  }

  .content_block__list--item {
    width: 100%;
    height: 150px;
  }
  .content_block__list--content--title {
    padding-top: 0px;
    font-size: 36px;
    margin-bottom: 0px;
  }

  .content_block__list--content--title::first-letter  {
    font-size: 42px;
  }
  .content_block__list--item--text--title:has(.fletter_no)::first-letter {
    font-size: 22px;
  }
  .content_block__list--item--text--title {
    font-size: 15px;
    margin-bottom: 10px;
    line-height: 1.1;
    margin-top: -2px;
  }

  .content_block__list--item--text--title::first-letter {
    font-size: 22px;
  }

  .content_block__list--item--text--title span {
    font-size: 22px;
  }

  .content_block__list--item--text--subtitle {
    font-size: 12px;
    margin-bottom: 10px;
    line-height: 1.1;
  }

  .content_block__list--item--text--author {
    font-size: 12px;
  }
  .content_final__link--parrent {
    padding-left: 40px;
  }
  .content_final__link {
    margin-top: 150px;
    background-color: #ffffff00;
  }
  .content_final__link:hover {
    background-color: #ffffff00;
  }
  header {
    padding: 15px 10px;
  }
}

.header--hidden {
  transform: translateY(-100%);
}