:root {
  --bg: #0E0F12; --bg2: #16181D; --bg3: #1D2026; --fg: #EEEAE2; --mute: #8D8A84; --dim: #5E5C58;
  --acc: #E9B85B; --glow: rgba(233,184,91,.22); --line: rgba(255,255,255,.08); --line2: rgba(255,255,255,.14);
  --glass: rgba(22,24,29,.74); --err: #E5735C;
  --head: "Unbounded", system-ui, sans-serif; --body: "Inter", system-ui, sans-serif;
  --r: 14px; --nav: 64px; --pad: 16px;
  color-scheme: dark;
}
@media (min-width: 900px) { :root { --pad: 32px; } }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--body); -webkit-font-smoothing: antialiased; }
body { min-height: 100svh; display: flex; flex-direction: column; overflow-x: hidden;
  background: radial-gradient(120% 80% at 70% -10%, #1a1d24 0%, var(--bg) 55%) fixed; }
main { flex: 1; outline: none; }
a { color: inherit; }
svg, canvas { display: block; }
h1, h2, h3 { font-family: var(--head); font-weight: 500; letter-spacing: -.01em; margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--acc); color: #14120D;
  border: 0; border-radius: 99px; padding: 12px 20px; min-height: 44px; font-weight: 500; cursor: pointer;
  text-decoration: none; transition: transform .15s, box-shadow .2s; }
.btn:hover { box-shadow: 0 0 0 6px rgba(233,184,91,.14); }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .45; cursor: default; box-shadow: none; }
.btn.ghost { background: transparent; color: var(--fg); border: 1px solid var(--line2); }
.btn.block { width: 100%; }
.eyebrow { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--acc); }
.lbl { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.muted { color: var(--mute); }
.center { text-align: center; }
.err { color: var(--err); font-size: 13px; margin-top: 10px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; height: var(--nav); display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--pad); background: linear-gradient(var(--bg) 45%, rgba(14,15,18,0)); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo svg { width: 28px; height: 28px; }
.logo span { font-family: var(--head); font-weight: 500; letter-spacing: .34em; font-size: 15px; }
.nav .links { display: none; gap: 26px; font-size: 14px; }
.nav .links a { text-decoration: none; color: var(--mute); }
.nav .links a.on, .nav .links a:hover { color: var(--fg); }
.nav .right { display: flex; align-items: center; gap: 8px; }
.lang { background: none; border: 0; color: var(--mute); font-size: 13px; cursor: pointer; padding: 8px; }
.lang b { color: var(--fg); font-weight: 500; }
.cartbtn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line2); border-radius: 99px; padding: 8px 14px;
  background: none; cursor: pointer; font-size: 13px; min-height: 40px; }
.cartbtn i { font-style: normal; background: var(--acc); color: #14120D; border-radius: 99px; padding: 1px 7px; font-size: 11px; min-width: 20px; text-align: center; }
.burger { display: inline-flex; background: none; border: 0; font-size: 24px; line-height: 1; cursor: pointer; padding: 6px; }
.menu { position: fixed; top: var(--nav); left: 0; right: 0; z-index: 19; background: var(--bg2); border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 4px var(--pad) 14px; }
.menu a { padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 17px; }
@media (min-width: 900px) { .nav .links { display: flex; } .burger, .menu { display: none; } }

/* home */
.hero { display: grid; gap: 8px; align-items: center; padding: 4px var(--pad) 24px; max-width: 1200px; margin: 0 auto; width: 100%; }
.hero h1 { font-size: clamp(34px, 8.5vw, 64px); line-height: 1.02; margin: 12px 0 14px; }
.hero p { color: var(--mute); font-size: 15px; line-height: 1.6; max-width: 440px; margin: 0 0 24px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero .viz { position: relative; height: min(86vw, 520px); }
@media (min-width: 900px) { .hero { grid-template-columns: 1.05fr 1fr; min-height: calc(100svh - var(--nav) - 150px); } .hero .viz { height: 540px; } }
@media (pointer: coarse) { .hero .hint { display: none; } }
.halo { position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(circle, var(--glow) 0%, transparent 68%); filter: blur(8px); pointer-events: none; }
.hint { position: absolute; left: 0; right: 0; bottom: 6px; text-align: center; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); pointer-events: none; }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; max-width: 1200px; margin: 0 auto; padding: 0 var(--pad) 40px; width: 100%; scroll-margin-top: var(--nav); }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(5, 1fr); } }
.tile { position: relative; display: block; text-decoration: none; background: rgba(255,255,255,.035); border: 1px solid var(--line);
  border-radius: var(--r); padding: 12px 14px 14px; transition: border-color .2s, transform .2s; color: var(--fg); }
