/* Уникалисты — стили по визуальному гайду v1.0
   Палитра: charcoal #272727 · лайм #E8FF2B (сигнал, ≤10%) · серый #8E8E8E · олива #7A8239 · почти-белый #F0F0F0 */

:root {
  --charcoal: #272727;
  --charcoal-2: #2e2e2e;
  --lime: #e8ff2b;
  --olive: #7a8239;
  --gray: #8e8e8e;
  --light: #f0f0f0;
  --border: rgba(255, 255, 255, 0.1);
  --maxw: 1080px;
  --px: 8px; /* модуль пиксельной сетки */
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--charcoal);
  color: var(--light);
  font-family: "Manrope", -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--light); }

::selection { background: var(--lime); color: var(--charcoal); }

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

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Типографика ── */

h1, h2, h3 {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.12;
  margin: 0;
}

h1 { font-size: clamp(34px, 5.4vw, 62px); }
h2 { font-size: clamp(26px, 3.6vw, 40px); }
h3 { font-size: 19px; letter-spacing: 0.01em; }

p { margin: 0; }

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

.lead {
  font-size: clamp(18px, 2vw, 21px);
  max-width: 640px;
}

/* ── Плашка-chip (лайм с пиксельным хвостом) ── */

.chip {
  display: inline-block;
  position: relative;
  background: var(--lime);
  color: var(--charcoal);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.06em;
  padding: 7px 14px;
}

.chip::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: calc(var(--px) * -1);
  width: var(--px);
  height: var(--px);
  background: var(--lime);
}

.chip--ghost {
  background: transparent;
  color: var(--gray);
  border: 1px solid var(--border);
}
.chip--ghost::after { display: none; }

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

.btn {
  display: inline-block;
  background: var(--lime);
  color: var(--charcoal);
  font-family: inherit;
  font-weight: 800;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  padding: 16px 28px;
  transition: transform 0.18s ease, background 0.18s ease;
}

.btn:hover { transform: translate(0, calc(var(--px) / -2)); }
.btn:active { transform: translate(0, 0); }

.btn--ghost {
  background: transparent;
  color: var(--light);
  border: 1px solid var(--gray);
}
.btn--ghost:hover { border-color: var(--light); }

/* ── Навигация ── */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(39, 39, 39, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-in {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}

.nav-logo img { height: 26px; width: auto; }

.nav-links {
  display: flex;
  gap: 24px;
  margin-left: auto;
  align-items: center;
}

.nav-links a {
  color: var(--gray);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: color 0.18s ease;
}

.nav-links a:hover { color: var(--light); }

.nav-cta {
  background: var(--lime);
  color: var(--charcoal) !important;
  font-weight: 800;
  padding: 9px 16px;
  text-transform: uppercase;
  font-size: 13px !important;
  letter-spacing: 0.04em;
}
.nav-cta:hover { color: var(--charcoal) !important; }

/* ── Hero ── */

.hero {
  padding: clamp(72px, 12vh, 140px) 0 clamp(64px, 10vh, 120px);
  position: relative;
  overflow: hidden;
}

.hero-wordmark {
  width: min(560px, 82vw);
  height: auto;
  margin-bottom: 40px;
}

.hero h1 { max-width: 760px; margin: 28px 0 20px; }

.hero .lead { margin-bottom: 40px; }

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

/* пиксельная лесенка — декор в углу hero */
.pixel-stairs {
  position: absolute;
  right: 0;
  top: 0;
  width: calc(var(--px) * 3);
  height: calc(var(--px) * 3);
  background: var(--olive);
  box-shadow:
    calc(var(--px) * -3) calc(var(--px) * 3) 0 0 var(--olive),
    0 calc(var(--px) * 3) 0 0 var(--olive),
    calc(var(--px) * -6) calc(var(--px) * 6) 0 0 var(--olive);
  opacity: 0.55;
}

/* ── Секции ── */

.section { padding: clamp(72px, 10vh, 128px) 0; }

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

.section-head { margin-bottom: 48px; }
.section-head .chip { margin-bottom: 20px; }
.section-head h2 { margin-bottom: 16px; }

/* ── Сетки карточек ── */

.grid {
  display: grid;
  gap: 20px;
}

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

.card {
  background: var(--charcoal-2);
  border: 1px solid var(--border);
  padding: 28px;
}

.card h3 { margin-bottom: 12px; }
.card p { color: var(--gray); font-size: 16px; }

.card-num {
  display: inline-block;
  color: var(--lime);
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 16px;
  letter-spacing: 0.08em;
}

/* карточки А → Б */

.card--a { border-left: 4px solid var(--gray); }
.card--b { border-left: 4px solid var(--lime); }

.card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--gray);
  font-size: 16px;
}

.card ul li {
  padding-left: 22px;
  position: relative;
  margin-bottom: 10px;
}

.card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: var(--px);
  height: var(--px);
  background: var(--gray);
}

.card--b ul li::before { background: var(--lime); }
.card--b ul { color: var(--light); }

