:root {
  --accent: #D53032;
  --accent-deep: #4A0E10;

  /* LIGHT */
  --bg: #F7F6F5;
  --surface: #FFFFFF;
  --text: #1A1A1D;
  --text-soft: #3E4149;
  --line: rgba(26, 26, 29, 0.14);
  --line-soft: rgba(26, 26, 29, 0.08);
  --dot-steel: 62, 65, 73;
  --badge-text: #FFFFFF;
  --input-bg: #FFFFFF;

  /* Дисплей — крупные вывески. Заголовки — подзаголовки/акценты. */
  --display-font: 'Michroma', 'Rajdhani', sans-serif;
  --head-font: 'Rajdhani', 'Michroma', sans-serif;

  --maxw: 1440px;
  --gutter: clamp(20px, 5vw, 72px);

  /* Мгновенное переключение темы: одна общая длительность = 0 (см. .theme-anim) */
  --theme-t: 0ms;
}

[data-theme="dark"] {
  --bg: #1A0708;
  --surface: #2A0B0C;
  --text: #F2EDED;
  --text-soft: #C7A9AA;
  --line: rgba(242, 237, 237, 0.16);
  --line-soft: rgba(242, 237, 237, 0.09);
  --dot-steel: 199, 169, 170;
  --badge-text: #FFFFFF;
  --input-bg: #200909;
  --accent-deep: #6E1417;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  overflow-x: clip;
}

/* В момент переключения темы отключаем ВСЕ переходы —
   тема применяется мгновенно и синхронно, без «перетекания» элементов. */
html.theme-switching * {
  transition: none !important;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* без transition — смена темы мгновенная и синхронная по всем элементам */
}

/* Body: заголовки Rajdhani, дисплей Michroma */
h1,
h2,
h3,
h4,
.section-title {}

.eyebrow,
.tag,
.step-n,
.stat-label {
  font-family: var(--head-font);
}

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

button,
input,
.card,
.btn,
.nav-toggle,
.field,
.diag {
  border-radius: 0;
}

/* Michroma — крупные «вывески»: hero, логотип, большие числа */
.display,
.logo,
.count-num,
.stat-num,
.soon-logo,
.auth-logo {
  font-family: var(--display-font);
  letter-spacing: -0.01em;
}

