@import url("https://fonts.googleapis.com/css2?family=Forum&family=Inter:wght@300;400;500;600&family=Montserrat:wght@400;500;600&display=swap");

:root {
  --deep: #030e1f;
  --deep-soft: #071529;
  --gold: #f8ecb3;
  --gold-soft: #fff7d2;
  --gold-line: rgba(248, 236, 179, 0.35);
  --text: #040404;
  --muted: rgba(4, 4, 4, 0.8);
  --content: 1100px;
  --transition: 180ms ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: #fff;
  background: var(--deep);
  font-family: "Montserrat", Arial, sans-serif;
}

body.nav-open,
body.popup-open {
  overflow: hidden;
}

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

img,
svg {
  display: block;
  max-width: 100%;
}

.page-shell {
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fffffd;
}

.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 50;
  width: min(calc(100% - 32px), var(--content));
  transform: translateX(-50%);
  padding: 16px 27px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  width: 21px;
  height: 20px;
  border-radius: 5px;
  background:
    center / cover no-repeat url("https://con.xl.ru/jLdvFS9X2UqmCxo_fOj78Q/images/CuR-igL7ckC70tht05EKyA.png"),
    linear-gradient(318deg, var(--gold) 0%, var(--gold-soft) 50%, var(--gold) 100%);
}

.brand-text {
  font-family: "Forum", Georgia, serif;
  font-size: 20px;
  line-height: 28px;
  letter-spacing: 0.5px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex: 1;
}

.site-nav a {
  color: #e5e7eb;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 300;
  line-height: 20px;
  transition: color var(--transition);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: var(--gold);
}

.social-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-links a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

.social-links a:hover,
.social-links a:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(248, 236, 179, 0.7);
  background: rgba(255, 255, 255, 0.06);
}

.social-links svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.nav-toggle {
  display: none;
}

.section-inner {
  width: min(calc(100% - 100px), var(--content));
  margin: 0 auto;
}

.lastchapter-page {
  flex: 1;
  color: var(--text);
  background: #fffffd;
}

.hero-awaken h1,
.section-inner h2 {
  margin: 0 0 18px;
  font-family: "Forum", Georgia, serif;
  font-size: 36px;
  font-weight: 400;
  line-height: 1.05;
  text-transform: uppercase;
  text-align: center;
}

.last-hero {
  position: relative;
  min-height: 600px;
  padding: 112px 0 0;
  color: #fff;
  background: #101a2a;
  overflow: visible;
  z-index: 2;
}

.last-hero__overlay {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(636px, 100%);
  height: 600px;
  transform: translateX(-50%);
  background:
    linear-gradient(0deg, rgb(255 255 255 / 0%), rgba(255, 255, 255, 0.05)),
    url("https://con.xl.ru/jLdvFS9X2UqmCxo_fOj78Q/images/mZPuCrfrfUKy21dtI0tCIw.png") center bottom / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.85) 8%, #000 16%, #000 84%, rgba(0, 0, 0, 0.85) 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.85) 8%, #000 16%, #000 84%, rgba(0, 0, 0, 0.85) 92%, transparent 100%);
  filter: blur(2px);
  pointer-events: none;
}

.last-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
  pointer-events: none;
}

.last-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.last-hero h1 {
  max-width: 699px;
  margin: 14px auto 12px;
  color: var(--gold);
  font-family: "Forum", sans-serif;
  font-size: 48px;
  line-height: 1.05;
  text-align: center;
  text-transform: uppercase;
}

.last-hero__subtitle {
  max-width: 609px;
  margin: 0 auto 8px;
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
}

.last-hero__video-card {
  position: relative;
  z-index: 3;
  width: min(740px, 100%);
  margin: 72px auto -128px;
  border-radius: 20px;
  box-shadow: 0 0 20px 2px rgba(248, 236, 179, 0.5);
}

.last-hero__video-image {
  width: 100%;
  aspect-ratio: 740 / 376;
  object-fit: cover;
}

