/* =========================================================
   SEGIZSERI · Holodeck
   Голографическая палуба: кольцо модулей, ИИ-навигатор АРИ,
   стеклянные окна с HUD-уголками.
   ========================================================= */

:root {
  --bg: #0a1018;
  --bg-glow: #13263a;
  --glass: rgba(12, 22, 33, .82);
  --cyan: #6fe3ff;
  --cyan-rgb: 111, 227, 255;
  --amber: #ffc58a;
  --amber-rgb: 255, 197, 138;
  --deep: #1d6f8a;
  --text: #e6f1f5;
  --text-2: #b8c9d2;
  --muted: #8fa6b3;
  --dim: #6b7f8a;

  --f-display: "Exo 2", system-ui, sans-serif;
  --f-body: "Golos Text", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;

  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body { font-family: var(--f-body); }

a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--text); }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--cyan); color: var(--bg); }
input::placeholder { color: var(--dim); }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

html.has-cursor,
html.has-cursor * { cursor: none !important; }

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: .5; }
  50% { transform: scale(1.12); opacity: .15; }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Сцена ---------- */

.stage {
  position: fixed;
  inset: 0;
  overflow: hidden;
  overflow: clip; /* clip, а не hidden: переход по #якорю не должен прокручивать сцену */
  background: radial-gradient(ellipse at 50% 120%, var(--bg-glow) 0%, var(--bg) 60%);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.stage__bg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ---------- Кольцо модулей ---------- */

.tilt {
  position: absolute;
  inset: 0;
  perspective: 1400px;
  perspective-origin: 50% 60%;
  will-change: transform;
}
.ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  will-change: transform;
  transition: opacity .6s;
}
.is-open .ring { opacity: .25; }

.panel {
  position: absolute;
  left: -150px;
  top: -190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 300px;
  height: 380px;
  padding: 26px 24px;
  border: 1px solid rgba(var(--cyan-rgb), .3);
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(var(--cyan-rgb), .1), rgba(var(--cyan-rgb), .03) 60%, rgba(var(--amber-rgb), .05));
  box-shadow: inset 0 0 40px rgba(var(--cyan-rgb), .06), 0 30px 60px rgba(0, 0, 0, .35);
  color: var(--text);
  font-family: var(--f-body);
  text-align: left;
  transform: rotateY(calc(var(--i) * 60deg)) translateZ(620px);
  transform-style: preserve-3d;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: border-color .3s, box-shadow .3s;
}
.panel:hover,
.panel:focus-visible {
  border-color: var(--cyan);
  box-shadow: inset 0 0 60px rgba(var(--cyan-rgb), .14), 0 30px 80px rgba(var(--cyan-rgb), .18);
  outline: none;
}
.is-dragging .panel { pointer-events: none; }
.panel__top,
.panel__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 11px;
}
.panel__top { letter-spacing: .18em; color: var(--muted); }
.panel__foot { letter-spacing: .15em; color: var(--cyan); }
.panel__mid { display: flex; flex-direction: column; gap: 12px; }
.panel__title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -.01em;
}
.panel__sub { font-size: 14px; line-height: 1.55; color: var(--text-2); }
.led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

.floor {
  position: absolute;
  top: 150px;
  border-radius: 50%;
  pointer-events: none;
}
.floor--disc {
  left: -520px;
  width: 1040px;
  height: 1040px;
  border: 1px solid rgba(var(--cyan-rgb), .18);
  background: radial-gradient(circle, rgba(var(--cyan-rgb), .08) 0%, rgba(var(--cyan-rgb), .02) 50%, transparent 70%);
  transform: rotateX(90deg) translateZ(-250px);
}
.floor--orbit {
  left: -740px;
  width: 1480px;
  height: 1480px;
  border: 1px dashed rgba(var(--cyan-rgb), .12);
  transform: rotateX(90deg) translateZ(-260px);
  animation: spin 90s linear infinite;
}

