/*
  NEORGANIKI — мистический научный минимализм.
  Глубокий чёрный, тёмно-изумрудный (природа, дерево-носитель)
  и пульсирующий рубиново-красный (нагретый кристалл).
  Чистый CSS без сборки — на shared-хостинге нет node.
*/

:root {
  --void: #040605;
  --abyss: #080b0a;
  --carbon: #0e1312;
  --line: #1a221f;

  --emerald-deep: #0b3d2e;
  --emerald-core: #146b4a;
  --emerald-glow: #2fd28f;
  --emerald-mist: #7fc9ac;

  --ruby-deep: #4a0510;
  --ruby-core: #b0142c;
  --ruby-glow: #ff2d55;
  --ruby-heat: #ff6b4a;

  --ash: #8b968f;
  --bone: #d7ded9;

  --font-display: Georgia, 'Times New Roman', serif;
  --font-sans: ui-sans-serif, system-ui, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, 'Cascadia Code', 'Consolas', monospace;

  color-scheme: dark;
}

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

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  background: var(--void);
  color: var(--bone);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Мягкая зернистость поверх чёрного — иначе градиенты полосят */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection {
  background: var(--ruby-core);
  color: #fff;
}

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

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.14;
}

/* ── Утилиты раскладки ──────────────────────────────────────── */

.container {
  width: 100%;
  max-width: 76rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.container--narrow {
  max-width: 48rem;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--emerald-mist);
}

.mono {
  font-family: var(--font-mono);
}

.muted {
  color: var(--ash);
}

.hairline {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 20%, var(--emerald-core) 50%, var(--line) 80%, transparent);
}

.surface {
  background: linear-gradient(160deg, rgba(14, 19, 18, 0.92), rgba(8, 11, 10, 0.92));
  border: 1px solid var(--line);
  border-radius: 0.5rem;
}

.stack > * + * {
  margin-top: 1.75rem;
}

.section {
  padding-block: 8rem;
  position: relative;
}

.page {
  padding-top: 9rem;
  padding-bottom: 8rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn--ruby {
  color: #fff;
  background: linear-gradient(135deg, var(--ruby-core), var(--ruby-deep));
  border-color: rgba(255, 45, 85, 0.45);
  box-shadow: 0 0 26px -6px rgba(255, 45, 85, 0.55);
}

.btn--ruby:hover:not(:disabled) {
  box-shadow: 0 0 48px -4px rgba(255, 45, 85, 0.8);
  transform: translateY(-1px);
}

.btn--ghost {
  color: var(--emerald-mist);
  border-color: rgba(47, 210, 143, 0.28);
  background: transparent;
  padding: 0.85rem 1.8rem;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
}

.btn--ghost:hover:not(:disabled) {
  border-color: rgba(47, 210, 143, 0.6);
  background: rgba(20, 107, 74, 0.12);
  color: var(--emerald-glow);
}

.btn--small {
  padding: 0.55rem 1.2rem;
  font-size: 0.68rem;
}

.btn--block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

/* ── Формы ──────────────────────────────────────────────────── */

.field {
  width: 100%;
  background: rgba(4, 6, 5, 0.7);
  border: 1px solid var(--line);
  border-radius: 0.375rem;
  padding: 0.7rem 0.9rem;
  color: var(--bone);
  font-family: inherit;
  font-size: 0.925rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field::placeholder {
  color: #4d5854;
}

.field:focus {
  outline: none;
  border-color: var(--emerald-core);
  box-shadow: 0 0 0 3px rgba(20, 107, 74, 0.18);
}

textarea.field {
  resize: vertical;
  min-height: 6rem;
}

.field-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ash);
  margin-bottom: 0.45rem;
}

.field-error {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: var(--ruby-glow);
}

.field-hint {
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: rgba(139, 150, 143, 0.7);
}

.form-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 40rem) {
  .form-grid--2 {
    grid-template-columns: 1fr 1fr;
  }
  .form-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .form-grid .span-2 {
    grid-column: span 2;
  }
  .form-grid--3 .span-3 {
    grid-column: span 3;
  }
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.checkbox-row input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--emerald-glow);
}

