/* Мирано — Liquid Glass. Базовые стили и компоненты. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; background: var(--black); }
body {
  margin: 0; min-height: 100vh; position: relative;
  background: transparent; color: var(--text);
  font-family: var(--font-sans); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 1.5px solid var(--cold); outline-offset: 3px; border-radius: 8px; }
::selection { background: rgba(158, 182, 221, .35); color: #fff; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
p { margin: 0; }

/* ---------- Ambient: «горизонт» + сетка + зерно — чтобы стеклу было что размывать ---------- */
.ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: linear-gradient(180deg, #020203 0%, #05060a 100%); }
.ambient__glow { position: absolute; border-radius: 50%; filter: blur(90px); will-change: transform; }
.ambient__glow--navy { width: 72vmax; height: 52vmax; right: -22vmax; bottom: -26vmax; background: radial-gradient(closest-side, rgba(33, 63, 121, .95), rgba(22, 41, 78, .7) 55%, transparent); animation: drift-a 26s var(--ease-glass) infinite alternate; }
.ambient__glow--steel { width: 56vmax; height: 40vmax; left: -22vmax; bottom: -20vmax; background: radial-gradient(closest-side, rgba(93, 97, 108, .55), transparent); animation: drift-b 32s var(--ease-glass) infinite alternate; }
.ambient__glow--light { width: 34vmax; height: 24vmax; left: 30vw; top: -18vmax; background: radial-gradient(closest-side, rgba(245, 245, 242, .07), transparent); animation: drift-b 40s var(--ease-glass) infinite alternate-reverse; }
.ambient__grid {
  position: absolute; inset: -1px;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 96px 96px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 80%); mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 80%);
}
.ambient__grain { position: absolute; inset: 0; opacity: .05; mix-blend-mode: overlay; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
@keyframes drift-a { to { transform: translate(-8vw, -6vh) scale(1.08); } }
@keyframes drift-b { to { transform: translate(7vw, -4vh) scale(1.1); } }

/* ---------- Типографика ---------- */
.t-display { font-size: clamp(44px, 7.2vw, 104px); line-height: 1.0; font-weight: 500; letter-spacing: -0.035em; margin: 0; }
.t-h1 { font-size: clamp(32px, 4.2vw, 56px); line-height: 1.06; font-weight: 500; letter-spacing: -0.03em; margin: 0; }
.t-h2 { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.18; font-weight: 500; letter-spacing: -0.02em; margin: 0; }
.t-h3 { font-size: 21px; line-height: 1.3; font-weight: 500; letter-spacing: -0.01em; margin: 0; }
.t-body-l { font-size: 18px; line-height: 1.55; }
.t-body-s { font-size: 14px; line-height: 1.45; }
.t-label { font-size: 14px; line-height: 1.4; font-weight: 500; }
.t-caption { font-size: 12px; line-height: 1.35; font-weight: 500; letter-spacing: .01em; }
.t-mono { font-family: var(--font-mono); font-size: 13px; line-height: 1.4; letter-spacing: 0; }
.c-2 { color: var(--text-2); } .c-3 { color: var(--text-3); } .c-cold { color: var(--cold); }
.chrome-text { background: linear-gradient(180deg, #fff 0%, #d4d7db 55%, #8c9197 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Раскладка ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: 24px; }
.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.gap-1 { gap: 4px; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-6 { gap: 24px; } .gap-8 { gap: 32px; }
.grow { flex: 1 1 auto; min-width: 0; }
.between { justify-content: space-between; }
.center { align-items: center; justify-content: center; }
.wrap { flex-wrap: wrap; }

/* ---------- СТЕКЛО ---------- */
.glass, .panel {
  position: relative; isolation: isolate;
  background: var(--glass-fill);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border-radius: var(--r-xl);
  box-shadow: var(--glass-shadow);
}
.glass::before, .panel::before { /* кромка: яркая в углах, как у плашки знака */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 2;
  background: var(--glass-rim);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.glass::after, .panel::after { /* блик, который следует за курсором */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
  background: radial-gradient(520px circle at var(--mx, 18%) var(--my, -10%), rgba(255,255,255,.075), transparent 42%);
  transition: opacity .5s var(--ease-out);
}
.glass > :not(.pixel-canvas), .panel > :not(.pixel-canvas) { position: relative; z-index: 1; }
.glass--deep { background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.015) 45%, rgba(0,0,0,.25)); }
.glass--inset { background: rgba(0, 0, 0, .32); box-shadow: inset 0 1px 3px rgba(0,0,0,.6), inset 0 -1px 0 rgba(255,255,255,.05); }
.glass--inset::before { background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.14)); }
.divider { height: 1px; border: 0; margin: 0; background: linear-gradient(90deg, transparent, var(--line-2), transparent); }

/* плёнка (радужная кромка, как у стекла знака) — только для активного состояния */
.film::before { background: var(--film); animation: film 6s linear infinite; opacity: .9; }
@keyframes film { to { --film-a: 360deg; } }

/* ---------- Pixel shimmer ---------- */
.pixel-canvas { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; z-index: 0; pointer-events: none; opacity: .55; }
.has-pixels { overflow: hidden; }
.has-pixels::after { opacity: 0; }
.has-pixels.is-lit::after { opacity: 1; background: radial-gradient(circle at 50% 50%, rgba(158,182,221,.12), transparent 70%); }

/* ---------- Иконки ---------- */
.i { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.i--sm { width: 16px; height: 16px; }

/* ---------- Бренд ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 500; letter-spacing: -0.02em; }
.logo img { width: 30px; height: 30px; border-radius: 7px; box-shadow: 0 0 0 .5px rgba(255,255,255,.35), 0 6px 20px -6px rgba(158,182,221,.35); }

.mark { position: relative; width: 132px; aspect-ratio: 1; border-radius: 23.5%; isolation: isolate; }
.mark img { width: 100%; height: 100%; border-radius: inherit; }
.mark::after { content: ""; position: absolute; inset: -40%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(158,182,221,.2), transparent 70%); }
.mark__glint { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; mix-blend-mode: screen; }
.mark__glint span { position: absolute; width: 24%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255,254,244,.95), rgba(255,251,234,.3) 35%, transparent 70%); animation: caustic 6s var(--ease-glass) infinite; }
.mark__glint span:nth-child(1) { left: 20%; top: 20%; }
.mark__glint span:nth-child(2) { left: 58%; top: 56%; background: radial-gradient(circle, rgba(242,247,255,.95), rgba(158,182,221,.45) 35%, transparent 70%); animation-name: caustic-2; }
@keyframes caustic { 0%,100% { transform: translate(0,0) scale(1,1); } 30% { transform: translate(40%,30%) scale(1.18,.84); } 60% { transform: translate(18%,50%) scale(.85,1.12); } }
@keyframes caustic-2 { 0%,100% { transform: translate(0,0) scale(1,1); } 30% { transform: translate(-38%,-24%) scale(1.18,.84); } 60% { transform: translate(-16%,0) scale(.85,1.12); } }

/* ---------- Кнопки ---------- */
.btn {
  --h: 42px; position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 18px; border-radius: var(--r-full); border: 0; background: none;
  font-size: 14px; font-weight: 500; white-space: nowrap; letter-spacing: -0.005em;
  transition: transform .2s var(--ease-out), box-shadow .3s var(--ease-out), background .3s, color .2s;
}
.btn:active { transform: scale(.98); }
.btn--l { --h: 54px; padding: 0 26px; font-size: 16px; }
.btn--primary { /* хромированное стекло */
  color: #07080a;
  background: linear-gradient(180deg, #ffffff 0%, #eceae3 45%, #c9cdd2 100%);
  box-shadow: inset 0 1px 0 #fff, inset 0 -1px 1px rgba(0,0,0,.25), 0 0 0 .5px rgba(255,255,255,.6), 0 10px 34px -10px rgba(245,245,242,.45);
}
.btn--primary::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.95) 48%, rgba(158,182,221,.35) 52%, transparent 70%); transform: translateX(-120%); transition: transform .8s var(--ease-out); }
.btn--primary:hover::after { transform: translateX(120%); }
.btn--primary:hover { box-shadow: inset 0 1px 0 #fff, inset 0 -1px 1px rgba(0,0,0,.25), 0 0 0 .5px rgba(255,255,255,.8), 0 14px 44px -8px rgba(245,245,242,.55); }
.btn--glass { color: var(--text); background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.03)); -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), inset 0 0 0 1px rgba(255,255,255,.1), 0 10px 30px -14px rgba(0,0,0,.8); }
.btn--glass:hover { background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.05)); }
.btn--ghost { color: var(--text-2); }
.btn--ghost:hover { color: var(--text); background: rgba(255,255,255,.05); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn .i { transition: transform .25s var(--ease-out); }
.btn:hover .i--arrow { transform: translateX(3px); }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 50%; color: var(--text-2); background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02)); box-shadow: inset 0 1px 0 rgba(255,255,255,.14), inset 0 0 0 1px rgba(255,255,255,.08); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.icon-btn:hover { color: var(--text); }

