@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;
  --gold: #f8ecb3;
  --gold-soft: #fff7d2;
  --text: #040404;
  --content: 1100px;
  --transition: 180ms ease;
}

* {
  box-sizing: border-box;
}

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

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;
  display: flex;
  flex-direction: column;
  background: #fffffd;
  overflow: hidden;
}

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

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

.start-hero {
  position: relative;
  min-height: 774px;
  padding: 0 0 72px;
  background: var(--deep);
  overflow: visible;
}

.start-hero__bg {
  position: absolute;
  left: 50%;
  top: 0;
  width: min(1200px, 100%);
  height: 600px;
  transform: translateX(-50%);
}

.start-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 84%, rgba(0, 0, 0, 0.82) 92%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, #000 84%, rgba(0, 0, 0, 0.82) 92%, transparent 100%);
}

.start-hero__inner {
  position: relative;
  z-index: 1;
  padding-top: 105px;
}

.start-hero__copy {
  max-width: 625px;
}

.start-hero h1 {
  margin: 0 0 18px;
  color: var(--gold);
  font-family: "Forum", sans-serif;
  font-weight: 400;
  font-size: 48px;
  line-height: 1.05;
}

.start-hero__lead {
  max-width: 583px;
  margin: 0 0 24px;
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.2;
}

.start-hero__lead strong {
  font-weight: 600;
}

.start-hero__points {
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.start-hero__points li {
  display: grid;
  grid-template-columns: 41px 1fr;
  align-items: center;
  gap: 8px;
}

.start-hero__points img {
  width: 41px;
  height: 42px;
  object-fit: contain;
}

.start-hero__points span {
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  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(--text);
  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;
}

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

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

.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%);
}

.light-section {
  position: relative;
  padding: 252px 0 72px;
  background: #fffffd;
}

.story-preview h2 {
  margin: 0 auto 12px;
  max-width: 625px;
  color: #040404;
  font-family: "Forum", sans-serif;
  font-weight: 400;
  font-size: 36px;
  line-height: 1.05;
  text-transform: uppercase;
  text-align: center;
}

.story-preview__subtitle {
  margin: 0 auto 36px;
  max-width: 603px;
  color: #040404;
  font-family: "Inter", sans-serif;
  font-size: 20px;
  line-height: 1.2;
  text-align: center;
}

.story-preview__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 315px;
  gap: 44px;
  align-items: start;
}

.story-preview__points {
  display: grid;
  gap: 12px;
}

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

.story-preview__item img {
  width: 55px;
  height: 48px;
  object-fit: contain;
}

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

.story-preview__item p {
  margin: 0;
  color: #040404;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.2;
}

.story-preview__visual img {
  width: 100%;
  object-fit: cover;
}

.story-preview__question {
  margin: 28px auto 16px;
  color: #040404;
  font-family: "Forum", sans-serif;
  font-weight: 400;
  font-size: 28px;
  line-height: 1.05;
  text-align: center;
}

.story-preview__cta {
  display: flex;
  margin: 0 auto;
}

.matrix-section {
  position: relative;
  min-height: 683px;
  padding: 54px 0 96px;
  background: var(--deep);
  color: #fff;
  overflow: hidden;
}

.matrix-section__bg {
  position: absolute;
  left: 50%;
  top: 0;
  width: min(1200px, 100%);
  height: 663px;
  transform: translateX(-50%);
}

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

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

.matrix-section__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 626px);
  gap: 42px;
  align-items: start;
  margin-bottom: 36px;
}

.matrix-section__top-visual {
  display: flex;
  justify-content: center;
}

.matrix-section__top-visual img {
  width: min(626px, 100%);
  object-fit: contain;
}

.matrix-section__content {
  display: grid;
  grid-template-columns: minmax(280px, 520px) 478px;
  gap: 54px;
  align-items: start;
}

.matrix-section__left h2,
.matrix-section__right h3 {
  margin: 0 0 16px;
  color: var(--gold);
  font-family: "Forum", sans-serif;
  font-weight: 400;
  font-size: 36px;
  line-height: 1.05;
  text-transform: uppercase;
}

.matrix-section__left {
  max-width: 553px;
}

.matrix-section__left p,
.matrix-section__right p {
  margin: 0 0 18px;
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.2;
}

.matrix-section__left strong,
.matrix-section__right strong {
  font-weight: 600;
}

.matrix-section__decor {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.matrix-section__decor img {
  width: min(520px, 100%);
  object-fit: contain;
}

.matrix-section__right {
  max-width: 478px;
  padding-top: 34px;
}

.matrix-section .gold-button {
  margin-top: 10px;
}

.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;
}

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

.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-footer__brand {
  display: grid;
  gap: 8px;
}

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

.site-footer__brand p,
.site-footer__links a {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  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 {
  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));
  }

  .story-preview__layout,
  .matrix-section__top,
  .matrix-section__content {
    grid-template-columns: 1fr;
  }

  .story-preview__visual,
  .matrix-section__top-visual,
  .matrix-section__decor {
    display: flex;
    justify-content: center;
  }

  .story-preview__visual img {
    width: min(280px, 100%);
  }

  .matrix-section__right {
    max-width: 640px;
    padding-top: 0;
  }

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

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

  .start-hero {
    padding-bottom: 32px;
  }

  .start-hero__inner {
    padding-top: 72px;
  }

  .start-hero h1 {
    font-size: 36px;
  }

  .start-hero__video-card {
    margin: 56px auto -120px;
  }

  .light-section {
    padding-top: 176px;
  }

  .story-preview h2,
  .matrix-section__left h2,
  .matrix-section__right h3 {
    font-size: 30px;
  }

  .matrix-section__top,
  .matrix-section__content {
    gap: 28px;
  }

  .matrix-section__right {
    order: 1;
  }

  .matrix-section__decor {
    order: 2;
  }

  .story-preview__subtitle,
  .story-preview__item h3,
  .story-preview__question {
    font-size: 18px;
  }

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

@media (max-width: 540px) {
  .start-hero h1,
  .story-preview h2,
  .matrix-section__left h2,
  .matrix-section__right h3 {
    font-size: 28px;
  }

  .start-hero__lead,
  .start-hero__points span,
  .story-preview__subtitle,
  .story-preview__item h3,
  .story-preview__item p,
  .matrix-section__left p,
  .matrix-section__right p {
    font-size: 16px;
  }

  .story-preview__item {
    grid-template-columns: 44px 1fr;
  }

  .story-preview__item img {
    width: 44px;
    height: 40px;
  }

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

  .start-hero__video-card {
    margin-bottom: -88px;
  }

  .light-section {
    padding-top: 140px;
  }

  .matrix-section__top,
  .matrix-section__content {
    gap: 22px;
  }
}