/* ── Бейджи и уведомления ───────────────────────────────────── */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid;
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.badge--emerald { border-color: rgba(47, 210, 143, 0.35); background: rgba(20, 107, 74, 0.12); color: var(--emerald-mist); }
.badge--ruby    { border-color: rgba(255, 45, 85, 0.4);  background: rgba(176, 20, 44, 0.14); color: var(--ruby-glow); }
.badge--amber   { border-color: rgba(251, 191, 36, 0.35); background: rgba(245, 158, 11, 0.1); color: #fcd34d; }
.badge--cyan    { border-color: rgba(34, 211, 238, 0.3);  background: rgba(6, 182, 212, 0.1);  color: #67e8f9; }
.badge--zinc    { border-color: var(--line); background: var(--carbon); color: var(--ash); }

.alert {
  border: 1px solid;
  border-radius: 0.375rem;
  padding: 0.9rem 1.25rem;
  font-size: 0.88rem;
  line-height: 1.6;
}

.alert--success { border-color: rgba(20, 107, 74, 0.4); background: rgba(11, 61, 46, 0.25); color: var(--emerald-mist); }
.alert--error   { border-color: rgba(255, 45, 85, 0.4); background: rgba(74, 5, 16, 0.25);  color: var(--ruby-glow); }
.alert--info    { border-color: var(--line); background: var(--carbon); color: var(--ash); }

/* ── Шапка ──────────────────────────────────────────────────── */

.header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
}

.header.is-scrolled {
  background: rgba(4, 6, 5, 0.85);
  backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 4.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo__mark {
  position: relative;
  width: 1rem;
  height: 1.75rem;
  display: grid;
  place-items: center;
}

.logo__glow {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(255, 45, 85, 0.5);
  filter: blur(10px);
  animation: pulse-heat 3.5s ease-in-out infinite;
}

.logo__text {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  transition: color 0.3s;
}

.logo:hover .logo__text {
  color: var(--emerald-glow);
}

.nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav a {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ash);
  transition: color 0.3s;
}

.nav a:hover {
  color: var(--emerald-glow);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pill {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ash);
  transition: border-color 0.3s, color 0.3s;
}

.pill:hover {
  border-color: var(--emerald-core);
  color: var(--emerald-glow);
}

.pill--emerald {
  border-color: rgba(20, 107, 74, 0.5);
  background: rgba(20, 107, 74, 0.1);
  color: var(--emerald-mist);
}

.pill--ruby {
  border-color: rgba(255, 45, 85, 0.35);
  color: var(--ruby-glow);
}

.pill__count {
  position: absolute;
  top: -0.4rem;
  right: -0.4rem;
  display: grid;
  place-items: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding-inline: 0.25rem;
  border-radius: 999px;
  background: var(--ruby-core);
  color: #fff;
  font-size: 0.62rem;
}

.burger {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ash);
  cursor: pointer;
  font-size: 1rem;
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  background: rgba(4, 6, 5, 0.97);
  backdrop-filter: blur(18px);
}

.mobile-menu.is-open {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(26, 34, 31, 0.6);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ash);
}

@media (min-width: 64rem) {
  .nav {
    display: flex;
  }
  .burger {
    display: none;
  }
  .mobile-menu {
    display: none !important;
  }
}

@media (max-width: 40rem) {
  .header__actions .pill--auth {
    display: none;
  }
}

/* ── Главный экран ──────────────────────────────────────────── */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding-top: 6rem;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 50% 45%, rgba(11, 61, 46, 0.28) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 80% 85%, rgba(74, 5, 16, 0.22) 0%, transparent 65%);
}

.hero__grid {
  position: relative;
  display: grid;
  gap: 4rem;
  align-items: center;
}

.hero__title {
  font-size: clamp(2.4rem, 6.2vw, 4.4rem);
  line-height: 1.04;
  text-wrap: balance;
}

.hero__accent {
  position: relative;
  white-space: nowrap;
  color: var(--ruby-glow);
}

.hero__accent::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: 0.25rem;
  height: 0.75rem;
  z-index: -1;
  background: radial-gradient(ellipse, rgba(255, 45, 85, 0.55), transparent 70%);
  animation: pulse-heat 3.5s ease-in-out infinite;
}

.hero__lead {
  margin-top: 2rem;
  max-width: 36rem;
  font-size: 1.06rem;
  line-height: 1.7;
  color: var(--ash);
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.75rem;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  max-width: 32rem;
  margin-top: 4rem;
  border: 1px solid var(--line);
  background: var(--line);
  border-radius: 0.25rem;
  overflow: hidden;
}