/* ---------- Поля ---------- */
.field { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.field__label { font-size: 13px; font-weight: 500; color: var(--text-2); letter-spacing: .01em; }
.field__hint { font-size: 12px; color: var(--text-3); }
.field__error { font-size: 12px; font-weight: 500; color: var(--light); display: flex; gap: 6px; align-items: center; }
.field__error::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--light); box-shadow: 0 0 8px var(--light); }
.input, .textarea {
  width: 100%; min-height: 52px; padding: 14px 18px; border: 0; border-radius: var(--r-md);
  background: rgba(0, 0, 0, .34); color: var(--text); font-size: 16px; line-height: 1.5;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.08), inset 0 -1px 0 rgba(255,255,255,.05);
  transition: box-shadow .25s var(--ease-out), background .25s;
}
.textarea { min-height: 128px; resize: vertical; font-size: 17px; }
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input:hover, .textarea:hover { box-shadow: inset 0 1px 2px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.14); }
.input:focus, .textarea:focus { outline: none; background: rgba(0,0,0,.42); box-shadow: inset 0 1px 2px rgba(0,0,0,.6), inset 0 0 0 1px rgba(158,182,221,.65), 0 0 0 4px rgba(158,182,221,.12), 0 0 28px -6px rgba(158,182,221,.35); }
.field.is-invalid .input, .field.is-invalid .textarea { box-shadow: inset 0 1px 2px rgba(0,0,0,.6), inset 0 0 0 1px rgba(245,245,242,.7); }