/* Rajdhani — заголовки секций, карточек, акценты (читаемее, есть жирные веса) */
.section-title,
.card h3,
.step h3,
.spec-list .v,
.coin-name,
.tariff h3,
.status-title {
  font-family: var(--head-font);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.mono {
  font-family: 'Space Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
}

/* ---- Оболочка ---- */
.frame {
  max-width: var(--maxw);
  margin: 0 auto;
  border-left: 1px solid var(--line-soft);
  border-right: 1px solid var(--line-soft);
  position: relative;
}

/* убаня елочка на границах как по мне нахуй надо

.frame::before, .frame::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 14px;
  background-image: repeating-linear-gradient(-45deg, var(--line-soft) 0 1px, transparent 1px 7px);
  pointer-events: none;
} */
.frame::before {
  left: -14px;
}

.frame::after {
  right: -14px;
}

.plus {
  position: absolute;
  width: 18px;
  height: 18px;
  color: var(--text);
  opacity: 0.55;
}

.plus::before,
.plus::after {
  content: "";
  position: absolute;
  background: currentColor;
}

.plus::before {
  left: 8px;
  top: 0;
  width: 2px;
  height: 18px;
}

.plus::after {
  top: 8px;
  left: 0;
  height: 2px;
  width: 18px;
}

.plus.tl {
  top: -9px;
  left: -9px;
}

.plus.tr {
  top: -9px;
  right: -9px;
}

.plus.bl {
  bottom: -9px;
  left: -9px;
}

.plus.br {
  bottom: -9px;
  right: -9px;
}

/* ============================================ NAV ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
}

.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--gutter);
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
}

.logo-mark {
  width: 26px;
  height: 26px;
  flex: none;
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--text-soft);
  transition: color .15s;
}

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

.nav-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  display: flex;
  border: 1px solid var(--line);
}

.lang-switch button {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 8px 11px;
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
  border: none;
  letter-spacing: 0.06em;
}

.lang-switch button.active {
  background: var(--text);
  color: var(--bg);
}

.theme-btn {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

.theme-btn svg {
  width: 18px;
  height: 18px;
}

.theme-btn .moon {
  display: none;
}

[data-theme="dark"] .theme-btn .sun {
  display: none;
}

[data-theme="dark"] .theme-btn .moon {
  display: block;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--text);
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

/* ============================================ HERO ============================================
   Слева текст, справа картинка (гора). */
.hero {
  position: relative;
  padding: clamp(48px, 9vw, 110px) var(--gutter) clamp(60px, 10vw, 130px);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* --- HERO-КАРТИНКА: заменить src на своё фото горы --- */
.hero-media {
  position: relative;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-media .plus {
  opacity: .8;
}

.display {
  font-weight: 400;
  line-height: 1.12;
  font-size: clamp(1.7rem, 4.2vw, 3.4rem);
}

.display .em {
  color: var(--accent);
}

.display .fade {
  color: color-mix(in srgb, var(--accent) 55%, var(--bg));
}

.hero-sub {
  margin-top: clamp(22px, 3vw, 34px);
  max-width: 40ch;
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  color: var(--text-soft);
}

.hero-actions {
  margin-top: 30px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  font-family: 'Space Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 15px 26px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--text);
  cursor: pointer;
  transition: transform .12s, filter .15s, background .15s, color .15s;
}

.btn-primary {
  background: linear-gradient(120deg, var(--accent-deep), var(--accent));
  color: #fff;
  border-color: transparent;
}

.btn-primary:hover {
  filter: brightness(1.1);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--text);
  color: var(--bg);
}

.btn:active {
  transform: translateY(1px);
}

/* ============================================ SECTION ============================================ */
.section {
  padding: clamp(56px, 8vw, 100px) var(--gutter);
  position: relative;
}

.section.alt {
  background: var(--surface);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.section-head {
  margin-bottom: 48px;
  max-width: 640px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.eyebrow {
  color: var(--accent);
  margin-bottom: 16px;
  display: inline-block;
}

.section-title {
  font-weight: 700;
  line-height: 1.08;
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
}

.section-title.center {
  text-align: center;
}

/* ============================================ STATS ============================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat {
  padding: clamp(30px, 4vw, 52px) var(--gutter);
  border-right: 1px solid var(--line-soft);
}

.stat:last-child {
  border-right: none;
}

.stat-num {
  font-weight: 700;
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
}

.stat-num .u {
  color: var(--accent);
}

.stat-label {
  color: var(--text-soft);
  font-size: 0.85rem;
  margin-top: 8px;
}

/* ============================================ FEATURES ============================================ */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px dashed var(--line);
}

.card {
  padding: clamp(28px, 3.4vw, 48px);
  border: 1px dashed var(--line);
  margin: -0.5px;
  position: relative;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  transition: background .2s;
}

.card:hover {
  background: var(--surface);
}

.card h3 {
  font-weight: 600;
  font-size: 1.3rem;
  margin-bottom: 14px;
}

.card p {
  color: var(--text-soft);
  max-width: 42ch;
}

.card .learn {
  margin-top: auto;
  padding-top: 26px;
  color: var(--text);
  display: inline-flex;
  gap: 8px;
}

.card .learn:hover {
  color: var(--accent);
}

/* ============================================ COUNTDOWN ============================================
   Часы вынесены ВВЕРХ, над заголовком "Launching soon". */
.count-top {
  max-width: 820px;
  margin: 0 auto 36px;
}

.count-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
}

.count-cell {
  border: 1px solid var(--line-soft);
  margin: -0.5px;
  padding: clamp(18px, 3vw, 32px) 10px;
  text-align: center;
  background: var(--surface);
  position: relative;
}

.count-cell::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
}

.count-num {
  font-weight: 700;
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.count-lbl {
  font-family: 'Space Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.64rem;
  color: var(--text-soft);
  margin-top: 12px;
}

/* ============================================ TEAM (место под фото сотрудников) ============================================ */
.team-stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 60px);
  align-items: center;
}

/* --- TEAM-КАРТИНКА: заменить src на фото сотрудников/инженеров --- */
.team-media {
  position: relative;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface);
}

.team-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================ TARIFFS (регионы дата-центров) ============================================ */
.tariff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
}

.tariff {
  border: 1px solid var(--line-soft);
  margin: -0.5px;
  padding: clamp(24px, 2.6vw, 34px);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 340px;
}

.tariff::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s;
}

.tariff:hover::before {
  transform: scaleX(1);
}

.tariff-region {
  font-family: var(--head-font);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.tariff h3 {
  font-size: 1.5rem;
  margin: 6px 0 4px;
}

.tariff-code {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-soft);
  letter-spacing: 0.06em;
}

.tariff-price {
  margin: 20px 0 4px;
  font-family: var(--display-font);
  font-size: 1.7rem;
}