.hero__stat {
  background: var(--abyss);
  padding: 1.25rem 1rem;
}

.hero__stat dt {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--emerald-glow);
}

.hero__stat dd {
  margin-top: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  line-height: 1.5;
  color: var(--ash);
}

.hero__visual {
  display: flex;
  justify-content: center;
}

@media (min-width: 64rem) {
  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
  .hero__visual {
    justify-content: flex-end;
  }
}

/* ── Кристалл ───────────────────────────────────────────────── */

.crystal {
  position: relative;
  aspect-ratio: 1 / 1;
  perspective: 900px;
  user-select: none;
}

.crystal__halo,
.crystal__ground {
  position: absolute;
  pointer-events: none;
  border-radius: 999px;
}

.crystal__halo {
  left: 50%;
  top: 50%;
  width: 78%;
  height: 78%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(176, 20, 44, 0.3) 0%, rgba(74, 5, 16, 0.14) 45%, transparent 70%);
  filter: blur(42px);
  animation: pulse-heat 5s ease-in-out infinite;
  transition: background 0.7s, filter 0.7s;
}

.crystal__ground {
  left: 50%;
  bottom: -10%;
  width: 62%;
  height: 20%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(20, 107, 74, 0.5) 0%, transparent 70%);
  filter: blur(30px);
}

.crystal__spin {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
  animation: spin-slow 24s linear infinite;
}

.crystal__svg {
  filter: drop-shadow(0 0 16px rgba(176, 20, 44, 0.45));
  transition: filter 0.7s ease-out;
}

/* Раскалённое состояние: по наведению или принудительно */
.crystal:hover .crystal__halo,
.crystal.is-hot .crystal__halo {
  background: radial-gradient(circle, rgba(255, 45, 85, 0.85) 0%, rgba(176, 20, 44, 0.35) 42%, transparent 70%);
  filter: blur(58px);
  animation-duration: 2.2s;
}

.crystal:hover .crystal__svg,
.crystal.is-hot .crystal__svg {
  filter: drop-shadow(0 0 30px rgba(255, 45, 85, 0.9)) drop-shadow(0 0 8px rgba(255, 107, 74, 0.7));
}

.crystal .gem-core {
  opacity: 0.35;
  transition: opacity 0.7s ease-out;
}

.crystal:hover .gem-core,
.crystal.is-hot .gem-core {
  opacity: 1;
}

.crystal .gem-body-hot,
.crystal .gem-edge-hot {
  opacity: 0;
  transition: opacity 0.7s ease-out;
}

.crystal:hover .gem-body-hot,
.crystal.is-hot .gem-body-hot,
.crystal:hover .gem-edge-hot,
.crystal.is-hot .gem-edge-hot {
  opacity: 1;
}

@keyframes pulse-heat {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.85; }
}

@keyframes spin-slow {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(360deg); }
}

@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -14px, 0); }
}

.drift {
  animation: drift 18s ease-in-out infinite;
}

/* ── Появление блоков при скролле ───────────────────────────── */

.reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Без JS контент обязан быть виден */
.no-js .reveal {
  opacity: 1;
  transform: none;
}

/* ── Секции лендинга ────────────────────────────────────────── */

.section__title {
  font-size: clamp(1.9rem, 4vw, 3rem);
  max-width: 46rem;
  text-wrap: balance;
}

.quote {
  position: relative;
  max-width: 56rem;
  margin-top: 3rem;
  padding-left: 2rem;
  border-left: 1px solid rgba(20, 107, 74, 0.6);
}

.quote p {
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  font-weight: 300;
  line-height: 1.75;
  color: rgba(215, 222, 217, 0.9);
  text-wrap: pretty;
}

.pillars {
  display: grid;
  gap: 1px;
  margin-top: 5rem;
  border: 1px solid var(--line);
  background: var(--line);
  border-radius: 0.25rem;
  overflow: hidden;
}

.pillar {
  position: relative;
  background: var(--abyss);
  padding: 2rem;
  transition: background 0.5s;
}

.pillar:hover {
  background: var(--carbon);
}

.pillar__dot {
  position: absolute;
  left: 2rem;
  top: 2rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  filter: blur(16px);
  opacity: 0.4;
  transition: opacity 0.5s;
}

.pillar:hover .pillar__dot {
  opacity: 0.9;
}

.pillar__num {
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--ash);
}