/* Стеклянная строка поиска (герой) */
.search-pill {
  position: relative; isolation: isolate; display: flex; align-items: center; gap: 12px;
  width: 100%; max-width: 680px; height: 68px; padding: 0 8px 0 24px; border-radius: var(--r-full);
  background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.025));
  -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), inset 0 0 0 1px rgba(255,255,255,.1), 0 30px 80px -30px rgba(0,0,0,.9), 0 0 60px -20px rgba(158,182,221,.25);
  transition: box-shadow .35s var(--ease-out);
}
.search-pill:focus-within { box-shadow: inset 0 1px 0 rgba(255,255,255,.22), inset 0 0 0 1px rgba(158,182,221,.5), 0 0 0 5px rgba(158,182,221,.1), 0 30px 80px -30px rgba(0,0,0,.9), 0 0 80px -16px rgba(158,182,221,.45); }
.search-pill .i { color: var(--text-2); }
.search-pill input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; font-size: 18px; }
.search-pill input:focus { outline: none; }
.search-pill input::placeholder { color: var(--text-3); }
.search-pill .btn { --h: 52px; }

/* Сегменты */
.segmented { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: var(--r-full); background: rgba(0,0,0,.32); box-shadow: inset 0 1px 2px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.07); }
.segmented button, .segmented label { position: relative; border: 0; background: none; padding: 9px 18px; border-radius: var(--r-full); font-size: 14px; font-weight: 500; color: var(--text-2); cursor: pointer; transition: color .2s, background .3s, box-shadow .3s; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented button[aria-pressed="true"], .segmented label:has(input:checked) { color: var(--text); background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.05)); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), inset 0 0 0 1px rgba(255,255,255,.1), 0 4px 14px -6px rgba(0,0,0,.8); }
.segmented label:has(input:focus-visible) { outline: 1.5px solid var(--cold); }
.lang { gap: 2px; padding: 3px; flex-wrap: nowrap; }
.lang button { padding: 5px 11px; font-size: 12px; }

