/* NA PROMTE ©. Страница набора ИИ-авторов: чёрный экран, строка-«промпт»,
   тёплый градиент бренда только акцентом (свечение, слово, кнопка). */

:root {
  --ink: #0b0a0a;
  --ink-2: #141111;
  --ink-3: #1d1818;
  --paper: #f4f1ee;
  --muted: rgba(244, 241, 238, .62);
  --faint: rgba(244, 241, 238, .38);
  --line: rgba(244, 241, 238, .14);
  --red: #e0230d;
  --orange: #ff5a12;
  --amber: #ff9a14;
  --yellow: #ffcf26;
  --err: #ff7a5c;
  --grad: linear-gradient(100deg, #b8160a 0%, #e8270d 22%, #ff4f10 45%, #ff8414 70%, #ffbb1c 90%, #ffe36a 100%);
  --wide: 'Unbounded', 'Arial Black', system-ui, sans-serif;
  --text: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --pad: clamp(16px, 4vw, 56px);
  --max: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--text);
  font-size: clamp(16px, 1.1vw, 18px);
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.x { font-style: normal; font-weight: 400; }

/* зерно поверх всего */
body::after {
  content: "";
  position: fixed; inset: -50%;
  z-index: 60; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: .13;
  mix-blend-mode: overlay;
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

.grad-text {
  background: linear-gradient(90deg, var(--red) 0%, var(--orange) 40%, var(--amber) 70%, var(--yellow) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* шапка */
.bar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; gap: 16px;
  padding: max(14px, env(safe-area-inset-top)) var(--pad) 14px;
  font-size: 12px; letter-spacing: .03em;
}
.bar__brand {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--wide); font-weight: 900; font-size: 12px;
}
.bar__duo { margin-left: auto; font-weight: 600; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

.mark { position: relative; display: block; width: 26px; aspect-ratio: 900 / 749; }
.mark img { position: absolute; inset: 0; width: 100%; height: 100%; }
.mark__under { animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* экран */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  max-width: var(--max); margin: 0 auto;
  padding: 104px var(--pad) 64px;
}
.glow {
  position: absolute; z-index: -1; pointer-events: none;
  left: 50%; top: 58%;
  width: min(1100px, 150vw); aspect-ratio: 2 / 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 79, 16, .42), rgba(224, 35, 13, .18) 45%, transparent 75%);
  filter: blur(20px);
  animation: breathe 7s ease-in-out infinite alternate;
}
.glow--low { top: 70%; opacity: .8; }
@keyframes breathe { from { opacity: .7; transform: translate(-50%, -50%) scale(.95); } to { opacity: 1; transform: translate(-50%, -50%) scale(1.05); } }

.prompt {
  font-family: var(--mono);
  font-size: clamp(14px, 1.4vw, 18px);
  color: var(--muted);
  min-height: 1.6em;
  margin-bottom: clamp(18px, 3vw, 32px);
}
.prompt__caret { color: var(--orange); font-weight: 700; margin-right: .5em; }
.prompt__cursor {
  display: inline-block; width: .6em; height: 1.1em; vertical-align: -.18em;
  background: var(--paper); margin-left: 2px;
  animation: blink 1.1s steps(1) infinite;
}

.title {
  font-family: var(--wide); font-weight: 900;
  font-size: clamp(30px, 9.4vw, 148px);
  line-height: .95; letter-spacing: -.01em;
  text-transform: uppercase;
  transform: skewX(-9deg); transform-origin: left bottom;
}
.title span { display: block; white-space: nowrap; }
.title--sm { font-size: clamp(34px, 6vw, 88px); }

.hero__sub {
  max-width: 34em;
  margin-top: clamp(22px, 3.4vw, 40px);
  font-size: clamp(17px, 1.5vw, 21px);
  color: var(--muted);
}
.hero__note { margin-top: 14px; font-size: 14px; color: var(--faint); }

/* кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  align-self: flex-start;
  margin-top: clamp(26px, 3.6vw, 40px);
  padding: 15px 26px;
  border: 1.5px solid var(--line); border-radius: 100px;
  background: transparent;
  font-weight: 800; font-size: 15px; letter-spacing: .02em; text-transform: uppercase; text-decoration: none;
  cursor: pointer;
  transition: transform .15s, background .2s, border-color .2s, color .2s;
}
.btn:hover { border-color: var(--paper); }
.btn--main {
  border: 0;
  padding: 19px 34px;
  font-size: 16px;
  color: #160302;
  background: var(--grad);
  background-size: 140% 100%;
  box-shadow: 0 10px 40px -12px rgba(255, 79, 16, .7);
  animation: shift 6s ease-in-out infinite alternate;
}
.btn--main::before { content: ">_"; font-family: var(--mono); font-weight: 700; }
.btn--main:hover { transform: translateY(-2px); }
.btn--main:active { transform: translateY(0); }
.btn--main:disabled { opacity: .6; cursor: progress; transform: none; }
.btn--wide { width: 100%; align-self: stretch; }
@keyframes shift { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
.btn:focus-visible, .chips input:focus-visible + span, .consent input:focus-visible, .sheet__close:focus-visible {
  outline: 2px solid var(--amber); outline-offset: 3px;
}

/* блоки */
.block, .final {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(56px, 8vw, 110px) var(--pad);
  border-top: 1px solid var(--line);
}
.kicker {
  font-family: var(--mono); font-size: 14px; letter-spacing: .04em;
  color: var(--orange);
  margin-bottom: clamp(20px, 3vw, 34px);
}
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.tags li {
  padding: 10px 18px;
  border: 1.5px solid var(--line); border-radius: 100px;
  font-family: var(--wide); font-weight: 500; font-size: clamp(14px, 1.5vw, 20px);
}
.block__text { max-width: 36em; margin-top: 28px; color: var(--muted); }

.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 3vw, 40px); }
.steps__n { font-family: var(--mono); color: var(--faint); font-size: 14px; }
.steps h3 { font-family: var(--wide); font-weight: 800; font-size: clamp(20px, 2vw, 28px); margin: 8px 0 10px; }
.steps p { color: var(--muted); }