.play-button {
  position: absolute;
  z-index: 3;
  inset: 50% auto auto 50%;
  width: 48px;
  height: 48px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(3, 14, 31, 0.72);
  border-radius: 50%;
  background: rgba(255, 247, 210, 0.2);
  backdrop-filter: blur(2px);
  isolation: isolate;
  box-shadow:
    0 0 0 0 rgba(248, 236, 179, 0.2),
    0 0 0 1px rgba(3, 14, 31, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  transition: transform var(--transition), border-color var(--transition), background var(--transition), box-shadow var(--transition);
  animation: playButtonBreath 3.2s ease-in-out infinite;
  cursor: pointer;
}

.play-button::before {
  content: "";
  position: absolute;
  z-index: 2;
  left: 19px;
  top: 15px;
  border-left: 14px solid #0b1324;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.35));
  transition: transform var(--transition), filter var(--transition);
}

.play-button::after {
  content: "";
  position: absolute;
  inset: -10px;
  z-index: -1;
  border-radius: inherit;
  background:
    conic-gradient(from 120deg, transparent 0deg, rgba(248, 236, 179, 0.1) 62deg, rgba(248, 236, 179, 0.95) 98deg, rgba(255, 247, 210, 0.88) 122deg, rgba(15, 240, 252, 0.24) 146deg, transparent 190deg, transparent 360deg);
  opacity: 0.92;
  filter: blur(0.4px);
  animation: playButtonRing 5.8s linear infinite;
  mask: radial-gradient(circle, transparent 0 58%, #000 61%);
  -webkit-mask: radial-gradient(circle, transparent 0 58%, #000 61%);
}

.play-button:hover,
.play-button:focus-visible {
  transform: translate(-50%, -50%) translateY(-2px) scale(1.06);
  border-color: rgba(3, 14, 31, 0.86);
  background: rgba(255, 247, 210, 0.28);
  box-shadow:
    0 0 34px rgba(248, 236, 179, 0.26),
    0 14px 34px rgba(0, 0, 0, 0.24),
    0 0 0 1px rgba(3, 14, 31, 0.28);
}

.play-button:hover::before,
.play-button:focus-visible::before {
  transform: translateX(1px) scale(1.06);
  filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.42));
}

.play-button:hover::after,
.play-button:focus-visible::after {
  opacity: 0.98;
}

.question-section {
  position: relative;
  padding: 184px 0 72px;
  background: #fffffd;
  z-index: 1;
}

.question-section__bg {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(1200px, 100%);
  transform: translateX(-50%);
  pointer-events: none;
  opacity: 0.95;
}

.question-section__bg img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.question-section .section-inner {
  position: relative;
  z-index: 1;
}

.question-section h2 {
  max-width: 798px;
  margin: 0 auto 34px;
  color: #040404;
}

.question-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 498px;
  gap: 44px;
  align-items: start;
}

.question-points {
  display: grid;
  gap: 16px;
}

.question-point {
  display: grid;
  grid-template-columns: 55px 1fr;
  gap: 12px;
  align-items: start;
}

.question-point img {
  width: 55px;
  height: 48px;
  object-fit: contain;
}

.question-point h3 {
  margin: 0;
  color: #040404;
  font-family: "Inter", sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
}

.question-visual img {
  width: 100%;
  border-radius: 20px;
  object-fit: cover;
}

.chapter-section {
  position: relative;
  padding: 72px 0 0;
  background: var(--deep);
  color: #fff;
}

.chapter-section__bg {
  position: absolute;
  left: 50%;
  top: 0;
  width: min(1200px, 100%);
  height: 100%;
  transform: translateX(-50%);
  pointer-events: none;
  opacity: 0.95;
}

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

.chapter-section__inner {
  position: relative;
  z-index: 1;
}

.chapter-section__intro {
  margin: 0 auto 16px;
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}

.chapter-section h2 {
  max-width: 864px;
  margin: 0 auto 48px;
  color: var(--gold);
}

.chapter-layout {
  display: grid;
  grid-template-columns: 474px minmax(0, 570px);
  gap: 40px;
  align-items: start;
  padding-bottom: 112px;
}

.chapter-copy p {
  margin: 0 0 24px;
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
}

.gold-button {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 4px 16px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(318deg, var(--gold) 0%, var(--gold-soft) 50%, var(--gold) 100%);
  color: var(--deep);
  font-family: "Forum", Georgia, serif;
  font-size: 24px;
  line-height: 1.05;
}

.gold-button span {
  width: 49px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(270deg, #ffed97 0%, #fff5c7 50%, #ffed97 100%);
}

.gold-button img {
  width: 28px;
  height: 16px;
  object-fit: contain;
}

.chapter-visual img {
  width: 100%;
  border-radius: 20px;
  object-fit: cover;
}

.chapter-visual--inline {
  display: none;
  width: 100%;
  margin: 0 0 24px;
  border-radius: 20px;
  object-fit: cover;
}

.site-footer {
  width: 100%;
  padding: 40px max(24px, calc((100vw - 1200px) / 2 + 89px)) 40px;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  color: rgba(255, 255, 255, 0.9);
  background: #000204;
}

.site-footer__brand {
  display: grid;
  gap: 8px;
}

.brand--footer .brand-text {
  color: #fff;
}

.site-footer__brand p,
.site-footer__links a {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
}

.site-footer__links {
  max-width: 525px;
  display: grid;
  gap: 4px;
  color: rgba(255, 255, 255, 0.7);
}

.site-footer__links a:hover,
.site-footer__links a:focus-visible {
  color: var(--gold);
}

.video-popup {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.video-popup.is-open {
  opacity: 1;
  visibility: visible;
}

.video-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 6, 14, 0.78);
  backdrop-filter: blur(10px);
}