.tile:hover { border-color: rgba(233,184,91,.45); transform: translateY(-2px); }
.tile .pic { height: 110px; display: flex; justify-content: center; align-items: center; }
.tile .pic svg { width: 104px; height: 104px; }
.tile .n { font-family: var(--head); font-size: 14px; margin-top: 6px; }
.tile .m { font-size: 12px; color: var(--mute); margin-top: 3px; }
.tile.soon { opacity: .6; }
.tile.soon .m { color: var(--acc); letter-spacing: .14em; text-transform: uppercase; font-size: 10px; }
.tile.ai { border-color: rgba(233,184,91,.6); box-shadow: inset 0 0 28px var(--glow); }
.tile.ai .m { color: var(--acc); }
.tile .pic.ghost svg { opacity: .3; }
.props { display: grid; gap: 18px; max-width: 1200px; margin: 0 auto; padding: 0 var(--pad) 56px; width: 100%; }
@media (min-width: 900px) { .props { grid-template-columns: repeat(3, 1fr); } }
.prop { border-top: 1px solid var(--line); padding-top: 16px; }
.prop h3 { font-size: 15px; margin-bottom: 6px; }
.prop p { color: var(--mute); font-size: 14px; line-height: 1.55; margin: 0; }

/* 3D */
.viewer { position: absolute; inset: 0; touch-action: none; }
.viewer canvas { width: 100% !important; height: 100% !important; outline: none; }
.busy { position: absolute; top: 14px; right: 14px; z-index: 2; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--acc);
  background: var(--glass); border: 1px solid var(--line); border-radius: 99px; padding: 6px 12px; opacity: 0; transition: opacity .2s; pointer-events: none; }
.busy.on { opacity: 1; }

/* product page: immersive */
.stage { position: relative; height: 56svh; min-height: 320px; }
.stage .title { position: absolute; left: var(--pad); top: 4px; z-index: 2; pointer-events: none; }
.stage .title h1 { font-size: clamp(22px, 5vw, 40px); margin: 4px 0; }
.stage .title .facts { display: none; }
.price { font-family: var(--head); font-size: clamp(17px, 3.4vw, 24px); white-space: nowrap; }
.panel { position: relative; z-index: 3; margin-top: -22px; background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line); border-radius: 22px 22px 0 0; padding: 12px var(--pad) 18px; }
.panel .grab { width: 36px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.2); margin: 0 auto 8px; }
.ctl { margin-top: 12px; }
.ctl .row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; gap: 12px; }
.ctl .val { font-size: 13px; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--mute); margin-top: 14px; }
.buy { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
@media (min-width: 900px) {
  .stage { height: calc(100svh - var(--nav)); }
  .stage .title { left: 40px; top: 20px; }
  .stage .title .facts { display: flex; margin-top: 8px; }
  .panel { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); margin: 0; border-radius: 20px; display: flex; gap: 26px;
    align-items: flex-end; padding: 14px 22px 16px; width: max-content; max-width: calc(100% - 64px); }
  .panel .grab, .panel .facts { display: none; }
  .panel .ctl { margin: 0; min-width: 170px; }
  .panel .buy { margin: 0; }
  body[data-page=product] .stage .viewer { bottom: 110px; }
}
.about { max-width: 760px; margin: 0 auto; padding: 40px var(--pad) 64px; }
.about p { color: var(--mute); line-height: 1.7; }