/* Чипы / теги */
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 5px; border-radius: var(--r-full); font-size: 14px; background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02)); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), inset 0 0 0 1px rgba(255,255,255,.07); }
.chip__num { font-family: var(--font-mono); font-size: 12px; padding: 3px 9px; border-radius: var(--r-full); color: var(--ink); background: linear-gradient(180deg, #fff, #c9cdd2); }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px 7px 14px; border-radius: var(--r-full); font-size: 14px; background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.04)); box-shadow: inset 0 1px 0 rgba(255,255,255,.16), inset 0 0 0 1px rgba(255,255,255,.08); }
.tag button { display: grid; place-items: center; border: 0; background: none; padding: 0; color: var(--text-3); }
.tag button:hover { color: var(--text); }
.tag-input { border: 0; background: none; border-radius: var(--r-full); padding: 7px 14px; font-size: 14px; min-width: 170px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.tag-input:focus { outline: none; box-shadow: inset 0 0 0 1px rgba(158,182,221,.6), 0 0 0 4px rgba(158,182,221,.1); }
.mono-box { font-family: var(--font-mono); font-size: 12px; padding: 2px 8px; border-radius: 7px; color: var(--text-2); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }

/* Навигация */
.nav-item { position: relative; display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 14px; border-radius: var(--r-md); color: var(--text-2); font-size: 15px; transition: background .2s, color .2s, box-shadow .2s; }
.nav-item:hover { color: var(--text); background: rgba(255,255,255,.04); }
.nav-item[aria-current="page"] { color: var(--text); background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.04)); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), inset 0 0 0 1px rgba(255,255,255,.07); }
.nav-item__icon { position: relative; display: grid; }
.nav-item__icon[data-badge]::after { content: ""; position: absolute; top: -2px; right: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--light); box-shadow: 0 0 10px rgba(245,245,242,.9); }

