/* FORMA / XR — сайт и кабинет. Токены из пакета v6 (UI-kit 3.0): графит, голубой акцент, лёгкое стекло. */
:root {
  --bg: #0f1216; --bg2: #151a20; --panel: rgba(32, 38, 47, .62); --panel2: rgba(24, 29, 36, .78);
  --rim: rgba(206, 222, 242, .14); --rim2: rgba(206, 222, 242, .28);
  --text: #f5f7fa; --muted: #a9b4c2; --dim: #6f7a88;
  --accent: #67c5ff; --accent2: #2b8fe0; --success: #75d6a0; --warning: #f2c66d; --error: #ff9b9b;
  --x: #ef6b73; --y: #78cf83; --z: #67c5ff;
  --r: 22px; --r2: 14px; --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; color: var(--text); background: var(--bg);
  font: 16px/1.5 "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  background-image: radial-gradient(1200px 600px at 75% -10%, rgba(103, 197, 255, .10), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(120, 140, 170, .08), transparent 60%);
  background-attachment: fixed;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
svg.i { width: 22px; height: 22px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* верхняя панель */
.nav { position: sticky; top: 0; z-index: 20; padding: 14px 0; backdrop-filter: blur(14px); background: linear-gradient(rgba(15, 18, 22, .86), rgba(15, 18, 22, .6)); border-bottom: 1px solid var(--rim); }
.nav .wrap { display: flex; align-items: center; gap: 8px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .5px; font-size: 19px; color: var(--text); margin-right: 18px; white-space: nowrap; }
.logo:hover { text-decoration: none; }
.logo svg { width: 30px; height: 30px; stroke: var(--accent); }
.logo b { color: var(--accent); font-weight: 800; }
.nav nav { display: flex; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.nav nav a { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; color: var(--muted); white-space: nowrap; border: 1px solid transparent; transition: .18s var(--ease); }
.nav nav a:hover { color: var(--text); background: rgba(255, 255, 255, .04); text-decoration: none; }
.nav nav a.on { color: var(--text); border-color: rgba(103, 197, 255, .55); background: rgba(103, 197, 255, .10); }
.nav .act { display: flex; gap: 8px; align-items: center; }
.lang { display: flex; align-items: center; gap: 6px; color: var(--muted); padding: 8px 12px; border: 1px solid var(--rim); border-radius: 12px; font-size: 14px; }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 20px; border-radius: 14px; border: 1px solid var(--rim2); background: rgba(14, 18, 24, .45); color: var(--text); font-family: inherit; font-weight: 600; font-size: 15px; line-height: 1.2; cursor: pointer; transition: .18s var(--ease); white-space: nowrap; text-decoration: none !important; }
.btn:hover { border-color: rgba(220, 232, 248, .55); background: rgba(120, 140, 165, .18); }
.btn.primary { background: linear-gradient(#5cc6ff, #2b8fe0); border-color: rgba(190, 232, 255, .8); color: #04121f; box-shadow: 0 6px 26px rgba(70, 175, 255, .28); }
.btn.primary:hover { filter: brightness(1.07); }
.btn.big { padding: 16px 26px; font-size: 17px; border-radius: 16px; }
.btn.sm { padding: 8px 14px; font-size: 14px; border-radius: 11px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; filter: none; }
.btn.ghost { border-color: transparent; background: none; color: var(--accent); }

/* стеклянные карточки: лёгкая плёнка, тонкая кромка */
.card { position: relative; background: linear-gradient(160deg, rgba(64, 76, 94, .38), rgba(26, 31, 39, .62)); border: 1px solid var(--rim); border-radius: var(--r); padding: 26px; backdrop-filter: blur(10px); overflow: hidden; }
.card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(rgba(255, 255, 255, .07), transparent 90px); }
.card.hi { border-color: rgba(103, 197, 255, .5); box-shadow: 0 0 0 1px rgba(103, 197, 255, .15), 0 20px 60px rgba(30, 120, 200, .15); }
.ic { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: rgba(14, 18, 24, .5); border: 1px solid var(--rim2); color: var(--accent); flex: none; }
.ic svg.i { width: 28px; height: 28px; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 4px 10px; border-radius: 9px; border: 1px solid var(--rim2); color: var(--muted); background: rgba(14, 18, 24, .4); }
.tag.blue { color: var(--accent); border-color: rgba(103, 197, 255, .5); }
.tag.green { color: var(--success); border-color: rgba(117, 214, 160, .45); background: rgba(117, 214, 160, .08); }
.tag.warn { color: var(--warning); border-color: rgba(242, 198, 109, .45); background: rgba(242, 198, 109, .08); }
.note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: 14px; border: 1px solid rgba(242, 198, 109, .4); background: rgba(242, 198, 109, .07); color: #f7d58e; font-size: 15px; }
.note.blue { border-color: rgba(103, 197, 255, .4); background: rgba(103, 197, 255, .07); color: #a9dcff; }
.note.green { border-color: rgba(117, 214, 160, .4); background: rgba(117, 214, 160, .07); color: #a6e8c3; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(40px, 6vw, 76px); line-height: 1.02; font-weight: 800; }
h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.1; font-weight: 800; }
h3 { font-size: 21px; font-weight: 700; }
.lead { font-size: clamp(18px, 1.6vw, 22px); color: var(--muted); }
section { padding: 56px 0; }
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.feat { display: flex; gap: 18px; align-items: flex-start; }
.feat p { margin: 6px 0 0; color: var(--muted); }
ul.list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
ul.list li { display: flex; gap: 12px; align-items: center; color: #dfe6ef; }
ul.list li svg { color: var(--muted); }
hr.sep { border: 0; border-top: 1px solid var(--rim); margin: 22px 0; }
footer { border-top: 1px solid var(--rim); padding: 26px 0 40px; color: var(--dim); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* главная */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 30px; align-items: center; padding: 60px 0 30px; }
.hero p.lead { margin: 22px 0 32px; }
.stage3d { position: relative; aspect-ratio: 1.15; border-radius: 28px; overflow: hidden; border: 1px solid var(--rim); background: radial-gradient(70% 60% at 50% 55%, #222a35, #0d1014); }
.stage3d canvas { width: 100% !important; height: 100% !important; display: block; }
.stage3d .menu { position: absolute; left: 18px; top: 18px; width: 200px; padding: 10px; border-radius: 20px; background: linear-gradient(160deg, rgba(78, 90, 108, .42), rgba(30, 36, 46, .6)); border: 1px solid rgba(225, 238, 255, .32); backdrop-filter: blur(6px); }
.stage3d .menu div { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 12px; font-size: 14px; color: #dfe6ef; }
.stage3d .menu div.on { background: linear-gradient(#45b2f5, #1f7fd1); color: #fff; box-shadow: 0 0 18px rgba(70, 175, 255, .45); }
.stage3d .dimtag { position: absolute; right: 22px; top: 44%; padding: 8px 14px; border-radius: 12px; border: 1px solid var(--rim2); background: rgba(14, 18, 24, .7); font-weight: 700; }
.stage3d .axes { position: absolute; left: 18px; bottom: 16px; display: flex; gap: 10px; font-weight: 700; font-size: 13px; line-height: 1; }
.stage3d .axes span { padding: 5px 8px; border-radius: 8px; background: rgba(14, 18, 24, .6); border: 1px solid var(--rim); }
.step { display: inline-grid; place-items: center; min-width: 40px; height: 30px; padding: 0 10px; border-radius: 9px; border: 1px solid rgba(103, 197, 255, .55); color: var(--accent); font-weight: 700; font-size: 14px; }
.cta { display: flex; align-items: center; gap: 24px; justify-content: space-between; flex-wrap: wrap; }

/* тарифы */
.price { font-size: 54px; font-weight: 800; letter-spacing: -.02em; }
.price small { font-size: 22px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan { display: flex; flex-direction: column; gap: 18px; }
.plan .btn { margin-top: auto; }

/* формы */
label.f { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--muted); }
input.f, select.f { font-family: inherit; font-size: 16px; color: var(--text); background: rgba(10, 13, 18, .55); border: 1px solid var(--rim2); border-radius: 13px; padding: 13px 15px; outline: none; transition: .18s var(--ease); width: 100%; }
input.f:focus, select.f:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(103, 197, 255, .18); }
input.f[disabled] { opacity: .5; }
.seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: 14px; border: 1px solid var(--rim); background: rgba(10, 13, 18, .45); }
.seg button { font-family: inherit; font-weight: 600; font-size: 15px; color: var(--muted); background: none; border: 0; padding: 9px 18px; border-radius: 10px; cursor: pointer; }
.seg button.on { color: #fff; background: linear-gradient(#45b2f5, #1f7fd1); }
.code { font: 700 28px/1 ui-monospace, "SF Mono", monospace; letter-spacing: .16em; white-space: nowrap; text-align: center; padding: 18px; border-radius: 16px; border: 1px solid rgba(103, 197, 255, .55); background: rgba(10, 13, 18, .5); }
.switch { width: 46px; height: 26px; border-radius: 13px; background: rgba(120, 132, 150, .35); position: relative; flex: none; cursor: pointer; border: 1px solid var(--rim); }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #cfd6df; transition: .18s var(--ease); }
.switch.on { background: linear-gradient(90deg, #2b8fe0, #5cc6ff); }
.switch.on::after { left: 23px; background: #fff; }
.opt { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 13px; border: 1px solid var(--rim); background: rgba(10, 13, 18, .35); }
.opt .sp { flex: 1; }

/* кабинет */
.app { display: grid; grid-template-columns: 250px 1fr 330px; gap: 20px; padding: 28px 0 50px; align-items: start; }
.side { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 8px; }
.side a { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-radius: 14px; color: #dfe6ef; border: 1px solid var(--rim); background: rgba(14, 18, 24, .35); }
.side a:hover { text-decoration: none; border-color: var(--rim2); }
.side a.on { border-color: rgba(103, 197, 255, .6); background: rgba(103, 197, 255, .12); color: #fff; }
.proj { padding: 0; }
.proj .thumb { aspect-ratio: 1.35; display: grid; place-items: center; background: radial-gradient(60% 60% at 50% 45%, #2a323d, #151a20); border-bottom: 1px solid var(--rim); color: var(--muted); }
.proj .thumb svg.i { width: 64px; height: 64px; stroke-width: 1.2; }
.proj .meta { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }

/* первый запуск в шлеме */
.vr { position: relative; border-radius: 28px; overflow: hidden; padding: 60px 30px 40px; border: 1px solid var(--rim); background: radial-gradient(60% 40% at 50% 0%, rgba(255, 255, 255, .10), transparent 70%), linear-gradient(#1a2029, #0c0f13); }
.vr .ring { position: absolute; left: 10%; right: 10%; top: -60px; height: 120px; border-radius: 50%; border: 2px solid rgba(230, 240, 255, .5); box-shadow: 0 0 40px rgba(200, 225, 255, .35); }
.vr .welcome { max-width: 720px; margin: 0 auto; text-align: center; }

.hidden { display: none !important; }
.fade { animation: fade .18s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (max-width: 1080px) {
  .app { grid-template-columns: 1fr; }
  .side { position: static; flex-direction: row; overflow-x: auto; }
  .side a { white-space: nowrap; }
}
@media (max-width: 900px) {
  .nav .wrap { flex-wrap: wrap; }
  .nav nav { order: 3; flex-basis: 100%; margin-top: 8px; }
  .logo { flex: 1; }
  .hero { grid-template-columns: 1fr; }
  .g3, .g4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .nav .act .lang, .nav .act .btn:not(.primary) { display: none; }
  /* D-190: на телефоне три пункта меню помещаются в строку — без значков и с меньшими отступами */
  .nav nav { gap: 4px; justify-content: space-between; }
  .nav nav a { padding-left: 8px; padding-right: 8px; }
  .nav nav a svg { display: none; }
  .card { padding: 20px; }
  .price { font-size: 44px; }
}
