@font-face { font-family: "Inter"; src: url("../../app/assets/fonts/Inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  --bg: #f3efe2; --card: #fffdf6; --card-2: #f4efdf; --ink: #1d2a24; --ink-2: #4c5a52; --ink-3: #5f6b63;
  --line: rgba(29, 42, 36, .14); --accent: #ff5a1f; --accent-ink: #1a0f08; --accent-soft: rgba(255, 90, 31, .14);
  --ok: #1f7a47; --bad: #c9302a; --warn: #8a5a00; --focus: #2b7de9;
  --hero: #0e211b; --hero-dot: #4d7a5e; --hero-rock: #1a3b2e; --hero-line: #3f7a5c; --hero-accent: #ff6a2b;
  --shadow: 0 18px 50px rgba(29, 42, 36, .14), 0 2px 8px rgba(29, 42, 36, .08);
  --font: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
:root[data-theme="dark"] {
  --bg: #0b1612; --card: #13231c; --card-2: #19302600; --ink: #e8efe9; --ink-2: #aab9b0; --ink-3: #8a9b91;
  --line: rgba(232, 239, 233, .14); --accent-soft: rgba(255, 106, 43, .2); --ok: #4cc47f; --bad: #ff6b63; --warn: #f0b429; --focus: #6aa7ff;
  --card-2: #1a2e25; --shadow: 0 18px 50px rgba(0, 0, 0, .5);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { color-scheme: light dark; }
:root[data-theme="light"] { color-scheme: light; } :root[data-theme="dark"] { color-scheme: dark; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.shell { min-height: 100dvh; display: grid; grid-template-columns: minmax(380px, 5fr) 7fr; }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--hero); color: #e8efe9; overflow: hidden; min-height: 100%; }
.topo { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-in { position: relative; z-index: 1; padding: clamp(28px, 5vw, 56px); display: flex; flex-direction: column; min-height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; font-weight: 800; font-size: 22px; letter-spacing: -.02em; }
.hero h1 { margin: clamp(30px, 8vh, 90px) 0 14px; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.08; letter-spacing: -.03em; font-weight: 800; max-width: 14em; }
.lead { color: #aac2b4; max-width: 30em; margin: 0 0 26px; font-size: 17px; }
.promises { list-style: none; margin: auto 0 0; padding: 0 0 4px; display: grid; gap: 12px; max-width: 30em; }
.promises li { padding-left: 30px; position: relative; color: #cfe0d5; font-size: 15px; }
.promises li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--hero-accent); box-shadow: 0 0 0 4px rgba(255, 106, 43, .22); }
.promises b { color: #fff; }
.trail { animation: march 1.4s linear infinite; }
@keyframes march { to { stroke-dashoffset: -14; } }
.beacon .w { transform-box: fill-box; transform-origin: center; animation: wave 3s ease-out infinite; opacity: 0; }
.beacon .w2 { animation-delay: 1.5s; }
@keyframes wave { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(4.2); opacity: 0; } }
.rocks path { animation: rise .9s cubic-bezier(.2, 1, .3, 1) both; transform-box: fill-box; transform-origin: bottom; }
.rocks path:nth-child(2) { animation-delay: .1s; } .rocks path:nth-child(3) { animation-delay: .2s; } .rocks path:nth-child(4) { animation-delay: .3s; }
@keyframes rise { from { transform: scaleY(.2); opacity: 0; } }

/* ---------- panel ---------- */
.panel { padding: clamp(18px, 3vw, 36px) clamp(18px, 5vw, 64px) 28px; max-width: 760px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; min-height: 100dvh; }
.top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.back-home { color: var(--ink-2); text-decoration: none; font-weight: 600; padding: 8px 0; }
.back-home:hover { color: var(--ink); }
.theme { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); display: grid; place-items: center; }
.theme svg { width: 18px; height: 18px; }
.demo-bar { background: var(--accent-soft); border: 1px dashed var(--accent); color: var(--ink); border-radius: 12px; padding: 8px 12px; font-size: 13.5px; margin-bottom: 18px; }

.stepper { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 22px; counter-reset: s; }
.stepper li { flex: 1; font-size: 12.5px; font-weight: 700; color: var(--ink-3); display: grid; gap: 7px; }
.stepper li::before { content: ""; height: 5px; border-radius: 3px; background: var(--line); transition: background .3s; }
.stepper li.done::before { background: var(--ok); }
.stepper li.now::before { background: var(--accent); }
.stepper li.now, .stepper li.done { color: var(--ink); }
.stepper .n { display: none; }

.step-body { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: clamp(18px, 3vw, 30px); box-shadow: var(--shadow); animation: up .35s both; }
@keyframes up { from { opacity: 0; transform: translateY(10px); } }
.step-body h2 { margin: 0 0 4px; font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -.02em; }
.step-body .sub { margin: 0 0 20px; color: var(--ink-2); }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 14px; }
.grid .full { grid-column: 1 / -1; }
.field { display: grid; gap: 6px; align-content: start; }
.field > label, .lbl { font-weight: 700; font-size: 14px; }
.field .opt { color: var(--ink-3); font-weight: 500; }
.field .hint { font-size: 12.8px; color: var(--ink-3); }
.inp { width: 100%; padding: 13px 14px; border-radius: 13px; border: 1.5px solid var(--line); background: var(--card); min-height: 50px; transition: border-color .15s, box-shadow .15s; }
.inp:hover { border-color: var(--ink-3); }
.inp:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 4px color-mix(in srgb, var(--focus) 22%, transparent); }
.inp[aria-invalid="true"] { border-color: var(--bad); }
textarea.inp { min-height: 72px; resize: vertical; }
.err { color: var(--bad); font-size: 13px; font-weight: 600; min-height: 0; }
.err:empty { display: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; cursor: pointer; }
.check input { width: 22px; height: 22px; flex: none; margin: 1px 0 0; accent-color: var(--accent); }

.notice { border-radius: 14px; padding: 12px 14px; font-size: 14px; border: 1px solid var(--line); background: var(--card-2); }
.notice.warn { border-color: var(--warn); background: color-mix(in srgb, var(--warn) 12%, transparent); }
.notice.info { border-color: var(--focus); background: color-mix(in srgb, var(--focus) 10%, transparent); }
.notice b { display: block; margin-bottom: 2px; }

.card2 { border: 1px solid var(--line); border-radius: 16px; padding: 16px; background: var(--card-2); display: grid; gap: 12px; }
.card2 + .card2 { margin-top: 12px; }
.card2 header { display: flex; justify-content: space-between; align-items: center; font-weight: 800; }
.link { background: none; border: 0; color: var(--ink); font-weight: 700; padding: 6px 0; text-align: left; text-decoration: underline; text-underline-offset: 3px; }
.link.bad { color: var(--bad); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1.5px solid var(--line); background: var(--card); border-radius: 999px; padding: 9px 14px; font-weight: 700; font-size: 14px; min-height: 42px; }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.sw { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.sw button { width: 52px; height: 30px; border-radius: 999px; border: 0; background: var(--line); position: relative; flex: none; transition: background .2s; }
.sw button::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.sw button[aria-checked="true"] { background: var(--ok); } .sw button[aria-checked="true"]::after { transform: translateX(22px); }

.group-h { font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 22px 0 8px; }
.group-h:first-of-type { margin-top: 4px; }
.cons { border: 1.5px solid var(--line); border-radius: 16px; padding: 14px; background: var(--card); margin-bottom: 10px; transition: border-color .2s; }
.cons.on { border-color: var(--ok); }
.cons .check { font-weight: 600; }
.cons .meta { margin: 8px 0 0 32px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--ink-3); }
.tag { font-size: 11.5px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--line); color: var(--ink-2); }
.tag.req { background: var(--accent-soft); color: var(--ink); }

