/* L2Basic.com — оформление промостраницы. Vanilla CSS, без сборки. */

:root {
  --navy-900: #060a12;
  --navy-800: #0a1020;
  --navy-700: #101930;
  --ink: #05080e;
  --ivory: #f3ece0;
  --ivory-dim: rgba(243, 236, 224, 0.74);
  --parchment: #efe4d1;
  --parchment-deep: #e2d3b9;
  --brown: #3a2d1c;

  --gold: #d6ac5c;
  --gold-hi: #f6e3ae;
  --gold-lo: #8e6621;
  --gold-line: rgba(214, 172, 92, 0.38);

  --serif: 'Cormorant Garamond', 'Georgia', 'Times New Roman', serif;
  --sans: 'Manrope', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;

  --shell: 1240px;
  --header-h: 84px;
}

* { box-sizing: border-box; }

/* scrollbar-gutter: сохраняем место полосы прокрутки, чтобы фон не сдвигался при открытии диалогов и мобильного меню */
html { scroll-behavior: smooth; scroll-padding-top: 104px; scrollbar-gutter: stable; }

body {
  margin: 0;
  background: var(--navy-900);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.is-locked { overflow: hidden; }

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

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; margin: 0; }

p { margin: 0; }

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

ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--gold-hi);
  outline-offset: 3px;
}

/* Кадрирование артов: скрывает нижние 1/6 исходника (встроенные надписи). */
.art-crop { position: relative; overflow: hidden; }
.art-crop > img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  max-width: none;
  object-fit: cover;
  object-position: var(--art-x, 50%) top;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 28px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus { top: 14px; }

.eyebrow {
  margin-bottom: 14px;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(58, 45, 28, 0.7);
}
.eyebrow--gold { color: var(--gold); }

.sec-title {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  letter-spacing: 0.01em;
  color: var(--ivory);
}
.sec-title--dark { color: #241a0e; }

/* ---------- buttons ---------- */

.btn {
  --btn-pad: 15px 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: var(--btn-pad);
  border: 1px solid var(--gold-line);
  border-radius: 0;
  background: transparent;
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.22s, color 0.22s, border-color 0.22s, transform 0.22s;
}
.btn--sm { --btn-pad: 11px 20px; font-size: 0.74rem; }

.btn--gold {
  border-color: var(--gold-hi);
  background: linear-gradient(180deg, var(--gold-hi) 0%, var(--gold) 46%, var(--gold-lo) 100%);
  color: #22170a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}
.btn--gold:hover { filter: brightness(1.07); transform: translateY(-1px); }

.btn--line:hover,
.btn--ghost:hover,
.btn--icon:hover {
  border-color: var(--gold);
  background: rgba(214, 172, 92, 0.14);
  color: var(--gold-hi);
}

.btn--ghost { border-color: rgba(243, 236, 224, 0.4); }

.btn--icon {
  --btn-pad: 10px 18px;
  font-size: 0.74rem;
  background: rgba(6, 10, 18, 0.5);
  backdrop-filter: blur(4px);
}

/* ---------- header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid {
  background: rgba(6, 10, 18, 0.9);
  border-bottom-color: var(--gold-line);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--header-h);
}

.brand { flex: 0 0 auto; }
.site-header .brand {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 180ms ease, visibility 180ms ease;
}
.site-header.is-hero-logo-visible .brand {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.brand__logo { width: 200px; height: auto; object-fit: contain; }

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}
.nav__list { display: flex; align-items: center; gap: 26px; }
.nav__list a {
  white-space: nowrap;
  position: relative;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  padding: 6px 0;
  transition: color 0.2s;
}
.nav__list a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1px;
  background: var(--gold);
  transition: right 0.25s;
}
.nav__list a:hover { color: var(--gold-hi); }
.nav__list a:hover::after { right: 0; }

.nav__aside { display: flex; align-items: center; gap: 16px; }
/* Выбор языка: компактная кнопка + собственное меню в стиле шапки */
.language { position: relative; }
.lang {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 2px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(240, 238, 232, 0.88);
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.22s, background 0.22s;
}
.lang:hover,
.lang[aria-expanded="true"] {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}
.lang:focus-visible {
  outline: 2px solid var(--gold-hi);
  outline-offset: 2px;
}
.lang__globe {
  flex: none;
  opacity: 0.85;
  stroke-linecap: round;
}
.lang__code { line-height: 1; }
.lang__chevron {
  flex: none;
  color: var(--gold);
  transition: transform 0.22s;
}
.lang[aria-expanded="true"] .lang__chevron { transform: rotate(180deg); }

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 60;
  width: 190px;
  max-width: calc(100vw - 32px);
  padding: 5px;
  border: 0;
  border-radius: 6px;
  background: #1b1d21;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}
.lang-menu__group { display: flex; flex-direction: column; }
/* разделения групп достаточно тонкого зазора, линия не нужна */
.lang-menu__sep { height: 6px; }
.lang-menu__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 7px 9px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: rgba(226, 226, 228, 0.82);
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  text-align: left;
  cursor: pointer;
  transition: color 0.18s, background 0.18s;
}
.lang-menu__item:hover,
.lang-menu__item:focus-visible,
.lang-menu__item:active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  outline: none;
}
.lang-menu__item:focus-visible { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); }
.lang-menu__item[aria-checked="true"] {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.lang-menu__name { min-width: 0; }
.lang-menu__item:disabled {
  opacity: 0.42;
  cursor: default;
  background: transparent;
}
.lang-flag {
  flex: none;
  width: 18px;
  height: 12px;
  border-radius: 1px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.nav__close { display: none; }

.burger {
  display: none;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding: 10px 14px;
  border: 1px solid var(--gold-line);
  background: rgba(6, 10, 18, 0.55);
  color: var(--ivory);
  font: inherit;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}
.burger__bars { display: grid; gap: 4px; }
.burger__bars i { display: block; width: 18px; height: 1.5px; background: var(--gold); }

.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 98;
  background: rgba(3, 5, 10, 0.72);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: calc(var(--header-h) + 22px) 0 148px;
}
@media (min-width: 900px) { .hero { min-height: max(760px, 100svh); } }

.hero__media { position: absolute; inset: 0; }
.hero__video,
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(100% 90% at 50% 22%, transparent 20%, rgba(6, 10, 18, 0.14) 70%, rgba(6, 10, 18, 0.55) 100%),
    linear-gradient(180deg, rgba(6, 10, 18, 0.55) 0%, rgba(6, 10, 18, 0.08) 35%, rgba(6, 10, 18, 0.35) 70%, var(--navy-900) 100%);
}

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