/* ---------- АРИ ---------- */

.ari {
  position: absolute;
  left: 50%;
  top: 92px;
  display: flex;
  align-items: center;
  gap: 22px;
  width: max-content;
  max-width: 100%;
  padding: 0 16px;
  translate: -50% 0;
  pointer-events: none;
  transition: opacity .5s;
}
.is-open .ari { opacity: 0; }
.ari__orb {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 96px;
  height: 96px;
}
.ari__pulse {
  position: absolute;
  inset: -20px;
  border: 1px solid rgba(var(--cyan-rgb), .35);
  border-radius: 50%;
  animation: pulse 3s ease-in-out infinite;
}
.ari__pulse--far {
  inset: -42px;
  border-color: rgba(var(--cyan-rgb), .15);
  animation-delay: .8s;
}
.ari__core {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #dff8ff 0%, var(--cyan) 22%, var(--deep) 55%, var(--bg) 100%);
  box-shadow: 0 0 60px rgba(var(--cyan-rgb), .45), inset 0 -20px 40px rgba(0, 0, 0, .4);
}
.ari__eye {
  width: 10px;
  height: 26px;
  border-radius: 8px;
  background: var(--bg);
  transition: height .12s;
}
.is-blink .ari__eye { height: 4px; }
.ari__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  max-width: 560px;
  text-align: left;
}
.ari__h1 {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.05;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.ari__h1 span { color: var(--cyan); }
.ari__name {
  margin-top: 4px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--cyan);
}
.ari__speech {
  min-height: 1.5em;
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  text-wrap: pretty;
}

/* ---------- Шапка ---------- */

.header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 28px;
  pointer-events: none;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  pointer-events: auto;
}
.brand:hover { color: var(--text); }
.brand__logo {
  display: block;
  width: auto;
  height: 42px;
  filter: drop-shadow(0 0 14px rgba(var(--cyan-rgb), .25));
}
.header__tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  pointer-events: auto;
}
.pill {
  padding: 10px 14px;
  border: 1px solid rgba(var(--cyan-rgb), .25);
  border-radius: 100px;
  background: rgba(10, 16, 24, .6);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .15em;
  transition: border-color .25s;
}
.pill:hover { border-color: var(--cyan); }
.pill__text { margin-left: .6em; }
.cta {
  padding: 10px 18px;
  border: none;
  border-radius: 100px;
  background: var(--cyan);
  color: var(--bg);
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 14px;
  transition: background-color .25s;
}
.cta:hover { background: var(--text); }

/* ---------- Нижняя навигация ---------- */

.dock {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
  pointer-events: none;
}
.dock__bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(var(--cyan-rgb), .18);
  border-radius: 100px;
  background: rgba(10, 16, 24, .7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: auto;
}
.dock__arrow {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--cyan);
  font-size: 16px;
  transition: background-color .25s;
}
.dock__arrow:hover { background: rgba(var(--cyan-rgb), .12); }
.dock__dot {
  height: 38px;
  padding: 0 14px;
  border: none;
  border-radius: 100px;
  background: transparent;
  color: var(--muted);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .12em;
  transition: all .25s;
}
.dock__dot:hover { color: var(--text); }
.dock__dot[aria-current="true"] {
  background: rgba(var(--cyan-rgb), .16);
  color: var(--cyan);
}
.dock__hint {
  margin: 0;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .15em;
  color: var(--dim);
  text-align: center;
}
.dock__hint--touch { display: none; }
@media (hover: none) and (pointer: coarse), (max-width: 719px) {
  .dock__hint--mouse { display: none; }
  .dock__hint--touch { display: block; }
}

/* ---------- HUD ---------- */

.hud {
  position: absolute;
  right: 28px;
  top: 50%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  translate: 0 -50%;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .15em;
  color: var(--dim);
  text-align: right;
  pointer-events: none;
  transition: opacity .4s;
}
.hud b { font-weight: 400; color: var(--cyan); font-variant-numeric: tabular-nums; }
.hud .warm { color: var(--amber); }
.is-open .hud { opacity: 0; }