.otp { display: flex; gap: 8px; justify-content: center; margin: 14px 0; }
.otp input { width: 48px; height: 58px; text-align: center; font-size: 26px; font-weight: 800; border-radius: 13px; border: 1.5px solid var(--line); background: var(--card); }
.otp input:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 4px color-mix(in srgb, var(--focus) 22%, transparent); }
.center { text-align: center; }

.actions { display: flex; gap: 10px; margin: 18px 0 0; position: sticky; bottom: 0; padding: 12px 0 max(12px, env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--bg) 70%, transparent); z-index: 3; }
.btn { border-radius: 14px; border: 1.5px solid var(--line); padding: 0 22px; min-height: 52px; font-weight: 800; background: var(--card); }
.btn.primary { flex: 1; background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-size: 17px; box-shadow: 0 8px 22px var(--accent-soft); }
.btn.primary:hover:not(:disabled) { filter: brightness(1.06); }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn.sm { min-height: 42px; font-size: 15px; flex: none; }
.btn:focus-visible, .chip:focus-visible, .link:focus-visible, .sw button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.btn.ghost[hidden] { display: none; }

.done-ic { width: 76px; height: 76px; border-radius: 50%; background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); display: grid; place-items: center; margin: 0 auto 12px; }
.done-ic svg { width: 40px; height: 40px; stroke-dasharray: 40; animation: draw .7s .15s both; }
@keyframes draw { from { stroke-dashoffset: 40; } }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 14.5px; margin: 14px 0; }
.kv dt { color: var(--ink-3); } .kv dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
pre.json { background: #0c1713; color: #b9e5c9; padding: 14px; border-radius: 12px; overflow: auto; font-size: 12.5px; max-height: 320px; }
details summary { cursor: pointer; font-weight: 700; padding: 8px 0; }
.foot { margin-top: auto; padding-top: 22px; display: flex; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--ink-3); }
.foot a { color: var(--ink-2); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

dialog { border: 0; border-radius: 22px; padding: 0; width: min(640px, calc(100% - 24px)); max-height: 86dvh; background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(5, 12, 9, .6); backdrop-filter: blur(3px); }
dialog article { display: flex; flex-direction: column; max-height: 86dvh; }
dialog header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 20px 22px 10px; }
dialog h2 { margin: 0; font-size: 20px; letter-spacing: -.01em; }
.x { border: 0; background: var(--card-2); width: 36px; height: 36px; border-radius: 10px; flex: none; }
.doc-body { padding: 4px 22px 14px; overflow: auto; }
.doc-body p { margin: 0 0 12px; font-size: 15px; }
dialog footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 22px 18px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 12.5px; }