.hero__logo {
  width: min(520px, 84vw);
  height: auto;
  object-fit: contain;
  margin: -32px 0 -18px;
  filter: drop-shadow(0 8px 30px rgba(0, 0, 0, 0.6));
}

.hero__title {
  font-size: clamp(2.6rem, 5.5vw, 4.5rem);
  color: var(--ivory);
  text-shadow: 0 6px 34px rgba(0, 0, 0, 0.65);
}

.hero__lead {
  max-width: 54ch;
  margin-top: 22px;
  color: var(--ivory-dim);
  font-size: 1.02rem;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
}

.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 26px; }

.ornament {
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(360px, 70vw);
  margin-top: 22px;
  color: var(--gold);
  opacity: 0.75;
}
.ornament__rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-line), transparent);
}

.hero__launch {
  position: absolute;
  left: 50%;
  bottom: 54px;
  transform: translateX(-50%);
  z-index: 2;
  text-align: center;
}
.hero__launch-label {
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}
.hero__launch-date {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  margin-top: 6px;
  color: var(--ivory);
}

.hero__community {
  position: absolute;
  right: 28px;
  bottom: 54px;
  z-index: 3;
  text-align: right;
}
.hero__community-title {
  margin-bottom: 10px;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ivory-dim);
}
.hero__community-row { display: flex; gap: 10px; }

.motion-toggle {
  position: absolute;
  left: 28px;
  bottom: 54px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid var(--gold-line);
  background: rgba(6, 10, 18, 0.5);
  color: var(--ivory-dim);
  font: inherit;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}
.motion-toggle:hover { color: var(--gold-hi); border-color: var(--gold); }
.motion-toggle__icon {
  width: 10px; height: 12px;
  border-left: 3px solid var(--gold);
  border-right: 3px solid var(--gold);
}
.motion-toggle[aria-pressed="true"] .motion-toggle__icon {
  width: 0; height: 0;
  border: 6px solid transparent;
  border-left: 10px solid var(--gold);
  border-right: 0;
}