.pillar h3 {
  position: relative;
  margin-top: 1.5rem;
  font-size: 1.125rem;
}

.pillar p {
  position: relative;
  margin-top: 0.75rem;
  font-size: 0.92rem;
  color: var(--ash);
}

@media (min-width: 48rem) {
  .pillars {
    grid-template-columns: repeat(3, 1fr);
  }
  .quote {
    padding-left: 3rem;
  }
}

.split {
  display: grid;
  gap: 5rem;
  align-items: center;
}

@media (min-width: 64rem) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
  .split--reverse .split__visual {
    order: -1;
  }
}

.specs {
  margin-top: 3rem;
  border-block: 1px solid var(--line);
}

.specs__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.875rem;
}

.specs__row + .specs__row {
  border-top: 1px solid var(--line);
}

.specs__row dt {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ash);
}

.specs__row dd {
  font-size: 0.92rem;
  color: rgba(215, 222, 217, 0.85);
  text-align: right;
}

/* ── Таймлайн процесса ──────────────────────────────────────── */

.timeline {
  position: relative;
  margin-top: 5rem;
  list-style: none;
}

.timeline__line {
  position: absolute;
  left: 1.45rem;
  top: 0.5rem;
  width: 1px;
  height: calc(100% - 3rem);
  background: linear-gradient(180deg, #ff6b4a 0%, #ff2d55 22%, #b0142c 45%, #146b4a 72%, #2fd28f 100%);
  opacity: 0.55;
  display: none;
}

.step {
  position: relative;
  display: grid;
  gap: 1.5rem;
  padding-bottom: 3.5rem;
}

.step__num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid;
  border-radius: 999px;
  background: var(--void);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.step__glow {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  filter: blur(12px);
  opacity: 0;
  transition: opacity 0.5s;
}

.step:hover .step__glow {
  opacity: 0.7;
}

.step__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
}

.step__head h3 {
  font-size: 1.25rem;
}

.step__tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
}

.step__body {
  margin-top: 1rem;
  max-width: 42rem;
  font-size: 0.96rem;
  line-height: 1.8;
  color: var(--ash);
  text-wrap: pretty;
}

@media (min-width: 48rem) {
  .timeline__line {
    display: block;
  }
  .step {
    grid-template-columns: 3rem 1fr;
    gap: 2.5rem;
  }
  .step__col {
    display: flex;
    justify-content: center;
  }
}

/* ── Аккордеон этики ────────────────────────────────────────── */

.accordion {
  border-block: 1px solid var(--line);
}

.accordion__item + .accordion__item {
  border-top: 1px solid var(--line);
}

.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  padding-block: 1.75rem;
  background: none;
  border: none;
  color: var(--bone);
  font-family: var(--font-display);
  font-size: 1.15rem;
  text-align: left;
  cursor: pointer;
  transition: color 0.3s;
}

.accordion__trigger:hover {
  color: var(--emerald-glow);
}

.accordion__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--emerald-mist);
  font-family: var(--font-mono);
  transition: transform 0.4s;
}

.accordion__trigger[aria-expanded='true'] .accordion__icon {
  transform: rotate(45deg);
}

.accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.5s ease, opacity 0.5s ease;
}

.accordion__trigger[aria-expanded='true'] + .accordion__panel {
  grid-template-rows: 1fr;
  opacity: 1;
}

.accordion__inner {
  overflow: hidden;
}

.accordion__inner p {
  max-width: 42rem;
  padding-bottom: 2rem;
  padding-right: 3rem;
  font-size: 0.96rem;
  line-height: 1.8;
  color: var(--ash);
  text-wrap: pretty;
}

/* Без JS панели раскрыты */
.no-js .accordion__panel {
  grid-template-rows: 1fr;
  opacity: 1;
}

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

.footer {
  border-top: 1px solid var(--line);
  background: var(--abyss);
}

.footer__grid {
  display: grid;
  gap: 3rem;
  padding-block: 4rem;
}

.footer__title {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--emerald-mist);
}

.footer ul {
  list-style: none;
  margin-top: 1.25rem;
}

.footer li + li {
  margin-top: 0.75rem;
}

.footer li a {
  font-size: 0.86rem;
  color: var(--ash);
  transition: color 0.3s;
}

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

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(139, 150, 143, 0.7);
}

.footer__disclaimer {
  max-width: 34rem;
  text-align: right;
  text-transform: none;
  letter-spacing: 0.1em;
  line-height: 1.7;
  color: rgba(139, 150, 143, 0.5);
}