@media (max-width: 899px) {
  .shell { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
  .hero-in { padding: 18px 18px 22px; }
  .hero h1 { margin: 14px 0 6px; font-size: 24px; } .lead, .promises { display: none; }
  .topo { opacity: .55; }
  .panel { min-height: 0; padding-top: 16px; }
  .brand { font-size: 19px; }
  .grid { grid-template-columns: 1fr; }
  .stepper li { font-size: 0; gap: 0; }
  .otp input { width: 42px; height: 54px; }
  .foot { padding-bottom: 20px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ===== One Shape v2: токены и компоненты дизайн-системы ===== */
:root { --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --bg: #E7E4DD; --card: #FBFAF6; --card-2: #F1EEE7; --ink: #0B0B0B; --ink-2: #4A4741; --ink-3: #6B675E; --line: rgba(11, 11, 11, .10);
  --accent: #FF5A1F; --accent-ink: #0B0B0B; --accent-soft: rgba(255, 90, 31, .15); --ok: #0B0B0B; --bad: #E5322B; --warn: #A63A08; --focus: #0B0B0B;
  --shadow: 0 24px 48px -24px rgba(20, 16, 8, .32), 0 2px 8px rgba(20, 16, 8, .08); --spring: linear(0, .052, .173, .32, .468, .603, .717, .809, .879, .93, .966, .989, 1.004, 1.011, 1.015, 1.015, 1.014, 1.012, 1.01, 1.007, 1.005, 1.004, 1.003, 1.002, 1.001, 1); }
:root[data-theme="dark"] { --bg: #131210; --card: #1C1B18; --card-2: #262521; --ink: #F4F2EC; --ink-2: #B8B3A7; --ink-3: #8F8A7E; --line: rgba(244, 242, 236, .11); --accent: #FF6A2B; --accent-soft: rgba(255, 106, 43, .2); --bad: #FF5A52; --warn: #FF8A52; --focus: #F4F2EC; --shadow: 0 24px 48px -20px rgba(0, 0, 0, .7), 0 2px 8px rgba(0, 0, 0, .4); }
body { font-feature-settings: "tnum" 1; letter-spacing: -.005em; }
.shell { padding: 12px; gap: 12px; }
.hero { background: var(--card-2); color: var(--ink); border-radius: 40px; overflow: hidden; }
.hero-in { padding: clamp(26px, 4vw, 48px); } .hero h1 { letter-spacing: -.05em; font-weight: 700; line-height: 1.02; } .lead { color: var(--ink-2); } .promises li { color: var(--ink-2); } .promises b { color: var(--ink); }
.promises { margin-top: 24px; } .promises li::before { box-shadow: 0 0 0 4px var(--accent-soft); background: var(--accent); }
.hero-scene { position: absolute; left: 0; right: 0; bottom: -4%; z-index: 0; display: block; } .hero-scene img { width: 100%; display: block; } .hero-scene .d { display: none; }
:root[data-theme="dark"] .hero-scene .l { display: none; } :root[data-theme="dark"] .hero-scene .d { display: block; }
.hero-in { z-index: 1; } .promises { margin-top: 28px; padding-bottom: 0; } @media (min-width: 900px) { .hero-scene { opacity: .95; } .hero h1 { margin-top: clamp(24px, 6vh, 70px); } }
.brand img { height: 40px; width: auto; display: block; } .brand .l-dark, :root[data-theme="dark"] .brand .l-light { display: none; } :root[data-theme="dark"] .brand .l-dark { display: block; }
.panel { background: transparent; } .theme { background: var(--card); border: 0; box-shadow: 0 8px 20px -8px rgba(20,16,8,.26); border-radius: 22px; }
.demo-bar { background: var(--accent-soft); border: 0; border-radius: 22px; }
.step-body { border: 0; border-radius: 36px; box-shadow: var(--shadow); }
.step-body h2 { letter-spacing: -.045em; font-weight: 700; }
.stepper li.now::before { background: var(--ink); } .stepper li.done::before { background: var(--ink); opacity: .35; } .stepper li::before { height: 6px; border-radius: 3px; }
.inp { border: 2px solid transparent; background: var(--card-2); border-radius: 22px; min-height: 54px; font-weight: 500; } .inp:hover { border-color: transparent; } .inp:focus { border-color: var(--ink); box-shadow: none; background: var(--card); }
.inp[aria-invalid="true"] { border-color: var(--bad); }
.btn { border: 0; background: var(--card-2); border-radius: 29px; min-height: 58px; font-weight: 600; transition: transform .5s var(--spring); } .btn:active { transform: scale(.965); }
.btn.primary { background: var(--ink); color: var(--card); box-shadow: 0 8px 20px -8px rgba(20,16,8,.4); display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 16.5px; }
.btn.primary::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none; } .btn.primary:hover:not(:disabled) { transform: translateY(-2px); filter: none; }
.chip { border: 0; background: var(--card-2); } .chip[aria-pressed="true"] { background: var(--ink); color: var(--card); border: 0; }
.card2, .cons, .notice { border: 0; background: var(--card-2); border-radius: 28px; } .cons { background: var(--card-2); } .cons.on { box-shadow: inset 0 0 0 2px var(--ink); }
.notice.warn { background: var(--accent-soft); } .notice.info { background: var(--card-2); }
.tag.req { background: var(--accent-soft); color: var(--warn); }
.sw button[aria-checked="true"] { background: var(--ink); } .check input, .cons .check input { accent-color: var(--ink); }
.link { color: var(--ink); } .otp input { border: 2px solid transparent; background: var(--card-2); border-radius: 18px; } .otp input:focus { border-color: var(--ink); box-shadow: none; }
.actions { background: linear-gradient(to top, var(--bg) 70%, transparent); } .done-ic { background: var(--ink); color: var(--card); }
dialog { border-radius: 36px; } .x { background: var(--card-2); border-radius: 20px; }
pre.json { background: var(--card-2); color: var(--ink-2); }
@media (max-width: 899px) { .shell { padding: 0; gap: 0; } .hero { border-radius: 0 0 36px 36px; } .hero-scene { display: none; } }