/* ---------- ribbon ---------- */

.ribbon {
  background: linear-gradient(180deg, #080d17, #04070d);
  border-top: 1px solid var(--gold-line);
  border-bottom: 1px solid var(--gold-line);
}
.ribbon__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.ribbon__item { padding: 26px 10px; text-align: center; }
.ribbon__item + .ribbon__item { border-left: 1px solid rgba(214, 172, 92, 0.2); }
.ribbon__key {
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(243, 236, 224, 0.5);
}
.ribbon__val {
  margin-top: 6px;
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--gold-hi);
}

/* ---------- sections ---------- */

.news { background: #080d18; padding: 110px 0 120px; }

.sec-head { max-width: 760px; }
.sec-head .tabs { margin-top: 28px; }

.tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.tab {
  padding: 10px 20px;
  border: 1px solid rgba(214, 172, 92, 0.3);
  background: transparent;
  color: var(--ivory-dim);
  font: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}
.tab:hover { color: var(--gold-hi); border-color: var(--gold); }
.tab.is-active {
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 60%, var(--gold-lo));
  border-color: var(--gold-hi);
  color: #22170a;
}

.news__grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 26px;
  margin-top: 44px;
}
.news__grid > .card--lead { grid-row: span 2; }

.card {
  display: grid;
  text-align: left;
  border: 1px solid rgba(214, 172, 92, 0.22);
  background: #0b1120;
  color: inherit;
  font: inherit;
  padding: 0;
  cursor: pointer;
  transition: border-color 0.25s, transform 0.25s, background 0.25s;
}
.card:hover { border-color: var(--gold); transform: translateY(-3px); background: #0e1527; }

.card--lead .card__media { aspect-ratio: 16 / 9; }
.card__media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6, 10, 18, 0) 40%, rgba(6, 10, 18, 0.75));
}

.card__body { padding: 24px 26px 28px; }
.card__meta {
  display: flex;
  gap: 14px;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.card__title {
  margin-top: 12px;
  font-size: 1.5rem;
  color: var(--ivory);
}
.card--lead .card__title { font-size: 2rem; }
.card__excerpt { margin-top: 12px; color: var(--ivory-dim); font-size: 0.94rem; }
.card__more {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-hi);
}

.card--sm { grid-template-columns: 150px 1fr; align-items: stretch; }
/* высота берётся от текстового блока: img внутри .art-crop абсолютный */
.card--sm .card__media { aspect-ratio: auto; height: auto; min-height: 0; }
.card--sm .card__body { padding: 20px 22px; }
.card--sm .card__title { font-size: 1.25rem; }

.news__empty { margin-top: 36px; color: var(--ivory-dim); }
.news__foot { margin-top: 44px; }

/* about */

.about {
  padding: 110px 0 120px;
  background:
    radial-gradient(90% 70% at 20% 0%, rgba(255, 255, 255, 0.55), transparent 60%),
    linear-gradient(170deg, var(--parchment) 0%, var(--parchment-deep) 100%);
  color: var(--brown);
}
.about__inner {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 64px;
  align-items: start;
}
.about__lead { margin-top: 22px; font-size: 1.04rem; color: rgba(58, 45, 28, 0.9); max-width: 46ch; }