/* ── Полоса «без обещаний» ── */

.no-promises {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.no-promises p strong {
  display: block;
  color: var(--light);
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.no-promises p {
  color: var(--gray);
  font-size: 15px;
}

/* ── Побег: список дней ── */

.list-plain {
  margin: 0;
  padding: 0;
  list-style: none;
}

.list-plain li {
  display: flex;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  font-size: 16px;
}

.list-plain li:last-child { border-bottom: none; }

.list-plain .marker {
  flex: none;
  width: var(--px);
  height: var(--px);
  background: var(--lime);
  margin-top: 9px;
}

/* «кому не подойдёт» */

.not-for {
  background: transparent;
  border: 1px solid var(--olive);
  padding: 28px;
}

.not-for h3 { color: var(--light); margin-bottom: 14px; }
.not-for p { color: var(--gray); font-size: 16px; margin-bottom: 10px; }
.not-for p:last-child { margin-bottom: 0; }

/* ── Финальная лаймовая секция ── */

.final {
  background: var(--lime);
  color: var(--charcoal);
  padding: clamp(64px, 9vh, 110px) 0;
}

.final h2 { color: var(--charcoal); margin-bottom: 16px; }
.final p { max-width: 560px; margin-bottom: 32px; font-weight: 500; }

.final .btn {
  background: var(--charcoal);
  color: var(--lime);
}

/* ── Футер ── */

.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 56px;
  font-size: 14px;
  color: var(--gray);
}

.footer .disclaimer {
  max-width: 640px;
  margin-bottom: 24px;
}

.footer-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-row img { height: 20px; width: auto; opacity: 0.7; }

/* ── Страница email ── */

.page-email {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.email-main {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 64px 0;
}

.email-box { max-width: 560px; }

.email-box .back {
  display: block;
  width: fit-content;
  color: var(--gray);
  text-decoration: none;
  font-size: 15px;
  margin-bottom: 40px;
}
.email-box .back:hover { color: var(--light); }

.email-box h1 { font-size: clamp(30px, 4.5vw, 46px); margin-bottom: 18px; }
.email-box .lead { margin-bottom: 36px; font-size: 18px; }

.email-form { display: flex; gap: 12px; flex-wrap: wrap; }

.email-form input[type="email"] {
  flex: 1 1 260px;
  background: var(--charcoal-2);
  border: 1px solid var(--gray);
  color: var(--light);
  font-family: inherit;
  font-size: 16px;
  padding: 15px 16px;
}

.email-form input[type="email"]::placeholder { color: var(--gray); }

.email-form input[type="email"]:focus {
  outline: 2px solid var(--lime);
  outline-offset: 0;
  border-color: transparent;
}

.email-note { margin-top: 16px; font-size: 14px; color: var(--gray); }

.email-success {
  display: none;
  border: 1px solid var(--lime);
  padding: 24px;
  margin-top: 8px;
}

.email-success p { color: var(--light); }

/* ── Эффекты (script.js) ── */

/* появление при скролле */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* пиксельный след за курсором */
.pixel-dot {
  position: absolute;
  width: var(--px);
  height: var(--px);
  background: var(--lime);
  pointer-events: none;
  z-index: 40;
  opacity: 0.25;
  animation: pixel-fade 0.6s steps(4) forwards;
}

.pixel-dot--olive { background: var(--olive); }

@keyframes pixel-fade {
  to { opacity: 0; transform: scale(0.4); }
}

/* spotlight на карточках */
.card, .not-for { position: relative; }

.card::after, .not-for::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(
    220px circle at var(--mx, 50%) var(--my, 50%),
    rgba(232, 255, 43, 0.07),
    transparent 65%
  );
  transition: opacity 0.3s ease;
}

.card:hover::after, .not-for:hover::after { opacity: 1; }

.card { transition: border-color 0.3s ease; }
.card:hover { border-color: rgba(232, 255, 43, 0.28); }

/* магнитные кнопки: transform ведёт JS, плавность — здесь */
.btn { will-change: transform; }

/* параллакс hero */
.hero-wordmark, .pixel-stairs {
  transition: transform 0.25s ease-out;
  will-change: transform;
}

/* подчёркивание-пиксель у ссылок навигации */
.nav-links a:not(.nav-cta) { position: relative; }

.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 2px;
  width: 100%;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.nav-links a:not(.nav-cta):hover::after { transform: scaleX(1); }

/* ── Адаптив ── */

@media (max-width: 900px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: 1fr; }
  .no-promises { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid--2, .grid--4, .no-promises { grid-template-columns: 1fr; }
  .nav-links a:not(.nav-cta) { display: none; }
  .hero { padding-top: 56px; }
  .pixel-stairs { display: none; }
  .btn { width: 100%; text-align: center; }
  .hero-actions { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .nav-links a { transition: none; }
  .btn:hover { transform: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .pixel-dot { display: none; }
  .hero-wordmark, .pixel-stairs { transition: none; }
}
