/* ================================
   БЛОК: Базовые теги и глобальные стили
   ================================ */
html {
    height: 100%;
  }
  body {
    margin: 0;
    min-height: 100%;
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 17px;

  }
  
  /*Webflow standard classes */
  html.w-mod-touch * {
    background-attachment: scroll !important;
  }
  .w-block {
    display: block;
  }
  .w-inline-block {
    max-width: 100%;
    display: inline-block;
  }
  
  
  .w-webflow-badge,
  .w-webflow-badge * {
    position: static;
    left: auto;
    top: auto;
    right: auto;
    bottom: auto;
    z-index: auto;
    display: block;
    visibility: visible;
    overflow: visible;
    overflow-x: visible;
    overflow-y: visible;
    box-sizing: border-box;
    width: auto;
    height: auto;
    max-height: none;
    max-width: none;
    min-height: 0;
    min-width: 0;
    margin: 0;
    padding: 0;
    float: none;
    clear: none;
    border: 0 none transparent;
    border-radius: 0;
    background: none;
    background-image: none;
    background-position: 0% 0%;
    background-size: auto auto;
    background-repeat: repeat;
    background-origin: padding-box;
    background-clip: border-box;
    background-attachment: scroll;
    background-color: transparent;
    box-shadow: none;
    opacity: 1.0;
    transform: none;
    transition: none;
    direction: ltr;
    font-family: inherit;
    font-weight: inherit;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
    font-style: inherit;
    font-variant: inherit;
    text-align: inherit;
    letter-spacing: inherit;
    text-decoration: inherit;
    text-indent: 0;
    text-transform: inherit;
    list-style-type: disc;
    text-shadow: none;
    font-smoothing: auto;
    vertical-align: baseline;
    cursor: inherit;
    white-space: inherit;
    word-break: normal;
    word-spacing: normal;
    word-wrap: normal;
  }
  .w-webflow-badge {
    position: fixed !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 2147483647 !important;
    top: auto !important;
    right: 12px !important;
    bottom: 12px !important;
    left: auto !important;
    color: #AAADB0 !important;
    border-radius: 3px !important;
    padding: 6px 8px 6px 6px !important;
    font-size: 12px !important;
    opacity: 1.0 !important;
    line-height: 14px !important;
    text-decoration: none !important;
    transform: none !important;
    margin: 0 !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    white-space: nowrap;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1), 0px 1px 3px rgba(0, 0, 0, 0.1);
  }
  .w-webflow-badge > img {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    vertical-align: middle !important;
  }
  
  .w-richtext:before,
  .w-richtext:after {
    content: " ";
    display: table;
  }
  .w-richtext:after {
    clear: both;
  }
  .w-richtext[contenteditable="true"]:before,
  .w-richtext[contenteditable="true"]:after {
    white-space: initial;
  }
  
  /*-----------------------*/
  
  /* ================================
     БЛОК: Заголовки и типографика
     ================================ */
  h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 24px;
    line-height: 30px;
    font-weight: bold;
  }
  
  h6 {
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 12px;
    line-height: 18px;
    font-weight: bold;
  }
  
  p {
    margin-top: 0;
    margin-bottom: 10px;
  }
  
  a {
    text-decoration: underline;
  }
  
  /* ================================
     БЛОК: Сцена и общая раскладка
     ================================ */
  .scene {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    width: 100%;
    height: 54vw;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: stretch;
    -webkit-align-items: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
      transform-origin: 100% 50%;
    -webkit-perspective: 4000px;
    perspective: 4000px;
    -webkit-perspective-origin: 50% 0%;
    perspective-origin: 50% 0%;
  }
  
  /* ================================
     БЛОК: Обёртка книги
     ================================ */
  .book-wrap {
    position: relative;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    width: 57vw;
    margin-top: 8vw;
    margin-bottom: 8vw;
    padding-right: 1%;
    padding-left: 1%;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-perspective: 4000px;
    perspective: 4000px;
    -webkit-perspective-origin: 50% 50%;
    perspective-origin: 50% 50%;
    -webkit-transform: translate3d(0px, 5%, -264px) rotateX(27deg) rotateY(0deg) rotateZ(-10deg);
    transform: translate3d(0px, 5%, -264px) rotateX(27deg) rotateY(0deg) rotateZ(-10deg);
    -webkit-transition: -webkit-transform 2000ms cubic-bezier(.165, .84, .44, 1);
    transition: -webkit-transform 2000ms cubic-bezier(.165, .84, .44, 1);
    transition: transform 2000ms cubic-bezier(.165, .84, .44, 1);
    transition: transform 2000ms cubic-bezier(.165, .84, .44, 1), -webkit-transform 2000ms cubic-bezier(.165, .84, .44, 1);
    transform-style: preserve-3d;
  }
  
  .book-wrap:hover {
    -webkit-transform: translate3d(0px, 5%, -264px) rotateX(13deg) rotateY(0deg) rotateZ(-3deg);
    transform: translate3d(0px, 5%, -264px) rotateX(13deg) rotateY(0deg) rotateZ(-3deg);
  }
  
  /* ================================
     БЛОК: Обложки книги
     ================================ */
  .book-cover-left {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
    border-top-right-radius: 4%;
    border-bottom-right-radius: 4%;
    background-color: #0a0735;
box-shadow: inset -4px -4px 4px 1px #4c4863, inset -7px -7px 4px 0 #171422;
  }
  
  .book-cover-right {
   -webkit-box-flex: 1;
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
    border-top-right-radius: 4%;
    border-bottom-right-radius: 4%;
    background-color: #0a0735;
    box-shadow: inset -4px -4px 4px 1px #4c4863, inset -7px -7px 4px 0 #171422;
  }
  
  /* ================================
     БЛОК: Слои (layer1..layer4)
     ================================ */
  .layer1 {
    position: fixed;
    left: 0px;
    top: 0px;
    right: 0px;
    bottom: 0px;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    margin: 20px 10px 10px;
    -webkit-box-pack: start;
    -webkit-justify-content: flex-start;
    -ms-flex-pack: start;
    justify-content: flex-start;
    -webkit-transform: translate3d(0px, 0px, 5px);
    transform: translate3d(0px, 0px, 5px);
    transform-style: preserve-3d;
  }
  
  
  
  .layer-text {
    position: fixed;
    left: 0px;
    top: 0px;
    right: 0px;
    bottom: 0px;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    width: 97%;
    margin: 20px 10px 18px;
    -webkit-box-pack: start;
    -webkit-justify-content: flex-start;
    -ms-flex-pack: start;
    justify-content: flex-start;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 4000px;
    perspective: 4000px;
    -webkit-perspective-origin: 50% 50%;
    perspective-origin: 50% 50%;
    -webkit-transform: translate3d(0px, 0px, 32px);
    transform: translate3d(0px, 0px, 32px);
    transform-style: preserve-3d;
  }
  
  .layer-text.right {
    -webkit-transform: translate3d(-37px, 0px, 32px);
    transform: translate3d(-37px, 0px, 32px);
    transform-style: preserve-3d;
  }
  
  /* ================================
   БЛОК: Страницы книги
   ================================ */