.feat { margin-top: 38px; }
.feat__tabs { display: grid; gap: 2px; border-top: 1px solid rgba(58, 45, 28, 0.25); }
.feat__tab {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 16px 4px;
  border: 0;
  border-bottom: 1px solid rgba(58, 45, 28, 0.25);
  background: transparent;
  color: rgba(58, 45, 28, 0.75);
  font-family: var(--serif);
  font-size: 1.3rem;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s, padding 0.2s;
}
.feat__tab:hover { color: #241a0e; padding-left: 10px; }
.feat__tab.is-active { color: #241a0e; }
.feat__num {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gold-lo);
}

.feat__panel { padding-top: 26px; }
.feat__panel h3 { font-size: 1.5rem; color: #241a0e; }
.feat__panel p { margin-top: 12px; color: rgba(58, 45, 28, 0.88); max-width: 50ch; }

.about__figure { margin: 0; }
.about__media {
  width: 100%;
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(58, 45, 28, 0.3);
  box-shadow: 0 24px 60px rgba(40, 28, 12, 0.25);
}
.about__figure figcaption {
  margin-top: 12px;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(58, 45, 28, 0.65);
}

/* balance */

.balance { padding: 100px 0 110px; background: linear-gradient(180deg, #04070d, #080d18); }
.balance__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr;
  gap: 64px;
  align-items: start;
}
.balance__inner { min-width: 0; }
.balance__figure { margin: 0; min-width: 0; }
.balance__media {
  width: 100%;
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(214, 172, 92, 0.3);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.balance__figure figcaption {
  margin-top: 12px;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(243, 236, 224, 0.6);
}
.balance__lead { margin-top: 20px; color: var(--ivory-dim); max-width: 60ch; }

.faq { margin-top: 36px; border-top: 1px solid rgba(214, 172, 92, 0.22); }
.faq__item { border-bottom: 1px solid rgba(214, 172, 92, 0.22); }
.faq__item summary {
  padding: 18px 2px;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--ivory);
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+';
  float: right;
  color: var(--gold);
  font-family: var(--sans);
}
.faq__item[open] summary::after { content: '–'; }
.faq__item p { padding: 0 2px 20px; color: var(--ivory-dim); max-width: 66ch; }

/* start */

.start {
  position: relative;
  padding: 120px 0 130px;
  background:
    linear-gradient(180deg, rgba(4, 7, 13, 0.4), rgba(4, 7, 13, 0.68)),
    url('assets/parchment-world.webp') center / cover no-repeat;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 46px;
}
.step {
  padding: 32px 28px 34px;
  border: 1px solid rgba(214, 172, 92, 0.26);
  background: rgba(6, 10, 18, 0.62);
  backdrop-filter: blur(3px);
}
.step__num { font-family: var(--serif); font-size: 2.2rem; color: var(--gold); line-height: 1; }
.step__title { margin-top: 14px; font-size: 1.5rem; }
.step__text { margin-top: 10px; color: var(--ivory-dim); font-size: 0.94rem; }
.step .btn { margin-top: 22px; }

/* community */

.community {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 96px 0 100px;
  border-top: 1px solid var(--gold-line);
  background: #080d18;
}
.community__art {
  position: absolute;
  top: 0;
  right: max(120px, calc((100% - 1240px) / 2 + 120px));
  bottom: 0;
  left: auto;
  width: min(960px, 72%);
  z-index: 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 24%, #000 76%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 24%, #000 76%, transparent 100%);
}
.community__art > img { object-position: center 20%; }
.community::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(8, 13, 24, 0.92) 0%, rgba(8, 13, 24, 0.3) 26%,
                    rgba(8, 13, 24, 0.3) 72%, rgba(8, 13, 24, 0.95) 100%),
    linear-gradient(100deg, rgba(4, 7, 13, 0.86) 0%, rgba(4, 7, 13, 0.52) 48%, rgba(4, 7, 13, 0.12) 100%);
}
.community__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
}
.community__lead { margin-top: 18px; color: var(--ivory-dim); max-width: 52ch; }
.community__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: flex-end; }

/* footer */

.footer { background: #04070d; border-top: 1px solid var(--gold-line); padding: 54px 0 46px; }
.footer__inner {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 34px 48px;
}
.footer__brand img { width: 160px; height: auto; object-fit: contain; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; }
.footer__nav a,
.footer__link {
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--ivory-dim);
  font: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}
.footer__nav a:hover, .footer__link:hover { color: var(--gold-hi); }

.footer__legal {
  grid-column: 2;
  font-size: 0.8rem;
  color: rgba(243, 236, 224, 0.5);
  max-width: 72ch;
}
.footer__legal p + p { margin-top: 8px; }

/* ---------- modals ---------- */

.modal {
  width: min(720px, calc(100vw - 32px));
  max-height: min(86vh, 900px);
  padding: 0;
  border: 1px solid var(--gold-line);
  background: var(--navy-800);
  color: var(--ivory);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7);
}
.modal::backdrop { background: rgba(3, 5, 10, 0.78); backdrop-filter: blur(3px); }