/* Шаги мастера */
.step { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 12px; border-radius: var(--r-md); border: 0; background: none; text-align: left; color: var(--text-3); transition: background .25s, color .25s; }
.step__num { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 500; flex: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.step__title { display: block; font-size: 14px; font-weight: 500; }
.step__sub { display: block; font-size: 12px; color: var(--text-3); }
.step.is-current { color: var(--text); background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.03)); box-shadow: inset 0 1px 0 rgba(255,255,255,.14), inset 0 0 0 1px rgba(255,255,255,.06); }
.step.is-current .step__num { color: var(--ink); background: linear-gradient(180deg, #fff, #c9cdd2); box-shadow: 0 0 16px -2px rgba(245,245,242,.6); }
.step.is-done { color: var(--text); cursor: pointer; }
.step.is-done:hover { background: rgba(255,255,255,.04); }
.step.is-done .step__num { color: var(--light); box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }

/* Карточки выбора */
.choices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.choice {
  position: relative; isolation: isolate; display: flex; flex-direction: column; gap: 16px; padding: 18px; border-radius: var(--r-lg); cursor: pointer;
  background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.015)); box-shadow: inset 0 1px 0 rgba(255,255,255,.1), inset 0 0 0 1px rgba(255,255,255,.07);
  transition: transform .3s var(--ease-out), background .3s, box-shadow .3s;
}
.choice:hover { transform: translateY(-2px); background: linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.02)); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice__icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: var(--text-2); background: rgba(0,0,0,.35); box-shadow: inset 0 1px 2px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.08); transition: color .3s, background .3s; }
.choice__title { font-size: 15px; font-weight: 500; }
.choice__desc { font-size: 12px; color: var(--text-3); line-height: 1.4; }
.choice::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; opacity: 0; transition: opacity .4s; background: var(--film); animation: film 6s linear infinite; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.choice:has(input:checked) { background: linear-gradient(160deg, rgba(255,255,255,.14), rgba(158,182,221,.05) 60%, rgba(255,255,255,.04)); box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 20px 50px -24px rgba(158,182,221,.5); }
.choice:has(input:checked)::before { opacity: 1; }
.choice:has(input:checked) .choice__icon { color: var(--ink); background: linear-gradient(180deg, #fff, #c9cdd2); box-shadow: 0 0 20px -4px rgba(245,245,242,.6); }
.choice:has(input:focus-visible) { outline: 1.5px solid var(--cold); outline-offset: 3px; }

/* Загрузка файла */
.upload { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 152px; padding: 24px; text-align: center; border-radius: var(--r-lg); cursor: pointer; background: rgba(0,0,0,.28); box-shadow: inset 0 1px 2px rgba(0,0,0,.6); outline: 1px dashed rgba(255,255,255,.18); outline-offset: -1px; transition: outline-color .25s, background .25s; }
.upload:hover, .upload.is-drag { outline-color: rgba(158,182,221,.7); background: rgba(158,182,221,.05); }
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload__icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.03)); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), inset 0 0 0 1px rgba(255,255,255,.08); }
.upload__preview { display: flex; align-items: center; gap: 12px; }
.upload__preview img { width: 56px; height: 56px; object-fit: contain; border-radius: 12px; background: rgba(0,0,0,.4); }

/* Подсказка */
.callout { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: var(--r-md); font-size: 14px; color: var(--text-2); background: linear-gradient(160deg, rgba(158,182,221,.1), rgba(255,255,255,.02)); box-shadow: inset 0 1px 0 rgba(255,255,255,.1), inset 0 0 0 1px rgba(158,182,221,.14); }
.callout .i { color: var(--cold); margin-top: 1px; }

