@font-face {
  font-display: swap;
  font-family: "PF_Monumenta_Pro";
  font-weight: 400;
  src: url("fonts/PFMonumentaPro-Shaded.woff2");
}

@font-face {
  font-display: swap;
  font-family: "Geologica";
  font-weight: 400;
  src: url("fonts/Geologica-Regular.woff2");
}

@font-face {
  font-display: swap;
  font-family: "Geologica";
  font-weight: 300;
  src: url("fonts/Geologica-Light.woff2");
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  font-size: 12px;
  overflow-x: hidden;
}

@media (min-width: 1024px) {
  html {
    font-size: 14px;
  }
}

@media (min-width: 1536px) {
  html {
    font-size: 16px;
  }
}

body {
  color: #d9ceaf;
  font-family: "Geologica", sans-serif;
  flex-grow: 1;
  background: url("images/bg.webp") no-repeat;
  background-size: cover;
  overflow-x: hidden;
}

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

.title {
  text-align: center;
  font-family: "PF_Monumenta_Pro", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
}

.title .bigger {
  font-size: 2.1rem;
}

.title .smaller {
  font-size: 1.7rem;
}

.title .xsmall {
  font-size: 0.7rem;
}

.title.line-1,
.title.line-2 {
  position: relative;
}

.title.line-1::after {
  content: "";
  position: absolute;
  left: -88%;
  right: -88%;
  bottom: 1.2rem;
  height: 1px;
  background-image: url("images/line_1.webp");
  background-size: cover;
  background-position: center;
}

.title.line-2::after {
  content: "";
  position: absolute;
  left: -77%;
  right: -77%;
  bottom: 1rem;
  height: 1px;
  background-image: url("images/line_2.webp");
  background-size: cover;
  background-position: center;
}

.main {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 0.9;
}

.main > img {
  max-height: 100vw;
  max-width: 100vw;
  object-fit: contain;
  z-index: 1;
}

.main > .title .bigger {
  font-size: 4.2rem;
}

.main > .title .smaller {
  font-size: 3rem;
}

@media (min-width: 768px) {
  .main > img {
    margin-bottom: -4rem;
  }

  .main > .title .bigger {
    font-size: 7.5rem;
  }

  .main > .title .smaller {
    font-size: 5.1rem;
  }
}

.description {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin: 1rem auto;
  padding: 3.5rem 1.5rem 3rem;
  text-align: center;
  max-width: 35rem;
}

.description::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  border-image: url("images/card_bg.webp");
  border-image-slice: 80 fill;
  border-width: 4rem;
  border-style: solid;
  z-index: -1;
}

.description::after {
  content: "";
  position: absolute;
  left: -30%;
  right: -30%;
  bottom: 43%;
  height: 1px;
  background-image: url("images/line.webp");
  background-size: cover;
  background-position: center;
}

.description > .title {
  font-size: 1.2rem;
}

.description > .text {
  font-size: 1.1rem;
}

.chapters-block {
  padding: 0 1rem;
  margin: 8rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.chapters-block > .title {
  position: relative;
  margin: 0 auto;
}

.chapters-block > .title::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -3rem;
  bottom: 0;
  background-image: url("images/header_bg.webp");
  background-size: cover;
  z-index: -1;
}

.chapters {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 4rem;
  max-width: 1080px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .chapters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.chapter {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 25rem;
}

.chapter > .cover {
  min-height: 20rem;
  max-height: 20rem;
  overflow: hidden;
  position: relative;
}

.chapter > .cover::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  opacity: 0;
  transition: opacity 0.25s ease-out;
  background: url("images/btn.webp"),
    linear-gradient(to right, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3));
  background-size: 35%, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
}

.chapter:hover > .cover::after {
  opacity: 1;
}

.chapter > .cover::before {
  content: "";
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  top: 0.5rem;
  height: 3rem;
  border-image: url("images/border_top.webp");
  border-image-slice: 20;
  border-width: 12px;
  border-style: solid;
}

.chapter > .cover > img {
  object-fit: cover;
  height: 100%;
  max-width: 100%;
}

.chapter > .title {
  padding: 1.5rem 1rem 1.5rem;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: relative;
}

.chapter > .title .bigger {
  font-size: 1.1rem;
}

.chapter > .title .smaller {
  font-size: 0.8rem;
}

.chapter > .title > .part {
  font-size: 0.7rem;
  margin-bottom: 0.5rem;
}

.chapter > .title::after {
  content: "";
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  bottom: 0;
  height: 3rem;
  border-image: url("images/border_bottom.webp");
  border-image-slice: 20;
  border-width: 12px;
  border-style: solid;
}

.footer {
  position: relative;
  max-width: 1080px;
  padding: 3rem 1rem 1rem;
  margin: 4rem auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-sizing: content-box;
}

.footer::before {
  content: "";
  position: absolute;
  display: none;
  left: 1rem;
  right: 1rem;
  bottom: 0;
  top: 0;
  border-image: url("images/footer_bg.webp");
  border-image-slice: 80 fill;
  border-width: 4rem;
  border-style: solid;
  z-index: -1;
}

@media (min-width: 400px) {
  .footer::before {
    display: block;
  }
}

.footer .text > a {
  color: #8fa1b9;
}

.footer .text > a:hover {
  text-decoration: underline;
}

.footer .text {
  color: white;
  font-size: 0.7rem;
  line-height: 1;
}

.footer .text.bigger {
  font-size: 1.2rem;
}

.footer .text.lighter {
  font-weight: 300;
}

.footer .title {
  font-size: 1.3rem;
}

.footer > .support > .title {
  font-size: 2.1rem;
}

.support {
  position: relative;
  padding: 2.5rem;
  margin-bottom: 3rem;
}

.support::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  border-image: url("images/card_bg_2.webp");
  border-image-slice: 80 fill;
  border-width: 4rem;
  border-style: solid;
  z-index: -1;
}

.support::after {
  content: "";
  position: absolute;
  left: -15%;
  right: -15%;
  top: 50%;
  height: 1px;
  background-image: url("images/line_3.webp");
  background-size: cover;
  background-position: center;
}

.social {
  background-image: url("images/social_bg.webp");
  background-size: cover;
  height: 5.3rem;
  width: 18rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.2rem 2.7rem 0;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.social-vk {
  max-width: 1.75rem;
}
.social-ok {
  max-width: 1.125rem;
}
.social-tg {
  max-width: 1.4375rem;
}

.separator {
  width: 100%;
  height: 1px;
  background-size: cover;
  margin: 1.5rem 0;
}

.separator-1 {
  max-width: 7rem;
  background-image: url("images/separator_1.webp");
}
.separator-2 {
  max-width: 20rem;
  background-image: url("images/separator_2.webp");
}
.separator-3 {
  max-width: 7rem;
  background-image: url("images/separator_3.webp");
}

.logo {
  margin-top: 4rem;
  background-image: url("images/logo_bg.webp");
  background-size: cover;
  padding: 3rem 0;
  display: flex;
  justify-content: center;
}

.logo img {
  display: block;
  object-fit: contain;
  max-width: 12rem;
}