.tariff-price .per {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.tariff-desc {
  color: var(--text-soft);
  font-size: 0.88rem;
  margin-top: 14px;
}

.tariff-feats {
  list-style: none;
  margin: 18px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tariff-feats li {
  font-size: 0.82rem;
  color: var(--text-soft);
  padding-left: 16px;
  position: relative;
}

.tariff-feats li::before {
  content: "+";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.tariff-buy {
  margin-top: auto;
  padding-top: 22px;
}

.tariff-buy .btn {
  width: 100%;
  justify-content: center;
}

/* ============================================ MARQUEE (бегущая строка клиентов) ============================================ */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
  position: relative;
}

.marquee-track {
  display: flex;
  gap: 60px;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-item {
  font-family: var(--head-font);
  font-weight: 600;
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: 60px;
  white-space: nowrap;
}

.marquee-item::after {
  content: "◆";
  color: var(--accent);
  font-size: 0.7rem;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ============================================ STATUS (страница статуса сети) ============================================ */
.status-hero {
  text-align: center;
  padding: clamp(48px, 7vw, 90px) var(--gutter) clamp(30px, 4vw, 50px);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border: 1px solid var(--line);
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}

.status-dot {
  width: 10px;
  height: 10px;
  background: #2FA84F;
  box-shadow: 0 0 0 4px rgba(47, 168, 79, 0.2);
}

.status-dot.warn {
  background: #E0A500;
  box-shadow: 0 0 0 4px rgba(224, 165, 0, 0.2);
}

.status-dot.down {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(213, 48, 50, 0.2);
}

.status-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.status-list {
  max-width: 900px;
  margin: 0 auto;
  border: 1px solid var(--line);
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px clamp(18px, 3vw, 28px);
  border-bottom: 1px solid var(--line-soft);
}

.status-row:last-child {
  border-bottom: none;
}

.status-row .name {
  font-family: var(--head-font);
  font-weight: 600;
  font-size: 1.05rem;
}

.status-row .region {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}

.status-state {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Mono', monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.status-uptime {
  color: var(--text-soft);
  font-family: 'Space Mono', monospace;
  font-size: 0.78rem;
}

.status-bars {
  display: flex;
  gap: 3px;
  margin-top: 10px;
}

.status-bars i {
  width: 6px;
  height: 22px;
  background: #2FA84F;
  display: inline-block;
  opacity: 0.85;
}

.status-bars i.warn {
  background: #E0A500;
}

.status-bars i.down {
  background: var(--accent);
}

/* ============================================ SPLIT / SPECS / STEPS ============================================ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 72px);
  align-items: start;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 6px 14px;
  margin-bottom: 24px;
}

.spec-list {
  list-style: none;
  border-top: 1px solid var(--line);
}

.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-soft);
}

.spec-list .k {
  color: var(--text-soft);
  font-family: 'Space Mono', monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.spec-list .v {
  font-weight: 600;
  text-align: right;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px dashed var(--line);
}

.step {
  padding: clamp(24px, 3vw, 40px);
  border: 1px dashed var(--line);
  margin: -0.5px;
}

.step-n {
  font-family: 'Space Mono', monospace;
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}

.step h3 {
  font-weight: 600;
  font-size: 1.2rem;
  margin: 14px 0 10px;
}

.step p {
  color: var(--text-soft);
  font-size: 0.92rem;
}

/* ============================================ LOGIN (отдельная страница) ============================================ */
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.auth-visual {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, var(--accent-deep), #1A0708 70%);
  display: flex;
  align-items: flex-end;
  padding: clamp(30px, 5vw, 60px);
}

.auth-visual canvas {
  position: absolute;
  inset: 0;
  opacity: 0.5;
}

.auth-visual .auth-quote {
  position: relative;
  z-index: 2;
  color: #F2EDED;
  max-width: 30ch;
}

.auth-visual .auth-quote h2 {
  font-family: var(--display-font);
  font-weight: 700;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  line-height: 1.1;
}

.auth-visual .auth-quote p {
  margin-top: 14px;
  color: #C7A9AA;
}

.auth-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(30px, 5vw, 60px);
}

.auth-form {
  width: 100%;
  max-width: 400px;
}

.auth-back {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-soft);
  display: inline-block;
  margin-bottom: 28px;
}

.auth-back:hover {
  color: var(--accent);
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display-font);
  font-weight: 700;
  margin-bottom: 30px;
}

.auth-tabs {
  display: flex;
  border: 1px solid var(--line);
  margin-bottom: 26px;
}

.auth-tabs button {
  flex: 1;
  padding: 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
}

.auth-tabs button.active {
  background: var(--text);
  color: var(--bg);
}

.field-group {
  margin-bottom: 18px;
}

.field-label {
  font-family: 'Space Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.68rem;
  color: var(--text-soft);
  display: block;
  margin-bottom: 8px;
}

.field {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  background: var(--input-bg);
  color: var(--text);
  font-family: 'Space Mono', monospace;
  font-size: 0.85rem;
}

.field:focus {
  outline: none;
  border-color: var(--accent);
}

.field-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 6px 0 22px;
  font-size: 0.82rem;
  color: var(--text-soft);
}

