/* ==========================================================================
   Дом Галеева — токены
   ========================================================================== */
:root {
  --bg: #14100c;
  --bg-2: #1c1611;
  --panel: #221a14;
  --text: #f2e8da;
  --text-dim: #f2e8daa8;
  --text-faint: #f2e8da5c;
  --accent: #ffb454;
  --accent-dim: #ffb45426;
  --line: #f2e8da1f;

  --font-display: "PT Sans Narrow", "Arial Narrow", sans-serif;
  --font-text: "PT Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "Consolas", monospace;

  --sp: clamp(3.5rem, 9vw, 8rem);
  --gap: clamp(1rem, 2.5vw, 2rem);
  --radius-lg: 28px;
  --radius-md: 16px;

  --ease: cubic-bezier(.19, 1, .22, 1);
  --duration: .6s;
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a { color: inherit; }

.container {
  width: min(1100px, 100% - 2.5rem);
  margin-inline: auto;
}

/* ==========================================================================
   Гирлянда — фирменный эффект (canvas, фикс. высота вверху hero)
   ========================================================================== */
.garland {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: clamp(220px, 34vw, 420px);
  pointer-events: none;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--sp) 1.5rem;
  gap: clamp(1rem, 3vw, 1.75rem);
  overflow: hidden;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: clamp(.7rem, 1vw, .8rem);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0;
}

.hero__title {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: .86;
  letter-spacing: -.01em;
  font-size: clamp(3.5rem, 13vw, 11rem);
}

.hero__title span:last-child { color: var(--accent); }

.hero__tagline {
  margin: 0;
  max-width: 32ch;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: var(--text-dim);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  justify-content: center;
  margin-top: .5rem;
}

/* ==========================================================================
   Кнопки
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .9rem 1.6rem;
  border-radius: 999px;
  font-family: var(--font-text);
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--duration) var(--ease), background var(--duration) var(--ease), border-color var(--duration) var(--ease), opacity var(--duration) var(--ease);
}

.btn--solid {
  background: var(--accent);
  color: #14100c;
}
.btn--solid:hover { transform: translateY(-2px); }

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn--copy {
  background: transparent;
  border-color: var(--line);
  color: var(--text-dim);
  font-size: .8rem;
  padding: .55rem 1.1rem;
  margin-top: .6rem;
}
.btn--copy:hover { border-color: var(--accent); color: var(--accent); }
.btn--copy[data-copied="true"] { border-color: var(--accent); color: var(--accent); }

/* ==========================================================================
   Секции
   ========================================================================== */
.section {
  padding-block: var(--sp);
  border-top: 1px solid var(--line);
}

.section--flip { background: var(--bg-2); }

.label {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .08em;
  color: var(--accent);
  margin: 0 0 1rem;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: .95;
  letter-spacing: -.01em;
  margin: 0 0 1.5rem;
}

.prose {
  max-width: 62ch;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--text-dim);
  margin: 0 0 1.25rem;
}

.prose--aside {
  font-family: var(--font-mono);
  font-size: .95rem;
  color: var(--text-faint);
  border-left: 2px solid var(--accent);
  padding-left: 1rem;
  max-width: 52ch;
}

/* ==========================================================================
   Шаги «сначала — по одной»
   ========================================================================== */
.steps {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap);
}

.steps li {
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: 1.5rem;
  background: var(--panel);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
}

.steps__num {
  font-family: var(--font-mono);
  font-size: .85rem;
  color: var(--accent);
  letter-spacing: .06em;
}

/* ==========================================================================
   Как добраться
   ========================================================================== */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: var(--gap);
}

.info-card {
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.info-card__k {
  font-family: var(--font-mono);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-faint);
  margin: 0 0 .5rem;
}

.info-card__v {
  font-size: 1.15rem;
  margin: 0;
}

.info-card__v a:hover { color: var(--accent); }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  padding: clamp(2rem, 5vw, 3rem) 1.5rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--text-faint);
  border-top: 1px solid var(--line);
}

/* ==========================================================================
   Reveal on scroll — единственная базовая анимация, не считая гирлянды
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--duration) var(--ease), transform var(--duration) var(--ease);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn { transition: none; }
}

/* Единственный оправданный медиазапрос: смена структуры шагов на мобильных */
@media (max-width: 480px) {
  .steps { flex-direction: column; }
  .steps li { flex-basis: auto; }
}