.who__grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(18px, 4vw, 56px); align-items: start; }
.who h3 { font-family: var(--wide); font-weight: 800; font-size: clamp(22px, 2.4vw, 32px); text-transform: uppercase; margin-bottom: 10px; }
.who p { color: var(--muted); }
.who__x { font-size: clamp(28px, 3vw, 44px); color: var(--orange); line-height: 1; }

.final { position: relative; overflow: hidden; display: flex; flex-direction: column; padding-bottom: clamp(80px, 12vw, 160px); }

.foot {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  max-width: var(--max); margin: 0 auto;
  padding: 24px var(--pad) max(24px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--faint);
}

/* анкета */
.sheet {
  position: fixed; inset: 0; z-index: 50;
  display: flex; justify-content: flex-end;
  background: rgba(5, 4, 4, .72);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  animation: fade .25s ease-out;
}
.sheet[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.sheet__panel {
  position: relative;
  width: min(640px, 100%); height: 100%;
  overflow-y: auto; overscroll-behavior: contain;
  background: var(--ink-2);
  border-left: 1px solid var(--line);
  padding: max(28px, env(safe-area-inset-top)) clamp(20px, 4vw, 48px) max(40px, env(safe-area-inset-bottom));
  animation: slide .35s cubic-bezier(.2, .8, .2, 1);
}
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.sheet__close {
  position: sticky; top: 0; float: right; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--line); background: var(--ink-2);
  cursor: pointer; font-size: 16px;
}
.sheet__close:hover { border-color: var(--paper); }

.form__title { font-family: var(--wide); font-weight: 800; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.1; margin-bottom: 30px; }
.field { display: block; border: 0; margin-bottom: 22px; min-width: 0; }
.field__label { display: block; font-size: 13px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); margin-bottom: 9px; }
.field__label b { color: var(--orange); font-weight: 800; }
.field input, .field textarea, .other {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--line); border-radius: 14px;
  background: var(--ink-3); color: var(--paper);
  font: inherit; font-size: 16px; /* 16px: айфон не приближает поле */
  transition: border-color .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder, .other::placeholder { color: var(--faint); }
.field input:focus, .field textarea:focus, .other:focus { outline: none; border-color: var(--orange); background: #221b1a; }
.field.bad input { border-color: var(--err); }
.field__err { display: block; min-height: 0; font-size: 13px; color: var(--err); margin-top: 6px; }
.field__err:empty { display: none; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-block;
  padding: 9px 15px;
  border: 1.5px solid var(--line); border-radius: 100px;
  font-size: 14px; font-weight: 600;
  transition: background .15s, border-color .15s, color .15s;
  user-select: none;
}
.chips label:hover span { border-color: var(--muted); }
.chips input:checked + span { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.other { margin-top: 10px; }
.other[hidden] { display: none; }

.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; margin-top: 6px; }
.consent input { flex: none; width: 20px; height: 20px; margin-top: 1px; accent-color: var(--orange); }

.form .btn--wide { margin-top: 26px; }
.form__status { margin-top: 14px; font-size: 14px; color: var(--err); min-height: 1.4em; }

.done { padding-top: 40px; }
.done[hidden] { display: none; }
.prompt--done { color: var(--paper); }
.done .title { margin-bottom: 22px; }
.done__text { color: var(--muted); max-width: 30em; }

/* телефон */
@media (max-width: 760px) {
  .bar__duo { font-size: 10px; }
  .steps { grid-template-columns: 1fr; }
  .who__grid { grid-template-columns: 1fr; }
  .who__x { display: none; }
  .row { grid-template-columns: 1fr; }
  .btn--main { align-self: stretch; }
  .sheet__panel { border-left: 0; }
}
@media (max-width: 380px) {
  .bar__duo { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