/* Уровень риска — только свет, без «светофора» */
.risk { --n: 2; display: flex; flex-direction: column; gap: 12px; }
.risk[data-level="low"] { --n: 1; } .risk[data-level="moderate"] { --n: 2; } .risk[data-level="significant"] { --n: 3; } .risk[data-level="high"] { --n: 4; }
.risk__label { font-size: 15px; font-weight: 500; }
.risk__bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.risk__bars i { height: 6px; border-radius: 3px; background: rgba(255,255,255,.08); box-shadow: inset 0 1px 1px rgba(0,0,0,.5); }
.risk__bars i.on { background: linear-gradient(90deg, #fff, #c9cdd2); box-shadow: 0 0 14px rgba(245,245,242,.45); }

/* Карточка класса МКТУ */
.class-card { display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: var(--r-lg); background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.015)); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), inset 0 0 0 1px rgba(255,255,255,.07); }
.class-card__num { font-family: var(--font-mono); font-size: 14px; padding: 4px 10px; border-radius: 9px; color: var(--ink); background: linear-gradient(180deg, #fff, #c9cdd2); }
.class-card__why { display: flex; gap: 8px; padding: 10px 12px; border-radius: 11px; font-size: 12px; color: var(--text-2); background: rgba(0,0,0,.28); }
.class-card__why .i { color: var(--text-3); width: 16px; height: 16px; }
.conf { font-size: 12px; font-weight: 500; color: var(--text-2); }
.conf--high { color: var(--light); }

/* Строка «похожего знака» */
.hits { display: flex; flex-direction: column; gap: 10px; container-type: inline-size; }
.hit { display: grid; grid-template-columns: minmax(0, 1.6fr) auto auto 1fr auto; align-items: center; gap: 16px; padding: 16px 18px; border-radius: var(--r-md); background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.012)); box-shadow: inset 0 1px 0 rgba(255,255,255,.1), inset 0 0 0 1px rgba(255,255,255,.06); }
.hit__classes { display: flex; gap: 6px; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: var(--r-full); font-size: 12px; font-weight: 500; color: var(--text-2); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.status .badge-dot { color: var(--light); box-shadow: 0 0 8px rgba(245,245,242,.8); }
.status[data-s="application"] .badge-dot { color: var(--cold); box-shadow: 0 0 8px rgba(158,182,221,.8); }
.sim { display: flex; gap: 18px; }
.sim__g { display: flex; flex-direction: column; gap: 5px; font-size: 11px; font-weight: 500; color: var(--text-3); }
.dots { display: flex; gap: 3px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.1); }
.dots i.on { background: var(--light); box-shadow: 0 0 6px rgba(245,245,242,.6); }
@container (max-width: 720px) {
  .hit { grid-template-columns: minmax(0, 1fr) auto; row-gap: 12px; }
  .hit > span:empty { display: none; }
  .hit__classes { grid-column: 1; grid-row: 2; }
  .hit .sim { grid-column: 2; grid-row: 2; }
}