.field-row a {
  color: var(--accent);
}

.login-note {
  text-align: center;
  margin-top: 18px;
  color: var(--text-soft);
  font-size: 0.8rem;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ============================================ DONATE ============================================ */
.donate-wrap {
  max-width: 900px;
  margin: 0 auto;
}

.donate-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
}

.coin {
  border: 1px solid var(--line-soft);
  margin: -0.5px;
  padding: 26px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.coin-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.coin-badge {
  width: 40px;
  height: 40px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display-font);
  font-weight: 700;
  color: var(--badge-text);
  font-size: 0.9rem;
}

.coin-name {
  font-weight: 600;
}

.coin-net {
  font-size: 0.72rem;
  color: var(--text-soft);
  font-family: 'Space Mono', monospace;
}

.coin-addr {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  padding: 10px 12px;
  word-break: break-all;
  color: var(--text-soft);
}

.copy-btn {
  font-family: 'Space Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.66rem;
  font-weight: 700;
  padding: 11px;
  border: 1px solid var(--text);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background .15s, color .15s;
}

.copy-btn:hover {
  background: var(--text);
  color: var(--bg);
}

.copy-btn.done {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ============================================ FOOTER (узкий, компактный) ============================================ */
.footer {
  border-top: 1px solid var(--line-soft);
}

.footer-inner {
  max-width: 1080px;
  /* уже основного контейнера */
  margin: 0 auto;
  padding: clamp(40px, 5vw, 64px) var(--gutter) 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 32px;
}

.footer h4 {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer li a {
  color: var(--text-soft);
  font-size: 0.88rem;
}

.footer li a:hover {
  color: var(--text);
}

.footer-brand p {
  color: var(--text-soft);
  font-size: 0.88rem;
  margin-top: 12px;
  max-width: 28ch;
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
  color: var(--text-soft);
  font-size: 0.82rem;
}

.footer-bottom a:hover {
  color: var(--text);
}

/* ============================================ X-BLADE ============================================ */
.xblade-hero {
  grid-template-columns: 1fr;
}

.xblade-hero .display {
  font-size: clamp(1.8rem, 4.8vw, 3.8rem);
}

/* ============================================ COMING SOON (отдельная страница) ============================================ */
.soon {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.soon-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
  position: relative;
  overflow: hidden;
}

.soon-canvas {
  position: absolute;
  inset: 0;
  opacity: 0.85;
}

.soon-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
}

.soon-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display-font);
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 40px;
}

.soon h1 {
  font-family: var(--display-font);
  font-weight: 700;
  line-height: 1.05;
  font-size: clamp(2.4rem, 7vw, 5rem);
}

.soon h1 .em {
  color: var(--accent);
}

.soon p {
  color: var(--text-soft);
  margin: 24px auto 0;
  max-width: 46ch;
  font-size: 1.05rem;
}

.soon-count {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  max-width: 520px;
  margin: 44px auto 0;
}

.soon-count .count-cell {
  background: var(--surface);
}

.soon-foot {
  text-align: center;
  padding: 24px;
  color: var(--text-soft);
  font-size: 0.82rem;
  border-top: 1px solid var(--line-soft);
}

/* ============================================ ADAPTIVE ============================================ */
@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-media {
    max-width: 560px;
  }

  .team-stage {
    grid-template-columns: 1fr;
  }

  .auth-page {
    grid-template-columns: 1fr;
  }

  .auth-visual {
    min-height: 200px;
    order: -1;
  }

  .tariff-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }

  .nav.open .nav-links a {
    padding: 16px var(--gutter);
    border-top: 1px solid var(--line-soft);
    width: 100%;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat:nth-child(2) {
    border-right: none;
  }

  .stat:nth-child(1),
  .stat:nth-child(2) {
    border-bottom: 1px solid var(--line-soft);
  }

  .donate-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .hero-actions .btn {
    flex: 1;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .stats {
    grid-template-columns: 1fr;
  }

  .stat {
    border-right: none;
    border-bottom: 1px solid var(--line-soft);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .count-grid,
  .soon-count {
    grid-template-columns: repeat(2, 1fr);
  }

  .tariff-grid {
    grid-template-columns: 1fr;
  }

  .status-row {
    flex-wrap: wrap;
  }

  .lang-switch button {
    padding: 8px 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto;
  }
}
