/* THE SELENORIX EXPERIMENT
   Запасные цвета. Обычная смена цвета — в config.js, блок colors.
   Если меняете цвет насовсем, запишите то же значение и здесь.
*/

:root {
  --bg: #070C0A;
  --bg-2: #101A14;
  --accent: #89FF55;
  --text: #F4FFF5;
  --muted: #9CB4A5;
  --display: Bahnschrift, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --sans: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Palatino Linotype", Palatino, "Times New Roman", serif;
  --header: 72px;
  --line: rgba(137, 255, 85, 0.2);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(900px 480px at 100% -10%, rgba(137, 255, 85, 0.08), transparent 55%),
    radial-gradient(640px 420px at -10% 30%, rgba(137, 255, 85, 0.05), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.02rem;
  line-height: 1.6;
  color-scheme: dark;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(137, 255, 85, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(137, 255, 85, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 72%);
  z-index: 0;
}

img {
  max-width: 100%;
  border: 0;
}

[hidden] {
  display: none !important;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

p,
h1,
h2,
h3,
figure,
blockquote {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

::selection {
  background: rgba(137, 255, 85, 0.28);
  color: var(--text);
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 40;
  padding: 8px 12px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 8px;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

@media (min-width: 720px) {
  .wrap {
    width: min(1120px, calc(100% - 48px));
  }
}

.header,
main,
.footer {
  position: relative;
  z-index: 1;
}

/* Шапка */

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: var(--header);
  background: rgba(7, 12, 10, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  position: relative;
  min-height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  min-width: 0;
}

.brand-mark {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  flex: 0 0 auto;
  animation: pulse 3s ease-in-out infinite;
}

.brand-name,
.brand-footer,
#footer-brand {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 0.92rem;
}

.brand-image {
  display: block;
  max-height: 36px;
  width: auto;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav {
  display: none;
  align-items: center;
  gap: 22px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--text);
}

.lang {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid rgba(137, 255, 85, 0.28);
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
  background: rgba(16, 26, 20, 0.72);
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  min-width: 40px;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.lang-btn[aria-pressed="true"] {
  background: var(--accent);
  color: #071208;
  color: var(--bg);
}

.menu-toggle {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(137, 255, 85, 0.28);
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
  background: transparent;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.menu-bars {
  position: relative;
  width: 16px;
  height: 1.5px;
  background: currentColor;
}

.menu-bars::before,
.menu-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 1.5px;
  background: currentColor;
}

.menu-bars::before {
  top: -5px;
}

.menu-bars::after {
  top: 5px;
}

@media (max-width: 859px) {
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 4px 14px;
    background: rgba(7, 12, 10, 0.96);
    border-bottom: 1px solid var(--line);
  }

  .nav.is-open {
    display: flex;
    z-index: 5;
    background: var(--bg);
  }

  .nav a {
    padding: 12px 8px;
    font-size: 1.05rem;
  }
}

@media (min-width: 860px) {
  .menu-toggle {
    display: none;
  }

  .nav {
    display: flex;
  }
}

@media (max-width: 380px) {
  .brand-name {
    letter-spacing: 0.08em;
    font-size: 0.8rem;
  }
}

/* Первый экран */

.hero {
  padding: 28px 0 56px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: 28px;
}

.kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--display);
  font-size: clamp(1.7rem, 8.4vw, 2.7rem);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  text-wrap: balance;
  max-width: 100%;
}

.hero-title .line {
  display: block;
}

.hero-title .line-accent {
  color: var(--accent);
}

.goal-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 22px;
}

.goal {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 10px;
}

.goal-value {
  font-family: var(--display);
  font-size: clamp(2rem, 6vw, 3.3rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--accent);
}

.goal-period {
  color: var(--muted);
  letter-spacing: 0.14em;
  font-size: 0.86rem;
  font-weight: 700;
}

.goal-badge {
  margin: 0;
  max-width: 16rem;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(244, 255, 245, 0.32);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.lede {
  max-width: 38rem;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.5;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.btn-primary {
  background: var(--accent);
  color: #071208;
  color: var(--bg);
  box-shadow: 0 0 0 1px rgba(137, 255, 85, 0.2), 0 8px 28px rgba(137, 255, 85, 0.16);
}

.btn-primary::after {
  content: "→";
  margin-left: 8px;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(137, 255, 85, 0.45);
  border-color: color-mix(in srgb, var(--accent) 50%, transparent);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary:hover {
  box-shadow: 0 0 0 1px rgba(137, 255, 85, 0.35), 0 10px 32px rgba(137, 255, 85, 0.24);
}

.btn-ghost:hover {
  background: rgba(137, 255, 85, 0.08);
}

.hero-photo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 0;
  min-width: 0;
}

.portrait-frame {
  width: fit-content;
  max-width: 100%;
  padding: 10px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(137, 255, 85, 0.08), transparent 42%),
    rgba(16, 26, 20, 0.78);
  border: 1px solid rgba(137, 255, 85, 0.3);
  border-color: color-mix(in srgb, var(--accent) 34%, transparent);
  box-shadow: var(--shadow), 0 0 40px rgba(137, 255, 85, 0.08);
}

.portrait-frame img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(100%, 420px);
  max-height: min(68vh, 640px);
  margin-inline: auto;
  border-radius: 18px;
  object-fit: contain;
  background: #0c1410;
}

.portrait-frame.is-missing {
  min-height: 280px;
  min-width: min(100%, 280px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-fallback {
  max-width: 28ch;
  text-align: center;
  color: var(--muted);
}

.hero-photo figcaption {
  width: min(100%, 440px);
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
  overflow-wrap: anywhere;
}

@media (max-width: 559px) {
  .actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }
}

@media (min-width: 960px) {
  .hero {
    min-height: calc(100vh - var(--header));
    display: flex;
    align-items: center;
    padding: 36px 0;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
    grid-template-areas:
      "intro photo"
      "actions photo";
    column-gap: 56px;
    row-gap: 26px;
    align-items: center;
  }

  .hero-intro {
    grid-area: intro;
  }

  .hero-actions {
    grid-area: actions;
  }

  .hero-photo {
    grid-area: photo;
    align-items: flex-end;
  }

  .hero-title {
    font-size: clamp(2.35rem, 3.7vw, 4.05rem);
    max-width: 100%;
  }

  .hero-photo figcaption {
    text-align: right;
    padding-right: 12px;
  }
}

/* Общие секции */

.section {
  padding: 64px 0;
}

.section-head {
  max-width: 42rem;
  margin-bottom: 28px;
}

.section-head h2,
.statement h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.intro {
  margin-top: 14px;
  font-size: 1.05rem;
  line-height: 1.6;
}

section[id] {
  scroll-margin-top: calc(var(--header) + 12px);
}

/* История */

.story-panel {
  max-width: 760px;
  padding: 28px 22px;
  border-radius: 24px;
  background: rgba(16, 26, 20, 0.78);
  border: 1px solid rgba(137, 255, 85, 0.16);
  border-color: color-mix(in srgb, var(--accent) 18%, transparent);
  box-shadow: var(--shadow);
}

.story-panel p {
  font-size: 1.06rem;
  line-height: 1.7;
}

.story-panel p + p {
  margin-top: 1.05em;
}

@media (min-width: 720px) {
  .section {
    padding: 96px 0;
  }

  .story-panel {
    padding: 44px 48px;
  }
}

/* Карточки */

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.card {
  min-width: 0;
  padding: 24px 22px 26px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(137, 255, 85, 0.06), transparent 28%),
    rgba(16, 26, 20, 0.86);
  border: 1px solid rgba(137, 255, 85, 0.16);
  border-color: color-mix(in srgb, var(--accent) 18%, transparent);
}

.card:hover {
  border-color: rgba(137, 255, 85, 0.45);
  border-color: color-mix(in srgb, var(--accent) 48%, transparent);
}

.card h3 {
  margin: 14px 0 10px;
  font-family: var(--display);
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}

.card p:last-child {
  color: var(--muted);
  line-height: 1.6;
}

.pill,
.stage-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(137, 255, 85, 0.4);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (min-width: 860px) {
  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Путь */

.journey-wrap {
  max-width: 860px;
}

.journey-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.stage {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  min-width: 0;
  padding: 22px 0;
  border-top: 1px solid rgba(137, 255, 85, 0.16);
  border-top-color: color-mix(in srgb, var(--accent) 18%, transparent);
}

.stage:last-child {
  border-bottom: 1px solid rgba(137, 255, 85, 0.16);
  border-bottom-color: color-mix(in srgb, var(--accent) 18%, transparent);
}

.stage-index {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
}

.stage-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid rgba(137, 255, 85, 0.7);
  border-color: color-mix(in srgb, var(--accent) 70%, transparent);
  flex: 0 0 auto;
}

.stage.is-current .stage-dot,
.stage.is-complete .stage-dot {
  background: var(--accent);
  border-color: var(--accent);
}

.stage.is-current .stage-dot {
  animation: pulse 2.6s ease-in-out infinite;
}

.stage.is-upcoming .stage-status {
  color: var(--muted);
  border-color: rgba(156, 180, 165, 0.45);
  border-color: color-mix(in srgb, var(--muted) 45%, transparent);
}

.stage.is-complete .stage-status {
  background: var(--accent);
  color: #071208;
  color: var(--bg);
  border-color: var(--accent);
}

.stage-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
}

