/* NOXEL copper-noir design system — production base.
   1:1 порт из дизайн-теста: дизайн-тест/copper/shared.css
   Слой поверх — copper-prod.css (мостик для legacy-классов дашборда). */
:root {
  --bg: #050505;
  --bg-elev: #0c0c0c;
  --card: linear-gradient(180deg, rgba(28,22,18,0.88), rgba(12,11,10,0.92));
  --line: rgba(184, 138, 111, 0.45);
  --line-soft: rgba(184, 138, 111, 0.22);
  --copper: #b88a6f;
  --copper-bright: #d4a888;
  --copper-dim: #8a654f;
  --copper-grad: linear-gradient(90deg, #8f6248 0%, #c79a7a 45%, #a97858 100%);
  --copper-ink: #120e0b;
  --text: #f2f0ed;
  --muted: #9a948c;
  --soft: #6e6860;
  --ok: #7dcaa0;
  --danger: #d97a6c;
  --radius: 18px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  --font: "Manrope", system-ui, sans-serif;
}

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

html {
  min-height: 100%;
  max-width: 100%;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html, body { min-height: 100%; }

body {
  font-family: var(--font);
  font-size: 16px;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  max-width: 100%;
  overflow-x: clip;
  overscroll-behavior-x: none;
  background:
    radial-gradient(900px 500px at 15% 10%, rgba(184, 138, 111, 0.14), transparent 55%),
    radial-gradient(700px 480px at 88% 85%, rgba(184, 138, 111, 0.10), transparent 50%),
    linear-gradient(180deg, #080808 0%, #050505 100%);
}

/* iOS: убрать double-tap zoom на UI; pinch-zoom остаётся */
a, button, .btn, .ghost, .btn-sec, .device-tile, .step,
input, select, textarea, label {
  touch-action: manipulation;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.07;
  z-index: 0;
  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='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  padding: 22px max(18px, env(safe-area-inset-right)) 40px max(18px, env(safe-area-inset-left));
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  min-width: 0;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--copper);
  font-weight: 800;
  font-size: 14px;
  background: linear-gradient(145deg, rgba(184,138,111,0.18), rgba(0,0,0,0.2));
}

.brand-name {
  font-weight: 800;
  letter-spacing: 0.18em;
  font-size: 15px;
  color: var(--copper);
}

.top-actions { display: flex; align-items: center; gap: 10px; }

.ghost, .btn-sec {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.35);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 16px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: border-color .2s, color .2s, background .2s;
}

.ghost:hover, .btn-sec:hover {
  border-color: var(--copper);
  color: var(--copper-bright);
  background: rgba(184,138,111,0.08);
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.35);
  color: var(--muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  text-decoration: none;
}
.icon-btn:hover { border-color: var(--copper); color: var(--copper-bright); }
.icon-btn svg { width: 16px; height: 16px; }

.user-pill {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: rgba(0,0,0,0.35);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.steps {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 28px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: rgba(0,0,0,0.35);
}

.step {
  text-align: center;
  padding: 10px 6px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--soft);
}

.step.active {
  color: var(--copper-ink);
  background: var(--copper-grad);
  box-shadow: 0 0 24px rgba(184,138,111,0.28);
}

.title-block { text-align: center; margin-bottom: 20px; }
.title-block h1, .page-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.title-block p, .lede {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin-top: 8px;
}

.copper-line {
  width: 72px;
  height: 2px;
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, var(--copper), transparent);
  box-shadow: 0 0 12px rgba(184,138,111,0.55);
}

/* ── 01 · Старт / landing ── */
.kicker {
  color: var(--copper);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.hero-title {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 12px;
}
.count { margin: 18px 0 28px; color: var(--muted); font-size: 14px; }
.count b { color: var(--copper-bright); font-weight: 800; }
.hero-brand { margin-bottom: 36px; }
.hero-brand .brand-mark,
.brand-mark-lg {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  font-size: 22px;
  margin: 0 auto 14px;
}
.hero-brand .brand-name { font-size: 22px; letter-spacing: 0.28em; }
.wrap-landing {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 48px max(18px, env(safe-area-inset-right)) 48px max(18px, env(safe-area-inset-left));
  overflow-x: clip;
  min-width: 0;
  box-sizing: border-box;
}

.card, .plan, .tile, .field-box {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid rgba(184,138,111,0.28);
  background: var(--card);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card::before, .plan::before, .tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px 160px at 80% -10%, rgba(184,138,111,0.14), transparent 60%);
  pointer-events: none;
}

.pay, .btn-primary {
  width: 100%;
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 13px 16px;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  color: var(--copper-ink);
  background: var(--copper-grad);
  box-shadow: 0 10px 28px rgba(184,138,111,0.22);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: filter .2s, transform .15s;
}
.pay:hover, .btn-primary:hover { filter: brightness(1.06); }
.pay:active, .btn-primary:active { transform: translateY(1px); }
.pay:disabled, .btn-primary:disabled { opacity: 0.45; cursor: not-allowed; filter: none; }

.btn-block { width: 100%; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.note, .legal {
  margin-top: auto;
  padding-top: 22px;
  text-align: center;
  color: var(--soft);
  font-size: 12px;
  line-height: 1.5;
}
.legal a { color: var(--muted); text-decoration: none; margin: 0 6px; }
.legal a:hover { color: var(--copper-bright); }

.field { display: grid; gap: 7px; margin-bottom: 12px; position: relative; }
.field label { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: 0.02em; }
.field input,
.field select,
.field textarea {
  width: 100%;
  max-width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line-soft);
  background: rgba(0,0,0,0.45);
  color: var(--text);
  padding: 13px 14px;
  font: inherit;
  /* Safari iOS зумит focus при font-size < 16px */
  font-size: 16px;
  outline: none;
  min-width: 0;
}
.field input:focus { border-color: var(--copper); box-shadow: 0 0 0 3px rgba(184,138,111,0.15); }
.field input::placeholder { color: var(--soft); }

.field-check {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  margin: 4px 0 14px;
}
.field-check input { accent-color: var(--copper); width: 16px; height: 16px; }

.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
}
.back:hover { color: var(--copper-bright); }

.badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--copper-ink);
  background: var(--copper-grad);
  border-radius: 999px;
  padding: 5px 10px;
}

.badge-soon {
  background: rgba(184,138,111,0.12);
  color: var(--muted);
  border: 1px solid var(--line-soft);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: rgba(0,0,0,0.35);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.chip i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--copper);
  box-shadow: 0 0 10px rgba(184,138,111,0.7);
  display: block;
}
.chip.ok i { background: var(--ok); box-shadow: 0 0 10px rgba(125,202,160,0.55); }

@media (max-width: 480px) {
  .page-title, .title-block h1 { font-size: 24px; }
}