/* ---------- Окно модуля ---------- */

.detail {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  flex-direction: column;
  width: min(960px, calc(100% - 32px));
  max-height: calc(100% - 200px);
  overflow: hidden;
  overflow: clip;
  translate: -50% calc(-50% - 14px);
  border: 1px solid rgba(var(--cyan-rgb), .4);
  border-radius: 26px;
  background: var(--glass);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  box-shadow: 0 0 0 1px rgba(var(--cyan-rgb), .08), 0 40px 120px rgba(0, 0, 0, .6), inset 0 0 80px rgba(var(--cyan-rgb), .05);
  user-select: text;
  -webkit-user-select: text;
  touch-action: auto;
}
.js .detail:not(.is-open) { display: none; }

.corner {
  position: absolute;
  width: 26px;
  height: 26px;
  border: 0 solid var(--cyan);
  pointer-events: none;
}
.corner--tl { top: 12px; left: 12px; border-top-width: 2px; border-left-width: 2px; border-radius: 8px 0 0 0; }
.corner--tr { top: 12px; right: 12px; border-top-width: 2px; border-right-width: 2px; border-radius: 0 8px 0 0; }
.corner--bl { bottom: 12px; left: 12px; border-bottom-width: 2px; border-left-width: 2px; border-radius: 0 0 0 8px; }
.corner--br { bottom: 12px; right: 12px; border-bottom-width: 2px; border-right-width: 2px; border-radius: 0 0 8px 0; }

.detail__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 32px 18px;
  border-bottom: 1px solid rgba(var(--cyan-rgb), .15);
}
.detail__heading { display: flex; flex-direction: column; gap: 6px; }
.detail__kicker {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--cyan);
}
.detail__title {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1;
}
.detail__close {
  flex: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(var(--cyan-rgb), .3);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  font-size: 18px;
  transition: background-color .25s, color .25s;
}
.detail__close:hover { background: var(--cyan); color: var(--bg); }
.detail__body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 28px 32px 32px;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--cyan-rgb), .3) transparent;
}

.js .module:not(.is-active) { display: none; }
.js .module__title { display: none; }
.module__empty { margin: 0; padding: 40px 0; text-align: center; color: var(--muted); }
.step__time,
.plan__kind,
.plan__time { text-transform: uppercase; }

/* Услуги */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.service {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 150px;
  padding: 20px;
  border: 1px solid rgba(var(--cyan-rgb), .18);
  border-radius: 16px;
  background: rgba(var(--cyan-rgb), .04);
  color: var(--text);
  font-family: var(--f-body);
  text-align: left;
  transition: all .25s;
}
.service:hover { border-color: var(--cyan); background: rgba(var(--cyan-rgb), .1); }
.service__row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.service__t { font-family: var(--f-display); font-size: 21px; font-weight: 600; }
.service__d { font-size: 13px; line-height: 1.5; color: var(--text-2); }
.service__p { font-family: var(--f-mono); font-size: 12px; color: var(--amber); white-space: nowrap; }