.page-left {
  flex: 1;
  border-top-left-radius: 1%;
  border-bottom-left-radius: 1%;
  background-color: #f1ede4;
  box-shadow: inset 0 0 26px 2px #d8cccc, -1px 1px 13px 0 rgba(34, 27, 20, .81);
}

.page-left-2 {
  position: relative;
  flex: 1;
  border-top-left-radius: 1%;
  border-bottom-left-radius: 1%;
  background-color: #fff;
  backface-visibility: hidden;
  transform: rotateY(17deg);
  transform-origin: 100% 50%;
  transition: transform 650ms cubic-bezier(.165, .84, .44, 1);
}
.page-left-2:hover {
  transform: rotateY(7deg);
}

.page-right {
    flex: 1;
  border-top-left-radius: 1%;
  border-bottom-left-radius: 1%;
  background-color: #f1ede4;
  box-shadow: inset 0 0 26px 2px #d8cccc, -1px 1px 13px 0 rgba(34, 27, 20, .81);
}

.page-right-2 {
  position: relative;
  flex: 1;
  border-top-right-radius: 1%;
  border-bottom-right-radius: 1%;
  background-color: #fff;
  backface-visibility: hidden;
  transform: rotateY(-3deg);
  transform-origin: 0% 50%;
  transition: transform 850ms cubic-bezier(.165, .84, .44, 1);
}
.page-right-2:hover {
  transform: rotateY(-17deg);
}

  /* ================================
   БЛОК: Левая и правая стороны
   ================================ */
.left-side {
  display: flex;
  width: 49%;
  transform: rotateY(20deg);
  transform-origin: 100% 50%;
  transform-style: preserve-3d;
}

.right-side {
  display: flex;
  width: 49%;
  transform: rotateY(-1deg);
    transform-origin: 100% 50%;
  transform-style: preserve-3d;
}


/* ================================
   БЛОК: Центральный корешок
   ================================ */
