/* «Норм или Стрём» — лендинг. Тёмная тема, дуальность зелёный/красный. */

:root {
  --norm: #22C55E;
  --strem: #FF2E9E;
  --bg: #0B0C0F;
  --panel: #15171C;
  --panel-2: #1B1E24;
  --line: #262A32;
  --text: #F2F3F5;
  --muted: #9BA1AC;
  --tilt: 2.5deg;
  --glow-n: 0 0 28px color-mix(in srgb, var(--norm) 45%, transparent);
  --glow-s: 0 0 28px color-mix(in srgb, var(--strem) 45%, transparent);
  --head: "Unbounded", sans-serif;
  --body: "Manrope", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}

.wrap {
  width: min(100% - 40px, 1080px);
  margin-inline: auto;
}

section { position: relative; }

/* ---------- общие атомы ---------- */

.plate {
  display: inline-block;
  font-family: var(--head);
  font-weight: 900;
  text-transform: uppercase;
  padding: 0.08em 0.28em 0.14em;
  border-radius: 0.16em;
  line-height: 1.1;
}
.plate-norm {
  background: var(--norm);
  color: #06140A;
  transform: rotate(calc(var(--tilt) * -1));
  box-shadow: var(--glow-n);
}
.plate-strem {
  background: var(--strem);
  color: #1F040C;
  transform: rotate(var(--tilt));
  box-shadow: var(--glow-s);
}

