/* Разлом — лендинг.
   Фон и поверхности — из тёмной палитры, размеры типа — по шкале, отступы — по токенам.
   Файлы стилей: style.css (этот), main.js. */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/manrope-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/manrope-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #131209;
  --surface: #181818;
  --surface-2: #1F1F1F;
  --line: #272727;
  --text: #F5F5F5;
  --muted: #A3A3A3;
  --accent: #FF6A2B;
  --accent-hover: #E8601F;
  --on-accent: #131209;
  --r-sm: 4px;
  --r-lg: 8px;
  --r-xl: 12px;
  --r-2xl: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --s-25: 2px;
  --s-50: 4px;
  --s-75: 8px;
  --s-100: 12px;
  --s-200: 16px;
  --s-300: 24px;
  --s-400: 32px;
  --s-500: 40px;
  --s-600: 48px;
  --s-700: 64px;
  --s-800: 80px;
  --s-900: 96px;
  --container: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--s-900);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.5rem;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid #FFFFFF;
  outline-offset: 2px;
  border-radius: var(--r-lg);
}

/* ---------- Текстовые стили ---------- */

.heading-1 { font-size: 3.75rem;   line-height: 1;        font-weight: 600; margin: 0; text-wrap: balance; }
.heading-2 { font-size: 3rem;      line-height: 1;        font-weight: 600; margin: 0; text-wrap: balance; }
.heading-3 { font-size: 2.25rem;   line-height: 2.5rem;   font-weight: 600; margin: 0; text-wrap: balance; }
.heading-4 { font-size: 1.875rem;  line-height: 2.25rem;  font-weight: 600; margin: 0; text-wrap: balance; }
.title-2   { font-size: 1.125rem;  line-height: 1.75rem;  font-weight: 500; margin: 0; }
.title-3   { font-size: 1rem;      line-height: 1.5rem;   font-weight: 500; margin: 0; }
.title-4   { font-size: 0.875rem;  line-height: 1.25rem;  font-weight: 500; }
.body-3    { font-size: 1rem;      line-height: 1.5rem;   font-weight: 400; margin: 0; text-wrap: pretty; }
.body-6    { font-size: 0.875rem;  line-height: 1.25rem;  font-weight: 400; margin: 0; text-wrap: pretty; }
.button-md { font-size: 1rem;      line-height: 1.5rem;   font-weight: 600; }
.button-sm { font-size: 0.875rem;  line-height: 1.25rem;  font-weight: 600; }
.btn-md    { font-size: 1rem;      line-height: 1.5rem;   font-weight: 600; }
.btn-sm    { font-size: 0.875rem;  line-height: 1.25rem;  font-weight: 600; }
.caption-1 { font-size: 0.875rem;  line-height: 1.25rem;  font-weight: 500; margin: 0; }
.caption-2 { font-size: 0.875rem;  line-height: 1.25rem;  font-weight: 400; margin: 0; }
.caption-5 { font-size: 0.75rem;   line-height: 1rem;     font-weight: 400; margin: 0; text-wrap: pretty; }