.center {
  width: 3%;
  background-image: radial-gradient(circle farthest-corner at 56% -8%, #202020 8%, transparent 0),
                    radial-gradient(circle farthest-corner at 50% 108%, #202020 8%, transparent 0),
                    linear-gradient(90deg, #4c4863, #0a0735 21%, #4c4863 30%, #0a0735 48%, #4c4863 68%, #0a0735 79%, #4c4863);
}

  
  
  .page-text {
    position: relative;
    display: block;
    margin-left: 4.5vw;
    font-family: Georgia, Times, 'Times New Roman', serif;
}
  
  .page-text p {
    margin-bottom: 0px;
    font-size: 1vw;
    line-height: 1.5;
    margin-left: 3vw;
  }
  
  .page-text h3 {
    font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
    font-style: italic;
  }
  
  .page-text h6 {
    font-family: 'PT Sans', sans-serif;
    font-size: 9px;
    text-decoration: none;
  }
  
  .page-text a {
    color: #da5a13;
  }
  
  /* ================================
     БЛОК: Дополнительные слои (layer2..4)
     ================================ */
  .layer2 {
    position: fixed;
    left: 0px;
    top: 0px;
    right: 0px;
    bottom: 0px;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    margin: 20px 10px 13px;
    -webkit-box-pack: start;
    -webkit-justify-content: flex-start;
    -ms-flex-pack: start;
    justify-content: flex-start;
    -webkit-transform: translate3d(2px, 0px, 10px);
    transform: translate3d(2px, 0px, 10px);
    transform-style: preserve-3d;
  }
  
  .layer2.right {
    -webkit-transform: translate3d(-5px, 0px, 10px);
    transform: translate3d(-5px, 0px, 10px);
    transform-style: preserve-3d;
  }
  
  .layer3 {
    position: fixed;
    left: 0px;
    top: 0px;
    right: 0px;
    bottom: 0px;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    margin: 20px 10px 13px;
    -webkit-box-pack: start;
    -webkit-justify-content: flex-start;
    -ms-flex-pack: start;
    justify-content: flex-start;
    -webkit-transform: translate3d(4px, 0px, 20px);
    transform: translate3d(4px, 0px, 20px);
    transform-style: preserve-3d;
  }
  
  .layer3.right {
    -webkit-transform: translate3d(-10px, 0px, 20px);
    transform: translate3d(-10px, 0px, 20px);
    transform-style: preserve-3d;
  }
  
  .layer4 {
    position: fixed;
    left: 0px;
    top: 0px;
    right: 0px;
    bottom: 0px;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    margin: 20px 10px 15px;
    -webkit-box-pack: start;
    -webkit-justify-content: flex-start;
    -ms-flex-pack: start;
    justify-content: flex-start;
    -webkit-transform: translate3d(6px, 0px, 30px);
    transform: translate3d(6px, 0px, 30px);
    transform-style: preserve-3d;
  }
  
  .layer4.right {
    -webkit-transform: translate3d(-15px, 0px, 30px);
    transform: translate3d(-15px, 0px, 30px);
    transform-style: preserve-3d;
  }

  

  
  /* ================================
     БЛОК: Адаптивные правила (media queries)
     ================================ */


  @media (max-width: 1024px) {
    .scene {
      height: 56vw;
    }
    .book-wrap {
      width: 62vw;
    }


    .page-text h3 {
      margin-top: 2vw;
      margin-bottom: 1vw;
      font-size: 2vw;
    }
    .page-text h6 {
      margin-top: 1vw;
      margin-bottom: 1vw;
      font-size: 1vw;
    }
  }
  
  @media (max-width: 767px) {

 
    .book-wrap {
      width: 80vw;
      margin-bottom: 2vw;
    }


    .layer-text {
      width: 90%;
      -webkit-transform: translate3d(0px, 0px, 20px);
      transform: translate3d(0px, 0px, 20px);
    }
    .layer-text.right {
      -webkit-box-pack: end;
      -webkit-justify-content: flex-end;
      -ms-flex-pack: end;
      justify-content: flex-end;
      -webkit-transform: translate3d(-34px, 0px, 24px);
      transform: translate3d(-34px, 0px, 24px);
    }


    .page-text {
      margin-top: 1vw;
    }
    .page-text h3 {
      margin-top: 0vw;
      font-size: 2vw;
    }
    .layer2 {
      -webkit-transform: translate3d(2px, 0px, 6px);
      transform: translate3d(2px, 0px, 6px);
    }
    .layer2.right {
      -webkit-transform: translate3d(-5px, 0px, 6px);
      transform: translate3d(-5px, 0px, 6px);
    }
    .layer3 {
      -webkit-transform: translate3d(4px, 0px, 12px);
      transform: translate3d(4px, 0px, 12px);
    }
    .layer3.right {
      -webkit-transform: translate3d(-10px, 0px, 12px);
      transform: translate3d(-10px, 0px, 12px);
    }
    .layer4 {
      -webkit-transform: translate3d(6px, 0px, 18px);
      transform: translate3d(6px, 0px, 18px);
    }
    .layer4.right {
      -webkit-transform: translate3d(-15px, 0px, 18px);
      transform: translate3d(-15px, 0px, 18px);
    }
    .page-right-2 {
      width: 92%;
      -webkit-box-flex: 0;
      -webkit-flex: 0 auto;
      -ms-flex: 0 auto;
      flex: 0 auto;
    }
  }


  
  @media (max-width: 479px) {
    .scene {
      height: 69vw;
    }

  }

  @media screen and (max-width: 480px) {
    body {
        font-size: 12px;
    }

    h3 {
        font-size: 18px;
    }

    p {
        font-size: 11px;
    }

    .book-wrap {
        width: 90vw;
        transform: translate3d(0, 5%, -100px) rotateX(10deg) rotateZ(-5deg);
    }

    .scene {
        height: 70vw;
    }
}