.ph {
  background: repeating-linear-gradient(45deg, #1A1D23 0 10px, #21252C 10px 20px);
  border: 1px dashed #3A404B;
  display: grid;
  place-items: center;
  color: #79808C;
  font-family: var(--mono);
  font-size: 11px;
  text-align: center;
  letter-spacing: 0.02em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--head);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border-radius: 18px;
  padding: 18px 28px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-tg {
  background: var(--norm);
  color: #06140A;
  box-shadow: var(--glow-n), 0 6px 0 color-mix(in srgb, var(--norm) 40%, #000);
}
.btn-tg:hover { transform: translateY(-2px) rotate(calc(var(--tilt) * -0.5)); }
.btn-tg:active { transform: translateY(2px); box-shadow: var(--glow-n), 0 2px 0 color-mix(in srgb, var(--norm) 40%, #000); }
.btn-tg svg { flex: none; }

.kicker {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  background: var(--panel);
}

.h2 {
  font-family: var(--head);
  font-weight: 800;
  font-size: clamp(26px, 5vw, 44px);
  line-height: 1.15;
  text-transform: uppercase;
  text-wrap: balance;
  margin-bottom: 14px;
}

.sub { color: var(--muted); max-width: 52ch; text-wrap: pretty; }

/* рваный разделитель-стык двух цветов */
.rip {
  height: 10px;
  width: min(100% - 40px, 1080px);
  margin: 0 auto;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--strem) 0%, var(--strem) 38%, #FFC53B 50%, var(--norm) 62%, var(--norm) 100%);
  transform: rotate(calc(var(--tilt) * -0.4));
  opacity: 0.9;
}

/* ---------- HERO ---------- */

.hero { padding: 28px 0 72px; overflow: hidden; }

.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-family: var(--head);
  font-weight: 900;
  font-size: clamp(40px, 9vw, 84px);
  line-height: 1.04;
  text-transform: uppercase;
  margin: 22px 0 20px;
}
.hero h1 .ili {
  font-weight: 500;
  font-size: 0.45em;
  color: var(--muted);
  display: inline-block;
  margin: 0 0.3em;
  vertical-align: middle;
}

.hero .sub { font-size: 18px; margin-bottom: 30px; }
.hero .sub strong { color: var(--text); }

.hero-cta-note {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

/* телефон */
.phone-zone { position: relative; justify-self: center; }

.phone {
  position: relative;
  width: 300px;
  border-radius: 46px;
  border: 3px solid #2A2E36;
  background: #101216;
  padding: 14px 14px 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  transform: rotate(var(--tilt));
}

.phone-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px 12px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
.phone-top .bot-name { display: flex; align-items: center; gap: 7px; color: var(--text); font-weight: 600; }
.phone-top .bot-dot { width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(135deg, var(--norm), var(--strem)); }

.phone-progress { padding: 0 8px 10px; }
.phone-progress .label {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 6px;
}
.phone-progress .bar { height: 4px; border-radius: 99px; background: #22262E; overflow: hidden; }
.phone-progress .bar i { display: block; height: 100%; width: 35%; border-radius: 99px; background: linear-gradient(90deg, var(--strem), var(--norm)); }

.stack { position: relative; height: 330px; margin: 4px 8px 16px; }
.stack .card {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  overflow: hidden;
}
.stack .card.back-2 { transform: translateY(14px) scale(0.92) rotate(1.5deg); opacity: 0.45; }
.stack .card.back-1 { transform: translateY(7px) scale(0.96) rotate(-1deg); opacity: 0.7; }
.stack .card.front {
  transform: rotate(6deg) translateX(10px);
  border: 3px solid var(--norm);
  box-shadow: var(--glow-n);
}
.stack .card .ph { width: 100%; height: 100%; font-size: 12px; }

.stamp {
  position: absolute;
  top: 18px;
  left: 14px;
  font-family: var(--head);
  font-weight: 900;
  font-size: 26px;
  text-transform: uppercase;
  color: var(--norm);
  border: 3px solid var(--norm);
  border-radius: 10px;
  padding: 4px 12px;
  transform: rotate(-15deg);
  background: rgba(11, 12, 15, 0.55);
  text-shadow: var(--glow-n);
}

.phone-btns { display: flex; gap: 10px; padding: 0 8px; }
.phone-btns .pb {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--head);
  font-weight: 700;
  font-size: 14px;
  border-radius: 16px;
  padding: 15px 0;
}
.pb-strem { background: color-mix(in srgb, var(--strem) 18%, #14161B); color: var(--strem); border: 1.5px solid color-mix(in srgb, var(--strem) 55%, transparent); }
.pb-norm { background: var(--norm); color: #06140A; box-shadow: var(--glow-n); }

/* стикеры вокруг телефона */
.float-sticker {
  position: absolute;
  font-family: var(--head);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 12px;
  white-space: nowrap;
}
.fs-norm { background: var(--norm); color: #06140A; top: -8px; right: -26px; transform: rotate(calc(var(--tilt) * 3)); box-shadow: var(--glow-n); }
.fs-strem { background: var(--strem); color: #1F040C; bottom: 64px; left: -34px; transform: rotate(calc(var(--tilt) * -3.5)); box-shadow: var(--glow-s); }

/* ---------- ШАГИ ---------- */

.steps { padding: 72px 0; }
.steps-grid { display: grid; gap: 16px; margin-top: 34px; }

.step {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px 24px 28px;
}
.step:nth-child(1) { transform: rotate(calc(var(--tilt) * -0.5)); }
.step:nth-child(2) { transform: rotate(calc(var(--tilt) * 0.5)); }
.step:nth-child(3) { transform: rotate(calc(var(--tilt) * -0.3)); }

.step .num {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-family: var(--head);
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 16px;
}
.step:nth-child(odd) .num { background: var(--norm); color: #06140A; transform: rotate(calc(var(--tilt) * -1.5)); }
.step:nth-child(even) .num { background: var(--strem); color: #1F040C; transform: rotate(calc(var(--tilt) * 1.5)); }

.step h3 { font-family: var(--head); font-weight: 700; font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- КАТЕГОРИИ ---------- */

.cats { padding: 72px 0; }

.cats-strip {
  display: flex;
  gap: 14px;
  margin-top: 30px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 10px 20px 22px;
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
  scrollbar-width: none;
}
.cats-strip::-webkit-scrollbar { display: none; }

.cat {
  flex: none;
  width: 158px;
  scroll-snap-align: center;
  border-radius: 20px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  transition: transform 0.15s ease;
}
.cat:nth-child(odd) { transform: rotate(calc(var(--tilt) * 0.6)); }
.cat:nth-child(even) { transform: rotate(calc(var(--tilt) * -0.6)); }
.cat:hover { transform: translateY(-4px) rotate(0deg); }

.cat .ph { height: 130px; width: 100%; border: none; border-bottom: 1px dashed #3A404B; }
.cat .meta { display: flex; align-items: center; gap: 8px; padding: 12px 14px; }
.cat .meta .emoji { font-size: 20px; }
.cat .meta .name { font-family: var(--head); font-weight: 700; font-size: 13px; }

/* ---------- РЕЗУЛЬТАТ ---------- */

.result { padding: 72px 0; }

.result-grid { display: grid; gap: 44px; margin-top: 38px; align-items: center; }

.gauge-zone { justify-self: center; text-align: center; }

.gauge {
  position: relative;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: conic-gradient(from 215deg, var(--strem) 0%, #FFC53B 40%, var(--norm) 73%, #22262E 73.5%, #22262E 100%);
  display: grid;
  place-items: center;
  margin-inline: auto;
  transform: rotate(calc(var(--tilt) * -0.6));
  box-shadow: 0 0 60px color-mix(in srgb, var(--norm) 18%, transparent);
}
.gauge::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  background: var(--bg);
}
.gauge .val { position: relative; }
.gauge .val .pct {
  font-family: var(--head);
  font-weight: 900;
  font-size: 64px;
  line-height: 1;
  display: block;
}
.gauge .val .cap { font-family: var(--mono); font-size: 12px; color: var(--muted); }

.verdict-badge {
  display: inline-block;
  margin-top: 22px;
  background: var(--norm);
  color: #06140A;
  font-family: var(--head);
  font-weight: 800;
  font-size: 15px;
  padding: 10px 18px;
  border-radius: 14px;
  transform: rotate(var(--tilt));
  box-shadow: var(--glow-n);
}

.scale { margin-top: 30px; }
.scale .bar {
  height: 10px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--strem), #FFC53B, var(--norm));
}
.scale .marks {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
}
.scale ul { list-style: none; margin-top: 18px; display: grid; gap: 10px; }
.scale ul li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: 15px;
  color: var(--muted);
}
.scale ul li b {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text);
  flex: none;
  width: 64px;
}

/* тизер расшифровки */
.teaser { margin-top: 8px; }
.teaser-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

.tcol {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 12px;
  text-align: center;
}
.tcol .t-label { font-family: var(--head); font-weight: 700; font-size: 12px; margin-bottom: 10px; }
.tcol .minis { display: grid; gap: 7px; }
.tcol .minis .ph {
  height: 44px;
  border-radius: 10px;
  filter: blur(4px);
  font-size: 0;
}
.tcol-norm { border-color: color-mix(in srgb, var(--norm) 40%, transparent); }
.tcol-strem { border-color: color-mix(in srgb, var(--strem) 40%, transparent); }

.teaser-note {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

/* ---------- СЦЕНАРИИ ---------- */

.uses { padding: 72px 0; }
.uses-grid { display: grid; gap: 14px; margin-top: 32px; }

.use {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px 24px;
}
.use:nth-child(1) { transform: rotate(calc(var(--tilt) * -0.4)); }
.use:nth-child(2) { transform: rotate(calc(var(--tilt) * 0.4)); }
.use:nth-child(3) { transform: rotate(calc(var(--tilt) * -0.25)); }

.use .emoji { font-size: 30px; flex: none; }
.use h3 { font-family: var(--head); font-weight: 700; font-size: 17px; margin-bottom: 4px; }
.use p { color: var(--muted); font-size: 14px; }

/* ---------- ФИНАЛЬНЫЙ CTA ---------- */

.final { padding: 84px 0 96px; text-align: center; }

.final .h2 { margin-bottom: 10px; }
.final .sub { margin: 0 auto 32px; }

.final-note {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

footer {
  border-top: 1px solid var(--line);
  padding: 26px 0 34px;
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  color: #5C6370;
}

/* ---------- ДЕСКТОП ---------- */

@media (min-width: 760px) {
  body { font-size: 17px; }

  .hero { padding: 56px 0 96px; }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 40px; }
  .phone { width: 330px; }
  .stack { height: 360px; }

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

  .cats-strip {
    width: auto;
    margin-left: 0;
    transform: none;
    padding: 10px 0 14px;
    justify-content: space-between;
    overflow: visible;
  }
  .cat { width: calc((100% - 56px) / 5); }

  .result-grid { grid-template-columns: 0.9fr 1.1fr; }

  .uses-grid { grid-template-columns: repeat(3, 1fr); }
  .use { flex-direction: column; align-items: flex-start; gap: 12px; padding: 26px; }
}