/* Проекты */
.cases {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 24px;
}
.cases__list { display: flex; flex-direction: column; gap: 6px; }
.case-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border: 1px solid rgba(var(--cyan-rgb), .15);
  border-radius: 14px;
  background: transparent;
  color: var(--text);
  font-family: var(--f-body);
  text-align: left;
  transition: all .2s;
}
.case-tab:hover { border-color: var(--cyan); }
.case-tab[aria-selected="true"] { border-color: var(--cyan); background: rgba(var(--cyan-rgb), .1); }
.case-tab__text { display: flex; flex-direction: column; gap: 3px; }
.case-tab__t { font-family: var(--f-display); font-size: 19px; font-weight: 600; }
.case-tab__k { font-size: 13px; color: var(--muted); }
.case-tab__y { font-family: var(--f-mono); font-size: 12px; color: var(--cyan); }
.cases__view { position: sticky; top: 0; align-self: start; min-width: 0; }
.js .case:not(.is-active) { display: none; }
.case { display: flex; flex-direction: column; gap: 18px; }
.holo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(var(--cyan-rgb), .25);
  border-radius: 18px;
  background: repeating-linear-gradient(0deg, rgba(var(--cyan-rgb), .05) 0 1px, transparent 1px 5px), #0d1a26;
}
.holo img { width: 100%; height: 100%; object-fit: cover; }
.holo__label {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  padding: 6px 10px;
  border: 1px solid rgba(var(--cyan-rgb), .35);
  border-radius: 8px;
  background: rgba(10, 16, 24, .78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .15em;
  color: var(--cyan);
}
.holo__ph {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--dim);
}
.case__t {
  margin: 0;
  font-family: var(--f-display);
  font-size: 30px;
  font-weight: 600;
  line-height: 1;
}
.case__d { margin: 0; font-size: 15px; line-height: 1.65; color: var(--text-2); }
.case__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  padding: 11px 18px;
  border: 1px solid rgba(var(--cyan-rgb), .4);
  border-radius: 100px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .1em;
  transition: background-color .25s, color .25s;
}
.case__link:hover { background: var(--cyan); color: var(--bg); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.chips li {
  padding: 7px 11px;
  border-radius: 8px;
  background: rgba(var(--amber-rgb), .1);
  color: var(--amber);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* Процесс */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.step {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 220px;
  padding: 22px;
  border: 1px solid rgba(var(--cyan-rgb), .18);
  border-radius: 16px;
  background: rgba(var(--cyan-rgb), .04);
}
.step__n {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--cyan);
  border-radius: 50%;
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--cyan);
}
.step__t { margin: 0; font-family: var(--f-display); font-size: 22px; font-weight: 600; }
.step__d { flex: 1; margin: 0; font-size: 14px; line-height: 1.55; color: var(--text-2); }
.step__time { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; color: var(--amber); }