@media (min-width: 48rem) {
  .footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

/* ── Каталог ────────────────────────────────────────────────── */

.cards {
  display: grid;
  gap: 2rem;
  margin-top: 4rem;
}

@media (min-width: 64rem) {
  .cards {
    grid-template-columns: 1fr 1fr;
  }
}

.card {
  padding: 2rem;
}

.card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

.card__price {
  font-family: var(--font-display);
  font-size: 1.875rem;
}

.includes {
  list-style: none;
  margin-top: 1.5rem;
}

.includes li {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(215, 222, 217, 0.85);
}

.includes li + li {
  margin-top: 0.875rem;
}

.includes li::before {
  content: '';
  flex-shrink: 0;
  width: 0.375rem;
  height: 0.375rem;
  margin-top: 0.55rem;
  border-radius: 999px;
  background: var(--emerald-glow);
}

.includes--ruby li::before {
  background: var(--ruby-glow);
}

.card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.price-old {
  margin-top: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ash);
  text-decoration: line-through;
}

/* ── Таблицы и списки ───────────────────────────────────────── */

.table-wrap {
  overflow-x: auto;
}

.table {
  width: 100%;
  min-width: 44rem;
  border-collapse: collapse;
  font-size: 0.86rem;
  text-align: left;
}

.table th {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ash);
}

.table td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--line);
}

.table tr:hover td {
  background: var(--carbon);
}

.list {
  list-style: none;
}

.list > li + li {
  margin-top: 1rem;
}

.list-card {
  display: block;
  padding: 1.75rem;
  transition: border-color 0.3s;
}

a.list-card:hover {
  border-color: rgba(20, 107, 74, 0.5);
}

.row-between {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
}

.row-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

/* ── Кабинет и админка ──────────────────────────────────────── */

.account {
  display: grid;
  gap: 2.5rem;
  margin-top: 2rem;
}

.account__nav {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.account__nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-shrink: 0;
  padding: 0.625rem 1rem;
  border: 1px solid transparent;
  border-radius: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ash);
  transition: all 0.3s;
}

.account__nav a:hover,
.account__nav a.is-active {
  border-color: var(--line);
  background: var(--carbon);
  color: var(--emerald-glow);
}

.admin .account__nav a:hover,
.admin .account__nav a.is-active {
  color: var(--ruby-glow);
}

.account__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.admin .account__head {
  border-bottom-color: rgba(255, 45, 85, 0.25);
}

.nav-count {
  display: grid;
  place-items: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding-inline: 0.25rem;
  border-radius: 999px;
  background: var(--ruby-core);
  color: #fff;
  font-size: 0.6rem;
}

@media (min-width: 64rem) {
  .account {
    grid-template-columns: 13rem 1fr;
  }
  .account__nav {
    flex-direction: column;
    gap: 0.25rem;
    overflow: visible;
  }
}

.account__main {
  min-width: 0;
}

.tiles {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}

.tile {
  display: block;
  padding: 1.5rem;
  transition: border-color 0.3s;
}

a.tile:hover {
  border-color: rgba(20, 107, 74, 0.5);
}

.tile__value {
  font-family: var(--font-display);
  font-size: 2rem;
}

.tile--hot {
  border-color: rgba(255, 45, 85, 0.4);
}

.tile--hot .tile__value {
  color: var(--ruby-glow);
}

.tile__label {
  margin-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  line-height: 1.5;
  color: var(--ash);
}

/* ── Трекер инкубации ───────────────────────────────────────── */

.tracker {
  position: relative;
  overflow: hidden;
  padding: 2rem;
}

.tracker__aura {
  position: absolute;
  right: -6rem;
  top: -6rem;
  width: 18rem;
  height: 18rem;
  border-radius: 999px;
  filter: blur(60px);
  pointer-events: none;
}

.tracker__body {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3rem;
}

.ring {
  position: relative;
  width: 15rem;
  height: 15rem;
  flex-shrink: 0;
}

.ring svg {
  transform: rotate(-90deg);
}

.ring__track {
  fill: none;
  stroke: var(--line);
}

.ring__value {
  fill: none;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s linear, stroke 1.2s ease;
}

.ring__center {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}

.ring__percent {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
}

.ring__caption {
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ash);
}

.tracker__info {
  flex: 1;
  min-width: 15rem;
}