/* inputs */
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; --p: 50%; }
input[type=range]::-webkit-slider-runnable-track { height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--acc) var(--p), rgba(255,255,255,.14) var(--p)); }
input[type=range]::-moz-range-track { height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--acc) var(--p), rgba(255,255,255,.14) var(--p)); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -8.5px; border-radius: 50%; background: var(--fg); box-shadow: 0 0 0 5px rgba(233,184,91,.25); }
input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border: 0; border-radius: 50%; background: var(--fg); box-shadow: 0 0 0 5px rgba(233,184,91,.25); }
.ticks { display: flex; justify-content: space-between; font-size: 10px; color: var(--mute); }
.sws { display: flex; flex-wrap: wrap; gap: 9px; }
.sw { width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); cursor: pointer; padding: 0; }
.sw.on { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--acc); }
@media (min-width: 900px) { .panel .sw { width: 22px; height: 22px; } }
.seg { display: inline-flex; border: 1px solid var(--line2); border-radius: 99px; padding: 3px; }
.seg button { background: none; border: 0; border-radius: 99px; padding: 7px 14px; cursor: pointer; color: var(--mute); font-size: 13px; }
.seg button.on { background: var(--acc); color: #14120D; }
.field { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.field input, .field textarea, .field select { background: rgba(255,255,255,.05); border: 1px solid var(--line2); border-radius: 12px; padding: 12px 14px; min-height: 46px; outline: none; width: 100%; }
.field input:focus, .field textarea:focus { border-color: var(--acc); }
.opt { display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 1px solid var(--line2); border-radius: 14px; padding: 12px 14px; margin-top: 8px; cursor: pointer; }
.opt.on { border-color: var(--acc); background: rgba(233,184,91,.06); }
.opt input { accent-color: var(--acc); }

/* cart drawer */
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 40; width: min(420px, 100%); background: var(--bg2); border-left: 1px solid var(--line);
  transform: translateX(100%); transition: transform .28s ease; display: flex; flex-direction: column; visibility: hidden; }
.drawer.open { transform: none; visibility: visible; }
.scrim { position: fixed; inset: 0; z-index: 39; background: rgba(0,0,0,.5); }
.drawer header { display: flex; justify-content: space-between; align-items: center; padding: 18px var(--pad); }
.drawer header h2 { font-size: 20px; }
.drawer .items { flex: 1; overflow: auto; padding: 0 var(--pad); }
.drawer footer { padding: 16px var(--pad) calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.line { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.line .th { width: 56px; height: 56px; border-radius: 12px; background: rgba(255,255,255,.04); display: flex; align-items: center; justify-content: center; }
.line .th svg { width: 50px; height: 50px; }
.line .d { font-size: 12px; color: var(--mute); margin-top: 3px; }
.line .q { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.line .q button { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line2); background: none; cursor: pointer; }
.x { background: none; border: 0; color: var(--mute); cursor: pointer; font-size: 20px; padding: 6px; }
.sum { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }

/* pages */
.page { max-width: 1100px; margin: 0 auto; padding: 12px var(--pad) 64px; width: 100%; }
.page.narrow { max-width: 720px; }
.page h1 { font-size: clamp(24px, 5vw, 36px); margin: 10px 0 18px; }
.cols { display: grid; gap: 24px; }
@media (min-width: 900px) { .cols { grid-template-columns: 1.2fr 1fr; align-items: start; } }
.card { background: rgba(255,255,255,.035); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.steps { display: inline-flex; flex-direction: column; gap: 10px; margin-top: 18px; text-align: left; }
.step { display: flex; gap: 10px; align-items: center; color: var(--dim); font-size: 14px; }
.step i { width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.step.done { color: var(--mute); }
.step.now { color: var(--acc); }
.bigmark svg { width: 72px; height: 72px; margin: 28px auto 10px; }
.howgrid { display: grid; gap: 12px; margin-top: 20px; }
@media (min-width: 900px) { .howgrid { grid-template-columns: repeat(4, 1fr); } }
.how .num { font-family: var(--head); font-size: 28px; color: var(--acc); }
.how h3 { font-size: 16px; margin: 10px 0 6px; }
.how .pic svg { width: 120px; height: 120px; margin: 10px auto 0; }
.legal p { line-height: 1.7; color: #cfcac0; }

/* «Ciudad lunar»: the stage alone */
body[data-page=city] .stage { height: calc(100svh - var(--nav)); }
.lunar .title p { max-width: 34ch; margin: 6px 0 0; line-height: 1.6; }

/* chat page: stage + chat */
.studio { display: flex; flex-direction: column; height: calc(100svh - var(--nav)); }
.studio .stage { height: 42svh; min-height: 240px; flex: none; }
.chat { flex: 1; display: flex; flex-direction: column; min-height: 0; background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line); border-radius: 20px 20px 0 0; margin-top: -18px; position: relative; z-index: 3; }
.msgs { flex: 1; overflow: auto; padding: 14px var(--pad) 8px; display: flex; flex-direction: column; gap: 8px; }
.msg { max-width: 88%; font-size: 14px; line-height: 1.55; padding: 10px 14px; border-radius: 16px; overflow-wrap: anywhere; }
.msg.u { align-self: flex-end; background: rgba(233,184,91,.14); border: 1px solid rgba(233,184,91,.28); border-bottom-right-radius: 5px; }
.msg.a { align-self: flex-start; background: rgba(255,255,255,.05); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.msg p { margin: 0 0 8px; }
.who { display: flex; align-items: center; gap: 6px; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--acc); margin-top: 4px; }
.who svg { width: 14px; height: 14px; }
.figmsg { align-self: flex-start; display: flex; gap: 10px; align-items: center; border: 1px solid rgba(233,184,91,.35); border-radius: 14px;
  padding: 6px 12px 6px 6px; font-size: 13px; cursor: pointer; background: rgba(233,184,91,.06); text-align: left; }
.figmsg svg { width: 40px; height: 40px; flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 var(--pad) 8px; }
.chips button { border: 1px solid var(--line2); background: none; border-radius: 99px; padding: 8px 12px; font-size: 13px; cursor: pointer; }
.composer { display: flex; gap: 8px; align-items: flex-end; padding: 8px var(--pad) calc(10px + env(safe-area-inset-bottom)); }
.composer textarea { flex: 1; resize: none; max-height: 140px; background: rgba(255,255,255,.05); border: 1px solid var(--line2); border-radius: 22px;
  padding: 12px 16px; outline: none; line-height: 1.4; min-height: 46px; }
.composer textarea:focus { border-color: var(--acc); }
.composer .send { width: 46px; height: 46px; padding: 0; flex: none; font-size: 18px; }
.dots::after { content: "···"; animation: blink 1s infinite steps(3); letter-spacing: 2px; }
@keyframes blink { 50% { opacity: .3; } }
.stagebar { position: absolute; left: var(--pad); right: var(--pad); bottom: 28px; display: flex; justify-content: space-between; align-items: center; gap: 12px; z-index: 2; }
@media (min-width: 900px) {
  .studio { flex-direction: row; }
  .studio .stage { height: auto; flex: 1; }
  .studio .stage .title { left: 40px; top: 20px; }
  .chat { flex: none; width: 400px; margin: 0; border-radius: 0; border-top: 0; border-left: 1px solid var(--line); }
  .stagebar { left: 40px; right: 40px; }
}

/* footer, toast */
.foot { border-top: 1px solid var(--line); padding: 28px var(--pad) calc(28px + env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap;
  gap: 12px 22px; align-items: center; justify-content: space-between; font-size: 13px; color: var(--mute); }
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--fg); }
.foot .regret { border: 1px solid var(--line2); border-radius: 99px; padding: 8px 14px; color: var(--fg); }
.foot .contact { display: flex; flex-wrap: wrap; gap: 10px 18px; min-width: 0; }
.foot .contact a { overflow-wrap: anywhere; }
body[data-page=figura] .foot { display: none; }
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 50; background: var(--bg3);
  border: 1px solid var(--line2); border-radius: 99px; padding: 10px 18px; font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.4); }

/* admin (owner, Russian) */
.adm table { width: 100%; border-collapse: collapse; font-size: 13px; }
.adm th, .adm td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.adm th { color: var(--mute); font-weight: 500; }
.adm .tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.adm .tabs a { text-decoration: none; border: 1px solid var(--line2); border-radius: 99px; padding: 7px 14px; font-size: 13px; }
.adm .tabs a.on { background: var(--acc); color: #14120D; border-color: var(--acc); }
.adm input, .adm select, .adm textarea { background: rgba(255,255,255,.05); border: 1px solid var(--line2); border-radius: 8px; padding: 6px 8px; min-width: 0; }
.adm .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.adm label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--mute); }
.adm pre { white-space: pre-wrap; font-size: 12px; background: rgba(255,255,255,.03); border-radius: 8px; padding: 10px; margin: 6px 0; }
.adm .scroll { overflow-x: auto; }
.tag { display: inline-block; border-radius: 99px; padding: 2px 9px; font-size: 11px; border: 1px solid var(--line2); }
.tag.paid, .tag.printing { border-color: var(--acc); color: var(--acc); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