/* Таймлайн */
.tl { display: flex; flex-direction: column; }
.tl__item { display: grid; grid-template-columns: 12px 1fr; column-gap: 14px; }
.tl__rail { display: flex; flex-direction: column; align-items: center; gap: 4px; padding-top: 5px; }
.tl__dot { width: 11px; height: 11px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.22); }
.tl__line { width: 1px; flex: 1; min-height: 28px; background: rgba(255,255,255,.1); }
.tl__item:last-child .tl__line { display: none; }
.tl__item.is-done .tl__dot { background: var(--steel-300); box-shadow: none; }
.tl__item.is-done .tl__line { background: linear-gradient(var(--steel-300), rgba(255,255,255,.1)); }
.tl__item.is-current .tl__dot { background: #fff; box-shadow: 0 0 0 4px rgba(245,245,242,.12), 0 0 16px rgba(245,245,242,.8); }
.tl__body { padding-bottom: 16px; }
.tl__item.is-upcoming .tl__title { color: var(--text-3); }

/* ThoughtLine */
.thought { font-size: 16px; color: var(--text); }
.thought__head { display: flex; align-items: center; gap: 10px; width: 100%; padding: 0; border: 0; background: none; text-align: left; color: inherit; }
.thought__head:disabled { cursor: default; }
.thought__glyph { display: grid; color: var(--light); }
.thought__label { font-weight: 500; }
.thought__step { color: var(--text-2); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thought__step.is-in { animation: stepIn .5s var(--ease-out); }
.thought__timer { margin-left: auto; font-family: var(--font-mono); font-size: 12px; color: var(--text-3); }
.thought__chev { display: grid; color: var(--text-3); transition: transform .3s var(--ease-out); margin-left: 6px; }
.thought.is-collapsed .thought__chev { transform: rotate(-90deg); }
.thought__steps { list-style: none; margin: 14px 0 0; padding: 0 0 0 4px; display: grid; gap: 10px; overflow: hidden; transition: opacity .3s; }
.thought.is-collapsed .thought__steps { display: none; }
.thought__steps li { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--text-3); }
.thought__steps li.is-now { color: var(--text); }
.thought__steps li.is-done { color: var(--text-2); }
.thought__dot { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); flex: none; }
.thought__steps li.is-now .thought__dot { box-shadow: inset 0 0 0 1.5px #fff, 0 0 12px rgba(245,245,242,.6); animation: breath var(--breath) var(--ease-glass) infinite; }
.thought__steps li.is-done .thought__dot { color: var(--light); box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
.thought.is-working .thought__label, .thought.is-working .thought__glyph { animation: breath var(--breath) var(--ease-glass) infinite; }
.thought.is-working .thought__label { background: linear-gradient(90deg, var(--text-3) 0%, #fff 45%, var(--text-3) 90%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: breath var(--breath) var(--ease-glass) infinite, sheen calc(var(--breath) * 1.5) linear infinite; }
.thought.is-settled .thought__label { animation: settle var(--settle) var(--ease-out); }
@keyframes breath { 0%, 100% { opacity: 1; } 50% { opacity: var(--breath-min); } }
@keyframes sheen { from { background-position: 120% 0; } to { background-position: -120% 0; } }
@keyframes settle { from { filter: blur(var(--settle-blur)); opacity: .3; } to { filter: blur(0); opacity: 1; } }
@keyframes stepIn { from { filter: blur(3px); opacity: 0; transform: translateY(3px); } }

/* Появление */
.reveal { opacity: 0; transform: translateY(18px); filter: blur(6px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out), filter .9s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; filter: none; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100; padding: 12px 20px; border-radius: var(--r-full); font-size: 14px; background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.05)); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), inset 0 0 0 1px rgba(255,255,255,.1), 0 20px 60px rgba(0,0,0,.6); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
}
.has-pixels > :not(.pixel-canvas) { position: relative; z-index: 1; }

/* Liquid glass (Chromium): преломление кромки через SVG displacement + дисперсия по каналам */
.is-liquid { -webkit-backdrop-filter: var(--lg) blur(2px) saturate(175%) brightness(1.06) !important; backdrop-filter: var(--lg) blur(2px) saturate(175%) brightness(1.06) !important; }
.site-nav__in.is-liquid, .topbar.is-liquid { -webkit-backdrop-filter: var(--lg) blur(14px) saturate(170%) !important; backdrop-filter: var(--lg) blur(14px) saturate(170%) !important; }

/* ===== v3.1: холодный свет и преломление в анимациях ===== */
.ambient__gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: .75; }
.ambient__grain { z-index: 1; }

/* главная кнопка: хроматическая кромка, как у стекла знака */
.btn--primary { box-shadow: inset 0 1px 0 #fff, inset 0 -1px 1px rgba(0,0,0,.25), -1px 0 0 rgba(126,164,236,.55), 1px 0 0 rgba(255,214,190,.35), 0 0 0 .5px rgba(255,255,255,.6), 0 10px 34px -10px rgba(158,182,221,.55); }
.btn--primary:hover { box-shadow: inset 0 1px 0 #fff, inset 0 -1px 1px rgba(0,0,0,.25), -1.5px 0 0 rgba(126,164,236,.8), 1.5px 0 0 rgba(255,214,190,.5), 0 0 0 .5px rgba(255,255,255,.8), 0 14px 44px -8px rgba(158,182,221,.75); }
.btn--glass:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.22), inset 0 0 0 1px rgba(158,182,221,.35), 0 0 24px -6px rgba(158,182,221,.45); }