.countdown {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.countdown__unit {
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.25rem;
  background: var(--void);
  text-align: center;
}

.countdown__value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.countdown__label {
  margin-top: 0.375rem;
  font-family: var(--font-mono);
  font-size: 0.54rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ash);
}

.meta {
  margin-top: 2rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.meta > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.meta > div + div {
  margin-top: 0.5rem;
}

.meta dt {
  color: var(--ash);
}

.stage-bar {
  display: flex;
  gap: 0.25rem;
  margin-top: 1.75rem;
}

.stage-bar__seg {
  height: 0.5rem;
  border-radius: 999px;
  background: var(--line);
  transition: all 0.5s;
}

.stage-bar__label {
  display: none;
  margin-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.3;
  color: var(--ash);
}

@media (min-width: 40rem) {
  .stage-bar__label {
    display: block;
  }
}

.diary {
  list-style: none;
  margin-top: 2.25rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.diary > li {
  display: flex;
  gap: 1.25rem;
}

.diary > li + li {
  margin-top: 1.5rem;
}

.diary__day {
  flex-shrink: 0;
  text-align: right;
}

.diary__day strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
}

.diary__day span {
  display: block;
  margin-top: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.54rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ash);
}

.diary__text {
  min-width: 0;
  padding-left: 1.25rem;
  border-left: 1px solid var(--line);
}

.diary__meta {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ash);
}

.diary__body {
  margin-top: 0.5rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(215, 222, 217, 0.85);
  white-space: pre-line;
}

.care {
  list-style: none;
  margin-top: 1.25rem;
}

.care li {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(215, 222, 217, 0.85);
}

.care li + li {
  margin-top: 1rem;
}

.care li::before {
  content: '';
  flex-shrink: 0;
  width: 0.375rem;
  height: 0.375rem;
  margin-top: 0.55rem;
  border-radius: 999px;
  background: var(--emerald-glow);
}

.duo {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 64rem) {
  .duo {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── Реквизиты и оплата ─────────────────────────────────────── */

.requisites {
  margin-top: 1.75rem;
  border-block: 1px solid var(--line);
}

.requisites__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding-block: 0.875rem;
}

.requisites__row + .requisites__row {
  border-top: 1px solid var(--line);
}

.requisites__row dt {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ash);
}

.requisites__row dd {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.requisites__value {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  word-break: break-all;
  text-align: right;
}

.copy-btn {
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--emerald-mist);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: color 0.3s;
}

.copy-btn:hover {
  color: var(--emerald-glow);
}

.file-input {
  display: block;
  max-width: 100%;
  font-size: 0.82rem;
  color: var(--ash);
}

.file-input::file-selector-button {
  margin-right: 1rem;
  padding: 0.625rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--carbon);
  color: var(--emerald-mist);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: border-color 0.3s;
}

.file-input::file-selector-button:hover {
  border-color: var(--emerald-core);
}

.receipt-preview {
  max-height: 30rem;
  width: 100%;
  margin-top: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 0.25rem;
  background: var(--void);
  object-fit: contain;
}

/* ── Переписка ──────────────────────────────────────────────── */

.thread {
  list-style: none;
}

.thread > li {
  display: flex;
}

.thread > li + li {
  margin-top: 1rem;
}

.thread > li.is-mine {
  justify-content: flex-end;
}

.message {
  max-width: 42rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 0.375rem;
  background: var(--carbon);
}

.message--admin {
  border-color: rgba(255, 45, 85, 0.25);
  background: rgba(74, 5, 16, 0.15);
}

.message__author {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--emerald-mist);
}

.message--admin .message__author {
  color: var(--ruby-glow);
}

.message__body {
  margin-top: 0.75rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(215, 222, 217, 0.9);
  white-space: pre-line;
}

/* ── Прочее ─────────────────────────────────────────────────── */

.empty {
  padding: 3rem;
  text-align: center;
  color: var(--ash);
}

.center {
  text-align: center;
}

.legal h2 {
  margin-top: 2.5rem;
  font-size: 1.25rem;
}

.legal p {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--ash);
}

.progress {
  height: 0.375rem;
  margin-top: 1.25rem;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.progress__bar {
  height: 100%;
  border-radius: 999px;
  transition: width 0.7s;
}

details summary {
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ash);
}

details summary:hover {
  color: var(--emerald-glow);
}

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