.stage-head h3 {
  font-family: var(--display);
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.stage-text {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.6;
}

@media (min-width: 640px) {
  .stage {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 8px 16px;
    align-items: start;
  }

  .stage-index {
    padding-top: 8px;
  }
}

/* Соцсети */

.social-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  min-width: 0;
  padding: 0 16px;
  border-radius: 16px;
  text-decoration: none;
  color: var(--text);
  background: rgba(16, 26, 20, 0.86);
  border: 1px solid rgba(137, 255, 85, 0.2);
  border-color: color-mix(in srgb, var(--accent) 24%, transparent);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.social-btn:hover {
  border-color: rgba(137, 255, 85, 0.7);
  border-color: color-mix(in srgb, var(--accent) 70%, transparent);
  box-shadow: 0 0 24px rgba(137, 255, 85, 0.12);
  transform: translateY(-1px);
}

.social-btn img {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.social-letter {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(244, 255, 245, 0.35);
  font-size: 0.75rem;
  font-weight: 700;
  flex: 0 0 auto;
}

.follow-empty {
  margin-top: 16px;
  color: var(--muted);
}

.social-list--compact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.social-btn--icon {
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  justify-content: center;
  border-radius: 50%;
}

/* Слова основателя */

.statement {
  padding-top: 24px;
}

.statement-inner {
  max-width: 860px;
}

.quote {
  margin-top: 8px;
  padding-left: 18px;
  border-left: 3px solid var(--accent);
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.5vw, 2.15rem);
  font-weight: 400;
  line-height: 1.35;
  max-width: 22em;
}

.statement-by {
  margin-top: 16px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.statement-original {
  margin-top: 22px;
  max-width: 40rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.statement-original span {
  display: block;
  margin-bottom: 6px;
  color: var(--accent);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-style: normal;
}

.statement-original em {
  font-style: italic;
  font-family: var(--serif);
}

/* Подвал */

.footer {
  padding: 28px 0 48px;
  border-top: 1px solid var(--line);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-email {
  margin-top: 16px;
}

.footer-email a {
  color: var(--accent);
  overflow-wrap: anywhere;
}

.disclaimer {
  max-width: 68ch;
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.footer-copy {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.88rem;
}

.noscript {
  position: relative;
  z-index: 1;
  margin: 0 auto 32px;
  width: min(1120px, calc(100% - 32px));
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  color: var(--muted);
}

.noscript p + p {
  margin-top: 6px;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.12);
    opacity: 0.72;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