/* строка обдумывания: блик идёт через холодный свет */
.thought.is-working .thought__label { background: linear-gradient(90deg, var(--text-3) 0%, #9eb6dd 35%, #fff 50%, #9eb6dd 65%, var(--text-3) 100%); background-size: 240% 100%; -webkit-background-clip: text; background-clip: text; }
.thought__glyph { color: var(--cold); filter: drop-shadow(0 0 6px rgba(158,182,221,.7)); }
.thought__steps li.is-now .thought__dot { box-shadow: inset 0 0 0 1.5px var(--cold), 0 0 14px rgba(158,182,221,.8); }
.thought__steps li.is-done .thought__dot { color: var(--cold); }

/* пиксели светятся, а не лежат плоско */
.pixel-canvas { mix-blend-mode: screen; opacity: .7; }
.has-pixels.is-lit::after { opacity: 1; background: radial-gradient(circle at 50% 50%, rgba(91,127,192,.22), transparent 70%); }

/* шаги, прогресс, риск, сходство — холодный свет */
.step.is-current .step__num { box-shadow: 0 0 0 3px rgba(158,182,221,.18), 0 0 18px rgba(158,182,221,.55); }
.step.is-done .step__num { color: var(--cold); box-shadow: inset 0 0 0 1px rgba(158,182,221,.45); }
.risk__bars i.on { background: linear-gradient(90deg, #fff, #9eb6dd); box-shadow: 0 0 14px rgba(158,182,221,.55); }
.dots i.on { background: linear-gradient(135deg, #fff, #9eb6dd); box-shadow: 0 0 6px rgba(158,182,221,.7); }
.tl__item.is-done .tl__dot { background: var(--cold); }
.tl__item.is-done .tl__line { background: linear-gradient(var(--cold), rgba(255,255,255,.08)); }
.chip__num, .class-card__num, .case__thumb, .step-card__icon { background: linear-gradient(160deg, #fff 0%, #dfe7f6 55%, #9eb6dd 100%); }
.field__error::before { background: var(--cold); box-shadow: 0 0 8px var(--cold); }

/* CallChip: прогресс и «омывание» холодным светом с дисперсией */
.callchip__progress { background: linear-gradient(90deg, rgba(91,127,192,.08), rgba(158,182,221,.22)); }
.callchip__progress::after { background: linear-gradient(90deg, transparent, rgba(186,170,236,.25), rgba(158,182,221,.45)); }
.callchip__spin { border-top-color: var(--cold); }
.callchip.is-done { box-shadow: inset 0 1px 0 rgba(255,255,255,.18), inset 0 0 0 1px rgba(158,182,221,.35), 0 0 30px -10px rgba(158,182,221,.6); }

/* ===== карточки выбора — вертикальным списком ===== */
.choices { display: flex; flex-direction: column; gap: 10px; }
.choice { flex-direction: row; align-items: center; gap: 16px; padding: 14px 18px 14px 14px; border-radius: var(--r-lg); }
.choice:hover { transform: translateX(3px); }
.choice > .stack { flex: 1; min-width: 0; }
.choice__desc { font-size: 13px; }
.choice::after { content: ""; position: absolute; right: 18px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.2); transition: box-shadow .3s, background .3s; }
.choice > * { position: relative; }
.choice > .stack { padding-right: 36px; }
.choice:has(input:checked)::after { background: radial-gradient(circle, #fff 0 4px, transparent 5px), linear-gradient(160deg, #9eb6dd, #5b7fc0); box-shadow: 0 0 16px rgba(158,182,221,.7); }
.choice:has(input:checked) { box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 20px 50px -24px rgba(91,127,192,.7); }
.choice:has(input:checked) .choice__icon { background: linear-gradient(160deg, #fff 0%, #dfe7f6 55%, #9eb6dd 100%); box-shadow: 0 0 20px -4px rgba(158,182,221,.8); }
.pane .grid-2 { grid-template-columns: 1fr; }
.thought:not(.is-collapsed) .thought__step { display: none; }
.thought__label { white-space: nowrap; }
/* всё полупрозрачное над фоном тоже матовое — фон со стеклянным знаком виден только размытым */
.case, .class-card, .hit, .choice, .step-card, .callchip, .live-empty, .summary__item, .cab__search, .tier, .report-card {
  -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
}
.case, .hit { background-color: rgba(6,7,10,.4); }
.btn--primary .i, .search-pill .btn--primary .i { color: #07080a; stroke: #07080a; }