.video-popup__dialog {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  overflow: hidden;
  background: #05080d;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.5);
}

.video-popup__dialog iframe {
  width: 100%;
  height: 100%;
  display: block;
}

.video-popup__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(5, 8, 13, 0.64);
  color: #fff;
  cursor: pointer;
}

.video-popup__close::before,
.video-popup__close::after {
  content: "";
  position: absolute;
  left: 11px;
  top: 18px;
  width: 16px;
  height: 1.5px;
  border-radius: 99px;
  background: currentColor;
}

.video-popup__close::before {
  transform: rotate(45deg);
}

.video-popup__close::after {
  transform: rotate(-45deg);
}

@keyframes playButtonBreath {
  0%,
  100% {
    box-shadow:
      0 0 0 0 rgba(248, 236, 179, 0.28),
      0 0 22px rgba(248, 236, 179, 0.14),
      0 0 0 1px rgba(3, 14, 31, 0.22),
      inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  }
  52% {
    box-shadow:
      0 0 0 16px rgba(248, 236, 179, 0),
      0 0 38px rgba(248, 236, 179, 0.34),
      0 0 56px rgba(255, 247, 210, 0.16),
      0 0 0 1px rgba(3, 14, 31, 0.3),
      inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  }
}

@keyframes playButtonRing {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1180px) {
  .section-inner {
    width: min(calc(100% - 64px), var(--content));
  }

  .question-layout,
  .chapter-layout {
    grid-template-columns: 1fr;
  }

  .question-visual,
  .chapter-visual {
    max-width: 640px;
    margin: 0 auto;
  }

  .chapter-copy {
    max-width: 720px;
  }

  .site-footer {
    padding-inline: 32px;
  }
}

@media (max-width: 980px) {
  .section-inner {
    width: min(calc(100% - 48px), var(--content));
  }

  .last-hero h1 {
    font-size: 40px;
  }

  .last-hero__subtitle,
  .chapter-copy p,
  .chapter-section__intro {
    font-size: 18px;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 780px) {
  .site-header {
    top: 8px;
    width: min(calc(100% - 28px), var(--content));
    padding: 16px 19px;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
    border-radius: 28px;
  }

  .nav-toggle {
    width: 42px;
    height: 42px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-left: auto;
    padding: 0;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
  }

  .nav-toggle span {
    width: 18px;
    height: 1.5px;
    border-radius: 99px;
    background: currentColor;
    transition: transform var(--transition), opacity var(--transition);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(5.5px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-5.5px) rotate(-45deg);
  }

  .site-nav {
    display: none;
    width: 100%;
    order: 4;
    flex-basis: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding-top: 10px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .social-links {
    display: none;
    width: 100%;
    justify-content: flex-start;
    gap: 8px;
    padding-top: 4px;
  }

  .site-nav.is-open + .social-links,
  .site-header:has(.site-nav.is-open) .social-links {
    display: flex;
  }

  .section-inner {
    width: min(calc(100% - 32px), var(--content));
  }

  .last-hero {
    padding: 100px 0 0;
  }

  .last-hero h1 {
    font-size: 32px;
  }

  .last-hero__subtitle {
    font-size: 16px;
  }

  .last-hero__video-card {
    margin: 48px auto -72px;
  }

  .question-section {
    padding: 116px 0 56px;
  }

  .question-section__bg {
    top: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    transform: translateX(-50%);
  }

  .question-section__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
  }

  .question-section h2,
  .chapter-section h2 {
    font-size: 30px;
  }

  .question-point h3 {
    font-size: 18px;
  }

  .chapter-section {
    padding-top: 56px;
  }

  .chapter-section__bg {
    top: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    transform: translateX(-50%);
  }

  .chapter-section__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
  }

  .gold-button {
    font-size: 22px;
  }

  .site-footer {
    padding: 36px 20px;
    gap: 28px;
  }
}

@media (max-width: 540px) {
  .last-hero h1,
  .question-section h2,
  .chapter-section h2 {
    font-size: 28px;
  }

  .last-hero__subtitle,
  .chapter-copy p,
  .chapter-section__intro,
  .question-point h3 {
    font-size: 16px;
  }

  .question-point {
    grid-template-columns: 44px 1fr;
  }

  .question-point img {
    width: 44px;
    height: 40px;
  }

  .gold-button {
    width: 100%;
    justify-content: center;
    font-size: 20px;
    margin-top: 20px;
  }

  .chapter-layout > .chapter-visual {
    display: none;
  }

  .chapter-visual--inline {
    display: block;
  }
}