/* ---------- Каркас ---------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--s-300);
}

@media (max-width: 479px) {
  .container {
    padding-inline: var(--s-200);
  }
}

.section {
  padding-block: var(--s-700);
}

.section__title {
  margin-bottom: var(--s-500);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: var(--s-200);
  left: var(--s-200);
  z-index: 100;
  padding: var(--s-75) var(--s-100);
  background: var(--accent);
  color: var(--on-accent);
  border-radius: var(--r-lg);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(calc(-100% - var(--s-300)));
  transition: transform 500ms var(--ease);
}

.skip-link:focus {
  transform: none;
}

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-75);
  padding: var(--s-75) var(--s-100);
  border: 0;
  border-radius: var(--r-lg);
  background: var(--accent);
  color: var(--on-accent);
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 300ms var(--ease), transform 500ms var(--ease);
}

.btn:hover {
  background: var(--accent-hover);
}

@media (hover: hover) {
  .btn:hover {
    transform: translateY(-1px);
  }
}

.btn:active {
  transform: scale(0.98);
}

/* ---------- Навигация ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: var(--s-200);
  pointer-events: none;
}

.nav {
  pointer-events: auto;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: var(--s-300);
  width: fit-content;
  max-width: 100%;
  padding: var(--s-75) var(--s-75) var(--s-75) var(--s-200);
  background: rgba(24, 24, 24, 0.78);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
}

.brand {
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  white-space: nowrap;
}

.brand span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s-200);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--muted);
  transition: color 300ms var(--ease);
}

.nav-links a:hover {
  color: var(--text);
}

.age {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-25) var(--s-50);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin: calc(var(--s-100) * -1) calc(var(--s-100) * -1) calc(var(--s-100) * -1) 0;
  border: 0;
  border-radius: var(--r-lg);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.nav-toggle__bars {
  position: absolute;
  left: 12px;
  top: 21px;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: background-color 300ms var(--ease);
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  content: "";
  transition: transform 500ms var(--ease);
}

.nav-toggle__bars::before {
  transform: translateY(-6px);
}

.nav-toggle__bars::after {
  transform: translateY(6px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  transform: rotate(-45deg);
}

.nav-menu {
  display: none;
}

@media (max-width: 899px) {
  .site-header {
    padding: var(--s-200) var(--s-200) 0;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
    padding: var(--s-75) var(--s-75) var(--s-75) var(--s-200);
  }

  .nav-links--desktop,
  .nav-cta--desktop,
  .age--desktop {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    pointer-events: auto;
    position: fixed;
    inset: 0;
    z-index: 1;
    display: none;
    flex-direction: column;
    gap: var(--s-400);
    padding: var(--s-900) var(--s-300) var(--s-600);
    background: rgba(19, 18, 9, 0.96);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
  }

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

  .nav-menu .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: var(--s-200);
  }

  .nav-menu .nav-links a {
    display: block;
    padding: var(--s-100) 0;
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 600;
    color: var(--text);
  }

  .nav-menu .nav-cta {
    width: 100%;
  }

  .nav-menu.is-open .nav-links li,
  .nav-menu.is-open .nav-cta,
  .nav-menu.is-open .age {
    animation: nav-in 400ms var(--ease) both;
    animation-delay: calc(var(--i) * 60ms);
  }
}

@keyframes nav-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Первый экран ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-600);
  align-items: center;
  padding-top: calc(var(--s-900) + var(--s-700));
  padding-bottom: var(--s-800);
}

.eyebrow {
  margin-bottom: var(--s-200);
  color: var(--accent);
}

.hero__title {
  max-width: 680px;
  font-size: 2.25rem;
  line-height: 2.5rem;
}

@media (min-width: 768px) {
  .hero {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: var(--s-600);
  }

  .hero__title {
    font-size: 3rem;
    line-height: 1;
  }
}

@media (min-width: 1100px) {
  .hero__title {
    font-size: 3.75rem;
    line-height: 1;
  }
}

.grad {
  display: block;
  color: var(--text);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .grad {
    background: linear-gradient(90deg, #FFFFFF, #9B9B9B);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.hero__lead {
  max-width: 680px;
  margin-top: var(--s-300);
  color: var(--muted);
}

.hero__actions {
  margin-top: var(--s-400);
}

.hero__meta {
  margin-top: var(--s-300);
  color: var(--muted);
}

.hero__media {
  display: grid;
  place-items: center;
}

.hero__media img {
  display: block;
  width: min(100%, 320px);
  height: auto;
  aspect-ratio: 1;
  -webkit-mask-image: radial-gradient(closest-side, #000 58%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 58%, transparent 100%);
}

@media (min-width: 768px) {
  .hero__media img {
    width: min(100%, 480px);
  }
}

/* ---------- Девиз ---------- */

.tagline-wrap {
  padding-block: var(--s-700);
}

.tagline {
  max-width: 680px;
  font-size: 2.25rem;
  line-height: 2.5rem;
}

@media (min-width: 768px) {
  .tagline {
    font-size: 3rem;
    line-height: 1;
  }
}

.tagline-line {
  display: block;
}

