@font-face {
  font-family: "PT Root Ui Regular";
  src: url("../fonts/PT-Root-UI_Regular.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "PT Root UI Medium";
  src: url("../fonts/PT-Root-UI_Medium.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "PT Root UI Bold";
  src: url("../fonts/PT-Root-UI_Bold.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}

@keyframes shimmer {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 200% center;
  }
}

body {
  margin: 0;
  background-color: #f4f0e8;
  font-family: "PT Root Ui Regular", sans-serif;
  font-size: 40px;
  color: #333333;
  /* width: 1920px; */
}

.page {
  width: 1720px;
  margin: 0 auto;
}

.page__header {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  position: relative;
  height: 124px;
}

.menu {
  margin: 0;
  padding: 0;
  list-style-type: none;
  width: 439px;
  position: absolute;
  top: 28px;
  right: 1281px;
  z-index: 1;
  background-color: #f4f0e8;
}

.menu li {
  position: relative;
  border: 2px solid #333;
  border-bottom: none;
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
}

.menu a {
  padding: 35px 35px;
  font-size: 30px;
  line-height: 1;
  color: #333;
  text-decoration: none;
}

.underline-on-hover {
  transition: text-decoration 0.3s ease;
}

.underline-on-hover:hover {
  text-decoration: underline;
}

.menu__corner {
  position: absolute;
  bottom: -2px;
  right: -40px;
  width: 40px;
  height: 40px;
  background-color: #f4f0e8;
  overflow: hidden;
}

.menu__corner::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: -0.55px;
  width: 80px;
  height: 80px;
  background-color: #f4f0e8;
  border: 2px solid #333;
  border-radius: 40px;
}

.page__content {
  position: relative;
  width: 1720px;
  border: 2px solid #333333;
  border-radius: 40px;
  border-top-left-radius: 0;
  padding: 0;
  margin: 0 auto 75px;
}

.return-back {
  display: flex;
  gap: 25px;
  color: #333333;
}

.return-back p {
  margin: 0;
}

.privacy {
  padding-right: 40px;
  padding-bottom: 15px;
  font-family: "PT Root UI Medium", sans-serif;
  font-size: 25px;
  color: #333333;
  margin-top: 86px;
  text-decoration: none;
  transition: text-decoration 0.3s ease;
}
.privacy:hover {
  text-decoration: underline;
}

.main-container {
  width: 1520px; /* максимальная ширина */
  margin: 0 auto 92px; /* выравнивание по центру */
}

h1 {
  font-family: "PT Root UI Medium", sans-serif;
  font-size: 100px;
  text-align: justify;
  line-height: 90%;
}

h2 {
  font-family: "PT Root UI Bold", sans-serif;
  font-size: 60px;
  text-align: justify;
  line-height: 120%;
}

h3 {
  font-family: "PT Root UI Medium", sans-serif;
  line-height: 120%;
  letter-spacing: 0.03em;
  font-size: 40px;
}

strong {
  font-family: "PT Root UI Medium", sans-serif;
}

.indent {
  text-indent: 45px;
}

.main-text {
  line-height: 120%;
  margin: 10px auto;
  letter-spacing: 0.03em;
}

.main-text-list {
  line-height: 120%;
  margin: 10px auto;
  letter-spacing: 0.03em;
}

li::marker {
  color: #333333;
  font-size: 30px;
}

.main-container img {
  margin: 80px auto;
}

.border-bottom {
  border-bottom: 2px solid #333333;
}

.chapter-image {
  border-radius: 40px;
}

.title {
  font-size: 50px;
}

.scroll-btn-container {
  position: sticky;
  width: 1720px;
  bottom: 30px;
  transition: opacity 0.3s ease;
  opacity: 1;
}

.scroll-btn-container.hidden {
  opacity: 0;
  pointer-events: none;
}

.scroll-to-top {
  position: absolute;
  bottom: 10px;
  right: 18px;
  border-radius: 40px;
  padding: 20px 25px;
  border: none;
  cursor: pointer;
  background: linear-gradient(90deg, #bfd6b5, #b9dfaa, #6fa969, #bfd6b5);
  background-size: 200%;
  transition: transform 0.3s ease;
  animation: none;
  z-index: 1000;
}

.scroll-to-top:hover {
  animation: shimmer 2s linear infinite;
  transform: translateY(-2px);
}