/* Тарифы */
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.plan {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border: 1px solid rgba(var(--cyan-rgb), .18);
  border-radius: 18px;
  background: rgba(var(--cyan-rgb), .03);
}
.plan--hot { border-color: var(--cyan); background: rgba(var(--cyan-rgb), .08); }
.plan__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan__name { margin: 0; font-family: var(--f-display); font-size: 26px; font-weight: 600; }
.plan__kind { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; color: var(--muted); }
.plan__price { margin: 0; font-family: var(--f-display); font-size: 24px; font-weight: 500; color: var(--amber); }
.plan__items { display: flex; flex: 1; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.plan__items li { display: flex; gap: 10px; font-size: 14px; color: var(--text-2); }
.plan__items li::before { content: "◆"; color: var(--cyan); }
.plan__time { font-family: var(--f-mono); font-size: 11px; color: var(--muted); }
.plan__btn {
  padding: 13px;
  border: 1px solid rgba(var(--cyan-rgb), .35);
  border-radius: 100px;
  background: transparent;
  color: var(--text);
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 14px;
  transition: background-color .25s, color .25s;
}
.plan__btn:hover { background: rgba(var(--cyan-rgb), .12); }
.plan--hot .plan__btn { background: var(--cyan); color: var(--bg); }
.plan--hot .plan__btn:hover { background: var(--text); }

/* Архив */
.archive {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 32px;
}
.archive__col { display: flex; flex-direction: column; gap: 10px; }
.archive__label {
  margin: 0;
  padding-bottom: 6px;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .2em;
  color: var(--muted);
}
.archive__label--faq { padding-bottom: 6px; }
.review {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 18px 20px;
  border: 1px solid rgba(var(--cyan-rgb), .15);
  border-radius: 14px;
  background: rgba(var(--cyan-rgb), .03);
}
.review blockquote { margin: 0; font-size: 15px; line-height: 1.6; }
.review figcaption { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; color: var(--muted); }
.faq__item { border-top: 1px solid rgba(var(--cyan-rgb), .15); }
.faq__q {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 16px 0;
  border: none;
  background: none;
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  font-weight: 500;
  text-align: left;
}
.faq__sign { color: var(--cyan); }
.faq__sign::before { content: "+"; }
.faq__item.is-open .faq__sign::before { content: "−"; }
.faq__a { margin: 0; padding: 0 0 16px; font-size: 14px; line-height: 1.65; color: var(--text-2); }
.js .faq__item:not(.is-open) .faq__a { display: none; }

/* Бриф-чат */
.brief {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 640px;
  margin: 0 auto;
}
.brief__log { display: flex; flex-direction: column; gap: 14px; }
.msg { display: flex; align-items: flex-end; gap: 10px; }
.msg--me { justify-content: flex-end; }
.msg__avatar {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #dff8ff, var(--cyan) 30%, var(--deep));
}
.msg__bubble {
  max-width: 80%;
  padding: 13px 16px;
  border: 1px solid rgba(var(--cyan-rgb), .25);
  border-radius: 16px;
  background: rgba(var(--cyan-rgb), .06);
  font-size: 15px;
  line-height: 1.55;
  animation: msgIn .35s var(--ease);
}
.msg--me .msg__bubble { border-color: var(--cyan); background: var(--cyan); color: var(--bg); }
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } }
.brief__typing {
  margin: 0;
  padding-left: 38px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .15em;
  color: var(--cyan);
}
.brief__replies {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 6px;
}
.brief__replies:empty { display: none; }
.reply {
  padding: 11px 16px;
  border: 1px solid rgba(var(--cyan-rgb), .4);
  border-radius: 100px;
  background: rgba(var(--cyan-rgb), .06);
  color: var(--cyan);
  font-family: var(--f-body);
  font-size: 14px;
  transition: background-color .2s, color .2s;
}
.reply:hover { background: var(--cyan); color: var(--bg); }
.brief__ask { display: flex; gap: 8px; }
.brief__input {
  flex: 1;
  min-width: 0;
  padding: 13px 18px;
  border: 1px solid rgba(var(--cyan-rgb), .35);
  border-radius: 100px;
  outline: none;
  background: rgba(10, 16, 24, .6);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 15px;
  transition: border-color .2s;
}
.brief__input:focus { border-color: var(--cyan); }
.brief__input.is-error { border-color: var(--amber); animation: shake .35s; }
@keyframes shake {
  25%, 75% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
}
.brief__send {
  padding: 0 20px;
  border: none;
  border-radius: 100px;
  background: var(--cyan);
  color: var(--bg);
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 14px;
}
.brief__noscript { margin: 0; color: var(--text-2); }

/* ---------- Курсор ---------- */

.cursor__ring,
.cursor__dot {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 9999;
  pointer-events: none;
  will-change: transform;
}
.cursor__ring {
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border: 1px solid rgba(var(--cyan-rgb), .8);
  border-radius: 50%;
  transition: width .25s, height .25s, margin .25s, background-color .25s, border-radius .25s;
}
.cursor.is-hover .cursor__ring {
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  background: rgba(var(--cyan-rgb), .12);
}
.cursor.is-panel .cursor__ring { border-radius: 14px; }
.cursor__dot {
  width: 5px;
  height: 5px;
  margin: -2.5px 0 0 -2.5px;
  border-radius: 50%;
  background: var(--cyan);
}

/* ---------- Адаптив ---------- */

/* Уже 1360px боковые панели кольца доходят до HUD */
@media (max-width: 1360px) {
  .hud { display: none; }
}