.tagline .w {
  color: rgba(245, 245, 245, 0.3);
  transition: color 500ms var(--ease);
}

.tagline .w.on,
.no-motion .tagline .w {
  color: var(--text);
}

/* ---------- Блоки контента ---------- */

.grid-3,
.steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-200);
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  padding: var(--s-400);
}

.card .icon {
  margin-bottom: var(--s-200);
}

.card h3 {
  margin-bottom: var(--s-75);
}

.card p {
  color: var(--muted);
}

.icon {
  display: inline-flex;
  color: var(--accent);
}

.events {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-200);
  margin: var(--s-400) 0 0;
  padding: 0;
  list-style: none;
}

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

.events li {
  display: flex;
  align-items: flex-start;
  gap: var(--s-100);
}

.events .icon--sm {
  margin-top: var(--s-25);
}

.events p {
  color: var(--muted);
}

.events b {
  color: var(--text);
  font-weight: 600;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step__num {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: var(--s-200);
  border-radius: 9999px;
  background: var(--surface-2);
  color: var(--accent);
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 600;
}

.step h3 {
  margin-bottom: var(--s-75);
}

.step p {
  color: var(--muted);
}

.timeline {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-200);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) {
  .timeline {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--s-200);
  }
}

.timeline__date {
  margin-bottom: var(--s-75);
  font-weight: 600;
  color: var(--accent);
}

/* ---------- Вопросы ---------- */

.faq {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-100);
}

@media (min-width: 900px) {
  .faq {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s-200);
  }
}

.faq details {
  align-self: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  padding: var(--s-200) var(--s-300);
}

.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-200);
  list-style: none;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 500;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary:focus-visible {
  border-radius: var(--r-2xl);
}

.faq .plus {
  flex: none;
  margin-top: var(--s-25);
  color: var(--accent);
  transition: transform 500ms var(--ease);
}

.faq details[open] .plus {
  transform: rotate(45deg);
}

.faq details p {
  margin-top: var(--s-100);
  color: var(--muted);
}

/* ---------- Финальный призыв ---------- */

.final {
  padding-block: var(--s-400) var(--s-900);
}

.final__box {
  display: grid;
  gap: var(--s-200);
  justify-items: center;
  padding: var(--s-700) var(--s-300);
  text-align: center;
  background: var(--surface-2);
  border-radius: var(--r-2xl);
}

.final__box p {
  max-width: 680px;
  color: var(--muted);
}

.final__box .btn {
  margin-top: var(--s-100);
}

/* ---------- Подвал ---------- */

.site-footer {
  padding-block: var(--s-600) var(--s-800);
  border-top: 1px solid var(--line);
}

.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-300);
  margin-bottom: var(--s-400);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-300);
}

.site-footer__links a {
  text-decoration: none;
  color: var(--muted);
  transition: color 300ms var(--ease);
}

.site-footer__links a:hover {
  color: var(--text);
}

.site-footer .caption-5 {
  color: #8A8A8A;
}

.site-footer .caption-5 + .caption-5 {
  margin-top: var(--s-75);
}

/* ---------- Служебные страницы ---------- */

.page {
  min-height: 100vh;
  display: grid;
  align-content: center;
}

.narrow {
  max-width: 680px;
}

.narrow .eyebrow {
  margin-bottom: var(--s-200);
}

.narrow .heading-4 {
  margin-bottom: var(--s-300);
}

.narrow p + p {
  margin-top: var(--s-200);
}

.narrow p {
  color: var(--muted);
}

.narrow .btn {
  margin-top: var(--s-400);
}

/* ---------- Появление при прокрутке ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .skip-link,
  .btn,
  .nav-links a,
  .site-footer__links a,
  .tagline .w,
  .faq .plus,
  .nav-toggle__bars,
  .nav-toggle__bars::before,
  .nav-toggle__bars::after {
    transition: none;
  }

  .nav-menu.is-open .nav-links li,
  .nav-menu.is-open .nav-cta,
  .nav-menu.is-open .age {
    animation: none;
  }
}

html.js .reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

html.js.no-motion .reveal {
  opacity: 1;
  transform: none;
  transition: none;
}