.modal__box { position: relative; padding: 44px 46px 40px; }
.modal__close {
  position: absolute;
  top: 16px; right: 16px;
  display: inline-flex;
  padding: 8px;
  border: 1px solid var(--gold-line);
  background: transparent;
  color: var(--ivory);
  cursor: pointer;
}
.modal__close:hover { color: var(--gold-hi); border-color: var(--gold); }
.modal--article .modal__close { background: rgba(4, 7, 13, 0.72); }
.modal__media {
  margin: -10px 0 26px;
  aspect-ratio: 1920 / 1000;
  border: 1px solid var(--gold-line);
  background: var(--navy-900);
}
.modal__eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
}
.modal__title { margin-top: 12px; font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.modal__body { margin-top: 18px; color: var(--ivory-dim); }
.modal__body p + p { margin-top: 12px; }
.modal__body ul { margin-top: 12px; display: grid; gap: 8px; }
.modal__body li { padding-left: 18px; position: relative; }
.modal__body li::before {
  content: '';
  position: absolute; left: 0; top: 0.7em;
  width: 7px; height: 7px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}
.modal__foot { margin-top: 28px; }

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .about__inner { grid-template-columns: 1fr; gap: 42px; }
  .about__media { aspect-ratio: 16 / 10; }
  .community__inner { grid-template-columns: 1fr; }
  .community__actions { justify-content: flex-start; }
  .community__art {
    left: 0;
    right: 0;
    width: 100%;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .community__art > img { object-position: center top; }
}

@media (max-width: 960px) {
  .balance__grid { grid-template-columns: 1fr; gap: 42px; }
  .balance__media { aspect-ratio: 16 / 10; }
}

@media (min-width: 761px) and (max-width: 1100px) {
  .hero__community-row { flex-direction: column; gap: 6px; }
}

@media (max-width: 1100px) {
  .site-header.is-solid { backdrop-filter: none; }
  .burger { display: inline-flex; }
  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 99;
    width: min(360px, 86vw);
    margin: 0;
    padding: 90px 28px 32px;
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
    background: var(--navy-800);
    border-left: 1px solid var(--gold-line);
    transform: translateX(100%);
    transition: transform 0.28s ease;
    overflow-y: auto;
  }
  .nav.is-open { transform: none; }
  .nav[hidden] { display: none; }
  .nav__list { flex-direction: column; align-items: flex-start; gap: 18px; }
  .nav__list a { font-size: 0.95rem; }
  .nav__close {
    display: inline-flex;
    position: absolute;
    top: 22px; right: 22px;
    padding: 8px;
    border: 1px solid var(--gold-line);
    background: transparent;
    color: var(--ivory);
    cursor: pointer;
  }
  .nav__aside { flex-direction: column; align-items: flex-start; gap: 14px; }
  .language { width: 100%; max-width: 240px; }
  .lang { padding: 8px 4px; font-size: 0.78rem; }
  /* на узких экранах меню прижато к левому краю и не выходит за viewport */
  .lang-menu { right: auto; left: 0; width: 196px; max-width: calc(100vw - 48px); }

  .news__grid { grid-template-columns: 1fr; }
  .news__grid > .card--lead { grid-row: auto; }
  .steps { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__legal { grid-column: 1; }
}

@media (max-width: 760px) {
  .shell { padding: 0 18px; }
  .hero { flex-direction: column; padding: calc(var(--header-h) + 18px) 0 24px; }
  .hero__logo { margin: -16px 0 -8px; }
  .hero__launch { position: relative; left: auto; bottom: auto; transform: none; margin-top: 32px; }
  .hero__community { position: relative; right: auto; bottom: auto; max-width: calc(100% - 36px); margin-top: 18px; text-align: center; }
  .hero__community-row { flex-wrap: wrap; justify-content: center; }
  .motion-toggle { position: relative; left: auto; bottom: auto; margin-top: 16px; min-height: 44px; }
  .ribbon__grid { grid-template-columns: 1fr; }
  .ribbon__item + .ribbon__item { border-left: 0; border-top: 1px solid rgba(214, 172, 92, 0.2); }
  .card--sm { grid-template-columns: 1fr; }
  .card--sm .card__media { aspect-ratio: 16 / 9; height: auto; min-height: 0; }
  .news, .about, .balance, .start, .community { padding-top: 76px; padding-bottom: 80px; }
  .modal__box { padding: 40px 22px 30px; }
  .brand__logo { width: 150px; }
}

@media (max-width: 420px) {
  .hero__cta { flex-direction: column; align-self: stretch; }
  .hero__cta .btn { width: 100%; }
  .hero__community-row { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