/* Мобильная раскладка из макета Holodeck: АРИ сверху, кольцо в центре, модуль выезжает шторкой снизу */
@media (max-width: 719px) {
  .tilt { perspective: 900px; }
  .panel {
    left: -180px;
    top: -100px;
    width: 360px;
    height: 200px;
    padding: 18px;
    transform: rotateY(calc(var(--i) * 60deg)) translateZ(320px);
  }
  .panel__top { font-size: 14px; line-height: 1.2; letter-spacing: .12em; }
  .panel__foot { font-size: 16px; line-height: 1.2; letter-spacing: .1em; }
  .panel__mid { gap: 8px; }
  .panel__title { font-size: 40px; line-height: 1.05; }
  .panel__sub { font-size: 20px; line-height: 1.35; }
  .stage:has(.home-contact .lead-form__optional[open]) .tilt { visibility: hidden; pointer-events: none; }
  .header { flex-wrap: nowrap; gap: 10px; padding: 14px 16px; }
  .header__tools { flex-wrap: nowrap; gap: 8px; }
  .pill { display: none; }
  .brand__logo { height: 36px; }

  .ari {
    top: 76px;
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
  .ari__text { align-items: center; text-align: center; }
  .ari__h1 { font-size: 22px; }
  .ari__speech { min-height: 3em; font-size: 14px; }

  .dock { bottom: calc(20px + env(safe-area-inset-bottom)); gap: 12px; padding: 0 12px; }
  .dock__bar { flex-wrap: nowrap; gap: 2px; padding: 4px; }
  .dock__arrow { display: none; }
  .dock__dot { height: 34px; padding: 0 6px; font-size: 10px; letter-spacing: 0; }

  .detail {
    top: auto;
    bottom: 0;
    width: 100%;
    max-height: calc(100% - 56px);
    translate: -50% 0;
    border-radius: 26px 26px 0 0;
  }
  .detail__head { padding: 18px 18px 14px; }
  .detail__body { padding: 18px 18px calc(32px + env(safe-area-inset-bottom)); }

  .services { grid-template-columns: 1fr; gap: 6px; }
  .service { min-height: 0; gap: 4px; padding: 12px 14px; }
  .service__t { font-size: 17px; }

  .cases { grid-template-columns: 1fr; gap: 18px; }
  .cases__list {
    flex-direction: row;
    margin: 0 -18px;
    padding: 0 18px 4px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 18px;
    scrollbar-width: none;
  }
  .cases__list::-webkit-scrollbar { display: none; }
  .case-tab { flex: none; width: min(240px, 72vw); scroll-snap-align: start; }
  .cases__view { position: static; }
}

/* Невысокие телефоны: сжимаем АРИ, чтобы кольцу осталось место */
@media (max-width: 719px) and (max-height: 720px) {
  .ari { top: 68px; gap: 6px; }
  .ari__orb, .ari__core { width: 64px; height: 64px; }
  .ari__core { gap: 10px; }
  .ari__eye { width: 7px; height: 18px; }
  .ari__pulse { inset: -12px; }
  .ari__pulse--far { inset: -24px; }
  .ari__h1 { font-size: 18px; }
  .ari__speech { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ---------- Без JavaScript: обычная страница со всеми модулями ---------- */

html:not(.js),
html:not(.js) body { overflow: auto; }
html:not(.js) .stage { position: static; min-height: 100vh; padding: 96px 16px 48px; overflow: visible; touch-action: auto; }
html:not(.js) .tilt,
html:not(.js) .ari,
html:not(.js) .dock,
html:not(.js) .hud,
html:not(.js) .header__tools,
html:not(.js) .detail__head,
html:not(.js) .corner { display: none; }
html:not(.js) .detail { position: relative; left: auto; top: auto; translate: none; max-height: none; margin: 0 auto; }
html:not(.js) .module { margin-bottom: 48px; }
html:not(.js) .module__title { margin: 0 0 20px; font-family: var(--f-display); font-weight: 600; font-size: 32px; }
