/* ==== 00-tokens.css ==== */
/* =====================================================================
   Win to Win — дизайн-система v3 «Liquid Glass»
   Onest · Bright Turquoise #0ABCF3 · Shark #232325 · Concrete #F3F3F3 · Green #07E7B7
   Две темы: светлая (по умолчанию) и тёмная — html[data-theme="dark"].
   Все цвета компонентов берутся ТОЛЬКО из этих токенов.
   ===================================================================== */

:root {
  color-scheme: light;

  /* ---- brand constants (одинаковые в обеих темах) ---- */
  --brand: #0abcf3;
  --brand-deep: #0797c4;
  --brand-ink: #0a6f93;          /* текст-ссылки бирюзой на светлом фоне (AA) */
  --brand-rgb: 10, 188, 243;
  --green: #07e7b7;
  --green-deep: #05b58f;
  --green-rgb: 7, 231, 183;
  --shark: #232325;
  --concrete: #f3f3f3;
  --danger: #e5484d;
  --warn: #ffb020;
  --on-brand: #232325;           /* текст на бирюзе — всегда чернильный */
  --on-brand-2: #143a47;

  /* ---- surfaces ---- */
  --bg: #f2f3f5;                 /* фон страницы */
  --bg-elev: #ffffff;            /* карточки */
  --bg-elev-2: #f7f8fa;          /* вложенные плашки */
  --bg-sunk: rgba(120, 120, 128, 0.1);  /* поля ввода, треки */
  --ink: #232325;                /* основной текст */
  --ink-soft: #3a3a3e;
  --label-2: #616166;            /* вторичный текст, ≥ 4.5:1 на --bg */
  --label-3: #6c6c70;            /* третичный текст, ≥ 4.5:1 на --bg и на белом */
  --sep: rgba(60, 60, 67, 0.13);
  --fill: rgba(120, 120, 128, 0.12);
  --fill-2: rgba(120, 120, 128, 0.2);
  --ink-fill: #232325;           /* заливка основной кнопки */
  --on-ink: #ffffff;             /* текст на основной кнопке */
  --link: var(--brand-ink);

  /* ---- liquid glass ---- */
  --g-fill: rgba(255, 255, 255, 0.5);          /* обычное стекло */
  --g-fill-thin: rgba(255, 255, 255, 0.26);    /* прозрачное стекло контролов */
  --g-fill-thick: rgba(250, 251, 253, 0.78);   /* шторки, меню */
  --g-rim: rgba(255, 255, 255, 0.95);          /* светлая кромка сверху */
  --g-rim-lo: rgba(255, 255, 255, 0.28);       /* кромка снизу */
  --g-edge: rgba(20, 40, 60, 0.07);            /* тонкая внешняя обводка */
  --g-spec: rgba(255, 255, 255, 0.55);         /* блик */
  --g-shadow: 0 1px 1px rgba(16, 40, 60, 0.04), 0 10px 30px -10px rgba(16, 40, 60, 0.22), 0 2px 6px -2px rgba(16, 40, 60, 0.08);
  --g-shadow-lift: 0 2px 2px rgba(16, 40, 60, 0.04), 0 26px 60px -18px rgba(16, 40, 60, 0.32), 0 6px 14px -6px rgba(16, 40, 60, 0.12);
  --g-blur: 22px;
  --g-sat: 190%;

  /* ---- ambient backdrop (цветные «ауры» за стеклом) ---- */
  --amb-1: rgba(10, 188, 243, 0.34);
  --amb-2: rgba(7, 231, 183, 0.26);
  --amb-3: rgba(120, 190, 255, 0.3);

  /* ---- always-dark scenes (Company Brain, CTA) ---- */
  --night: #0b0b0d;
  --night-2: #161618;
  --night-3: #1f1f22;
  --night-label-2: rgba(235, 235, 245, 0.66);
  --night-sep: rgba(255, 255, 255, 0.1);

  /* ---- shape ---- */
  --r-xl: 40px;
  --r-lg: 28px;
  --r-md: 22px;
  --r-sm: 14px;
  --r-xs: 10px;
  --r-pill: 999px;

  /* ---- elevation for opaque cards ---- */
  --shadow-1: 0 1px 2px rgba(20, 20, 30, 0.04), 0 8px 24px rgba(20, 20, 30, 0.06);
  --shadow-2: 0 2px 6px rgba(20, 20, 30, 0.05), 0 24px 60px rgba(20, 20, 30, 0.12);
  --shadow-3: 0 30px 80px rgba(12, 40, 60, 0.22), 0 8px 24px rgba(12, 40, 60, 0.12);

  /* ---- motion ---- */
  --spring: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 160ms;
  --t-mid: 320ms;
  --t-slow: 560ms;

  /* ---- layout ---- */
  --gutter: clamp(16px, 5vw, 56px);
  --max: 1240px;
  --sp-section: clamp(88px, 12vw, 168px);
  --header-h: 64px;

  /* ---- legacy aliases (старые шаблоны) ---- */
  --bg-2: var(--bg-elev);
  --bg-3: var(--bg-elev-2);
  --ink-2: var(--ink-soft);
  --ink-3: var(--label-2);
  --ink-4: var(--label-3);
  --line: var(--sep);
  --ground: var(--bg);
  --ground-2: var(--bg-elev-2);
  --paper: var(--bg-elev);
  --r-panel: var(--r-lg);
  --r-input: var(--r-sm);
  --glass: var(--g-fill);
  --glass-strong: var(--g-fill-thick);
  --glass-edge: var(--g-rim);
}

/* ---------- Dark theme ---------- */
:root[data-theme="dark"] {
  color-scheme: dark;

  --bg: #08090b;
  --bg-elev: #131418;
  --bg-elev-2: #1a1b20;
  --bg-sunk: rgba(125, 128, 140, 0.16);
  --ink: #f2f3f5;
  --ink-soft: #d4d6db;
  --label-2: #a3a7af;
  --label-3: #83878f;
  --sep: rgba(255, 255, 255, 0.09);
  --fill: rgba(125, 128, 140, 0.18);
  --fill-2: rgba(125, 128, 140, 0.28);
  --ink-fill: #f2f3f5;
  --on-ink: #0b0b0d;
  --link: #5fd2f7;
  --brand-ink: #5fd2f7;

  --g-fill: rgba(30, 32, 38, 0.46);
  --g-fill-thin: rgba(40, 42, 50, 0.3);
  --g-fill-thick: rgba(22, 23, 28, 0.8);
  --g-rim: rgba(255, 255, 255, 0.26);
  --g-rim-lo: rgba(255, 255, 255, 0.06);
  --g-edge: rgba(255, 255, 255, 0.06);
  --g-spec: rgba(255, 255, 255, 0.16);
  --g-shadow: 0 1px 1px rgba(0, 0, 0, 0.3), 0 14px 36px -12px rgba(0, 0, 0, 0.7), 0 2px 6px -2px rgba(0, 0, 0, 0.4);
  --g-shadow-lift: 0 2px 2px rgba(0, 0, 0, 0.3), 0 30px 70px -20px rgba(0, 0, 0, 0.85), 0 8px 18px -8px rgba(0, 0, 0, 0.5);
  --g-sat: 170%;

  --amb-1: rgba(10, 188, 243, 0.26);
  --amb-2: rgba(7, 231, 183, 0.16);
  --amb-3: rgba(70, 110, 255, 0.16);

  --night: #030405;
  --night-2: #0f1013;
  --night-3: #17181c;

  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-2: 0 2px 6px rgba(0, 0, 0, 0.45), 0 24px 60px rgba(0, 0, 0, 0.55);
  --shadow-3: 0 30px 80px rgba(0, 0, 0, 0.7), 0 8px 24px rgba(0, 0, 0, 0.5);
}

/* ==== 01-base.css ==== */
/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px; line-height: 1.5; font-weight: 400;
  font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; overflow-x: clip;
  transition: background-color 0.5s var(--ease-out), color 0.5s var(--ease-out);
}
img, svg, video, canvas { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
::selection { background: rgba(var(--brand-rgb), 0.3); }
:focus-visible { outline: 3px solid rgba(var(--brand-rgb), 0.6); outline-offset: 3px; border-radius: 8px; }
.i { width: 20px; height: 20px; flex: none; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--ink-fill); color: var(--on-ink); padding: 10px 16px; border-radius: var(--r-pill); text-decoration: none; }
.skip:focus { top: 12px; }
main { display: block; outline: none; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
html { scrollbar-color: rgba(120, 120, 128, 0.45) transparent; scrollbar-width: thin; }
body.no-scroll { overflow: hidden; }

/* ---------- Typography ---------- */
h1, h2, h3 { overflow-wrap: break-word; }
.display { font-size: clamp(44px, 6.4vw, 92px); font-weight: 800; line-height: 0.96; letter-spacing: -0.05em; }
.h1 { font-size: clamp(40px, 5.8vw, 80px); font-weight: 800; line-height: 1; letter-spacing: -0.045em; }
.h2 { font-size: clamp(34px, 4.4vw, 62px); font-weight: 800; line-height: 1.03; letter-spacing: -0.04em; }
.h2-sm { font-size: clamp(30px, 3.4vw, 48px); }
.h3 { font-size: clamp(20px, 1.7vw, 24px); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
h3 { font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; color: var(--label-2); }
.lead { font-size: clamp(18px, 1.55vw, 22px); line-height: 1.45; color: var(--label-2); font-weight: 500; letter-spacing: -0.01em; max-width: 60ch; }
.lead-on-dark { font-size: clamp(18px, 1.55vw, 22px); line-height: 1.45; color: var(--night-label-2); font-weight: 500; margin-top: 18px; max-width: 52ch; }
.small { font-size: 14px; }
.muted { color: var(--label-2); }
.num { font-size: clamp(40px, 4.8vw, 64px); font-weight: 800; letter-spacing: -0.045em; line-height: 1; }
.grad-text { --grad: linear-gradient(100deg, var(--brand-deep) 0%, var(--brand) 45%, var(--green) 100%); background-image: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
:root[data-theme="dark"] .grad-text, .night .grad-text, .is-dark .grad-text { --grad: linear-gradient(100deg, #36cdfb 0%, var(--brand) 40%, var(--green) 100%); }
.is-split .grad-text { background-image: none; }
.is-split .grad-text .w { background-image: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.prose p + p { margin-top: 14px; }
.prose p { color: var(--ink-soft); }
.prose b { color: var(--ink); }
.prose h2, .prose h3 { margin: 32px 0 10px; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }
.center { text-align: center; }
.center .lead, .center.lead { margin-inline: auto; }

/* ---------- Layout ---------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2 * var(--gutter), 980px); margin-inline: auto; }
.section { padding-block: var(--sp-section); position: relative; }
.section-tight { padding-block: clamp(56px, 8vw, 96px); }
.is-paper { background: var(--bg-elev); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head .lead { margin-top: 16px; }
.sec-head > .btn, .sec-head > .link-arrow { flex: none; margin-bottom: 6px; }
.sec-head.center { flex-direction: column; align-items: center; text-align: center; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.split-eq { grid-template-columns: 1fr 1fr; }
.split > .split-sticky { position: sticky; top: 110px; }
.split-sticky .lead { margin-top: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 960px) {
  .split, .split-eq { grid-template-columns: 1fr; }
  .split > .split-sticky { position: static; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sec-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ==== 02-materials.css ==== */
/* =====================================================================
   Materials: Liquid Glass
   .lg            — основное стекло (карточки, виджеты)
   .lg-thin       — прозрачное стекло контролов (кнопки, чипы, панели инструментов)
   .lg-thick      — плотное стекло (шторки, меню, модалки)
   .lg-tint       — тонированное стекло (--tint: r, g, b)
   .lg-dark       — тёмное стекло на тёмных сценах (в любой теме)
   .lg-rim        — усиленная светящаяся кромка (::before, масочное кольцо)
   .lg-lift       — подъём и тень при наведении
   [data-lg-refract] — преломление фона (Chromium, модуль liquid-glass.js)
   Блик следует за курсором: JS пишет --mx / --my (в %) на наведённый элемент.
   ===================================================================== */

:root {
  --g-rim-side: rgba(255, 255, 255, 0.55);
  --g-glow: rgba(255, 255, 255, 0.55);
  --g-rims:
    inset 0 1px 0 0 var(--g-rim),
    inset 1px 0 0 0 var(--g-rim-side),
    inset 0 -1px 0 0 var(--g-rim-lo),
    inset -1px 0 0 0 var(--g-rim-lo),
    inset 0 0 24px -10px var(--g-glow);
}
:root[data-theme="dark"] {
  --g-rim-side: rgba(255, 255, 255, 0.12);
  --g-glow: rgba(255, 255, 255, 0.14);
}

:where(.lg, .glass, .lg-dark, .glass-dark) { position: relative; }

.lg, .glass {
  --lg-fill: var(--g-fill);
  --lg-blur: var(--g-blur);
  background-color: var(--lg-fill);
  background-image:
    radial-gradient(130% 90% at var(--mx, 18%) var(--my, -12%), var(--g-spec), rgba(255, 255, 255, 0) 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 36%);
  -webkit-backdrop-filter: blur(var(--lg-blur)) saturate(var(--g-sat)) brightness(1.02);
  backdrop-filter: blur(var(--lg-blur)) saturate(var(--g-sat)) brightness(1.02);
  box-shadow: var(--g-shadow), var(--g-rims), 0 0 0 0.5px var(--g-edge);
}
.lg-thin { --lg-fill: var(--g-fill-thin); --lg-blur: 14px; }
.lg-thick { --lg-fill: var(--g-fill-thick); --lg-blur: 36px; }
.lg-tint { --lg-fill: rgba(var(--tint, var(--brand-rgb)), 0.2); }
:root[data-theme="dark"] .lg-tint { --lg-fill: rgba(var(--tint, var(--brand-rgb)), 0.16); }

/* always-dark glass (scenes on --night) */
.lg-dark, .glass-dark {
  background-color: rgba(30, 32, 38, 0.5);
  background-image:
    radial-gradient(130% 90% at var(--mx, 18%) var(--my, -12%), rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0) 36%);
  -webkit-backdrop-filter: blur(26px) saturate(170%);
  backdrop-filter: blur(26px) saturate(170%);
  box-shadow:
    0 20px 60px -20px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.22),
    inset 1px 0 0 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 0 rgba(255, 255, 255, 0.04),
    inset 0 0 24px -10px rgba(255, 255, 255, 0.14),
    0 0 0 0.5px rgba(255, 255, 255, 0.06);
  color: #fff;
}

/* gradient rim ring — for hero elements */
.lg-rim::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.2px; pointer-events: none; z-index: 3;
  background: conic-gradient(from var(--rim-a, 210deg),
    rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.15) 18%, rgba(255, 255, 255, 0) 30%,
    rgba(var(--brand-rgb), 0.35) 45%, rgba(255, 255, 255, 0.05) 58%, rgba(255, 255, 255, 0.7) 72%,
    rgba(var(--green-rgb), 0.35) 86%, rgba(255, 255, 255, 0.95));
  -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);
  opacity: 0.9;
}
:root[data-theme="dark"] .lg-rim::before { opacity: 0.55; }

.lg-lift { transition: translate var(--t-mid) var(--ease-out), box-shadow var(--t-mid) ease, background-color var(--t-mid) ease; }
@media (hover: hover) {
  .lg-lift:hover { translate: 0 -5px; box-shadow: var(--g-shadow-lift), var(--g-rims), 0 0 0 0.5px var(--g-edge); }
}

/* legacy opaque card */
.card { background: var(--bg-elev); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }

/* ---------- Ambient backdrop (what the glass refracts) ---------- */
.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.aurora i { position: absolute; border-radius: 50%; width: 70vmax; height: 70vmax; will-change: transform; }
.aurora i:nth-child(1) { left: -22vmax; top: -30vmax; background: radial-gradient(circle at center, var(--amb-1), rgba(10, 188, 243, 0) 62%); animation: drift-a 26s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { right: -26vmax; top: -12vmax; background: radial-gradient(circle at center, var(--amb-2), rgba(7, 231, 183, 0) 60%); animation: drift-b 32s ease-in-out infinite alternate; }
.aurora i:nth-child(3) { left: 18vmax; top: 30vmax; background: radial-gradient(circle at center, var(--amb-3), rgba(125, 214, 255, 0) 60%); animation: drift-c 38s ease-in-out infinite alternate; }
.aurora.is-night i:nth-child(1) { background: radial-gradient(circle, rgba(10, 188, 243, 0.3), rgba(10, 188, 243, 0) 60%); }
.aurora.is-night i:nth-child(2) { background: radial-gradient(circle, rgba(7, 231, 183, 0.18), rgba(7, 231, 183, 0) 60%); }
.aurora.is-night i:nth-child(3) { background: radial-gradient(circle, rgba(60, 90, 255, 0.14), rgba(60, 90, 255, 0) 60%); }
@keyframes drift-a { to { transform: translate3d(12vmax, 8vmax, 0) scale(1.1); } }
@keyframes drift-b { to { transform: translate3d(-10vmax, 12vmax, 0) scale(0.92); } }
@keyframes drift-c { to { transform: translate3d(-8vmax, -10vmax, 0) scale(1.12); } }

/* faint film grain — kills banding under heavy blur */
.grain::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1; opacity: 0.05; mix-blend-mode: overlay; border-radius: inherit;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- App icons: layered glass squircles ---------- */
.app-icon {
  --s: 56px; --ic-glow: var(--brand-rgb);
  width: var(--s); height: var(--s); border-radius: calc(var(--s) * 0.28);
  display: grid; place-items: center; color: #fff; flex: none; position: relative; isolation: isolate;
  box-shadow:
    0 1px 1px rgba(0, 0, 0, 0.06),
    0 calc(var(--s) * 0.16) calc(var(--s) * 0.36) calc(var(--s) * -0.14) rgba(var(--ic-glow), 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -2px 5px rgba(0, 0, 0, 0.14);
}
.app-icon::before {
  content: ""; position: absolute; inset: 1px; border-radius: inherit; pointer-events: none; z-index: 0;
  background:
    radial-gradient(120% 70% at 30% 0%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 50%);
}
.app-icon::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 2;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.12) 38%, rgba(255, 255, 255, 0) 60%, rgba(255, 255, 255, 0.4));
  -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);
}
.app-icon svg { width: 52%; height: 52%; position: relative; z-index: 1; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.22)) drop-shadow(0 3px 6px rgba(0, 0, 0, 0.14)); }
.app-icon.sm { --s: 32px; }
.app-icon.md { --s: 44px; }
.app-icon.lg { --s: 76px; }
.app-icon.xl { --s: 96px; }
.ic-1 { background: linear-gradient(145deg, #4fd8ff, #0797c4); --ic-glow: 10, 188, 243; }
.ic-2 { background: linear-gradient(145deg, #4ff4d0, #05b58f); --ic-glow: 7, 231, 183; }
.ic-3 { background: linear-gradient(145deg, #55555c, #1b1b1e); --ic-glow: 30, 30, 36; }
.ic-4 { background: linear-gradient(145deg, #8ee0ff, #1aa7dd); --ic-glow: 26, 167, 221; }
.ic-5 { background: linear-gradient(145deg, #0abcf3, #07e7b7); --ic-glow: 8, 210, 215; }
.ic-6 { background: linear-gradient(145deg, #6a7883, #2c3338); --ic-glow: 44, 51, 56; }
.ic-7 { background: linear-gradient(145deg, #2de8c6, #0a8fbf); --ic-glow: 10, 160, 190; }
.ic-8 { background: linear-gradient(145deg, #6acfff, #1f6fe0); --ic-glow: 31, 111, 224; }
.ic-w { background: linear-gradient(145deg, #34343a, #0f0f11); color: var(--brand); --ic-glow: 10, 188, 243; }
.ic-w svg { width: 48%; height: 60%; }
/* clear glass icon: frosted tile with a coloured glyph */
.app-icon.is-glass {
  color: var(--ic-color, var(--brand-deep));
  background: rgba(255, 255, 255, 0.34);
  -webkit-backdrop-filter: blur(12px) saturate(180%); backdrop-filter: blur(12px) saturate(180%);
  box-shadow: 0 8px 20px -10px rgba(var(--ic-glow), 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 0 14px -6px rgba(255, 255, 255, 0.8);
}
:root[data-theme="dark"] .app-icon.is-glass { background: rgba(255, 255, 255, 0.08); color: var(--ic-color, #5fd2f7); box-shadow: 0 8px 20px -10px rgba(var(--ic-glow), 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.25), inset 0 0 14px -6px rgba(255, 255, 255, 0.18); }

/* ---------- Night scenes ---------- */
.night { background: var(--night); color: #fff; overflow: hidden; position: relative; }
.night .lead { color: var(--night-label-2); }
.night .muted { color: var(--night-label-2); }
.night a:not(.btn) { color: inherit; }

/* ---------- Reduced transparency / no backdrop-filter ---------- */
@media (prefers-reduced-transparency: reduce) {
  .lg, .glass, .lg-thin, .lg-thick, .lg-tint { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background-color: var(--bg-elev) !important; background-image: none !important; }
  .lg-dark, .glass-dark { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background-color: var(--night-3) !important; }
  .app-icon.is-glass { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg-elev); }
  .grain::after { display: none; }
}
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .lg, .glass { background-color: var(--g-fill-thick); }
  .lg-dark, .glass-dark { background-color: var(--night-3); }
}

/* ==== 03-controls.css ==== */
/* ---------- Buttons & links ---------- */
.btn {
  --h: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; position: relative; isolation: isolate;
  height: var(--h); padding: 0 24px; border-radius: var(--r-pill); font-weight: 600; font-size: 16px; letter-spacing: -0.01em;
  text-decoration: none; white-space: nowrap; border: 0; background: var(--ink-fill); color: var(--on-ink);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08), 0 8px 20px -10px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.18), inset 0 -1px 0 rgba(0, 0, 0, 0.2);
  transition: transform var(--t-fast) var(--ease-out), background-color var(--t-mid) ease, color var(--t-mid) ease, box-shadow var(--t-mid) ease;
  -webkit-tap-highlight-color: transparent; user-select: none; overflow: hidden;
}
.btn::after { /* glossy capsule highlight */
  content: ""; position: absolute; inset: 0 0 50% 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0)); opacity: 0.9;
}
@media (hover: hover) { .btn:hover { box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08), 0 14px 30px -12px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 -1px 0 rgba(0, 0, 0, 0.2); } }
.btn:active { transform: scale(0.96); }
.btn .i { width: 18px; height: 18px; }
.btn-primary { background: var(--ink-fill); color: var(--on-ink); }
.btn-brand { background: var(--brand); color: var(--on-brand); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06), 0 10px 26px -10px rgba(var(--brand-rgb), 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 -1px 0 rgba(0, 0, 0, 0.12); }
.btn-brand:hover { background: #29c7f7; }
.btn-outline, .btn-ghost, .btn-glass {
  background: var(--g-fill-thin); color: var(--ink);
  -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%);
  box-shadow: var(--g-rims), 0 0 0 0.5px var(--g-edge), 0 6px 18px -10px rgba(0, 0, 0, 0.25);
}
.btn-outline::after, .btn-ghost::after, .btn-glass::after { background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0)); }
:root[data-theme="dark"] .btn-outline::after, :root[data-theme="dark"] .btn-ghost::after, :root[data-theme="dark"] .btn-glass::after { background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)); }
@media (hover: hover) { .btn-outline:hover, .btn-ghost:hover, .btn-glass:hover { background: var(--g-fill); box-shadow: var(--g-rims), 0 0 0 0.5px var(--g-edge), 0 12px 26px -12px rgba(0, 0, 0, 0.3); } }
.btn-on-brand { background: var(--shark); color: #fff; }
.btn-on-dark { background: #fff; color: var(--shark); }
.btn-on-dark:hover { background: var(--green); color: var(--shark); }
.night .btn-outline, .night .btn-ghost, .night .btn-glass { background: rgba(255, 255, 255, 0.08); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.night .btn-primary, .night .btn:not(.btn-outline):not(.btn-ghost):not(.btn-glass):not(.btn-brand) { background: #fff; color: var(--shark); }
.btn-sm { --h: 38px; padding: 0 16px; font-size: 14.5px; }
.btn-lg { --h: 58px; padding: 0 30px; font-size: 17px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; color: var(--link); }
.link-arrow .i { width: 18px; height: 18px; transition: transform var(--t-fast) var(--ease-out); }
.link-arrow:hover .i { transform: translateX(3px); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.center .hero-cta, .hero-cta.center { justify-content: center; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); position: relative; transition: background-color var(--t-fast) ease, transform var(--t-fast) var(--ease-out), color var(--t-fast) ease; }
.icon-btn:hover { background: var(--fill); }
.icon-btn:active { transform: scale(0.9); }

/* ---------- Chips, tags, pills ---------- */
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 9px 16px; border-radius: var(--r-pill); background: var(--fill); color: var(--ink); font-size: 15px; font-weight: 500; line-height: 1.2;
  transition: background-color var(--t-mid) var(--ease-out), color var(--t-mid) ease, transform var(--t-fast) var(--ease-out), box-shadow var(--t-mid) ease;
}
.chip:hover { background: var(--fill-2); }
.chip:active { transform: scale(0.95); }
.chip.is-on, .chip[aria-checked="true"], .chip[aria-pressed="true"], .chip[aria-selected="true"] { background: var(--ink-fill); color: var(--on-ink); box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.18); }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--r-pill); background: var(--fill); font-size: 13px; font-weight: 500; color: var(--ink-soft); }
.tag-dashed { background: transparent; box-shadow: inset 0 0 0 1px var(--fill-2); color: var(--label-2); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: var(--r-pill); font-size: 14.5px; font-weight: 600; }
.dot-live { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(var(--green-rgb), 0.6); animation: pulse 2.2s ease-out infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(var(--green-rgb), 0.6); } 70% { box-shadow: 0 0 0 10px rgba(var(--green-rgb), 0); } 100% { box-shadow: 0 0 0 0 rgba(var(--green-rgb), 0); } }
.todo { border-radius: var(--r-md); padding: 14px 18px; font-size: 14.5px; color: var(--label-2); background: repeating-linear-gradient(135deg, rgba(120, 120, 128, 0.07) 0 10px, rgba(120, 120, 128, 0.02) 10px 20px); box-shadow: inset 0 0 0 1px var(--fill-2); }
.todo::before { content: "На уточнении"; display: inline-block; margin-right: 8px; padding: 2px 9px; border-radius: var(--r-pill); background: var(--ink-fill); color: var(--on-ink); font-size: 12px; font-weight: 600; }
:lang(uz) .todo::before { content: "Aniqlanmoqda"; }
:lang(en) .todo::before { content: "To be confirmed"; }
.night .todo { color: var(--night-label-2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); }
.night .todo::before { background: #fff; color: var(--shark); }

/* ---------- iOS controls ---------- */
.switch { position: relative; width: 52px; height: 32px; border-radius: 999px; background: var(--fill-2); flex: none; transition: background-color 0.3s ease; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 28px; height: 28px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15), 0 1px 1px rgba(0, 0, 0, 0.16); transition: transform 0.36s var(--spring), width 0.2s ease; }
[aria-checked="true"] > .switch { background: var(--green-deep); }
[aria-checked="true"] > .switch::after { transform: translateX(20px); }
.segmented { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 3px; border-radius: 12px; background: var(--fill); isolation: isolate; }
.segmented button { position: relative; z-index: 1; padding: 8px 10px; border-radius: 9px; font-size: 14.5px; font-weight: 500; line-height: 1.25; color: var(--ink); transition: color var(--t-fast) ease; }
.segmented button[aria-checked="true"], .segmented button[aria-selected="true"] { font-weight: 700; }
.segmented .seg-thumb { position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 3px; border-radius: 9px; background: var(--bg-elev); box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12), 0 3px 1px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.6); transition: transform 0.42s var(--spring), width 0.42s var(--spring); }
:root[data-theme="dark"] .segmented .seg-thumb { background: #3a3b42; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12); }
input[type="range"].ios-range, .rng input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 30px; background: transparent; cursor: pointer; --fill: 50%; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--brand) var(--fill), var(--fill-2) var(--fill)); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 6px; background: var(--fill-2); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--brand); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 28px; height: 28px; margin-top: -11px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18), 0 0 0 0.5px rgba(0, 0, 0, 0.06); transition: transform var(--t-fast) var(--ease-out); }
input[type="range"]::-moz-range-thumb { width: 28px; height: 28px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.1); }
input[type="range"]:focus-visible { outline: 3px solid rgba(var(--brand-rgb), 0.5); outline-offset: 2px; border-radius: 12px; }
.stepper { display: inline-flex; align-items: center; background: var(--fill); border-radius: 10px; overflow: hidden; }
.stepper button { width: 44px; height: 34px; display: grid; place-items: center; transition: background-color var(--t-fast) ease; }
.stepper button:hover { background: var(--fill); }
.stepper button:active { background: var(--fill-2); }
.stepper button[disabled] { opacity: 0.35; cursor: default; }
.stepper button .i { width: 16px; height: 16px; }
.stepper output { min-width: 86px; text-align: center; font-weight: 700; font-size: 14.5px; color: var(--ink) !important; box-shadow: inset 1px 0 0 var(--sep), inset -1px 0 0 var(--sep); line-height: 34px; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 12px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--label-2); padding-left: 4px; }
.field > span em { font-style: normal; color: var(--danger); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; background: var(--bg-sunk); border: 1px solid transparent; border-radius: var(--r-sm); font-size: 16px; color: var(--ink);
  transition: border-color var(--t-fast) ease, box-shadow var(--t-fast) ease, background-color var(--t-fast) ease; -webkit-appearance: none; appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238e8e93' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 42px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background-color: var(--bg-elev); border-color: var(--brand); box-shadow: 0 0 0 4px rgba(var(--brand-rgb), 0.16); }
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: var(--label-3); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(229, 72, 77, 0.14); }
.form-note { font-size: 13px; color: var(--label-2); text-align: center; }
.form-error { font-size: 14px; color: var(--danger); font-weight: 600; }
.form .btn { margin-top: 6px; }
.form.is-sending .btn { opacity: 0.7; pointer-events: none; }
.form-on-dark .field > span { color: var(--night-label-2); }
.form-on-dark .field input, .form-on-dark .field textarea, .form-on-dark .field select { background: rgba(255, 255, 255, 0.08); color: #fff; }
.form-on-dark .field input:focus, .form-on-dark .field textarea:focus { background: rgba(255, 255, 255, 0.12); border-color: var(--green); box-shadow: 0 0 0 4px rgba(var(--green-rgb), 0.2); }
.form-on-dark .field input::placeholder, .form-on-dark .field textarea::placeholder { color: rgba(255, 255, 255, 0.4); }
.form-on-dark .form-error { color: #ff9a9d; }

/* ==== 04-header.css ==== */
/* =====================================================================
   Header: floating Liquid Glass capsule with mega menus,
   language / theme / sound controls and a mobile sheet
   ===================================================================== */
:root { --hd-fill: rgba(255, 255, 255, 0.58); --hd-ink: var(--ink); }
:root[data-theme="dark"] { --hd-fill: rgba(20, 21, 26, 0.58); }

.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--hd-ink, var(--ink)); font-weight: 800; font-size: 17px; letter-spacing: -0.03em; flex: none; border-radius: 12px; }
.logo-mark { width: 22px; height: 28px; color: var(--brand); filter: drop-shadow(0 2px 6px rgba(var(--brand-rgb), 0.45)); transition: transform var(--t-mid) var(--spring); }
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.08); }

.hd { position: fixed; top: 0; left: 0; right: 0; z-index: 90; padding: 10px 12px 0; pointer-events: none; }
html:active-view-transition .hd { view-transition-name: site-header; }
.hd-bar {
  pointer-events: auto; position: relative; isolation: isolate; margin-inline: auto; width: min(100%, 1320px); height: 60px;
  display: flex; align-items: center; gap: 6px; padding: 0 8px 0 18px; border-radius: 22px; color: var(--hd-ink);
  transition: height var(--t-slow) var(--spring), color var(--t-mid) ease;
}
/* the glass lives on a pseudo-element, so the bar itself is not a backdrop root
   and the mega panels inside it can blur the page behind them */
.hd-bar::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background-color: var(--hd-fill);
  background-image:
    radial-gradient(90% 180% at var(--mx, 22%) var(--my, -60%), var(--g-spec), rgba(255, 255, 255, 0) 52%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 62%);
  -webkit-backdrop-filter: blur(22px) saturate(210%) brightness(1.04);
  backdrop-filter: var(--hd-refract, ) blur(22px) saturate(210%) brightness(1.04);
  box-shadow: var(--g-shadow), var(--g-rims), 0 0 0 0.5px var(--g-edge);
  transition: background-color var(--t-slow) ease, box-shadow var(--t-mid) ease;
}
.hd-bar::after { /* moving light sweep along the rim */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--rim-a, 200deg), rgba(255, 255, 255, 0) 0deg, rgba(255, 255, 255, 0.9) 40deg, rgba(255, 255, 255, 0) 90deg, rgba(255, 255, 255, 0) 200deg, rgba(var(--brand-rgb), 0.55) 240deg, rgba(255, 255, 255, 0) 290deg);
  -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);
  opacity: 0.8;
}
:root[data-theme="dark"] .hd-bar::after { opacity: 0.45; }
.hd.is-compact .hd-bar { height: 54px; }
.hd.is-compact .hd-bar::before { box-shadow: var(--g-shadow-lift), var(--g-rims), 0 0 0 0.5px var(--g-edge); }
.hd.on-dark { --hd-ink: #fff; }
.hd.on-dark .hd-bar { --hd-fill: rgba(24, 26, 32, 0.52); --g-spec: rgba(255, 255, 255, 0.14); --g-rim: rgba(255, 255, 255, 0.28); --g-rim-lo: rgba(255, 255, 255, 0.06); --g-rim-side: rgba(255, 255, 255, 0.1); --g-glow: rgba(255, 255, 255, 0.12); --g-edge: rgba(255, 255, 255, 0.08); }
.hd.on-dark .hd-link, .hd.on-dark .hd-tool { color: #fff; }
.hd.on-dark .hd-link:hover, .hd.on-dark .hd-tool:hover, .hd.on-dark .hd-item.is-open > .hd-link { background: rgba(255, 255, 255, 0.12); }

/* ---- nav ---- */
.hd-nav { flex: 1; display: flex; justify-content: center; min-width: 0; }
.hd-menu { display: flex; align-items: center; gap: 2px; position: relative; }
.hd-item { position: static; }
.hd-link {
  display: inline-flex; align-items: center; gap: 3px; height: 40px; padding: 0 13px; border-radius: 13px; position: relative;
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em; color: var(--hd-ink); text-decoration: none; white-space: nowrap;
  transition: background-color var(--t-fast) ease, color var(--t-fast) ease;
}
.hd-link:hover, .hd-item.is-open > .hd-link { background: var(--fill); }
.hd-link[aria-current="page"]::after, .hd-link[data-current]::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 8px rgba(var(--brand-rgb), 0.9); }
.hd-chev { width: 14px; height: 14px; transform: rotate(90deg); opacity: 0.55; transition: transform var(--t-mid) var(--spring), opacity var(--t-fast) ease; }
.hd-item.is-open .hd-chev { transform: rotate(-90deg); opacity: 1; }

/* ---- mega panels ---- */
.mega {
  position: absolute; top: calc(100% + 10px); left: 50%; width: min(860px, calc(100vw - 24px)); translate: -50% 0;
  visibility: hidden; pointer-events: none; transition: visibility 0s linear 0.25s;
}
.mega-in, .lang-pop-in { opacity: 0; transform: translateY(-10px) scale(0.97); transform-origin: 50% 0; transition: opacity 0.2s ease, transform 0.4s var(--spring); }
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.hd-item.is-open .mega, .hd-lang.is-open .lang-pop { visibility: visible; pointer-events: auto; transition: visibility 0s; }
.hd-item.is-open .mega-in, .hd-lang.is-open .lang-pop-in { opacity: 1; transform: none; transition: opacity 0.2s ease, transform 0.5s var(--spring); }
.mega-in, .lang-pop-in {
  border-radius: 26px; color: var(--ink);
  background-color: var(--g-fill-thick);
  background-image: radial-gradient(120% 80% at 20% -10%, var(--g-spec), rgba(255, 255, 255, 0) 55%);
  -webkit-backdrop-filter: blur(40px) saturate(200%); backdrop-filter: blur(40px) saturate(200%);
  box-shadow: var(--g-shadow-lift), var(--g-rims), 0 0 0 0.5px var(--g-edge);
}
.mega-in { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 10px; padding: 10px; }
.mega-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; align-content: start; }
.mega-link { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 18px; text-decoration: none; color: var(--ink); transition: background-color var(--t-fast) ease, transform var(--t-fast) var(--ease-out); }
.mega-link:hover, .mega-link:focus-visible { background: var(--fill); }
.mega-link:active { transform: scale(0.98); }
.mega-link[aria-current="page"] { background: rgba(var(--brand-rgb), 0.1); }
.mega-txt b { display: block; font-size: 15px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
.mega-txt small { display: block; font-size: 13px; color: var(--label-2); line-height: 1.35; margin-top: 3px; }
.mega .app-icon { transition: transform var(--t-mid) var(--spring); }
.mega-link:hover .app-icon { transform: scale(1.08) rotate(-4deg); }
.mega-promo {
  position: relative; overflow: hidden; isolation: isolate; border-radius: 20px; padding: 20px; min-height: 230px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; color: #fff; text-decoration: none; background: #07080a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.mega-promo b { font-size: 19px; letter-spacing: -0.02em; position: relative; }
.mega-promo > span:not(.mega-promo-art) { font-size: 13.5px; color: rgba(235, 235, 245, 0.72); line-height: 1.4; position: relative; }
.mega-promo .link-arrow { color: #7fe0ff; font-size: 14px; margin-top: 6px; }
.mega-promo-art { position: absolute; inset: 0; z-index: -1; }
.mega-promo-art i { position: absolute; border-radius: 50%; filter: blur(22px); animation: mp-float 9s ease-in-out infinite alternate; }
.mega-promo-art i:nth-child(1) { width: 170px; height: 170px; left: -40px; top: -60px; background: rgba(var(--brand-rgb), 0.75); }
.mega-promo-art i:nth-child(2) { width: 150px; height: 150px; right: -50px; top: 10px; background: rgba(var(--green-rgb), 0.5); animation-delay: -3s; }
.mega-promo-art i:nth-child(3) { width: 120px; height: 120px; left: 60px; top: 70px; background: rgba(90, 120, 255, 0.45); animation-delay: -6s; }
.mp-services .mega-promo-art i:nth-child(1) { background: rgba(80, 120, 255, 0.7); }
.mp-company .mega-promo-art i:nth-child(2) { background: rgba(var(--green-rgb), 0.7); }
.mega-promo-art svg { position: absolute; right: 16px; top: 16px; width: 44px; height: 54px; color: #fff; opacity: 0.9; filter: drop-shadow(0 4px 14px rgba(var(--brand-rgb), 0.8)); }
.mega-promo-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 8, 10, 0) 30%, rgba(7, 8, 10, 0.78) 100%); }
@keyframes mp-float { to { transform: translate3d(24px, 18px, 0) scale(1.15); } }

/* ---- tools ---- */
.hd-tools { display: flex; align-items: center; gap: 2px; margin-left: auto; flex: none; }
.hd-tool {
  height: 40px; min-width: 40px; padding: 0; border-radius: 13px; display: inline-grid; place-items: center; color: var(--hd-ink); position: relative;
  transition: background-color var(--t-fast) ease, transform var(--t-fast) var(--ease-out), color var(--t-fast) ease;
}
.hd-tool:hover { background: var(--fill); }
.hd-tool:active { transform: scale(0.9); }
.hd-tool .i { width: 20px; height: 20px; }
.hd-cta { margin-left: 8px; }
.hd-lang { position: relative; }
.hd-lang-btn { display: inline-flex; align-items: center; gap: 5px; padding: 0 10px; font-weight: 700; font-size: 13.5px; letter-spacing: 0.02em; }
.hd-lang-btn .i { width: 18px; height: 18px; opacity: 0.8; }
.lang-pop { position: absolute; top: calc(100% + 14px); right: -6px; width: 220px; visibility: hidden; pointer-events: none; transition: visibility 0s linear 0.25s; z-index: 2; }
.lang-pop-in { transform-origin: 80% 0; }
.lang-pop-in { padding: 6px; display: grid; gap: 2px; }
.lang-pop a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 14px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px; transition: background-color var(--t-fast) ease; }
.lang-pop a:hover, .lang-pop a:focus-visible { background: var(--fill); }
.lang-code { width: 32px; height: 24px; border-radius: 7px; display: grid; place-items: center; font-size: 11.5px; font-weight: 800; letter-spacing: 0.04em; background: var(--fill); color: var(--label-2); }
.lang-pop a .i { margin-left: auto; width: 18px; height: 18px; color: var(--brand); opacity: 0; }
.lang-pop a[aria-current="true"] .i { opacity: 1; }
.lang-pop a[aria-current="true"] .lang-code { background: var(--brand); color: var(--on-brand); }

/* theme icon: sun ⇄ moon morph */
.th-ico { overflow: visible; }
.th-core { r: 4.6px; transition: r 0.55s var(--spring); }
.th-bite { cx: 26px; cy: 2px; r: 6.4px; transition: cx 0.55s var(--spring), cy 0.55s var(--spring); }
.th-rays { transform-origin: 12px 12px; transition: transform 0.55s var(--spring), opacity 0.3s ease; }
:root[data-theme="dark"] .th-core { r: 7.4px; }
:root[data-theme="dark"] .th-bite { cx: 16.8px; cy: 7.2px; }
:root[data-theme="dark"] .th-rays { transform: rotate(60deg) scale(0.3); opacity: 0; }

/* sound icon: iOS speaker with live waves */
.snd-ico path { transition: opacity 0.3s ease, transform 0.4s var(--spring); transform-box: fill-box; transform-origin: 0% 50%; }
.hd-sound[aria-pressed="false"] .snd-w1, .hd-sound[aria-pressed="false"] .snd-w2 { opacity: 0; transform: scale(0.4); }
.hd-sound[aria-pressed="true"] .snd-x { opacity: 0; transform: scale(0.3); }
.hd-sound[aria-pressed="false"] { color: var(--label-2); }
.hd.on-dark .hd-sound[aria-pressed="false"] { color: rgba(255, 255, 255, 0.6); }
.hd-sound[aria-pressed="true"] .snd-w1 { animation: snd-wave 1.4s ease-in-out infinite; }
.hd-sound[aria-pressed="true"] .snd-w2 { animation: snd-wave 1.4s ease-in-out 0.2s infinite; }
.hd-sound[aria-pressed="true"]::after { content: ""; position: absolute; right: 7px; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px rgba(var(--green-rgb), 0.9); }
@keyframes snd-wave { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* burger → close */
.hd-burger { display: none; }
.hd-burger span { position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.45s var(--spring), top 0.45s var(--spring); }
.hd-burger span:nth-child(1) { top: 15px; }
.hd-burger span:nth-child(2) { top: 23px; }
.hd.menu-open .hd-burger span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.hd.menu-open .hd-burger span:nth-child(2) { top: 19px; transform: rotate(-45deg); }

/* ---- mobile sheet ---- */
.mnav { position: fixed; inset: 0; z-index: -1; padding: 82px 12px 12px; pointer-events: none; visibility: hidden; transition: visibility 0s linear 0.35s; }
.hd.menu-open .mnav { visibility: visible; pointer-events: auto; transition: visibility 0s; }
.mnav-scrim { position: absolute; inset: 0; background: rgba(8, 10, 14, 0.22); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; transition: opacity 0.3s ease; }
.hd.menu-open .mnav-scrim { opacity: 1; }
.mnav-in {
  position: relative; max-width: 560px; margin: 0 auto; max-height: 100%; overflow: auto; overscroll-behavior: contain; border-radius: 28px; padding: 10px 10px 16px;
  background-color: var(--g-fill-thick);
  background-image: radial-gradient(120% 60% at 20% -10%, var(--g-spec), rgba(255, 255, 255, 0) 55%);
  -webkit-backdrop-filter: blur(40px) saturate(200%); backdrop-filter: blur(40px) saturate(200%);
  box-shadow: var(--g-shadow-lift), var(--g-rims), 0 0 0 0.5px var(--g-edge);
  opacity: 0; transform: translateY(-14px) scale(0.97); transform-origin: 50% 0; transition: transform 0.5s var(--spring), opacity 0.25s ease;
}
.hd.menu-open .mnav-in { transform: none; opacity: 1; }
.mnav-nav { display: grid; }
.mnav-link, .mnav-group summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 14px; border-radius: 16px; font-size: 19px; font-weight: 700; letter-spacing: -0.02em; text-decoration: none; color: var(--ink); cursor: pointer; list-style: none; }
.mnav-group summary::-webkit-details-marker { display: none; }
.mnav-link:hover, .mnav-group summary:hover { background: var(--fill); }
.mnav-link .i { width: 18px; height: 18px; color: var(--label-3); }
.mnav-group summary .i { width: 18px; height: 18px; color: var(--label-3); transform: rotate(90deg); transition: transform var(--t-mid) var(--spring); }
.mnav-group[open] summary .i { transform: rotate(-90deg); }
.mnav-link[aria-current="page"] { color: var(--brand-ink); }
.mnav-sub { display: grid; gap: 2px; padding: 0 4px 8px; }
.mnav-sub a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 14px; text-decoration: none; color: var(--ink); font-size: 16px; font-weight: 600; }
.mnav-sub a:hover, .mnav-sub a[aria-current="page"] { background: var(--fill); }
.mnav-prefs { display: grid; gap: 8px; margin: 10px 4px 14px; padding: 12px; border-radius: 20px; background: var(--fill); }
.mnav-lang { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 3px; border-radius: 13px; background: var(--fill); }
.mnav-lang a { text-align: center; padding: 8px 0; border-radius: 10px; font-weight: 700; font-size: 14px; text-decoration: none; color: var(--ink-soft); }
.mnav-lang a[aria-current="true"] { background: var(--bg-elev); color: var(--ink); box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12); }
.mnav-pref { display: flex; align-items: center; gap: 12px; padding: 8px 6px; font-size: 16px; font-weight: 600; color: var(--ink); text-align: left; }
.mnav-pref .i { width: 20px; height: 20px; color: var(--label-2); }
.mnav-pref > span:not(.switch) { flex: 1; }
[aria-pressed="true"] > .switch { background: var(--green-deep); }
[aria-pressed="true"] > .switch::after { transform: translateX(20px); }
.mnav-contact { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; font-size: 14.5px; }
.mnav-contact a { color: var(--label-2); text-decoration: none; font-weight: 600; }

@media (max-width: 1240px) {
  .hd-nav { display: none; }
  .hd-burger { display: inline-grid; }
  .hd-tools { margin-left: auto; }
}
@media (max-width: 720px) {
  .hd { padding: 8px 8px 0; }
  .hd-bar { height: 56px; padding-left: 14px; border-radius: 20px; }
  .hd.is-compact .hd-bar { height: 52px; }
  .hd-lang, .hd-theme, .hd-cta { display: none; }
  .mnav { padding-top: 72px; }
}
@media (min-width: 1241px) { .mnav { display: none; } }
@media (prefers-reduced-transparency: reduce) {
  .hd-bar::before, .mega-in, .lang-pop-in, .mnav-in { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background-color: var(--bg-elev) !important; background-image: none !important; }
  .hd.on-dark .hd-bar::before { background-color: #1a1b20 !important; }
}

/* ==== 05-loader.css ==== */
/* =====================================================================
   Boot loader — shown once per session while html.boot is set
   ===================================================================== */
body .boot { display: none; } /* not "html.boot": the <html> flag class shares the name */
html.boot { overflow: hidden; }
html.boot body { overflow: hidden; }
html.boot .boot {
  display: block; position: fixed; inset: 0; z-index: 1000; color: #fff; background: #030405; overflow: hidden;
  font-family: "Onest", system-ui, sans-serif; animation: boot-failsafe 0s linear 10s forwards;
}
html.boot:not(.boot-exit) .hd, html.boot:not(.boot-exit) main, html.boot:not(.boot-exit) .site-footer { visibility: hidden; }
@keyframes boot-failsafe { to { visibility: hidden; opacity: 0; pointer-events: none; } }

.boot-bg, .boot-bg i { position: absolute; inset: 0; pointer-events: none; }
.boot-glow { background: radial-gradient(60% 50% at 50% 46%, rgba(10, 188, 243, 0.16), rgba(10, 188, 243, 0) 70%), radial-gradient(40% 40% at 80% 90%, rgba(7, 231, 183, 0.1), rgba(7, 231, 183, 0) 70%), radial-gradient(40% 40% at 10% 10%, rgba(60, 90, 255, 0.1), rgba(60, 90, 255, 0) 70%); }
.boot-floor {
  top: 55% !important; left: -50% !important; right: -50% !important; bottom: -40% !important;
  background-image: linear-gradient(rgba(10, 188, 243, 0.22) 1px, transparent 1px), linear-gradient(90deg, rgba(10, 188, 243, 0.22) 1px, transparent 1px);
  background-size: 56px 56px; transform: perspective(520px) rotateX(64deg); transform-origin: 50% 0;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 35%, #000 60%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 35%, #000 60%, transparent 100%);
  animation: boot-floor 1.6s linear infinite; opacity: 0.55;
}
@keyframes boot-floor { to { background-position: 0 56px; } }
.boot-scan { background: linear-gradient(180deg, rgba(10, 188, 243, 0) 0%, rgba(10, 188, 243, 0.06) 48%, rgba(120, 230, 255, 0.14) 50%, rgba(10, 188, 243, 0) 52%); background-size: 100% 220%; animation: boot-scan 3.2s linear infinite; mix-blend-mode: screen; }
@keyframes boot-scan { from { background-position: 0 120%; } to { background-position: 0 -120%; } }
.boot-cv { position: absolute; inset: 0; transform-origin: 50% 46%; }

.boot-hud { position: absolute; inset: 0; display: grid; grid-template-rows: auto 1fr auto auto; padding: max(20px, env(safe-area-inset-top)) clamp(18px, 4vw, 48px) max(22px, env(safe-area-inset-bottom)); transition: opacity 0.4s ease, transform 0.6s var(--ease-out); }
.boot.is-exit .boot-hud, .boot.is-fade .boot-hud { opacity: 0; transform: scale(1.04); }
.boot.is-fade { opacity: 0; transition: opacity 0.35s ease; }
.boot-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.boot-brand { display: flex; align-items: center; gap: 12px; }
.boot-w { width: 26px; height: 32px; color: var(--brand); filter: drop-shadow(0 0 10px rgba(10, 188, 243, 0.8)); }
.boot-brand b { display: block; font-size: 16px; font-weight: 800; letter-spacing: -0.02em; }
.boot-brand small { display: block; font: 500 11.5px/1.3 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; color: rgba(235, 235, 245, 0.55); letter-spacing: 0.06em; text-transform: uppercase; }
.boot-skip {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px 0 16px; border-radius: 999px; color: rgba(255, 255, 255, 0.86); font-size: 14px; font-weight: 600;
  background: rgba(255, 255, 255, 0.07); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.08); transition: background-color 0.2s ease;
}
.boot-skip:hover { background: rgba(255, 255, 255, 0.14); }
.boot-skip .i { width: 16px; height: 16px; }
.boot-stats { align-self: center; justify-self: end; display: grid; gap: 14px; text-align: right; font: 500 11.5px/1.3 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(235, 235, 245, 0.5); }
.boot-stats b { display: block; margin-top: 3px; font: 700 18px/1 "Onest", system-ui, sans-serif; letter-spacing: -0.01em; color: #fff; font-variant-numeric: tabular-nums; }
.boot-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.boot-log { display: grid; gap: 5px; font: 500 12.5px/1.35 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; color: rgba(235, 235, 245, 0.62); max-width: 62ch; min-height: 88px; align-content: end; }
.boot-log li { display: flex; gap: 10px; animation: bl-in 0.35s var(--ease-out) both; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.boot-log .bl-t { color: rgba(10, 188, 243, 0.8); flex: none; }
.boot-log .bl-m { overflow: hidden; text-overflow: ellipsis; }
.boot-log li:last-child .bl-m { color: #fff; }
.boot-log li:last-child:not(.is-ok) .bl-m::after { content: "▍"; margin-left: 2px; color: var(--brand); animation: blink 0.8s steps(1) infinite; }
.boot-log .bl-s { flex: none; color: var(--green); opacity: 0; transition: opacity 0.2s ease; }
.boot-log .is-ok .bl-s { opacity: 1; }
@keyframes bl-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes blink { 50% { opacity: 0; } }
.boot-pct { display: flex; align-items: flex-start; line-height: 0.8; font-variant-numeric: tabular-nums; }
.boot-pct b { font-size: clamp(72px, 13vw, 176px); font-weight: 800; letter-spacing: -0.06em; background: linear-gradient(180deg, #fff 30%, rgba(255, 255, 255, 0.5)); -webkit-background-clip: text; background-clip: text; color: transparent; min-width: 2.3ch; text-align: right; }
.boot-pct small { font-size: clamp(22px, 3vw, 40px); font-weight: 700; color: var(--brand); margin: 0.2em 0 0 0.12em; }
.boot-bar { margin-top: 18px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.boot-bar i { display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, #0abcf3, #07e7b7); box-shadow: 0 0 14px rgba(10, 188, 243, 0.9); }
@media (max-width: 640px) {
  .boot-stats { display: none; }
  .boot-bottom { flex-direction: column-reverse; align-items: stretch; gap: 10px; }
  .boot-pct { justify-content: flex-end; }
  .boot-log { font-size: 11px; min-height: 70px; }
}
@media (prefers-reduced-motion: reduce) { .boot-floor, .boot-scan { animation: none; } }

/* ==== 06-components.css ==== */
/* =====================================================================
   Shared components for inner pages (ported from v2, re-skinned as layered glass,
   light + dark themes)
   ===================================================================== */
:root {
  --card-fill: rgba(255, 255, 255, 0.7);
  --card-blur: 20px;
  --card-rims: inset 0 1px 0 rgba(255, 255, 255, 0.95), inset 0 0 0 1px rgba(255, 255, 255, 0.5), inset 0 -1px 0 rgba(20, 40, 60, 0.04);
  --card-shadow: 0 1px 2px rgba(16, 40, 60, 0.04), 0 12px 32px -14px rgba(16, 40, 60, 0.18);
  --card-shadow-lift: 0 2px 4px rgba(16, 40, 60, 0.05), 0 30px 60px -20px rgba(16, 40, 60, 0.28);
}
:root[data-theme="dark"] {
  --card-fill: rgba(26, 28, 34, 0.62);
  --card-rims: inset 0 1px 0 rgba(255, 255, 255, 0.09), inset 0 0 0 1px rgba(255, 255, 255, 0.05), inset 0 -1px 0 rgba(0, 0, 0, 0.3);
  --card-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 36px -16px rgba(0, 0, 0, 0.7);
  --card-shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.4), 0 34px 70px -24px rgba(0, 0, 0, 0.85);
}
@media (max-width: 700px) { :root { --card-blur: 0px; --card-fill: rgba(255, 255, 255, 0.9); } :root[data-theme="dark"] { --card-fill: rgba(24, 26, 31, 0.94); } }

/* ambient colour field behind the whole site — gives the glass something to refract */
.ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.ambient i { position: absolute; border-radius: 50%; width: 60vmax; height: 60vmax; opacity: 0.55; }
.ambient i:nth-child(1) { left: -20vmax; top: -24vmax; background: radial-gradient(circle, rgba(10, 188, 243, 0.2), rgba(10, 188, 243, 0) 62%); }
.ambient i:nth-child(2) { right: -24vmax; top: 20vh; background: radial-gradient(circle, rgba(7, 231, 183, 0.16), rgba(7, 231, 183, 0) 62%); }
.ambient i:nth-child(3) { left: 10vw; bottom: -30vmax; background: radial-gradient(circle, rgba(110, 150, 255, 0.16), rgba(110, 150, 255, 0) 62%); }
:root[data-theme="dark"] .ambient i { opacity: 0.8; }

/* shared glass card recipe */
.tile, .pcard, .figures > div, .flow > div, .two-lists > div, .panel, .person,
.list, .index, .faq, .facts, .own, .industries, .doc-list, .ledger, .stack, .tbl-wrap, .contact-group, .tiles > div {
  background-color: var(--card-fill);
  -webkit-backdrop-filter: blur(var(--card-blur)) saturate(180%); backdrop-filter: blur(var(--card-blur)) saturate(180%);
  box-shadow: var(--card-shadow), var(--card-rims);
}
.is-paper { background: transparent; }

/* ---------- Night sections ---------- */
.night .btn-outline, .night .btn-ghost { background: rgba(255, 255, 255, 0.08); color: #fff; }
.spot { position: relative; z-index: 1; max-width: 760px; margin: clamp(48px, 6vw, 72px) auto 0; border-radius: 30px; padding: 10px; }
.spot-bar { display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 18px; border-radius: 22px; background: rgba(255, 255, 255, 0.08); font-size: clamp(16px, 1.6vw, 20px); font-weight: 500; }
.spot-bar .i { width: 22px; height: 22px; color: var(--night-label-2); }
.caret { width: 2px; height: 24px; background: var(--brand); border-radius: 2px; animation: blink 1s steps(1) infinite; }
.spot-answer { padding: 22px 18px 16px; }
.spot-answer .sa-label { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; color: var(--night-label-2); }
.spot-answer .sa-text { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.45; margin-top: 12px; }
.spot-answer .sa-text b { color: #fff; }
.cite { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 7px; background: rgba(10, 188, 243, 0.22); color: #8fe1ff; font-size: 12.5px; font-weight: 700; vertical-align: 2px; margin-left: 2px; }
.spot-src { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.src-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.07); font-size: 13.5px; color: rgba(255, 255, 255, 0.86); }
.src-chip .i { width: 16px; height: 16px; color: var(--brand); }
.spot-meta { font-size: 13px; color: var(--night-label-2); margin-top: 14px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Tiles ---------- */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tile { border-radius: var(--r-lg); padding: 26px; display: flex; flex-direction: column; gap: 10px; min-height: 220px; position: relative; overflow: hidden; transition: translate var(--t-mid) var(--ease-out), box-shadow var(--t-mid) ease; }
@media (hover: hover) { .tile:hover { translate: 0 -4px; box-shadow: var(--card-shadow-lift), var(--card-rims); } }
.tile.span-2 { grid-column: span 2; }
.tile h3 { font-size: 21px; margin-top: auto; }
.tile p { color: var(--label-2); font-size: 15px; }
.tile .app-icon { --s: 48px; }
.tile.is-num, .tile.is-ink { background: linear-gradient(160deg, #1d1e23, #0d0e10); color: #fff; }
.tile.is-num { justify-content: space-between; }
.tile.is-num b { font-size: clamp(44px, 4.6vw, 68px); font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.tile.is-num p, .tile.is-ink p { color: var(--night-label-2); }
.tile.is-brand { background: linear-gradient(150deg, #36cdfb, var(--brand) 60%, #08a9dc); color: var(--on-brand); }
.tile.is-brand p { color: var(--on-brand-2); }
.tile.is-green { background: linear-gradient(150deg, #4ff4d0, var(--green)); color: var(--on-brand); }
.tile.is-green p { color: #0d4a3c; }
.bento.is-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1000px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .bento, .bento.is-2 { grid-template-columns: 1fr; } .tile.span-2 { grid-column: auto; } .tile { min-height: 0; } }

/* ---------- Project cards ---------- */
.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.pcard { display: flex; flex-direction: column; text-decoration: none; color: inherit; border-radius: var(--r-xl); overflow: hidden; transition: translate var(--t-mid) var(--ease-out), box-shadow var(--t-mid) ease; }
@media (hover: hover) { a.pcard:hover { translate: 0 -6px; box-shadow: var(--card-shadow-lift), var(--card-rims); } }
.pcard > div:last-child { padding: 22px 26px 26px; }
.pcard p { color: var(--label-2); font-size: 15.5px; max-width: 52ch; }
.pcard .tags { margin-top: 14px; }
.cover { aspect-ratio: 16 / 10; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 26px; color: #fff; }
.cover-brand { background: radial-gradient(120% 90% at 85% 10%, #8fe6ff 0%, rgba(143, 230, 255, 0) 55%), linear-gradient(150deg, #0abcf3, #0678a3); }
.cover-ink { background: radial-gradient(100% 80% at 90% 0%, rgba(10, 188, 243, 0.45), rgba(10, 188, 243, 0) 60%), linear-gradient(150deg, #2c2c31, #0d0d0f); }
.cover-concrete { background: radial-gradient(100% 90% at 90% 0%, rgba(7, 231, 183, 0.55), rgba(7, 231, 183, 0) 60%), linear-gradient(150deg, #e9f8f4, #cfeee6); color: var(--shark); }
.cover-meta { font-size: 13.5px; font-weight: 600; opacity: 0.85; position: relative; z-index: 1; }
.cover-name { font-size: clamp(30px, 3.4vw, 48px); font-weight: 800; letter-spacing: -0.045em; line-height: 0.98; position: relative; z-index: 1; word-break: break-word; }
.cover-w { position: absolute; right: -4%; bottom: -14%; width: 44%; opacity: 0.18; color: currentColor; pointer-events: none; transition: transform var(--t-slow) var(--ease-out); }
a.pcard:hover .cover-w { transform: translate(-10px, -8px) rotate(-3deg); }
.cover-lg { aspect-ratio: 21 / 9; border-radius: var(--r-xl); padding: clamp(26px, 4vw, 44px); }
.cover-lg .cover-name { font-size: clamp(44px, 7vw, 104px); }
@media (max-width: 760px) { .pgrid { grid-template-columns: 1fr; } .cover-lg { aspect-ratio: 4 / 3; } }

/* ---------- Grouped lists (iOS inset) ---------- */
.list, .index, .faq, .facts, .own, .industries, .doc-list, .ledger { border-radius: var(--r-md); overflow: hidden; }
.list-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; }
.list-row + .list-row { box-shadow: inset 0 1px 0 var(--sep); }
.list-row b { display: block; font-weight: 600; }
.list-row .small { color: var(--label-2); display: block; margin-top: 2px; }
.list-row a { text-decoration: none; }
.list-row .btn { flex: none; }
.index-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) minmax(0, 3fr); gap: 24px; padding: 22px 24px; align-items: center; text-decoration: none; color: inherit; transition: background-color var(--t-fast) ease; }
.index-row + .index-row { box-shadow: inset 0 1px 0 var(--sep); }
a.index-row:hover { background: rgba(120, 120, 128, 0.06); }
.index-row h3 { font-size: 19px; display: flex; align-items: center; gap: 14px; }
.index-row p { color: var(--label-2); font-size: 15px; }
.index-kpi { text-align: right; }
.index-kpi b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
.index-kpi span { display: block; font-size: 13px; color: var(--label-2); margin-top: 4px; }
.index-row .link-arrow { justify-self: end; }
.index-row[data-cols="4-7"] { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr) auto; }
.index-row[data-cols="2-7"] { grid-template-columns: minmax(0, 2fr) minmax(0, 7fr) auto; }
@media (max-width: 800px) {
  .index-row, .index-row[data-cols] { grid-template-columns: 1fr; gap: 8px; padding: 18px 20px; }
  .index-kpi { text-align: left; }
  .index-kpi b { display: inline; font-size: 17px; }
  .index-kpi span { display: inline; margin: 0 0 0 4px; font-size: 14px; }
  .index-row[data-cols] .tag { justify-self: start; }
}
.industries { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.industries > div, .industries > a { padding: 20px 22px; text-decoration: none; color: inherit; box-shadow: inset 0 1px 0 var(--sep); }
.industries > :nth-child(-n + 2) { box-shadow: none; }
.industries > :nth-child(2n) { border-left: 1px solid var(--sep); }
.industries b { display: block; font-size: 17.5px; font-weight: 700; margin-bottom: 4px; letter-spacing: -0.01em; }
.industries p { color: var(--label-2); font-size: 14.5px; }
a.industries-link:hover b { color: var(--brand-ink); }
.industries.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.industries.is-3 > :nth-child(-n + 3) { box-shadow: none; }
.industries.is-3 > :nth-child(2n) { border-left: 0; }
.industries.is-3 > :not(:nth-child(3n + 1)) { border-left: 1px solid var(--sep); }
@media (max-width: 720px) {
  .industries, .industries.is-3 { grid-template-columns: 1fr; }
  .industries > *, .industries.is-3 > * { border-left: 0 !important; box-shadow: inset 0 1px 0 var(--sep) !important; }
  .industries > :first-child { box-shadow: none !important; }
}
.facts-row { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 14px 20px; font-size: 15px; }
.facts-row + .facts-row { box-shadow: inset 0 1px 0 var(--sep); }
.facts-row span { color: var(--label-2); }
.facts-row .pending { color: var(--label-2); font-weight: 500; }
@media (max-width: 560px) { .facts-row { grid-template-columns: 1fr; gap: 2px; } }
.own > div { padding: 20px 22px; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 24px; }
.own > div + div { box-shadow: inset 0 1px 0 var(--sep); }
.own b { font-size: 17px; }
.own p { color: var(--label-2); font-size: 15px; }
@media (max-width: 720px) { .own > div { grid-template-columns: 1fr; gap: 6px; } }
.check-list { display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-soft); }
.check-list .i { color: #fff; background: linear-gradient(145deg, #3ff2cc, #05b58f); border-radius: 50%; padding: 3px; width: 22px; height: 22px; margin-top: 1px; box-shadow: 0 4px 10px -4px rgba(var(--green-rgb), 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.5); }

/* FAQ */
.faq-item + .faq-item { box-shadow: inset 0 1px 0 var(--sep); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; font-weight: 600; font-size: 17px; line-height: 1.35; letter-spacing: -0.01em; transition: background-color var(--t-fast) ease; }
.faq-item summary:hover { background: rgba(120, 120, 128, 0.06); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--fill); position: relative; transition: transform var(--t-mid) var(--spring), background-color var(--t-mid) ease; }
.faq-plus::before, .faq-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; border-radius: 2px; background: var(--ink); transform: translate(-50%, -50%); }
.faq-plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-plus { transform: rotate(135deg); background: var(--ink-fill); }
.faq-item[open] .faq-plus::before, .faq-item[open] .faq-plus::after { background: var(--on-ink); }
.faq-a { padding: 0 22px 22px; color: var(--label-2); font-size: 16px; max-width: 72ch; }
.faq-item::details-content { transition: height 0.4s var(--ease-out), content-visibility 0.4s allow-discrete; height: 0; overflow: clip; }
.faq-item[open]::details-content { height: auto; }
@supports (interpolate-size: allow-keywords) { :root { interpolate-size: allow-keywords; } }
.night .faq, .night .list { background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.night .faq-item + .faq-item, .night .list-row + .list-row { box-shadow: inset 0 1px 0 var(--night-sep); }
.night .faq-plus { background: rgba(255, 255, 255, 0.12); }
.night .faq-plus::before, .night .faq-plus::after { background: #fff; }
.night .faq-a { color: var(--night-label-2); }

/* Ledger «Вы / Мы» */
.ledger-head, .ledger-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; padding: 16px 22px; }
.ledger-head { font-weight: 700; font-size: 14px; color: var(--label-2); background: rgba(120, 120, 128, 0.07); }
.ledger-row { box-shadow: inset 0 1px 0 var(--sep); }
.ledger-row b { display: block; font-weight: 700; margin-bottom: 4px; }
.ledger-row p { color: var(--label-2); font-size: 15px; }
.ledger-head.is-3, .ledger-row.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ledger-cols { display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1fr); gap: 24px; padding: 14px 22px; font-weight: 700; font-size: 14px; color: var(--label-2); background: rgba(120, 120, 128, 0.07); }
.ledger-step { display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1fr); gap: 8px 24px; padding: 22px; box-shadow: inset 0 1px 0 var(--sep); align-items: start; }
.step-n { box-shadow: 0 8px 18px -8px rgba(var(--brand-rgb), 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.45), inset 0 -2px 4px rgba(0, 0, 0, 0.15); }
.ledger-step .step-n { grid-row: 1 / span 2; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; font-size: 18px; color: #fff; background: linear-gradient(145deg, #3fd3ff, #0797c4); }
.ledger-step:nth-child(4n + 3) .step-n { background: linear-gradient(145deg, #3ff2cc, #05b58f); }
.ledger-step:nth-child(4n) .step-n { background: linear-gradient(145deg, #4a4a50, #1b1b1e); }
.ledger-step:nth-child(4n + 1) .step-n { background: linear-gradient(145deg, #58c8ff, #1f6fe0); }
.ledger-step-title { grid-column: 2 / -1; grid-row: 1; font-size: 19px; line-height: 1.3; letter-spacing: -0.02em; }
.ledger-step > [data-col]:nth-of-type(2) { grid-column: 2; }
.ledger-step > [data-col]:nth-of-type(3) { grid-column: 3; }
.ledger-step p { color: var(--label-2); font-size: 15px; }
@media (max-width: 720px) {
  .ledger-head, .ledger-cols { display: none; }
  .ledger-row, .ledger-row.is-3 { grid-template-columns: 1fr; gap: 10px; }
  .ledger-row > div::before, .ledger-step > [data-col]::before { content: attr(data-col); display: block; font-size: 12.5px; font-weight: 700; color: var(--brand-ink); margin-bottom: 3px; }
  .ledger-step { grid-template-columns: auto minmax(0, 1fr); gap: 12px 14px; }
  .ledger-step .step-n { grid-row: 1; width: 36px; height: 36px; font-size: 15px; border-radius: 11px; }
  .ledger-step > [data-col]:nth-of-type(n) { grid-column: 1 / -1; }
}

/* Figures → stat widgets */
.figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.figures > div { border-radius: var(--r-lg); padding: 26px; }
.figures .num { margin-bottom: 12px; }
.figures p { color: var(--label-2); font-size: 15px; }
.figures-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.figures-4 .num { font-size: clamp(32px, 3.2vw, 46px); }
.figures.is-1 { grid-template-columns: 1fr; }
.figures.is-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.night .figures > div, .is-dark .figures > div { background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.night .figures p, .is-dark .figures p { color: var(--night-label-2); }
.is-brand .figures > div { background: rgba(255, 255, 255, 0.5); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8); }
.is-brand .figures p { color: var(--on-brand-2); }
@media (max-width: 900px) { .figures, .figures-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .figures, .figures-4, .figures.is-2 { grid-template-columns: 1fr; } }

/* Flow steps */
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: flow; }
.flow > div { border-radius: var(--r-lg); padding: 24px; }
.flow h3 { font-size: 19px; margin: 0 0 8px; display: flex; flex-direction: column; gap: 16px; }
.flow .step-n { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 17px; color: #fff; background: linear-gradient(145deg, #3fd3ff, #0797c4); }
.flow > div:nth-child(2) .step-n { background: linear-gradient(145deg, #3ff2cc, #05b58f); }
.flow > div:nth-child(3) .step-n { background: linear-gradient(145deg, #58c8ff, #1f6fe0); }
.flow > div:nth-child(4) .step-n { background: linear-gradient(145deg, #4a4a50, #1b1b1e); }
.flow p { color: var(--label-2); font-size: 15px; }
.flow.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .flow, .flow.is-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .flow, .flow.is-3 { grid-template-columns: 1fr; } }

/* Stack spec rows */
.stack { border-radius: var(--r-md); overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); }
.stack > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding: 14px 20px; font-size: 15px; color: var(--label-2); }
.stack > div + div { box-shadow: inset 0 1px 0 var(--sep); }
.stack b { color: var(--ink); font-weight: 700; }
.stack.is-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stack.is-2 > div { grid-template-columns: 1fr; gap: 3px; }
.stack.is-2 > div:nth-child(2) { box-shadow: none; }
.stack.is-2 > div:nth-child(2n) { border-left: 1px solid var(--sep); }
.night .stack { background: rgba(255, 255, 255, 0.05); }
.night .stack > div { color: var(--night-label-2); }
.night .stack b { color: #fff; }
@media (max-width: 720px) { .stack.is-2 { grid-template-columns: 1fr; } .stack.is-2 > div { border-left: 0 !important; box-shadow: inset 0 1px 0 var(--sep) !important; } .stack.is-2 > div:first-child { box-shadow: none !important; } }
@media (max-width: 480px) { .stack > div { grid-template-columns: 1fr; gap: 2px; } }
.tiles { display: flex; flex-wrap: wrap; gap: 8px; }
.tiles > div { border-radius: var(--r-pill); padding: 9px 16px; font-size: 14.5px; font-weight: 600; }
.two-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.two-lists > div { border-radius: var(--r-lg); padding: 26px; }
.two-lists h3 { margin-bottom: 12px; }
@media (max-width: 720px) { .two-lists { grid-template-columns: 1fr; } }
.panel { border-radius: var(--r-lg); padding: 26px; }
.panel h3 { margin-bottom: 8px; }
.panel p { color: var(--label-2); font-size: 15px; }
.quote { background: linear-gradient(160deg, #1d1e23, #0d0e10); color: #fff; border-radius: var(--r-lg); padding: 32px 36px; font-size: 21px; line-height: 1.4; font-weight: 600; letter-spacing: -0.015em; box-shadow: var(--card-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.1); }
.quote .who { display: block; margin-top: 18px; font-size: 14px; font-weight: 500; color: var(--night-label-2); }

/* Tables */
.tbl-wrap { overflow-x: auto; border-radius: var(--r-md); }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.tbl th, .tbl td { padding: 14px 20px; text-align: left; vertical-align: top; }
.tbl tr + tr td, .tbl tbody tr:first-child td { box-shadow: inset 0 1px 0 var(--sep); }
.tbl th { font-size: 13.5px; font-weight: 600; color: var(--label-2); background: rgba(120, 120, 128, 0.07); }
.tbl td b { font-weight: 700; }
.tbl-num td:not(:first-child), .tbl-num th:not(:first-child) { text-align: right; }
@media (max-width: 600px) {
  .tbl-wrap.is-cards { overflow: visible; background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .tbl-cards { min-width: 0; }
  .tbl-cards thead { display: none; }
  .tbl-cards, .tbl-cards tbody, .tbl-cards tr, .tbl-cards td { display: block; width: 100%; }
  .tbl-cards tr { background: var(--card-fill); border-radius: var(--r-md); padding: 8px 18px; margin-bottom: 10px; box-shadow: var(--card-shadow), var(--card-rims); }
  .tbl-cards td, .tbl-cards tr + tr td, .tbl-cards tbody tr:first-child td { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 9px 0; text-align: right !important; box-shadow: none; }
  .tbl-cards td + td { box-shadow: inset 0 1px 0 var(--sep) !important; }
  .tbl-cards td::before { content: attr(data-label); flex: none; max-width: 48%; text-align: left; font-size: 13px; font-weight: 600; color: var(--label-2); }
  .tbl-cards td:first-child { font-size: 17px; }
}

/* ---------- Page hero (inner pages) ---------- */
.hero-page { position: relative; overflow: hidden; padding: calc(var(--header-h) + clamp(56px, 8vw, 104px)) 0 clamp(56px, 7vw, 96px); }
.hero-page::before, .hero-page::after { content: ""; position: absolute; border-radius: 50%; width: 70vmax; height: 70vmax; pointer-events: none; z-index: 0; }
.hero-page::before { left: -26vmax; top: -40vmax; background: radial-gradient(circle, rgba(10, 188, 243, 0.32), rgba(10, 188, 243, 0) 62%); animation: drift-a 26s ease-in-out infinite alternate; }
.hero-page::after { right: -30vmax; top: -30vmax; background: radial-gradient(circle, rgba(7, 231, 183, 0.24), rgba(7, 231, 183, 0) 60%); animation: drift-b 32s ease-in-out infinite alternate; }
.hero-page.is-brand::before { background: radial-gradient(circle, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 62%); }
.hero-page.is-brand::after { background: radial-gradient(circle, rgba(7, 231, 183, 0.55), rgba(7, 231, 183, 0) 60%); }
.hero-page-in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 72px); align-items: end; }
.hero-page .lead { margin-top: 22px; }
.hero-page .h1 { max-width: 14em; }
.crumbs {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 500; color: var(--label-2); margin-bottom: 22px; padding: 6px 14px; border-radius: var(--r-pill);
  background: var(--g-fill-thin); -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%); box-shadow: var(--g-rims), 0 0 0 0.5px var(--g-edge);
}
.crumbs a { text-decoration: none; color: var(--ink); }
.crumbs span { color: var(--label-3); }
.hero-page-aside {
  border-radius: var(--r-lg); padding: 24px; color: var(--label-2); font-size: 15px; line-height: 1.55;
  background-color: var(--g-fill); background-image: radial-gradient(130% 90% at var(--mx, 18%) var(--my, -12%), var(--g-spec), rgba(255, 255, 255, 0) 48%);
  -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%); box-shadow: var(--g-shadow), var(--g-rims), 0 0 0 0.5px var(--g-edge);
}
.hero-page-aside b { color: var(--ink); display: block; font-size: 26px; font-weight: 800; letter-spacing: -0.035em; margin-bottom: 2px; }
.hero-page-aside p + p { margin-top: 16px; padding-top: 16px; box-shadow: inset 0 1px 0 var(--sep); }
.hero-page.is-dark { background: var(--night); color: #fff; }
.hero-page.is-dark .lead { color: var(--night-label-2); }
.hero-page.is-dark .crumbs { background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); color: var(--night-label-2); }
.hero-page.is-dark .crumbs a { color: #fff; }
.hero-page.is-dark .hero-page-aside { background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.08); color: var(--night-label-2); }
.hero-page.is-dark .hero-page-aside b { color: #fff; }
.hero-page.is-dark .hero-page-aside p + p { box-shadow: inset 0 1px 0 var(--night-sep); }
.hero-page.is-dark .btn-outline, .hero-page.is-dark .btn-ghost, .hero-page.is-dark .btn-glass { background: rgba(255, 255, 255, 0.08); color: #fff; }
.hero-page.is-dark .btn:not(.btn-outline):not(.btn-ghost):not(.btn-glass):not(.btn-brand) { background: #fff; color: var(--shark); }
.hero-page.is-brand { background: var(--brand); color: var(--on-brand); }
.hero-page.is-brand .lead { color: var(--on-brand-2); }
.hero-page.is-brand .crumbs { background: rgba(255, 255, 255, 0.4); color: var(--on-brand-2); }
.hero-page.is-brand .crumbs a { color: var(--shark); }
.hero-page.is-brand .hero-page-aside { background: rgba(255, 255, 255, 0.45); color: var(--on-brand-2); }
.hero-page.is-brand .hero-page-aside b { color: var(--shark); }
.hero-page.is-brand .btn-outline, .hero-page.is-brand .btn-glass { background: rgba(255, 255, 255, 0.45); color: var(--shark); }
@media (max-width: 960px) { .hero-page-in { grid-template-columns: 1fr; } }

.vac-search { border: 0; border-radius: var(--r-pill); padding: 12px 18px 12px 44px; background: var(--fill) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238e8e93' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M20 20l-4.2-4.2'/%3E%3C/svg%3E") no-repeat 16px center / 18px; font-size: 16px; min-width: 280px; color: var(--ink); }
.vac-search:focus { outline: none; box-shadow: 0 0 0 4px rgba(var(--brand-rgb), 0.25); background-color: var(--bg-elev); }

/* ---------- Dark / brand sections ---------- */
.is-dark:not(.hero-page) { background: var(--night); color: #fff; }
.is-dark .lead, .is-dark .muted { color: var(--night-label-2); }
.is-dark .num { color: #fff; }
.is-brand:not(.hero-page):not(.result-card) { background: var(--brand); color: var(--on-brand); }
.is-brand .lead, .is-brand .muted { color: var(--on-brand-2); }
.section.is-dark .index, .section.is-dark .list, .section.is-dark .faq, .section.is-dark .ledger, .section.is-dark .industries,
.section.is-dark .flow > div, .section.is-dark .panel, .section.is-dark .two-lists > div { background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.section.is-dark .index-row + .index-row, .section.is-dark .list-row + .list-row, .section.is-dark .ledger-row, .section.is-dark .industries > * { box-shadow: inset 0 1px 0 var(--night-sep); }
.section.is-dark .index-row p, .section.is-dark .index-kpi span, .section.is-dark .list-row .small, .section.is-dark .ledger-row p, .section.is-dark .industries p, .section.is-dark .flow p, .section.is-dark .panel p { color: var(--night-label-2); }
.section.is-dark .tag { background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.85); }
.section.is-brand .ledger, .section.is-brand .list, .section.is-brand .tbl-wrap { background: rgba(255, 255, 255, 0.55); }
.section.is-brand .ledger-row p { color: var(--on-brand-2); }
.section.is-brand .tag { background: rgba(255, 255, 255, 0.45); color: var(--shark); }

/* ---------- Modals → glass sheets ---------- */
.modal-bg { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px 16px; overflow: auto; overscroll-behavior: contain; }
.modal-bg::before { content: ""; position: fixed; inset: 0; background: rgba(6, 8, 12, 0.38); -webkit-backdrop-filter: blur(10px) saturate(140%); backdrop-filter: blur(10px) saturate(140%); opacity: 0; transition: opacity 0.3s ease; }
.modal-bg.is-in::before { opacity: 1; }
.modal-bg[hidden] { display: none; }
.modal {
  position: relative; width: 100%; max-width: 560px; margin: auto; padding: 30px; border-radius: 34px; color: var(--ink);
  background-color: var(--g-fill-thick);
  background-image: radial-gradient(120% 70% at 15% -10%, var(--g-spec), rgba(255, 255, 255, 0) 55%);
  -webkit-backdrop-filter: blur(44px) saturate(200%); backdrop-filter: blur(44px) saturate(200%);
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.45), var(--g-rims), 0 0 0 0.5px var(--g-edge);
  opacity: 0; transform: translateY(30px) scale(0.96); transition: opacity 0.25s ease, transform 0.5s var(--spring);
}
.modal-bg.is-in .modal { opacity: 1; transform: none; }
.modal::before { content: ""; display: none; width: 40px; height: 5px; border-radius: 3px; background: var(--fill-2); margin: -14px auto 16px; }
.modal-search { max-width: 660px; }
.modal-x { position: absolute; top: 18px; right: 18px; width: 34px; height: 34px; background: var(--fill); border-radius: 50%; display: grid; place-items: center; color: var(--label-2); transition: background-color var(--t-fast) ease, transform var(--t-fast) var(--ease-out); z-index: 3; }
.modal-x:hover { background: var(--fill-2); color: var(--ink); }
.modal-x:active { transform: scale(0.9); }
.modal-x .i { width: 16px; height: 16px; }
.modal-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--label-2); margin-bottom: 10px; }
.modal-title { font-size: clamp(26px, 3vw, 32px); font-weight: 800; letter-spacing: -0.035em; padding-right: 44px; line-height: 1.08; }
.modal-lead { color: var(--label-2); margin: 10px 0 22px; font-size: 15.5px; }
.field-search input { font-size: 19px; padding: 16px 18px; }
.modal-search .form { margin-top: 18px; }
.search-out { margin-top: 12px; display: grid; gap: 2px; max-height: 52vh; overflow: auto; }
.search-out a { display: block; padding: 12px 14px; border-radius: 14px; text-decoration: none; }
.search-out a:hover, .search-out a:focus { background: var(--fill); }
.search-out a b { display: block; font-size: 16px; }
.search-out a span { display: block; font-size: 13.5px; color: var(--label-2); margin-top: 2px; }
.search-out mark { background: rgba(var(--brand-rgb), 0.25); color: inherit; padding: 0 2px; border-radius: 3px; }
@media (max-width: 600px) {
  .modal-bg { align-items: flex-end; padding: 0; }
  .modal { border-radius: 30px 30px 0 0; max-height: 94vh; max-height: 94dvh; overflow: auto; padding: 26px 20px calc(24px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: opacity 0.2s ease, transform 0.5s var(--spring); margin: 0; }
  .modal-bg.is-in .modal { transform: none; }
  .modal::before { display: block; }
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); z-index: 200; translate: -50% 0; max-width: calc(100vw - 32px);
  padding: 12px 20px; border-radius: 999px; font-size: 14.5px; font-weight: 600; color: #fff; pointer-events: none;
  background: rgba(24, 26, 32, 0.78); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  opacity: 0; transform: translateY(20px) scale(0.95); transition: opacity 0.25s ease, transform 0.45s var(--spring);
}
.toast.is-on { opacity: 1; transform: none; }
.toast:empty { display: none; }

/* ---------- Misc pages ---------- */
.center-page { text-align: center; padding-block: calc(var(--header-h) + clamp(80px, 12vw, 160px)) clamp(80px, 12vw, 160px); position: relative; overflow: hidden; }
.center-page .lead { margin-inline: auto; margin-top: 20px; }
.center-page .hero-cta { justify-content: center; }
.center-page > .wrap { position: relative; z-index: 1; }
.doc-list .list-row { padding: 18px 20px; }
.status { flex: none; font-size: 13px; font-weight: 600; color: var(--ink-soft); padding: 6px 12px; border-radius: var(--r-pill); background: var(--fill); }
.status.is-pending { background: transparent; box-shadow: inset 0 0 0 1px var(--fill-2); color: var(--label-2); }
.contact-group { border-radius: var(--r-md); overflow: hidden; }
.contact-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; flex-wrap: wrap; }
.contact-row + .contact-row { box-shadow: inset 0 1px 0 var(--sep); }
.contact-row .label { font-size: 13px; color: var(--label-2); font-weight: 600; margin-bottom: 4px; }
.contact-row .value { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; text-decoration: none; }
.map-ph { aspect-ratio: 4 / 3; border-radius: var(--r-lg); background: radial-gradient(60% 60% at 50% 45%, rgba(10, 188, 243, 0.18), rgba(10, 188, 243, 0) 70%), repeating-linear-gradient(0deg, var(--sep) 0 1px, transparent 1px 44px), repeating-linear-gradient(90deg, var(--sep) 0 1px, transparent 1px 44px), linear-gradient(135deg, rgba(10, 188, 243, 0.08), rgba(7, 231, 183, 0.08)); display: grid; place-items: center; align-content: center; gap: 12px; color: var(--label-2); font-size: 14px; text-align: center; padding: 24px; box-shadow: var(--card-shadow), var(--card-rims); }
.map-pin { width: 54px; height: 54px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--brand); box-shadow: 0 12px 30px rgba(10, 150, 200, 0.35); display: grid; place-items: center; }
.map-pin::after { content: ""; width: 18px; height: 18px; border-radius: 50%; background: #fff; }
.map-box { display: grid; gap: 12px; }
.map-frame { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--card-shadow), var(--card-rims); background: var(--fill); }
.map-frame .map-ph { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
.map-frame .map-ph b { color: var(--ink); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity 0.6s ease; }
.map-frame.is-ready iframe { opacity: 1; }
:root[data-theme="dark"] .map-frame iframe { filter: brightness(0.92) contrast(1.02); }
.map-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.map-addr { margin-left: auto; font-size: 14px; color: var(--label-2); }
.ct-soc { display: flex; flex-wrap: wrap; gap: 8px; }
.ct-s { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px 9px 10px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--ink); text-decoration: none; background: var(--fill); transition: background var(--t-fast) ease, color var(--t-fast) ease, transform var(--t-fast) var(--spring); }
.ct-s .i { width: 20px; height: 20px; color: rgb(var(--c, var(--brand-rgb))); }
.ct-s:hover { background: rgba(var(--c, var(--brand-rgb)), 0.14); transform: translateY(-1px); }
@media (max-width: 600px) { .map-addr { margin-left: 0; width: 100%; } }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.article-cover { aspect-ratio: 21 / 9; border-radius: var(--r-xl); }
.sticky-card { position: sticky; top: 100px; }
.empty { color: var(--label-2); padding: 24px 0; }
.cases-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 700px) { .cases-2 { grid-template-columns: 1fr; } }
.hl { background: rgba(var(--brand-rgb), 0.18); padding: 0 4px; border-radius: 4px; }

/* ==== 07-footer.css ==== */
/* =====================================================================
   Footer: game teaser, contacts, big social icons, link columns
   ===================================================================== */
.site-footer { position: relative; overflow: hidden; padding: clamp(56px, 7vw, 96px) 0 28px; color: var(--ink); box-shadow: inset 0 1px 0 var(--sep); }
.ft-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; }

/* game teaser */
.ft-game {
  position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r-xl); padding: clamp(26px, 3.4vw, 40px); color: #fff; min-height: 340px;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: radial-gradient(90% 90% at 100% 0%, rgba(10, 188, 243, 0.35), rgba(10, 188, 243, 0) 60%), radial-gradient(70% 80% at 0% 100%, rgba(7, 231, 183, 0.22), rgba(7, 231, 183, 0) 60%), linear-gradient(160deg, #111318, #050607);
  box-shadow: var(--card-shadow-lift), inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.ft-game-art { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.ft-code { position: absolute; top: 26px; right: 26px; width: min(48%, 300px); display: grid; gap: 9px; opacity: 0.55; }
.ft-code i { display: block; height: 8px; border-radius: 4px; background: linear-gradient(90deg, rgba(127, 224, 255, 0.55), rgba(127, 224, 255, 0.12)); }
.ft-code i:nth-child(2) { width: 72%; margin-left: 12%; background: linear-gradient(90deg, rgba(7, 231, 183, 0.5), rgba(7, 231, 183, 0.1)); }
.ft-code i:nth-child(3) { width: 58%; margin-left: 12%; }
.ft-code i:nth-child(4) { width: 80%; margin-left: 24%; background: linear-gradient(90deg, rgba(255, 120, 120, 0.5), rgba(255, 120, 120, 0.1)); }
.ft-code i:nth-child(5) { width: 46%; margin-left: 24%; }
.ft-code i:nth-child(6) { width: 66%; margin-left: 12%; background: linear-gradient(90deg, rgba(7, 231, 183, 0.5), rgba(7, 231, 183, 0.1)); }
.ft-code i:nth-child(7) { width: 30%; }
.ft-bug { position: absolute; width: 34px; height: 34px; color: #ff6b7a; filter: drop-shadow(0 0 10px rgba(255, 90, 110, 0.7)); animation: ft-crawl 7s ease-in-out infinite; }
.ft-bug.b1 { top: 22%; right: 30%; }
.ft-bug.b2 { top: 44%; right: 12%; width: 26px; height: 26px; animation-duration: 9s; animation-delay: -3s; color: #ffb020; filter: drop-shadow(0 0 10px rgba(255, 176, 32, 0.7)); }
.ft-bug.b3 { top: 12%; right: 50%; width: 22px; height: 22px; animation-duration: 6s; animation-delay: -1.5s; }
@keyframes ft-crawl { 0%, 100% { transform: translate(0, 0) rotate(0deg); } 25% { transform: translate(-26px, 14px) rotate(-30deg); } 50% { transform: translate(-6px, 32px) rotate(20deg); } 75% { transform: translate(18px, 12px) rotate(60deg); } }
.ft-game-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: #7fe0ff; letter-spacing: 0.01em; }
.ft-game-kicker .i { width: 18px; height: 18px; }
.ft-game-title { font-size: clamp(28px, 3.2vw, 44px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.02; margin-top: 12px; max-width: 14em; }
.ft-game-text { color: var(--night-label-2); margin-top: 12px; font-size: 16px; max-width: 40ch; }
.ft-game-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 24px; }
.ft-rec { display: flex; align-items: center; gap: 12px; padding: 8px 16px 8px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
.ft-rec img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: linear-gradient(145deg, #3fd3ff, #0797c4); box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35); }
.ft-rec b { display: block; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ft-rec small { display: block; font-size: 12.5px; color: var(--night-label-2); }

/* contact card */
.ft-contact {
  border-radius: var(--r-xl); padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; align-items: flex-start;
  background-color: var(--card-fill); -webkit-backdrop-filter: blur(var(--card-blur)) saturate(180%); backdrop-filter: blur(var(--card-blur)) saturate(180%); box-shadow: var(--card-shadow), var(--card-rims);
}
.ft-desc { margin-top: 14px; color: var(--label-2); font-size: 14.5px; max-width: 42ch; }
.ft-phone { margin-top: 22px; font-size: clamp(24px, 2.4vw, 32px); font-weight: 800; letter-spacing: -0.03em; text-decoration: none; color: var(--ink); }
.ft-mail { font-size: 17px; font-weight: 600; text-decoration: none; color: var(--brand-ink); margin-top: 4px; }
.ft-addr { color: var(--label-2); font-size: 14px; margin-top: 10px; }
.footer-online { margin-top: 12px; font-size: 13.5px; color: var(--label-2); display: flex; align-items: center; gap: 8px; }
.clocks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 18px; }
.clock { display: flex; gap: 10px; padding: 8px 12px; border-radius: 12px; background: var(--fill); font-size: 13.5px; }
.clock-city { color: var(--label-2); }
.clock-time { font-weight: 700; font-variant-numeric: tabular-nums; }

/* big social icons */
.ft-soc { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; padding: 14px; border-radius: var(--r-xl); background-color: var(--card-fill); -webkit-backdrop-filter: blur(var(--card-blur)) saturate(180%); backdrop-filter: blur(var(--card-blur)) saturate(180%); box-shadow: var(--card-shadow), var(--card-rims); justify-content: space-between; }
.soc-ic {
  --c: 10, 188, 243; flex: 1 1 64px; max-width: 150px; height: 72px; border-radius: 22px; display: grid; place-items: center; color: var(--ink); position: relative; overflow: hidden; isolation: isolate;
  background: var(--fill); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5); transition: transform var(--t-mid) var(--spring), color var(--t-mid) ease, box-shadow var(--t-mid) ease;
}
:root[data-theme="dark"] .soc-ic { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07); }
.soc-ic::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; background: linear-gradient(150deg, rgba(var(--c), 0.95), rgba(var(--c), 0.65)); transition: opacity var(--t-mid) ease; }
.soc-ic::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(120% 70% at 30% 0%, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0) 55%); opacity: 0; transition: opacity var(--t-mid) ease; pointer-events: none; }
.soc-ic svg { width: 30px; height: 30px; }
@media (hover: hover) {
  .soc-ic:hover { color: #fff; transform: translateY(-4px) scale(1.04); box-shadow: 0 16px 30px -12px rgba(var(--c), 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
  .soc-ic:hover::before, .soc-ic:hover::after { opacity: 1; }
}
.soc-ic:active { transform: scale(0.94); }
.soc-telegram { --c: 42, 171, 238; } .soc-instagram { --c: 214, 41, 118; } .soc-linkedin { --c: 10, 102, 194; } .soc-youtube { --c: 255, 0, 51; }
.soc-facebook { --c: 24, 119, 242; } .soc-x { --c: 30, 30, 34; } .soc-whatsapp { --c: 37, 211, 102; } .soc-mail { --c: 10, 188, 243; } .soc-tiktok { --c: 20, 20, 24; }
.soc-phone { --c: 5, 181, 143; }
.soc-ic { text-decoration: none; }
.soc-t { display: none; font-size: 15px; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }
/* few networks (until all links are known): wide tiles with a caption */
.ft-soc:not(:has(.soc-ic:nth-child(5))) .soc-ic { max-width: none; flex: 1 1 200px; display: flex; justify-content: center; align-items: center; gap: 12px; }
.ft-soc:not(:has(.soc-ic:nth-child(5))) .soc-t { display: inline; }
.soc-instagram::before { background: linear-gradient(45deg, #feda75, #fa7e1e 25%, #d62976 50%, #962fbf 75%, #4f5bd5); }

/* link columns */
.ft-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: clamp(40px, 5vw, 64px); }
.footer-h { font-size: 13.5px; font-weight: 700; color: var(--ink); margin-bottom: 12px; }
.footer-col a { display: block; font-size: 14.5px; color: var(--label-2); text-decoration: none; padding: 4px 0; transition: color var(--t-fast) ease; }
.footer-col a:hover { color: var(--ink); }
.ft-lang { display: inline-grid; grid-template-columns: repeat(3, auto); gap: 3px; padding: 3px; border-radius: 12px; background: var(--fill); margin-bottom: 10px; }
.ft-lang a { padding: 6px 12px; border-radius: 9px; font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.ft-lang a[aria-current="true"] { background: var(--bg-elev); color: var(--ink); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); }
.ft-pref { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; max-width: 230px; padding: 6px 0; font-size: 14.5px; color: var(--label-2); }
.ft-pref:hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 20px; box-shadow: inset 0 1px 0 var(--sep); font-size: 13px; color: var(--label-2); position: relative; z-index: 1; }
.footer-bottom a { color: var(--label-2); margin-left: 18px; }
.ft-giant { font-size: clamp(64px, 16vw, 260px); font-weight: 800; letter-spacing: -0.06em; line-height: 0.8; text-align: center; white-space: nowrap; margin: clamp(24px, 4vw, 48px) 0 -0.12em; background: linear-gradient(180deg, rgba(var(--brand-rgb), 0.22), rgba(var(--brand-rgb), 0)); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; pointer-events: none; }
@media (max-width: 1000px) { .ft-hero { grid-template-columns: 1fr; } .ft-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .ft-cols { grid-template-columns: 1fr 1fr; gap: 24px; }
  .ft-soc { gap: 8px; padding: 10px; }
  .soc-ic { flex-basis: calc(25% - 8px); height: 60px; border-radius: 18px; }
  .soc-ic svg { width: 26px; height: 26px; }
  .footer-bottom a { margin: 0 18px 0 0; }
  .ft-game { min-height: 380px; }
  .ft-code { width: 60%; }
}

/* ==== 08-request.css ==== */
/* =====================================================================
   Multi-step request form (.rq)
   ===================================================================== */
.rq { --rq-p: 0; position: relative; margin-top: 20px; }
.rq-head { display: grid; gap: 14px; margin-bottom: 20px; }
.rq-steps { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--label-3); counter-reset: none; }
.rq-steps li { display: inline-flex; align-items: center; gap: 8px; transition: color var(--t-mid) ease; }
.rq-steps li + li::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--fill-2); margin-right: 2px; }
.rq-steps span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12.5px; font-weight: 800; background: var(--fill); color: var(--label-2); transition: background-color var(--t-mid) ease, color var(--t-mid) ease, transform var(--t-mid) var(--spring), box-shadow var(--t-mid) ease; }
.rq-steps span .i { width: 14px; height: 14px; }
.rq-steps li.is-on { color: var(--ink); }
.rq-steps li.is-on span { background: var(--brand); color: var(--on-brand); box-shadow: 0 6px 14px -6px rgba(var(--brand-rgb), 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.rq-steps li.is-cur span { transform: scale(1.12); }
.rq.is-done .rq-steps li span { background: linear-gradient(145deg, #3ff2cc, #05b58f); color: #fff; }
.rq-meter { display: flex; align-items: center; gap: 12px; }
.rq-track { position: relative; flex: 1; height: 10px; border-radius: 10px; background: var(--fill); overflow: hidden; box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12); }
.rq-track i { position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(0); border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--green)); box-shadow: 0 0 12px rgba(var(--brand-rgb), 0.6); transition: transform 0.6s var(--spring); }
.rq-track i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.55) 50%, rgba(255, 255, 255, 0) 100%); background-size: 40% 100%; background-repeat: no-repeat; animation: rq-shine 2.2s ease-in-out infinite; }
@keyframes rq-shine { from { background-position: -60% 0; } to { background-position: 160% 0; } }
.rq-pct { min-width: 3.4ch; text-align: right; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.rq-stage { position: relative; }
.rq-step { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 12px; }
.rq-legend { float: left; width: 100%; padding: 0; margin-bottom: 4px; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rq-legend + * { clear: both; }
.rq-opt { font-size: 12.5px; font-weight: 600; color: var(--label-2); padding: 3px 10px; border-radius: 999px; background: var(--fill); }

/* floating-label fields */
.rq-field { position: relative; display: block; }
.rq-field input, .rq-field textarea {
  width: 100%; height: 62px; padding: 24px 46px 8px 18px; border: 0; border-radius: 18px; font-size: 17px; color: var(--ink); -webkit-appearance: none; appearance: none;
  background: var(--bg-sunk); box-shadow: inset 0 0 0 1px transparent, inset 0 1px 2px rgba(0, 0, 0, 0.06);
  transition: box-shadow var(--t-fast) ease, background-color var(--t-fast) ease;
}
.rq-field textarea { height: auto; min-height: 104px; padding-top: 30px; resize: vertical; line-height: 1.45; }
.rq-field > span { position: absolute; left: 18px; top: 20px; font-size: 16.5px; color: var(--label-2); pointer-events: none; transform-origin: 0 0; transition: transform 0.3s var(--spring), color var(--t-fast) ease; }
.rq-field > span em { font-style: normal; color: var(--brand-ink); margin-left: 3px; }
.rq-field input:focus, .rq-field textarea:focus { outline: none; background: var(--bg-elev); box-shadow: inset 0 0 0 1.5px var(--brand), 0 0 0 5px rgba(var(--brand-rgb), 0.16); }
.rq-field input:focus + span, .rq-field input:not(:placeholder-shown) + span,
.rq-field textarea:focus + span, .rq-field textarea:not(:placeholder-shown) + span { transform: translateY(-11px) scale(0.76); color: var(--label-2); }
.rq-field .rq-ok { position: absolute; right: 16px; top: 21px; width: 20px; height: 20px; padding: 3px; border-radius: 50%; color: #fff; background: linear-gradient(145deg, #3ff2cc, #05b58f); opacity: 0; transform: scale(0.4); transition: opacity 0.25s ease, transform 0.45s var(--spring); }
.rq-field.is-ok .rq-ok { opacity: 1; transform: none; }
.rq-field.is-invalid input { box-shadow: inset 0 0 0 1.5px var(--danger), 0 0 0 5px rgba(229, 72, 77, 0.14); }
.rq-field.is-shake { animation: rq-shake 0.45s var(--ease-out); }
@keyframes rq-shake { 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }
.rq-count { position: absolute; right: 14px; bottom: 10px; font-size: 12px; color: var(--label-3); font-variant-numeric: tabular-nums; }
.rq-error { font-size: 14px; color: var(--danger); font-weight: 600; }
.rq-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.rq-hint { font-size: 13.5px; color: var(--label-2); }
.rq-next .i, .rq-send .i { transition: transform var(--t-mid) var(--spring); }
.rq-next:hover .i { transform: translateX(4px); }
.rq-back { width: 50px; padding: 0; }
.rq-back .i { transform: rotate(180deg); }
.rq-actions-2 .rq-send { margin-left: auto; }
.rq.is-sending .rq-send { pointer-events: none; opacity: 0.7; }
.rq.is-sending .rq-send .i { animation: rq-fly 0.9s ease-in-out infinite; }
@keyframes rq-fly { 50% { transform: translate(4px, -4px); } }

.rq-group { display: grid; gap: 10px; }
.rq-label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; font-weight: 700; color: var(--label-2); }
.rq-budget { font-size: 16px; font-weight: 800; color: var(--ink); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.rq-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rq-chips .chip, .rq-presets .chip { display: inline-flex; align-items: center; gap: 7px; font-size: 14.5px; padding: 9px 14px; }
.rq-chips .chip .i { width: 17px; height: 17px; opacity: 0.8; }
.rq-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.rq-presets .chip { font-size: 13.5px; padding: 7px 12px; }

/* dual range */
.rq-range { --lo: 10%; --hi: 40%; position: relative; height: 44px; margin-top: 2px; }
.rq-rtrack { position: absolute; left: 0; right: 0; top: 14px; height: 8px; border-radius: 8px; background: var(--fill); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12); }
.rq-rtrack i { position: absolute; top: 0; bottom: 0; left: var(--lo); right: calc(100% - var(--hi)); border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--green)); box-shadow: 0 0 12px rgba(var(--brand-rgb), 0.55); transition: left 0.15s ease, right 0.15s ease; }
.rq-range input[type="range"] { position: absolute; left: -2px; right: -2px; width: calc(100% + 4px); top: 4px; height: 28px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; z-index: 2; }
.rq-range input[type="range"]::-webkit-slider-runnable-track { background: none; height: 28px; box-shadow: none; }
.rq-range input[type="range"]::-moz-range-track { background: none; height: 28px; box-shadow: none; }
.rq-range input[type="range"]::-moz-range-progress { background: none; }
.rq-range input[type="range"]::-webkit-slider-thumb { pointer-events: auto; -webkit-appearance: none; width: 28px; height: 28px; margin-top: 0; border-radius: 50%; background: #fff; border: 0; cursor: grab; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), 0 0 0 0.5px rgba(0, 0, 0, 0.08), inset 0 -2px 3px rgba(0, 0, 0, 0.06); transition: transform 0.2s var(--spring); }
.rq-range input[type="range"]::-moz-range-thumb { pointer-events: auto; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 0; cursor: grab; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), 0 0 0 0.5px rgba(0, 0, 0, 0.08); }
.rq-range input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); cursor: grabbing; }
.rq-range input[type="range"]:focus-visible { outline: none; }
.rq-range input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 5px rgba(var(--brand-rgb), 0.35), 0 4px 12px rgba(0, 0, 0, 0.25); }
.rq-scale { position: absolute; left: 0; right: 0; bottom: -4px; display: flex; justify-content: space-between; font-size: 11.5px; color: var(--label-3); font-weight: 600; }
.rq.bud-unknown .rq-range { opacity: 0.35; filter: grayscale(1); }
.rq-presets .chip[aria-pressed="true"] { background: var(--ink-fill); color: var(--on-ink); }

/* done */
.rq-done { text-align: center; justify-items: center; padding: 8px 0 4px; outline: none; }
.rq-check { position: relative; width: 92px; height: 92px; margin-bottom: 8px; }
.rq-check svg { width: 100%; height: 100%; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.rq-check circle { stroke: var(--green-deep); stroke-width: 3; stroke-dasharray: 151; stroke-dashoffset: 151; fill: rgba(var(--green-rgb), 0.12); }
.rq-check path { stroke: var(--green-deep); stroke-width: 4; stroke-dasharray: 40; stroke-dashoffset: 40; }
.rq.is-done .rq-check circle { animation: rq-draw 0.7s var(--ease-out) 0.15s forwards; }
.rq.is-done .rq-check path { animation: rq-draw 0.45s var(--ease-out) 0.7s forwards; }
@keyframes rq-draw { to { stroke-dashoffset: 0; } }
.rq-spark { position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px; border-radius: 2px; background: var(--c); animation: rq-spark 1.1s var(--ease-out) forwards; }
@keyframes rq-spark { 0% { transform: translate(0, 0) scale(1) rotate(0); opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) scale(0.2) rotate(240deg); opacity: 0; } }
.rq-done-title { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; }
.rq-done-text { color: var(--label-2); max-width: 42ch; }
.rq-done .rq-actions { justify-content: center; }
@media (max-width: 560px) {
  .rq-steps li:not(.is-cur) { font-size: 0; gap: 0; }
  .rq-steps li + li::before { width: 16px; }
  .rq-actions-2 { display: grid; grid-template-columns: 50px 1fr; }
  .rq-actions-2 .rq-send { grid-column: 1 / -1; margin: 0; order: -1; width: 100%; }
  .rq-next { width: 100%; }
}

/* no form endpoint yet: the visitor sends the prepared text via Telegram / e-mail */
.rq-fb-actions { margin-top: 18px; }
.rq-check-fb { display: grid; place-items: center; border-radius: 50%; color: var(--green-deep); background: rgba(var(--green-rgb), 0.12); box-shadow: inset 0 0 0 3px rgba(var(--green-rgb), 0.35); }
.rq-check-fb .i { width: 38px; height: 38px; }
.form-send { margin-top: 16px; padding: 16px; border-radius: 18px; background: rgba(var(--brand-rgb), 0.08); box-shadow: inset 0 0 0 1px rgba(var(--brand-rgb), 0.18); }
.form-send p { font-size: 14.5px; color: var(--label-2); }
.form-send p b { color: var(--ink); }
.form-send .rq-actions { margin-top: 12px; flex-wrap: wrap; }

/* ==== 09-home.css ==== */
/* =====================================================================
   Home: hero (Company Brain scene), logos, statement, skills, pipeline
   ===================================================================== */
.eb-dot { width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(145deg, var(--brand), var(--green)); box-shadow: 0 0 10px rgba(var(--brand-rgb), 0.8); flex: none; }

/* ---------- Hero ---------- */
.hh { position: relative; min-height: max(760px, 100svh); padding: calc(var(--header-h) + 48px) 0 72px; overflow: hidden; display: flex; align-items: center; }
.hh > .aurora { opacity: 0.9; }
.hh-in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.hh-pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: var(--r-pill); font-size: 14px; font-weight: 700;
  background: var(--g-fill-thin); -webkit-backdrop-filter: blur(18px) saturate(190%); backdrop-filter: blur(18px) saturate(190%); box-shadow: var(--g-rims), 0 0 0 0.5px var(--g-edge), 0 8px 24px -12px rgba(var(--brand-rgb), 0.5);
}
.hh-pill-ic { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, var(--brand), var(--green)); box-shadow: 0 4px 12px -2px rgba(var(--brand-rgb), 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.hh-pill-ic .i { width: 16px; height: 16px; }
.hh-pill-sep { width: 1px; height: 14px; background: var(--sep); }
.hh-pill-note { font-weight: 600; color: var(--label-2); }
.hh-title { margin-top: 24px; font-size: clamp(46px, 6.3vw, 100px); }
.hh-lead { margin-top: 24px; max-width: 32em; }
.hh-cta { margin-top: 34px; }
.hh-meta { display: flex; flex-wrap: wrap; gap: 14px 30px; margin-top: 38px; }
.hh-meta li { display: grid; }
.hh-meta b { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }
.hh-meta span { font-size: 13.5px; color: var(--label-2); }

.hh-stage { position: relative; width: 100%; max-width: 660px; aspect-ratio: 1; justify-self: center; }
.hh-cv { position: absolute; left: -12%; top: -12%; width: 124%; height: 124%; max-width: none; pointer-events: none; }
.hh-orb {
  position: absolute; left: 50%; top: 48%; width: 42%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; z-index: 3;
  background:
    radial-gradient(60% 60% at 32% 26%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 60%),
    radial-gradient(80% 80% at 70% 85%, rgba(var(--green-rgb), 0.16), rgba(var(--green-rgb), 0) 60%),
    radial-gradient(100% 100% at 50% 50%, rgba(var(--brand-rgb), 0.04), rgba(var(--brand-rgb), 0.16));
  -webkit-backdrop-filter: blur(1.5px) saturate(170%); backdrop-filter: var(--refract, ) blur(1.5px) saturate(170%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.55), inset 0 14px 30px rgba(255, 255, 255, 0.35), inset 0 -24px 50px rgba(var(--brand-rgb), 0.28),
    inset 18px 0 40px -20px rgba(255, 255, 255, 0.5), 0 40px 90px -30px rgba(8, 110, 160, 0.55), 0 0 60px -10px rgba(var(--brand-rgb), 0.35);
}
.hh-orb::before { content: ""; position: absolute; left: 14%; top: 8%; width: 44%; height: 26%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0)); transform: rotate(-24deg); filter: blur(2px); opacity: 0.85; }
.hh-orb::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; padding: 1.5px; background: conic-gradient(from var(--orb-a, 0deg), rgba(255, 255, 255, 0.9), rgba(var(--brand-rgb), 0.2) 25%, rgba(255, 255, 255, 0.1) 45%, rgba(var(--green-rgb), 0.6) 70%, rgba(255, 255, 255, 0.9)); -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); animation: orb-rim 9s linear infinite; }
@property --orb-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes orb-rim { to { --orb-a: 360deg; } }
:root[data-theme="dark"] .hh-orb { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), inset 0 14px 30px rgba(255, 255, 255, 0.1), inset 0 -24px 50px rgba(var(--brand-rgb), 0.3), 0 40px 90px -30px rgba(0, 0, 0, 0.8), 0 0 80px -10px rgba(var(--brand-rgb), 0.45); }
:root[data-theme="dark"] .hh-orb::before { opacity: 0.4; }
.hh-orb-core { position: absolute; inset: 30%; border-radius: 50%; background: radial-gradient(circle, rgba(var(--brand-rgb), 0.28), rgba(var(--brand-rgb), 0) 70%); animation: orb-pulse 3.2s ease-in-out infinite; }
@keyframes orb-pulse { 50% { transform: scale(1.25); opacity: 0.6; } }
.hh-orb-label {
  /* по центру сферы: орбита иконок проходит через центр только за пределами сферы, поэтому подпись ни с чем не пересекается */
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: 5; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; padding: 7px 14px 7px 10px; border-radius: var(--r-pill);
  font-size: 13px; font-weight: 800; letter-spacing: -0.01em; color: var(--ink);
  background: var(--g-fill-thick); -webkit-backdrop-filter: blur(20px) saturate(200%); backdrop-filter: blur(20px) saturate(200%); box-shadow: var(--g-shadow), var(--g-rims), 0 0 0 0.5px var(--g-edge);
}
.hh-orb-label svg { width: 13px; height: 16px; color: var(--brand); }

.hh-src { position: absolute; inset: 0; pointer-events: none; }
.hh-src li { position: absolute; left: 50%; top: 48%; z-index: 4; display: grid; justify-items: center; gap: 6px; margin: -28px 0 0 -28px; width: 56px; will-change: transform, opacity; }
.hh-src li.is-back { z-index: 1; }
.hh-src small { font-size: 11.5px; font-weight: 700; color: var(--label-2); white-space: nowrap; padding: 2px 8px; border-radius: 999px; background: var(--g-fill-thin); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.hh-src .app-icon { --s: 50px; font-weight: 800; font-size: 16px; letter-spacing: -0.03em; }
.hs-1c { background: linear-gradient(145deg, #ffd44d, #f2a007); color: #b21e1e; --ic-glow: 242, 160, 7; }
.hs-tg { background: linear-gradient(145deg, #5dc8ff, #1b8ed9); --ic-glow: 27, 142, 217; }
.hs-xl { background: linear-gradient(145deg, #3fd08a, #13874f); --ic-glow: 19, 135, 79; }
.hs-pdf { background: linear-gradient(145deg, #ff7a7a, #d6303a); --ic-glow: 214, 48, 58; }

.hh-feed { position: absolute; right: -2%; bottom: 7%; width: min(320px, 62%); z-index: 4; display: grid; gap: 10px; }
.hh-card {
  display: grid; grid-template-columns: 34px 1fr; gap: 4px 10px; padding: 12px 14px; border-radius: 20px; color: var(--ink);
  background: var(--g-fill-thick); -webkit-backdrop-filter: blur(26px) saturate(200%); backdrop-filter: blur(26px) saturate(200%);
  box-shadow: var(--g-shadow-lift), var(--g-rims), 0 0 0 0.5px var(--g-edge);
  transform-origin: 20% 0; animation: hh-card-in 0.7s var(--spring) both;
}
.hh-card.is-out { animation: hh-card-out 0.45s ease forwards; }
.hh-card .app-icon { --s: 34px; grid-row: span 3; }
.hh-card b { font-size: 13.5px; font-weight: 700; line-height: 1.3; }
.hh-card span { font-size: 13px; color: var(--label-2); line-height: 1.35; }
.hh-card small { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; color: var(--brand-ink); }
.hh-card small::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 6px rgba(var(--green-rgb), 0.9); }
@keyframes hh-card-in { from { opacity: 0; transform: translateY(18px) scale(0.86); filter: blur(6px); } }
@keyframes hh-card-out { to { opacity: 0; transform: translateY(-14px) scale(0.92); filter: blur(4px); } }
.hh-status {
  position: absolute; left: 0; bottom: 4%; z-index: 4; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--r-pill); font-size: 12.5px; color: var(--label-2);
  background: var(--g-fill); -webkit-backdrop-filter: blur(18px) saturate(190%); backdrop-filter: blur(18px) saturate(190%); box-shadow: var(--g-shadow), var(--g-rims), 0 0 0 0.5px var(--g-edge);
}
.hh-status b { color: var(--ink); }
.hh-status [data-hh-docs] { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.hh-scroll { position: absolute; left: 50%; bottom: 22px; translate: -50% 0; width: 26px; height: 40px; border-radius: 14px; box-shadow: inset 0 0 0 2px var(--fill-2); z-index: 2; }
.hh-scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--label-2); animation: hh-wheel 1.8s ease-in-out infinite; }
@keyframes hh-wheel { 0% { opacity: 0; transform: translateY(-2px); } 30% { opacity: 1; } 80% { opacity: 0; transform: translateY(12px); } 100% { opacity: 0; } }
.motion .hh-copy > *, .motion .hh-stage { opacity: 0; }
.motion .hh-title.is-split { opacity: 1; }
@media (max-width: 1000px) {
  .hh { min-height: 0; padding-top: calc(var(--header-h) + 36px); }
  .hh-in { grid-template-columns: minmax(0, 1fr); }
  .hh-stage { max-width: 520px; margin-top: 8px; }
  .hh-scroll { display: none; }
}
@media (max-width: 560px) {
  .hh-stage { width: 112%; margin-left: -6%; }
  .hh-src .app-icon { --s: 40px; font-size: 13px; }
  .hh-src small { font-size: 10.5px; }
  .hh-feed { right: 8%; left: 8%; width: auto; bottom: -6%; }
  .hh-feed .hh-card:not(:last-child) { display: none; }
  .hh-stage { margin-top: -10%; margin-bottom: 8%; }
  .hh-status { display: none; }
  .hh-meta { gap: 12px 22px; }
}

/* ---------- Logos: two opposite marquees ---------- */
.lg-logos { position: relative; padding: clamp(48px, 7vw, 96px) 0; }
.lg-logos-head { display: flex; align-items: center; gap: clamp(16px, 3vw, 36px); margin-bottom: clamp(24px, 3vw, 40px); }
.lg-logos-count b { display: block; font-size: clamp(64px, 8vw, 120px); font-weight: 800; letter-spacing: -0.06em; line-height: 0.85; background: linear-gradient(120deg, var(--brand-deep), var(--brand) 45%, var(--green)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lg-logos-title { font-size: clamp(18px, 1.8vw, 26px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; max-width: 26ch; }
.lg-rows { display: grid; gap: 16px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.lg-row { display: flex; overflow: hidden; }
.lg-track { display: flex; gap: 16px; padding-right: 16px; flex: none; animation: lg-marq 70s linear infinite; }
.lg-row.is-rev .lg-track { animation-direction: reverse; animation-duration: 80s; }
.lg-row:hover .lg-track { animation-play-state: paused; }
.lg-tile { position: relative; width: clamp(176px, 16vw, 216px); aspect-ratio: 480 / 252; flex: none; border-radius: 22px; overflow: hidden; background: #fff; box-shadow: var(--card-shadow), inset 0 0 0 1px rgba(20, 40, 60, 0.05); transition: box-shadow var(--t-mid) ease; --zoom: 1.8; --lens: 96px; }
/* наведение: плитка не двигается (ряд обрезан по высоте). Вместо этого — «лупа» из жидкого стекла:
   круглая линза едет за курсором (--mx/--my/--img/--lens из home.js) и увеличивает логотип под собой
   (тот же файл фоном, масштаб --zoom, позиция считается так, чтобы точка под курсором осталась на месте),
   остальной логотип слегка «запотевает»; по краю плитки бежит световой ободок */
.lg-tile img { width: 100%; height: 100%; object-fit: contain; transition: filter 0.45s ease, opacity 0.45s ease; }
.lg-tile::before { content: ""; position: absolute; z-index: 2; pointer-events: none; left: var(--mx, 50%); top: var(--my, 50%); width: var(--lens); height: var(--lens); border-radius: 50%; transform: translate(-50%, -50%) scale(0.3); opacity: 0;
  background-color: #fff;
  background-image:
    radial-gradient(circle at 31% 24%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 36%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0) 56%, rgba(var(--brand-rgb), 0.14) 80%, rgba(var(--green-rgb), 0.18) 92%, rgba(255, 255, 255, 0.9) 100%),
    var(--img, none);
  background-repeat: no-repeat;
  background-size: 100% 100%, 100% 100%, calc(var(--w, 216px) * var(--zoom)) calc(var(--h, 113px) * var(--zoom));
  background-position: 0 0, 0 0, calc(var(--lens) / 2 - var(--mx, 0px) * var(--zoom)) calc(var(--lens) / 2 - var(--my, 0px) * var(--zoom));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.9), inset 0 -12px 20px rgba(20, 40, 60, 0.14), inset 0 12px 18px rgba(255, 255, 255, 0.55), 0 18px 34px -12px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(20, 40, 60, 0.1);
  transition: transform 0.5s var(--spring), opacity 0.22s ease; }
.lg-tile::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit; padding: 2px; opacity: 0; transition: opacity 0.35s ease; background: conic-gradient(from var(--orb-a, 0deg), rgba(var(--brand-rgb), 0) 0%, var(--brand) 18%, var(--green) 32%, rgba(var(--brand-rgb), 0) 48%, rgba(var(--brand-rgb), 0) 100%); -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); }
@media (hover: hover) {
  .lg-tile:hover { box-shadow: var(--card-shadow-lift), inset 0 0 0 1px rgba(20, 40, 60, 0.05); }
  .lg-tile:hover img { filter: blur(1.4px) saturate(0.7); opacity: 0.55; }
  .lg-tile:hover::before { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  .lg-tile:hover::after { opacity: 1; animation: orb-rim 2.4s linear infinite; }
}
:root[data-theme="dark"] .lg-tile { background: #f3f4f6; box-shadow: 0 10px 30px -14px rgba(0, 0, 0, 0.8); filter: brightness(0.94); }
:root[data-theme="dark"] .lg-tile:hover { filter: none; }
@keyframes lg-marq { to { transform: translateX(-100%); } }
@media (max-width: 600px) { .lg-logos-head { flex-direction: column; align-items: flex-start; gap: 10px; } .lg-rows { gap: 10px; } .lg-track { gap: 10px; padding-right: 10px; } .lg-tile { width: 150px; border-radius: 16px; } }
@media (prefers-reduced-motion: reduce) { .lg-track { animation: none; } .lg-row.is-rev { justify-content: flex-end; } .lg-tile img, .lg-tile::before { transition: none; } .lg-tile:hover::after { animation: none; } }

/* ---------- Statement: chaos → one brain ---------- */
.st { position: relative; }
.st-pin { display: flex; align-items: center; padding: clamp(64px, 8vw, 104px) 0; }
.st-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; width: min(100% - 2 * var(--gutter), var(--max)); }
.st-title { font-size: clamp(30px, 3.2vw, 48px); }
.st-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 36px; }
.st-stats li { padding: 18px; border-radius: 22px; background-color: var(--card-fill); -webkit-backdrop-filter: blur(var(--card-blur)) saturate(180%); backdrop-filter: blur(var(--card-blur)) saturate(180%); box-shadow: var(--card-shadow), var(--card-rims); }
.st-stats b { display: block; font-size: clamp(26px, 2.6vw, 36px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.st-stats span { display: block; margin-top: 10px; font-size: 13.5px; color: var(--label-2); line-height: 1.35; }
.st-stats sup, .st-note sup { color: var(--brand-ink); font-weight: 700; }
.st-note { margin-top: 14px; font-size: 12px; color: var(--label-3); }
.st-scene { position: relative; height: clamp(440px, 46vw, 580px); }
.st-card {
  --x: 0px; --y: 0px; --r: 0deg; position: absolute; left: 50%; top: 50%; width: 270px; display: flex; gap: 12px; align-items: center; padding: 11px 14px 11px 11px; border-radius: 18px;
  background-color: var(--card-fill); -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%); box-shadow: var(--card-shadow-lift), var(--card-rims);
  transform: translate(-50%, -50%) translate(var(--x), var(--y)) rotate(var(--r)); will-change: transform;
}
.st-card > span:last-child { min-width: 0; }
.st-card b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-card small { display: block; font-size: 12px; color: var(--label-2); }
.st-card .app-icon { --s: 34px; font-size: 12px; font-weight: 800; }
.st-card.c1 { --x: -150px; --y: -210px; --r: -8deg; }
.st-card.c2 { --x: 130px; --y: -170px; --r: 6deg; }
.st-card.c3 { --x: -190px; --y: -60px; --r: 4deg; }
.st-card.c4 { --x: 170px; --y: -40px; --r: -5deg; }
.st-card.c5 { --x: -120px; --y: 80px; --r: -3deg; }
.st-card.c6 { --x: 160px; --y: 110px; --r: 7deg; }
.st-card.c7 { --x: -170px; --y: 200px; --r: 5deg; }
.st-card.c8 { --x: 120px; --y: 230px; --r: -6deg; }
.st-brain {
  position: absolute; left: 50%; top: 50%; width: min(400px, 94%); translate: -50% -50%; z-index: 2; padding: 18px; border-radius: 26px;
  background-color: var(--g-fill-thick); background-image: radial-gradient(120% 80% at 20% -10%, var(--g-spec), rgba(255, 255, 255, 0) 55%);
  -webkit-backdrop-filter: blur(30px) saturate(200%); backdrop-filter: blur(30px) saturate(200%);
  box-shadow: 0 40px 90px -30px rgba(8, 100, 150, 0.45), var(--g-rims), 0 0 0 0.5px var(--g-edge), 0 0 0 6px rgba(var(--brand-rgb), 0.08);
}
.st-brain-head { display: flex; align-items: center; gap: 10px; }
.st-brain-head b { font-size: 15px; }
.st-brain-src { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--green-deep); padding: 4px 10px; border-radius: 999px; background: rgba(var(--green-rgb), 0.14); font-variant-numeric: tabular-nums; }
:root[data-theme="dark"] .st-brain-src { color: #3ff2cc; }
.st-brain-q { margin-top: 14px; padding: 10px 14px; border-radius: 14px; background: var(--fill); font-size: 14px; font-weight: 600; }
.st-brain-a { margin-top: 12px; font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
.st-brain .cite { background: rgba(var(--brand-rgb), 0.16); color: var(--brand-ink); }
.st-brain-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.st-brain-chips span { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 10px; background: var(--fill); color: var(--label-2); }
.st-brain-chips .i { width: 14px; height: 14px; color: var(--brand-ink); }
@media (max-width: 1000px) {
  .st-pin { min-height: 0; }
  .st-in { grid-template-columns: 1fr; }
  .st-scene { height: 520px; }
}
@media (max-width: 560px) {
  .st-stats { grid-template-columns: 1fr; }
  .st-stats li { display: flex; gap: 14px; align-items: baseline; }
  .st-stats b { flex: none; min-width: 3.4ch; white-space: nowrap; }
  .st-stats span { margin: 0; }
  .st-scene { height: 470px; }
  .st-card { width: 220px; }
  .st-card.c1, .st-card.c3, .st-card.c5, .st-card.c7 { --x: -70px; }
  .st-card.c2, .st-card.c4, .st-card.c6, .st-card.c8 { --x: 70px; }
}

/* ---------- Skills rail ---------- */
.sk { position: relative; }
.sk-pin { padding: clamp(80px, 10vw, 120px) 0 clamp(60px, 7vw, 90px); overflow: hidden; }
.sk-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 40px; }
.sk-head .lead { max-width: 30em; }
.sk-rail { position: relative; }
.sk-track { display: flex; gap: 18px; width: max-content; padding: 14px max(var(--gutter), calc((100vw - var(--max)) / 2)) 34px; will-change: transform; }
.sk-card {
  width: 330px; min-height: 430px; flex: none; border-radius: 30px; padding: 26px; display: flex; flex-direction: column; gap: 12px; position: relative; overflow: hidden;
  background-color: var(--card-fill); -webkit-backdrop-filter: blur(var(--card-blur)) saturate(180%); backdrop-filter: blur(var(--card-blur)) saturate(180%); box-shadow: var(--card-shadow), var(--card-rims);
  transition: translate var(--t-mid) var(--ease-out), box-shadow var(--t-mid) ease;
}
.sk-card::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--brand-rgb), 0.16), rgba(var(--brand-rgb), 0) 70%); pointer-events: none; }
@media (hover: hover) { .sk-card:hover { translate: 0 -6px; box-shadow: var(--card-shadow-lift), var(--card-rims); } }
.sk-top { display: flex; justify-content: space-between; align-items: flex-start; }
.sk-n { font-size: 13px; font-weight: 800; color: var(--label-3); font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.sk-name { font-size: 24px; letter-spacing: -0.03em; margin-top: 12px; }
.sk-text { color: var(--label-2); font-size: 15px; line-height: 1.5; }
.sk-kpi { margin-top: auto; padding-top: 16px; box-shadow: inset 0 1px 0 var(--sep); }
.sk-kpi b { display: block; font-size: 28px; font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; background: linear-gradient(100deg, var(--brand-deep), var(--brand) 50%, var(--green)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sk-kpi span { display: block; font-size: 13.5px; color: var(--label-2); margin-top: 4px; }
.sk-more { background: radial-gradient(90% 70% at 100% 0%, rgba(var(--brand-rgb), 0.45), rgba(var(--brand-rgb), 0) 60%), linear-gradient(160deg, #15171c, #050607); color: #fff; justify-content: flex-end; box-shadow: var(--card-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.14); }
.sk-more .sk-text { color: var(--night-label-2); }
.sk-more .btn { align-self: flex-start; margin-top: 10px; }
.sk-more-ic { width: 64px; height: 64px; border-radius: 22px; display: grid; place-items: center; margin-bottom: auto; background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.sk-more-ic .i { width: 28px; height: 28px; }
.sk-progress { height: 3px; border-radius: 3px; background: var(--fill); overflow: hidden; }
.sk-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--green)); transform-origin: 0 50%; transform: scaleX(0); }
@media (max-width: 900px) {
  .sk-head { flex-direction: column; align-items: flex-start; }
  .sk-rail { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .sk-rail::-webkit-scrollbar { display: none; }
  .sk-card { width: min(300px, 80vw); min-height: 400px; scroll-snap-align: center; }
  .sk-progress { display: none; }
}

/* ---------- Pipeline (process as CI/CD) ---------- */
.pl { position: relative; }
.pl-pin { padding: clamp(80px, 10vw, 120px) 0 clamp(60px, 8vw, 100px); }
.pl-track { --pl-p: 0; position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.pl-track::before, .pl-track::after { content: ""; position: absolute; left: 8%; right: 8%; top: 33px; height: 2px; border-radius: 2px; }
.pl-track::before { background: repeating-linear-gradient(90deg, var(--fill-2) 0 8px, transparent 8px 14px); }
.pl-track::after { background: linear-gradient(90deg, var(--brand), var(--green)); box-shadow: 0 0 10px rgba(var(--brand-rgb), 0.7); transform-origin: 0 50%; transform: scaleX(var(--pl-p)); }
.pl-node { position: relative; z-index: 1; }
.pl-job {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px 11px 11px; border-radius: 20px;
  background-color: var(--card-fill); -webkit-backdrop-filter: blur(var(--card-blur)) saturate(180%); backdrop-filter: blur(var(--card-blur)) saturate(180%); box-shadow: var(--card-shadow), var(--card-rims);
  transition: box-shadow var(--t-mid) ease, transform var(--t-mid) var(--spring);
}
.pl-node.is-run .pl-job { transform: translateY(-4px); box-shadow: var(--card-shadow-lift), var(--card-rims), 0 0 0 2px rgba(var(--brand-rgb), 0.5); }
.pl-status { position: relative; width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--fill); color: var(--label-2); transition: background var(--t-mid) ease, color var(--t-mid) ease; }
.pl-status .i { width: 20px; height: 20px; grid-area: 1 / 1; transition: opacity 0.25s ease, transform 0.4s var(--spring); }
.pl-ok { opacity: 0; transform: scale(0.4); }
.pl-spin { position: absolute; inset: 5px; border-radius: 11px; border: 2px solid rgba(var(--brand-rgb), 0.2); border-top-color: var(--brand); opacity: 0; animation: pl-spin 0.9s linear infinite; }
@keyframes pl-spin { to { transform: rotate(360deg); } }
.pl-node.is-run .pl-status { background: rgba(var(--brand-rgb), 0.12); color: var(--brand-ink); }
.pl-node.is-run .pl-spin { opacity: 1; }
.pl-node.is-done .pl-status { background: linear-gradient(145deg, #3ff2cc, #05b58f); color: #fff; box-shadow: 0 8px 18px -8px rgba(var(--green-rgb), 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.pl-node.is-done .pl-ic { opacity: 0; transform: scale(0.4); }
.pl-node.is-done .pl-ok { opacity: 1; transform: none; }
.pl-job-t { min-width: 0; }
.pl-job-t b { display: block; font-size: 16px; letter-spacing: -0.02em; line-height: 1.2; }
.pl-job-t small { display: block; font-size: 12.5px; color: var(--label-2); margin-top: 2px; }
.pl-detail { margin-top: 14px; padding: 0 4px; opacity: 0.4; transform: translateY(6px); transition: opacity 0.5s ease, transform 0.6s var(--ease-out); }
.pl-node.is-run .pl-detail, .pl-node.is-done .pl-detail { opacity: 1; transform: none; }
.pl-detail p { font-size: 14.5px; color: var(--label-2); line-height: 1.45; }
.pl-art { display: inline-flex !important; align-items: center; gap: 6px; margin-top: 10px; padding: 6px 10px; border-radius: 10px; background: var(--fill); font-size: 12.5px !important; font-weight: 700; color: var(--ink) !important; }
.pl-art .i { width: 14px; height: 14px; color: var(--brand-ink); }
.pl-console { margin-top: 34px; border-radius: 22px; overflow: hidden; background: #0a0b0e; color: #d8e1ea; box-shadow: var(--card-shadow-lift), inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.05); font: 500 13.5px/1.7 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; }
.pl-console-bar { display: flex; align-items: center; gap: 8px; padding: 11px 16px; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.06); font-size: 12px; color: rgba(235, 235, 245, 0.55); }
.pl-console-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.pl-console-bar i:nth-child(2) { background: #febc2e; } .pl-console-bar i:nth-child(3) { background: #28c840; margin-right: 8px; }
.pl-console-state { margin-left: auto; padding: 2px 10px; border-radius: 999px; font-weight: 700; background: rgba(255, 255, 255, 0.08); color: rgba(235, 235, 245, 0.8); text-transform: uppercase; letter-spacing: 0.06em; font-size: 11px; }
.pl-console-state.is-run { background: rgba(var(--brand-rgb), 0.2); color: #7fe0ff; }
.pl-console-state.is-ok { background: rgba(var(--green-rgb), 0.2); color: #3ff2cc; }
.pl-console-body { padding: 16px 18px 18px; min-height: 206px; }
.pl-cmd { color: rgba(235, 235, 245, 0.7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-cmd span { color: #3ff2cc; margin-right: 6px; }
.pl-line { display: grid; grid-template-columns: 124px minmax(0, 1fr) auto; gap: 14px; opacity: 0; transform: translateX(-8px); transition: opacity 0.35s ease, transform 0.45s var(--ease-out); }
.pl-line.is-on { opacity: 1; transform: none; }
.pl-l-stage { color: #7fe0ff; }
.pl-l-msg { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-l-res { color: #3ff2cc; }
.pl-final .pl-l-stage, .pl-final .pl-l-msg { color: #3ff2cc; font-weight: 700; }
.pl-foot { margin-top: 20px; }
@media (max-width: 1000px) {
  .pl-track { grid-template-columns: 1fr; gap: 12px; padding-left: 0; }
  .pl-track::before, .pl-track::after { left: 32px; right: auto; top: 22px; bottom: 22px; width: 2px; height: auto; }
  .pl-track::before { background: repeating-linear-gradient(180deg, var(--fill-2) 0 8px, transparent 8px 14px); }
  .pl-track::after { transform-origin: 50% 0; transform: scaleY(var(--pl-p)); }
  .pl-node { display: grid; grid-template-columns: 1fr; }
  .pl-detail { padding-left: 70px; margin-top: 8px; }
  .pl-line { grid-template-columns: 1fr auto; }
  .pl-l-stage { grid-column: 1 / -1; }
  .pl-console { font-size: 12px; }
}

/* ==== 10-calc.css ==== */
/* =====================================================================
   Calculator (Apple-Store-like configurator)
   ===================================================================== */
.cx { position: relative; }
.cx-presets { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; }
.cx-presets-l { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--label-2); margin-right: 4px; }
.cx-presets-l .i { width: 16px; height: 16px; color: var(--brand); }
.cx-preset {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 12px; border-radius: 999px; font-size: 14.5px; font-weight: 600; color: var(--ink);
  background: var(--g-fill-thin); -webkit-backdrop-filter: blur(14px) saturate(180%); backdrop-filter: blur(14px) saturate(180%); box-shadow: var(--g-rims), 0 0 0 0.5px var(--g-edge);
  transition: background-color var(--t-mid) ease, color var(--t-mid) ease, transform var(--t-fast) var(--ease-out), box-shadow var(--t-mid) ease;
}
.cx-preset .i { width: 17px; height: 17px; color: var(--brand-ink); }
.cx-preset:hover { background: var(--g-fill); }
.cx-preset:active { transform: scale(0.95); }
.cx-preset[aria-pressed="true"] { background: var(--ink-fill); color: var(--on-ink); box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.5); }
.cx-preset[aria-pressed="true"] .i { color: var(--brand); }

.cx-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
.cx-steps { display: grid; gap: 14px; }
.cx-step, .cx-pair > .cx-step {
  border: 0; margin: 0; min-width: 0; padding: 22px; border-radius: 26px;
  background-color: var(--card-fill); -webkit-backdrop-filter: blur(var(--card-blur)) saturate(180%); backdrop-filter: blur(var(--card-blur)) saturate(180%); box-shadow: var(--card-shadow), var(--card-rims);
}
.cx-pair { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 14px; }
.cx-lg { float: left; display: flex; align-items: center; gap: 10px; width: 100%; padding: 0; margin-bottom: 16px; font-size: 17px; font-weight: 700; letter-spacing: -0.015em; }
.cx-lg small { font-size: 13px; font-weight: 600; color: var(--label-2); margin-left: 2px; }
.cx-n { width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center; flex: none; font-size: 13px; font-weight: 800; color: #fff; background: linear-gradient(145deg, #3fd3ff, #0797c4); box-shadow: 0 5px 12px -5px rgba(var(--brand-rgb), 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.45); }
.cx-val { margin-left: auto; font-size: 15px; font-weight: 800; color: var(--brand-ink); font-variant-numeric: tabular-nums; }
.cx-hint { font-size: 13.5px; color: var(--label-2); margin-top: 12px; }
.cx-lg + * { clear: both; }

.cx-skills { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.cx-skill {
  position: relative; display: grid; gap: 10px; justify-items: start; text-align: left; padding: 14px; border-radius: 20px; min-height: 124px; color: var(--ink);
  background: var(--fill); box-shadow: inset 0 0 0 1.5px transparent; transition: background-color var(--t-mid) ease, box-shadow var(--t-mid) ease, transform var(--t-fast) var(--ease-out);
}
.cx-skill:hover { background: var(--fill-2); }
.cx-skill:active { transform: scale(0.97); }
.cx-skill .app-icon { --s: 40px; transition: transform var(--t-mid) var(--spring); }
.cx-skill-t b { display: block; font-size: 14.5px; line-height: 1.2; letter-spacing: -0.01em; }
.cx-skill-t small { display: block; font-size: 12px; color: var(--label-2); margin-top: 3px; line-height: 1.25; }
.cx-tick { position: absolute; top: 12px; right: 12px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--fill-2); transition: background var(--t-mid) ease, box-shadow var(--t-mid) ease, transform var(--t-mid) var(--spring); }
.cx-tick svg { width: 13px; height: 13px; color: #fff; opacity: 0; transform: scale(0.4); transition: opacity 0.2s ease, transform 0.35s var(--spring); }
.cx-skill.is-on { background: var(--bg-elev); box-shadow: inset 0 0 0 1.5px var(--brand), 0 10px 24px -14px rgba(var(--brand-rgb), 0.8); }
.cx-skill.is-on .app-icon { transform: scale(1.06) rotate(-4deg); }
.cx-skill.is-on .cx-tick { background: var(--brand); box-shadow: none; }
.cx-skill.is-on .cx-tick svg { opacity: 1; transform: none; }
.is-nope { animation: rq-shake 0.45s var(--ease-out); }

.cx-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cx-chip { display: inline-flex; align-items: center; gap: 8px; }
.cx-chip .i { width: 17px; height: 17px; }

.cx-slider { position: relative; padding: 6px 0 10px; }
.cx-range { width: 100%; }
.cx-ticks { display: flex; justify-content: space-between; padding: 0 10px; margin-top: 6px; }
.cx-ticks i { width: 2px; height: 6px; border-radius: 2px; background: var(--fill-2); }
.cx-ticks i.is-major { height: 10px; background: var(--label-3); }

.cx-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cx-seg button { display: grid; gap: 1px; padding: 8px 6px; line-height: 1.15; }
.cx-seg button b { font-size: 15px; font-weight: 700; }
.cx-seg button small { font-size: 11.5px; font-weight: 500; color: var(--label-2); }

.cx-stepper { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 16px; background: var(--fill); }
.cx-stepper button { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-elev); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); transition: transform var(--t-fast) var(--ease-out), opacity var(--t-fast) ease; }
.cx-stepper button:active { transform: scale(0.9); }
.cx-stepper button[disabled] { opacity: 0.35; cursor: default; }
.cx-stepper button .i { width: 18px; height: 18px; }
.cx-stepper output { min-width: 96px; text-align: center; font-weight: 800; font-size: 16px; }

.cx-deploy { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cx-deploy button { display: grid; gap: 4px; justify-items: start; text-align: left; padding: 12px 14px; border-radius: 18px; background: var(--fill); box-shadow: inset 0 0 0 1.5px transparent; transition: background var(--t-mid) ease, box-shadow var(--t-mid) ease; }
.cx-deploy button .i { width: 20px; height: 20px; color: var(--brand-ink); }
.cx-deploy button b { font-size: 15px; }
.cx-deploy button small { font-size: 12px; color: var(--label-2); line-height: 1.25; }
.cx-deploy button.is-on { background: var(--bg-elev); box-shadow: inset 0 0 0 1.5px var(--brand), 0 10px 24px -14px rgba(var(--brand-rgb), 0.8); }

.cx-extras { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cx-extra { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 18px; text-align: left; background: var(--fill); transition: background var(--t-mid) ease; }
.cx-extra:hover { background: var(--fill-2); }
.cx-extra .app-icon { --s: 36px; }
.cx-extra-t { flex: 1; min-width: 0; }
.cx-extra-t b { display: block; font-size: 14.5px; }
.cx-extra-t small { display: block; font-size: 12px; color: var(--label-2); line-height: 1.25; }
.cx-extra.is-urgent[aria-checked="true"] .switch { background: var(--warn); }

/* summary card */
.cx-sum { position: sticky; top: 90px; }
.cx-card {
  position: relative; overflow: hidden; isolation: isolate; container-type: inline-size; border-radius: 30px; padding: 24px; color: #fff;
  background: radial-gradient(120% 60% at 100% 0%, rgba(var(--brand-rgb), 0.35), rgba(var(--brand-rgb), 0) 60%), radial-gradient(90% 60% at 0% 100%, rgba(var(--green-rgb), 0.2), rgba(var(--green-rgb), 0) 60%), linear-gradient(165deg, #16181d, #07080a);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.cx-card.is-bump { animation: cx-bump 0.5s var(--spring); }
@keyframes cx-bump { 30% { transform: scale(1.012); } }
.cx-card-glow { position: absolute; inset: -40% -20% auto auto; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(var(--brand-rgb), 0.4), rgba(var(--brand-rgb), 0) 65%); z-index: -1; animation: drift-b 14s ease-in-out infinite alternate; }
.cx-l { font-size: 13.5px; font-weight: 700; color: var(--night-label-2); }
.cx-range-out { font-size: clamp(20px, 9.3cqi, 31px); white-space: nowrap; font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; margin-top: 6px; font-variant-numeric: tabular-nums; }
.cx-meter { position: relative; height: 8px; margin: 18px 0 26px; border-radius: 8px; background: rgba(255, 255, 255, 0.1); }
.cx-meter i { position: absolute; inset: 0; border-radius: inherit; transform-origin: 0 50%; background: linear-gradient(90deg, var(--brand), var(--green)); box-shadow: 0 0 14px rgba(var(--brand-rgb), 0.7); transition: transform 0.7s var(--spring); }
.cx-meter span { position: absolute; top: 14px; font-size: 11px; font-weight: 600; color: rgba(235, 235, 245, 0.45); }
.cx-meter span:nth-of-type(1) { left: 0; } .cx-meter span:nth-of-type(2) { left: 50%; translate: -50% 0; } .cx-meter span:nth-of-type(3) { right: 0; }
.cx-facts { display: grid; gap: 0; margin: 0; border-radius: 18px; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.cx-facts > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; }
.cx-facts > div + div { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07); }
.cx-facts dt { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--night-label-2); }
.cx-facts dt .i { width: 16px; height: 16px; color: #7fe0ff; }
.cx-facts dd { margin: 0; font-size: 14px; font-weight: 700; text-align: right; }
.cx-stack { display: flex; gap: 3px; height: 10px; margin-top: 18px; border-radius: 6px; overflow: hidden; }
.cx-stack i { flex: 0 0 auto; transition: flex-grow 0.6s var(--spring); min-width: 4px; }
.cx-c1 { background: #0abcf3; } .cx-c2 { background: #07e7b7; } .cx-c3 { background: #5b8cff; } .cx-c4 { background: #ffb020; } .cx-c5 { background: #c77dff; } .cx-c6 { background: #ff6b7a; }
.cx-parts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin-top: 12px; font-size: 12.5px; color: var(--night-label-2); }
.cx-parts li { display: flex; align-items: center; gap: 7px; }
.cx-parts li i { width: 8px; height: 8px; border-radius: 3px; flex: none; }
.cx-parts li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-parts li b { color: #fff; font-weight: 700; }
.cx-mult { margin-top: 10px; font-size: 12.5px; color: #ffcf6b; }
.cx-actions { display: grid; gap: 8px; margin-top: 18px; }
.cx-card .btn-glass { background: rgba(255, 255, 255, 0.08); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.cx-disc { margin-top: 14px; font-size: 11.5px; line-height: 1.45; color: rgba(235, 235, 245, 0.5); }

/* mobile bottom bar */
.cx-bar {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60; display: none; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 10px 10px 18px; border-radius: 22px; color: #fff;
  background: rgba(16, 18, 22, 0.82); -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transform: translateY(140%); transition: transform 0.5s var(--spring);
}
.cx-bar.is-on { transform: none; }
.cx-bar-t small { display: block; font-size: 11.5px; color: var(--night-label-2); }
.cx-bar-t b { display: block; font-size: 17px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
@media (max-width: 1100px) { .cx-skills { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 960px) {
  .cx-grid { grid-template-columns: 1fr; }
  .cx-sum { position: static; }
  .cx-bar { display: flex; }
}
@media (max-width: 640px) {
  .cx-step, .cx-pair > .cx-step { padding: 18px; border-radius: 22px; }
  .cx-pair { grid-template-columns: 1fr; }
  .cx-extras { grid-template-columns: 1fr; }
  .cx-skill { min-height: 0; grid-template-columns: auto 1fr; align-items: center; }
  .cx-skill .app-icon { --s: 36px; }
  .cx-presets { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 8px; scrollbar-width: none; }
  .cx-presets::-webkit-scrollbar { display: none; }
  .cx-preset { flex: none; }
}
@media (max-width: 420px) { .cx-skills { grid-template-columns: 1fr; } }

/* ==== 11-home2.css ==== */
/* =====================================================================
   Home part 2: roles Q&A, industries, showcase, team cards, wallet,
   partner simulator, request section
   ===================================================================== */

/* ---------- Ask Company Brain (roles) ---------- */
.ask { padding-block: var(--sp-section); }
.ask-in { position: relative; z-index: 1; }
.ask .sec-head { margin-bottom: 36px; }
.ask-eb { color: #7fe0ff; justify-content: center; }
.ask .lead { color: var(--night-label-2); }
.ask-roles { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; max-width: 1240px; margin: 0 auto 22px; }
@media (min-width: 861px) {
  /* 6 roles: one even row on wide screens, 3 + 3 on tablets — never a lonely chip on a second line */
  .ask-roles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .ask-role { min-width: 0; }
  .ask-role-t { min-width: 0; }
  .ask-role-t small { line-height: 1.25; }
}
@media (min-width: 861px) and (max-width: 1180px) { .ask-roles { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 760px; } }
.ask-role {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 10px; padding: 7px 16px 7px 7px; border-radius: 18px; color: #fff; text-align: left;
  background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: background var(--t-mid) ease, box-shadow var(--t-mid) ease, transform var(--t-fast) var(--ease-out);
}
.ask-role:hover { background: rgba(255, 255, 255, 0.1); }
.ask-role:active { transform: scale(0.97); }
.ask-role .app-icon { --s: 34px; }
.ask-role-t b { display: block; font-size: 15px; line-height: 1.15; }
.ask-role-t small { display: block; font-size: 12px; color: rgba(235, 235, 245, 0.55); }
.ask-role[aria-selected="true"] { background: rgba(255, 255, 255, 0.14); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 0 0 1px rgba(var(--brand-rgb), 0.55), 0 12px 30px -12px rgba(var(--brand-rgb), 0.7); }
.ask-role-timer { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, var(--brand), var(--green)); transform-origin: 0 50%; transform: scaleX(0); }
.ask-role.is-timing .ask-role-timer { animation: ask-timer var(--ask-dur, 14s) linear forwards; }
@keyframes ask-timer { to { transform: scaleX(1); } }
.ask-win {
  position: relative; max-width: 1060px; margin: 0 auto; border-radius: 32px; padding: 10px;
  background: rgba(24, 26, 32, 0.58); -webkit-backdrop-filter: blur(30px) saturate(160%); backdrop-filter: blur(30px) saturate(160%);
  box-shadow: 0 50px 120px -40px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}
@property --ask-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.ask-glow { position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none; background: conic-gradient(from var(--ask-a), rgba(255, 255, 255, 0) 0deg, rgba(255, 255, 255, 0) 200deg, rgba(var(--brand-rgb), 0.9) 280deg, rgba(var(--green-rgb), 0.9) 330deg, rgba(255, 255, 255, 0) 360deg); -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); animation: ask-spin 5s linear infinite; }
@keyframes ask-spin { to { --ask-a: 360deg; } }
.ask-bar { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px 10px 20px; border-radius: 23px; background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1); color: #fff; }
.ask-bar > .i { width: 22px; height: 22px; color: rgba(235, 235, 245, 0.6); flex: none; }
.ask-q { flex: 1; min-width: 0; font-size: clamp(16px, 1.5vw, 19px); font-weight: 500; line-height: 1.35; }
.ask-caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -0.15em; border-radius: 2px; background: var(--brand); animation: blink 1s steps(1) infinite; }
.ask-kbd { width: 34px; height: 34px; flex: none; border-radius: 11px; display: grid; place-items: center; font-size: 15px; background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.3); }
.ask-think { display: grid; gap: 6px; padding: 12px 22px 0; font-size: 13.5px; color: rgba(235, 235, 245, 0.62); }
.ask-think:empty { display: none; }
.ask-think li { display: flex; align-items: center; gap: 10px; animation: bl-in 0.35s var(--ease-out) both; }
.ask-think li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(var(--brand-rgb), 0.25); border-top-color: var(--brand); animation: pl-spin 0.8s linear infinite; flex: none; }
.ask-think li.is-ok::before { border: 0; animation: none; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23062' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 10px no-repeat; }
.ask-think.is-done { display: none; }
.ask-panel { padding: 18px 16px 4px; color: #fff; }
.ask-panel[hidden] { display: none; }
.ask-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; padding: 0 6px; }
.ask-label { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 700; color: rgba(235, 235, 245, 0.72); }
.ask-label .app-icon { --s: 28px; }
.ask-time { margin-left: auto; font-weight: 700; color: #3ff2cc; font-size: 12.5px; }
.ask-a { margin-top: 12px; font-size: clamp(16px, 1.4vw, 18.5px); line-height: 1.6; color: rgba(255, 255, 255, 0.9); }
.ask-a b { color: #fff; font-weight: 800; }
.ask .cite, .ask-chip .cite { font-style: normal; }
.ask-src { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ask-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 6px; border-radius: 12px; background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); font-size: 13px; color: rgba(255, 255, 255, 0.86); }
.ask-chip .i { width: 15px; height: 15px; color: #7fe0ff; }
.ask-chip .cite { margin: 0; }
.ask-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ask-btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: #fff; background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14); transition: background var(--t-fast) ease, transform var(--t-fast) var(--ease-out); }
.ask-btn:hover { background: rgba(255, 255, 255, 0.14); }
.ask-btn:active { transform: scale(0.95); }
.ask-btn .i { width: 16px; height: 16px; }
.ask-btn.is-main { background: var(--brand); color: var(--shark); box-shadow: 0 8px 20px -8px rgba(var(--brand-rgb), 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.ask-btn.is-done { background: rgba(var(--green-rgb), 0.2); color: #3ff2cc; }
.ask-viz { align-self: start; border-radius: 22px; padding: 18px; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.04); }
.ask-viz-l { font-size: 12.5px; font-weight: 700; color: rgba(235, 235, 245, 0.62); margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.04em; }
.av-bars { display: flex; align-items: flex-end; gap: 16px; height: 190px; }
.av-bar { flex: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 8px; }
.av-bar i { width: 100%; max-width: 70px; height: var(--v); border-radius: 12px 12px 6px 6px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.1)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3); transform-origin: 50% 100%; }
.av-bar.is-hl i { background: linear-gradient(180deg, #ff9a7a, #e5484d); box-shadow: 0 10px 24px -10px rgba(229, 72, 77, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.av-bar b { font-size: 16px; font-weight: 800; letter-spacing: -0.02em; }
.av-bar.is-hl b { color: #ff9a8a; }
.av-bar span { font-size: 12.5px; color: rgba(235, 235, 245, 0.6); }
.av-hbars, .av-status { display: grid; gap: 12px; }
.av-hbar, .av-st { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: 13px; }
.av-hbar span, .av-st span { color: rgba(235, 235, 245, 0.72); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.av-hbar i, .av-st i { position: relative; height: 12px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.av-hbar i::after, .av-st i::after { content: ""; position: absolute; inset: 0; width: var(--v); border-radius: inherit; background: linear-gradient(90deg, #ffb020, #ff6b4a); transform-origin: 0 50%; }
.av-hbar:first-child i::after { background: linear-gradient(90deg, #ff6b4a, #e5484d); }
.av-hbar b, .av-st b { font-weight: 800; font-variant-numeric: tabular-nums; }
.av-st.is-ok i::after { background: linear-gradient(90deg, var(--brand), var(--green)); }
.av-st.is-risk b { color: #ffb020; }
.av-st.is-ok b { color: #3ff2cc; }
.av-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.av-tbl th { text-align: left; font-weight: 600; color: rgba(235, 235, 245, 0.5); padding: 0 8px 8px 0; font-size: 12px; }
.av-tbl td { padding: 10px 8px 10px 0; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07); color: rgba(255, 255, 255, 0.86); }
.av-tbl tr.is-hl td { color: #ffcf6b; font-weight: 700; }
.av-kpis { display: grid; gap: 10px; }
.av-kpi { padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, 0.06); }
.av-kpi b { display: block; font-size: 24px; font-weight: 800; letter-spacing: -0.03em; }
.av-kpi span { font-size: 13px; color: rgba(235, 235, 245, 0.6); }
.ask-panel.is-in .av-bar i { animation: av-grow 0.9s var(--spring) both; }
.ask-panel.is-in .av-bar:nth-child(2) i { animation-delay: 0.08s; } .ask-panel.is-in .av-bar:nth-child(3) i { animation-delay: 0.16s; }
.ask-panel.is-in .av-hbar i::after, .ask-panel.is-in .av-st i::after { animation: av-grow-x 0.9s var(--spring) both; }
.ask-panel.is-in .av-kpi, .ask-panel.is-in .av-tbl tr { animation: bl-in 0.5s var(--ease-out) both; }
@keyframes av-grow { from { transform: scaleY(0); } }
@keyframes av-grow-x { from { transform: scaleX(0); } }
.ask-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 14px 6px 8px; margin-top: 18px; font-size: 12.5px; color: rgba(235, 235, 245, 0.55); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07); }
.ask-meta span { display: inline-flex; align-items: center; gap: 6px; }
.ask-meta .i { width: 14px; height: 14px; }
.ask-note { text-align: center; font-size: 13px; color: rgba(235, 235, 245, 0.5); margin-top: 18px; }
.ask-panel .ask-main > *, .ask-panel .ask-viz { transition: opacity 0.5s ease, transform 0.6s var(--ease-out); }
.ask-panel.is-wait .ask-main > *, .ask-panel.is-wait .ask-viz > *, .ask-panel.is-wait + .ask-meta { opacity: 0; transform: translateY(10px); }
/* skeleton while the question is typed and sources are searched — the card never looks empty */
.ask-main, .ask-viz { position: relative; }
.ask-panel.is-wait .ask-main::before, .ask-panel.is-wait .ask-viz::before {
  content: ""; position: absolute; left: 0; right: 0; top: 4px; pointer-events: none; border-radius: 12px;
  --sk: rgba(255, 255, 255, 0.07);
  background:
    linear-gradient(100deg, rgba(255, 255, 255, 0) 20%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0) 80%) 0 0 / 250% 100% no-repeat,
    linear-gradient(var(--sk), var(--sk)) 0 0 / 34% 14px no-repeat,
    linear-gradient(var(--sk), var(--sk)) 0 34px / 100% 12px no-repeat,
    linear-gradient(var(--sk), var(--sk)) 0 56px / 94% 12px no-repeat,
    linear-gradient(var(--sk), var(--sk)) 0 78px / 97% 12px no-repeat,
    linear-gradient(var(--sk), var(--sk)) 0 100px / 62% 12px no-repeat,
    linear-gradient(var(--sk), var(--sk)) 0 136px / 150px 30px no-repeat,
    linear-gradient(var(--sk), var(--sk)) 162px 136px / 150px 30px no-repeat;
  height: 170px; animation: ask-shim 1.3s linear infinite;
}
.ask-panel.is-wait .ask-viz::before { top: 0; bottom: 0; height: auto; min-height: 170px; background: linear-gradient(100deg, rgba(255, 255, 255, 0) 20%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0) 80%) 0 0 / 250% 100% no-repeat, rgba(255, 255, 255, 0.05); }
@keyframes ask-shim { from { background-position-x: 130%, 0, 0, 0, 0, 0, 0, 162px; } to { background-position-x: -130%, 0, 0, 0, 0, 0, 0, 162px; } }
@media (prefers-reduced-motion: reduce) { .ask-panel.is-wait .ask-main::before, .ask-panel.is-wait .ask-viz::before { animation: none; } }
@media (max-width: 860px) {
  .ask-roles { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 10px; scrollbar-width: none; }
  .ask-roles::-webkit-scrollbar { display: none; }
  .ask-role { flex: none; }
  .ask-grid { grid-template-columns: 1fr; }
  .ask-win { border-radius: 26px; padding: 8px; }
  .ask-bar { padding-left: 14px; }
  .ask-kbd { display: none; }
  .av-bars { height: 150px; }
}

/* ---------- Industries ---------- */
.ind-box { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 16px; align-items: stretch; }
.ind-tabs { display: grid; gap: 4px; align-content: space-between; }
.ind-stage { display: grid; }
.ind-panel { align-content: space-between; }
.ind-tab { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 18px; font-size: 15.5px; font-weight: 600; color: var(--label-2); text-align: left; transition: background var(--t-mid) ease, color var(--t-mid) ease, box-shadow var(--t-mid) ease; }
.ind-tab .i { width: 20px; height: 20px; color: var(--label-3); transition: color var(--t-mid) ease; }
.ind-tab:hover { background: var(--fill); color: var(--ink); }
.ind-tab[aria-selected="true"] { color: var(--ink); background-color: var(--card-fill); box-shadow: var(--card-shadow), var(--card-rims); }
.ind-tab[aria-selected="true"] .i { color: var(--brand); }
.ind-stage { position: relative; }
.ind-panel { display: grid; gap: 20px; padding: clamp(22px, 3vw, 34px); border-radius: 32px; background-color: var(--card-fill); -webkit-backdrop-filter: blur(var(--card-blur)) saturate(180%); backdrop-filter: blur(var(--card-blur)) saturate(180%); box-shadow: var(--card-shadow), var(--card-rims); }
.ind-panel[hidden] { display: none; }
.ind-panel.is-in { animation: ind-in 0.6s var(--ease-out) both; }
@keyframes ind-in { from { opacity: 0; transform: translateY(12px); } }
.ind-top { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(18px, 3vw, 40px); align-items: center; }
.ind-hero b { display: block; font-size: clamp(56px, 6.4vw, 92px); font-weight: 800; letter-spacing: -0.055em; line-height: 0.88; background: linear-gradient(110deg, var(--brand-deep), var(--brand) 45%, var(--green)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ind-hero span { display: block; margin-top: 10px; font-size: 14.5px; font-weight: 600; color: var(--label-2); max-width: 18ch; }
.ind-text { color: var(--label-2); font-size: 16px; line-height: 1.55; }
.ind-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ind-kpi { padding: 16px; border-radius: 20px; background: var(--fill); }
.ind-kpi-l { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; font-size: 14px; font-weight: 700; line-height: 1.3; min-height: 2.6em; }
.ind-gain { flex: none; font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: rgba(var(--green-rgb), 0.16); color: #036b55; white-space: nowrap; }
:root[data-theme="dark"] .ind-gain { color: #3ff2cc; }
.ind-bars { display: grid; gap: 8px; margin-top: 12px; }
.ind-bar { display: grid; grid-template-columns: 50px minmax(0, 1fr) auto; align-items: center; gap: 8px; font-size: 12.5px; }
.ind-bar span { color: var(--label-2); }
.ind-bar i { position: relative; height: 10px; border-radius: 6px; background: var(--fill-2); overflow: hidden; }
.ind-bar i::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: max(4px, var(--v)); border-radius: inherit; background: var(--label-3); transform-origin: 0 50%; }
.ind-bar.is-after i::after { background: linear-gradient(90deg, var(--brand), var(--green)); box-shadow: 0 0 10px rgba(var(--brand-rgb), 0.5); }
.ind-bar b { font-size: 13px; font-weight: 800; white-space: nowrap; }
.ind-panel.is-in .ind-bar i::after { animation: av-grow-x 1s var(--spring) both; }
.ind-panel.is-in .ind-bar.is-after i::after { animation-delay: 0.25s; }
.ind-trend { padding: 16px 18px 12px; border-radius: 20px; background: var(--fill); }
.ind-trend-l { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; font-weight: 700; }
.ind-trend-l span { font-weight: 500; font-size: 12.5px; color: var(--label-2); }
.ind-chart { display: block; width: 100%; height: 130px; margin-top: 10px; overflow: visible; }
.ind-chart .ic-area { fill: url(#ind-grad); }
.ind-chart .ic-line { fill: none; stroke: var(--brand); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ind-chart .ic-dot { fill: var(--bg-elev); stroke: var(--brand); stroke-width: 3; vector-effect: non-scaling-stroke; }
.ind-chart .ic-grid { stroke: var(--sep); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ind-chart text { font-size: 12px; font-weight: 700; fill: var(--ink); }
.ind-last { font-size: 15px; font-weight: 800; color: var(--brand-ink); }
.ind-months { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--label-3); padding: 0 2px; }
.ind-note { font-size: 13px; color: var(--label-2); margin-top: 18px; max-width: 86ch; }
@media (max-width: 960px) {
  .ind-box { grid-template-columns: 1fr; }
  .ind-tabs { display: flex; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 8px; scrollbar-width: none; }
  .ind-tabs::-webkit-scrollbar { display: none; }
  .ind-tab { flex: none; padding: 10px 14px; }
  .ind-kpis { grid-template-columns: 1fr; }
  .ind-kpi-l { min-height: 0; }
}
@media (max-width: 600px) { .ind-top { grid-template-columns: 1fr; gap: 12px; } }

/* ---------- Showcase: devices ---------- */
.sc-box { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: center; }
.sc-list { display: grid; gap: 4px; }
.sc-tab { position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; padding: 14px 16px 16px; border-radius: 18px; text-align: left; color: var(--ink); transition: background var(--t-mid) ease, box-shadow var(--t-mid) ease; }
.sc-tab:hover { background: var(--fill); }
.sc-tab[aria-selected="true"] { background-color: var(--card-fill); box-shadow: var(--card-shadow), var(--card-rims); }
.sc-tab-n { font-size: 12.5px; font-weight: 800; color: var(--label-3); font-variant-numeric: tabular-nums; }
.sc-tab-t b { display: block; font-size: 17px; letter-spacing: -0.02em; }
.sc-tab-t small { display: block; font-size: 12.5px; color: var(--label-2); margin-top: 2px; }
.sc-tab-bar { position: absolute; left: 16px; right: 16px; bottom: 6px; height: 2px; border-radius: 2px; background: var(--fill); overflow: hidden; opacity: 0; transition: opacity var(--t-mid) ease; }
.sc-tab-bar::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--brand), var(--green)); transform-origin: 0 50%; transform: scaleX(0); }
.sc-tab[aria-selected="true"] .sc-tab-bar { opacity: 1; }
.sc-tab.is-timing .sc-tab-bar::after { animation: ask-timer var(--sc-dur, 9s) linear forwards; }
.sc-stage { position: relative; min-width: 0; }
.sc-devices { position: relative; padding: 0 0 5% 0; }

/* ---------- Devices: Studio Display + iPhone, drawn in CSS ---------- */
.dv-display { position: relative; width: 83%; }
.dv-shell {
  position: relative; padding: 1.3%; border-radius: 14px;
  background: linear-gradient(160deg, #eef0f2 0%, #d2d6da 28%, #b9bec4 52%, #d8dbdf 78%, #f1f2f4 100%);
  box-shadow: 0 60px 110px -40px rgba(8, 16, 28, 0.55), 0 24px 44px -24px rgba(8, 16, 28, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}
.dv-shell::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0 1px, rgba(255, 255, 255, 0) 1px 3px), linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0) 40%, rgba(0, 0, 0, 0.08)); }
.dv-glass { position: relative; padding: 1.5%; border-radius: 8px; background: #08090b; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07); }
.dv-glass .sc-screen { border-radius: 3px; }
.dv-cam { position: absolute; top: 0.55%; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #3b4a5a, #0b0d10 70%); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08); }
.dv-sheen { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(112deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.05) 26%, rgba(255, 255, 255, 0) 46%); }
.dv-neck { position: relative; width: 26%; height: clamp(44px, 6.4vw, 80px); margin: -1px auto 0; background: linear-gradient(90deg, #878c92, #c7cbcf 16%, #eef0f2 44%, #e0e3e6 58%, #b3b8bd 84%, #82878d); }
.dv-neck::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 30%; background: linear-gradient(180deg, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0)); }
.dv-foot { position: relative; width: 38%; height: clamp(9px, 1.3vw, 16px); margin: 0 auto; border-radius: 4px 4px 12px 12px; background: linear-gradient(180deg, #f3f4f6, #d7dade 55%, #9da2a8); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 2px 0 rgba(0, 0, 0, 0.14); }
.dv-floor { position: absolute; left: 50%; bottom: -6%; width: 64%; height: 12%; translate: -50% 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0)); filter: blur(4px); z-index: -1; }
.sc-screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #fff; }
.sc-page { position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease; }
.sc-page.is-on { opacity: 1; }
.sc-browser { position: absolute; left: 0; right: 0; top: 0; height: 26px; z-index: 1; display: flex; align-items: center; gap: 5px; padding: 0 10px; background: #eef0f3; box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.07); }
.sc-browser i { width: 8px; height: 8px; border-radius: 50%; background: #ff5f57; }
.sc-browser i:nth-child(2) { background: #febc2e; } .sc-browser i:nth-child(3) { background: #28c840; }
.sc-browser span { position: absolute; left: 50%; translate: -50% 0; padding: 2px 14px; border-radius: 6px; background: #fff; font-size: 10.5px; font-weight: 600; color: #555; }
.sc-page .sc-scroll { position: absolute; left: 0; right: 0; top: 26px; bottom: 0; overflow: hidden; }
.sc-scroll img { width: 100%; height: auto; will-change: transform; }
.sc-frames { position: absolute; left: 0; right: 0; top: 26px; bottom: 0; overflow: hidden; }
.sc-frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity 0.7s ease; }
.sc-frame.is-on { opacity: 1; }
.dv-phone { position: absolute; right: 0; bottom: 1%; width: 24%; aspect-ratio: 70.6 / 146.6; border-radius: 14.5% / 7%; padding: 2.5%; background: linear-gradient(150deg, #b9b5af 0%, #77736e 22%, #4e4b47 50%, #8d8984 78%, #bdb9b3 100%); box-shadow: 0 50px 80px -30px rgba(0, 0, 0, 0.65), 0 18px 30px -18px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.4), inset 0 0 0 2.5px rgba(0, 0, 0, 0.14); }
.dv-phone-bezel { position: relative; width: 100%; height: 100%; border-radius: 12.5% / 6%; padding: 2%; background: #0b0b0d; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
.sc-phone-in { position: relative; width: 100%; height: 100%; border-radius: 11% / 5.3%; overflow: hidden; background: #fff; container-type: inline-size; --sb-h: 6.9%; --sb-bg: #fff; --sb-fg: #0b0b0d; }
/* статус-бар iPhone: экран приложения начинается под ним, «остров» камеры сидит в нём, а не поверх шапки приложения;
   цвет бара берётся из data-sb видимой страницы/кадра (home.js, core.js) */
.sc-status { position: absolute; left: 0; right: 0; top: 0; height: var(--sb-h); z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 0 7.2cqi 0 9.6cqi; background: var(--sb-bg); color: var(--sb-fg); font-size: 4.3cqi; font-weight: 600; letter-spacing: -0.01em; line-height: 1; pointer-events: none; transition: background 0.5s ease, color 0.5s ease; }
.sc-status > span { display: inline-flex; align-items: center; gap: 1.6cqi; }
.sc-status svg { display: block; height: 3.1cqi; width: auto; fill: currentColor; }
.sc-island { position: absolute; top: 1.9%; left: 50%; width: 33%; height: 3.3%; translate: -50% 0; border-radius: 999px; background: #000; z-index: 3; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05); }
.sc-island::after { content: ""; position: absolute; right: 9%; top: 22%; width: 18%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #2b3242, #06070a 65%); }
.dv-btn { position: absolute; width: 1.6%; border-radius: 2px; background: linear-gradient(90deg, #4e4b47, #a19d97 50%, #4e4b47); box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.3); }
.dv-btn.is-action { left: -1.6%; top: 16.5%; height: 4.2%; }
.dv-btn.is-vol1 { left: -1.6%; top: 23.5%; height: 7.6%; }
.dv-btn.is-vol2 { left: -1.6%; top: 32.6%; height: 7.6%; }
.dv-btn.is-power { right: -1.6%; top: 26%; height: 12.2%; }
.dv-phone > .dv-sheen { background: linear-gradient(105deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.05) 30%, rgba(255, 255, 255, 0) 52%); }
.sc-mpage { position: absolute; inset: var(--sb-h) 0 0 0; opacity: 0; transition: opacity 0.6s ease; }
.sc-mpage.is-cover { inset: 0; }
.sc-mpage.is-on { opacity: 1; }
.sc-mpage .sc-scroll, .sc-mpage .sc-frames { position: absolute; inset: 0; overflow: hidden; }
.sc-cover { position: absolute; inset: 0; padding: 7% 8%; display: flex; flex-direction: column; justify-content: center; color: #fff; overflow: hidden; }
.sc-cover-brand { background: radial-gradient(120% 90% at 85% 10%, #8fe6ff, rgba(143, 230, 255, 0) 55%), linear-gradient(150deg, #0abcf3, #0678a3); }
.sc-cover-ink { background: radial-gradient(100% 80% at 90% 0%, rgba(10, 188, 243, 0.45), rgba(10, 188, 243, 0) 60%), linear-gradient(150deg, #2c2c31, #0d0d0f); }
.sc-cover-concrete { background: radial-gradient(100% 90% at 90% 0%, rgba(7, 231, 183, 0.55), rgba(7, 231, 183, 0) 60%), linear-gradient(150deg, #e9f8f4, #cfeee6); color: var(--shark); }
.sc-cover-w { position: absolute; right: -4%; bottom: -12%; width: 40%; height: 70%; opacity: 0.15; color: currentColor; }
.sc-cover-k { font-size: clamp(10px, 1vw, 13px); font-weight: 700; opacity: 0.8; }
.sc-cover-n { font-size: clamp(26px, 4vw, 56px); font-weight: 800; letter-spacing: -0.045em; line-height: 1; margin-top: 6px; }
.sc-cover-d { font-size: clamp(11px, 1.1vw, 15px); max-width: 34ch; margin-top: 10px; opacity: 0.85; }
.sc-cover-ui { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 7%; max-width: 70%; }
.sc-cover-ui i { height: clamp(18px, 3vw, 40px); border-radius: 8px; background: rgba(255, 255, 255, 0.2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.sc-cover.is-m { padding: 18% 10%; }
.sc-cover.is-m .sc-cover-n { font-size: clamp(16px, 2vw, 24px); }
.sc-cover.is-m .sc-cover-ui { grid-template-columns: 1fr; max-width: 100%; }
.sc-cap { margin-top: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px 20px; flex-wrap: wrap; }
.sc-cap[hidden] { display: none; }
.sc-cap p { color: var(--label-2); max-width: 58ch; }
.sc-cap-links { display: flex; align-items: center; gap: 18px; }
.sc-live { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--label-2); text-decoration: none; }
.sc-live:hover { color: var(--ink); }
@media (max-width: 960px) {
  .sc-box { grid-template-columns: 1fr; }
  .sc-list { display: flex; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 8px; scrollbar-width: none; order: 2; }
  .sc-list::-webkit-scrollbar { display: none; }
  .sc-tab { flex: none; }
  .dv-display { width: 90%; }
}
@media (max-width: 700px) {
  /* на телефоне показываем только iPhone: экран монитора здесь нечитаем */
  .dv-display { display: none; }
  .sc-devices { padding: 8px 0 12px; }
  .dv-phone { position: relative; width: min(66%, 300px); margin: 0 auto; box-shadow: 0 40px 70px -30px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.4), inset 0 0 0 2.5px rgba(0, 0, 0, 0.14); }
  .sc-cap { justify-content: center; text-align: center; }
  .sc-cap p { max-width: 100%; }
}

/* ---------- Team cards ---------- */
.tm-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.tm-grid:has(> :nth-child(6)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tm-card { display: flex; flex-direction: column; border-radius: 28px; overflow: hidden; background-color: var(--card-fill); -webkit-backdrop-filter: blur(var(--card-blur)) saturate(180%); backdrop-filter: blur(var(--card-blur)) saturate(180%); box-shadow: var(--card-shadow), var(--card-rims); transition: box-shadow var(--t-mid) ease; }
@media (hover: hover) { .tm-card:hover { box-shadow: var(--card-shadow-lift), var(--card-rims); } }
.tm-photo { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; isolation: isolate; margin: 8px 8px 0; border-radius: 22px; }
.tm-bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(80% 60% at 50% 100%, rgba(var(--brand-rgb), 0.55), rgba(var(--brand-rgb), 0) 70%), radial-gradient(60% 50% at 80% 10%, rgba(var(--green-rgb), 0.35), rgba(var(--green-rgb), 0) 70%), linear-gradient(180deg, #e8f7fd, #c4ecf8); }
.tm-coo .tm-bg, .tp-coo { --a: var(--green-rgb); }
.tm-coo .tm-bg { background: radial-gradient(80% 60% at 50% 100%, rgba(var(--green-rgb), 0.55), rgba(var(--green-rgb), 0) 70%), radial-gradient(60% 50% at 20% 10%, rgba(var(--brand-rgb), 0.3), rgba(var(--brand-rgb), 0) 70%), linear-gradient(180deg, #e9fbf5, #c2f0e2); }
.tm-cto .tm-bg { background: radial-gradient(80% 60% at 50% 100%, rgba(80, 120, 255, 0.5), rgba(80, 120, 255, 0) 70%), radial-gradient(60% 50% at 80% 10%, rgba(var(--brand-rgb), 0.35), rgba(var(--brand-rgb), 0) 70%), linear-gradient(180deg, #eef1ff, #cdd8fb); }
.tm-cmo .tm-bg { background: radial-gradient(80% 60% at 50% 100%, rgba(255, 150, 80, 0.5), rgba(255, 150, 80, 0) 70%), linear-gradient(180deg, #fff3ea, #ffd9bf); }
.tm-chro .tm-bg { background: radial-gradient(80% 60% at 50% 100%, rgba(200, 110, 255, 0.45), rgba(200, 110, 255, 0) 70%), linear-gradient(180deg, #f7efff, #e3cff9); }
:root[data-theme="dark"] .tm-bg { filter: brightness(0.42) saturate(1.3); }
.tm-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transition: transform 0.7s var(--ease-out); }
@media (hover: hover) { .tm-card:hover .tm-photo img { transform: scale(1.045); } }
.tm-initials { position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(56px, 5vw, 84px); font-weight: 800; letter-spacing: -0.05em; color: rgba(255, 255, 255, 0.95); text-shadow: 0 10px 30px rgba(0, 0, 0, 0.18); }
.tm-code { position: absolute; left: 10px; top: 10px; padding: 5px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 800; letter-spacing: 0.05em; color: var(--shark); background: rgba(255, 255, 255, 0.55); -webkit-backdrop-filter: blur(12px) saturate(180%); backdrop-filter: blur(12px) saturate(180%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 4px 12px -4px rgba(0, 0, 0, 0.2); }
.tm-info { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px 16px; flex: 1; }
.tm-name { font-size: 18px; letter-spacing: -0.02em; line-height: 1.2; }
.tm-name a { text-decoration: none; color: inherit; }
.tm-name a:hover { color: var(--brand-ink); }
.tm-role { font-size: 13px; font-weight: 700; color: var(--brand-ink); }
.tm-short { font-size: 13.5px; color: var(--label-2); margin-top: 6px; line-height: 1.45; }
.tm-soc { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 12px; }
.tm-s { --c: 10, 188, 243; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; color: var(--ink); background: var(--fill); transition: background var(--t-mid) ease, color var(--t-mid) ease, transform var(--t-fast) var(--spring); }
.tm-s svg { width: 18px; height: 18px; }
.tm-s:hover { color: #fff; background: rgb(var(--c)); transform: translateY(-2px); }
.tm-s-tg { --c: 42, 171, 238; } .tm-s-ig { --c: 214, 41, 118; } .tm-s-in { --c: 10, 102, 194; } .tm-s-wa { --c: 37, 211, 102; } .tm-s-mail { --c: 10, 150, 200; }
.tm-more { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 18px; padding: 14px 16px; border-radius: 24px; background-color: var(--card-fill); -webkit-backdrop-filter: blur(var(--card-blur)) saturate(180%); backdrop-filter: blur(var(--card-blur)) saturate(180%); box-shadow: var(--card-shadow), var(--card-rims); }
.tm-faces { display: flex; padding-left: 10px; }
.tm-faces img, .tm-faces span { width: 44px; height: 44px; border-radius: 50%; margin-left: -10px; object-fit: cover; background: linear-gradient(145deg, #bfeaf8, #7fd3f0); box-shadow: 0 0 0 3px var(--bg-elev); }
.tm-faces span { display: grid; place-items: center; font-size: 13px; font-weight: 800; color: var(--on-ink); background: var(--ink-fill); }
.tm-more p { flex: 1; min-width: 220px; color: var(--label-2); font-size: 15px; }
.tm-more p b { color: var(--ink); }
@media (max-width: 1200px) { .tm-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .tm-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 14px; scrollbar-width: none; }
  .tm-grid::-webkit-scrollbar { display: none; }
  .tm-card { scroll-snap-align: center; }
}

/* ---------- Wallet passes ---------- */
.wl-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.wl-index { display: grid; gap: 2px; margin-top: 26px; }
.wl-index button { display: flex; align-items: baseline; gap: 12px; width: 100%; padding: 9px 12px; border-radius: 12px; font-size: 15px; color: var(--label-2); text-align: left; transition: background var(--t-fast) ease, color var(--t-fast) ease; }
.wl-index button b { min-width: 76px; color: var(--ink); font-weight: 800; letter-spacing: -0.02em; }
.wl-index button:hover { background: var(--fill); }
.wl-index button[aria-current="true"] { background: var(--fill); color: var(--ink); }
.wl-stack { position: relative; height: 640px; transition: height 0.4s ease; }
/* карты режутся по низу кармана (то, что ушло в карман, не видно), но сам карман и его тень — вне обрезки */
.wl-cards { position: absolute; inset: 0; clip-path: inset(-120px -120px 0 -120px); }
/* кошелёк: карман внизу, из которого выезжает выбранная карта; остальные карты видны «корешками» и кликабельны */
.wl-pocket { position: absolute; left: 50%; bottom: 0; translate: -50% 0; width: min(100%, 460px); height: var(--pocket-h, 112px); z-index: 25; border-radius: 26px 26px 30px 30px; overflow: hidden;
  background: linear-gradient(180deg, #2a2c33, #111216 60%, #0b0c0f); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 -20px 40px -20px rgba(0, 0, 0, 0.8); }
.wl-pocket::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 6px), radial-gradient(120% 80% at 50% 0%, rgba(var(--brand-rgb), 0.22), rgba(var(--brand-rgb), 0) 60%); }
.wl-pocket-slot { position: absolute; left: 6%; right: 6%; top: 0; height: 6px; border-radius: 0 0 6px 6px; background: linear-gradient(180deg, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0)); }
.wl-pocket-brand { position: absolute; left: 22px; bottom: 18px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; letter-spacing: -0.01em; color: rgba(255, 255, 255, 0.92); }
.wl-pocket-brand svg { width: 16px; height: 20px; color: var(--brand); }
.wl-pocket-hint { position: absolute; right: 22px; bottom: 19px; font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, 0.5); }
.wl-shade { position: absolute; left: 50%; bottom: calc(var(--pocket-h, 112px) - 30px); translate: -50% 0; width: min(100%, 460px); height: 100px; z-index: 24; pointer-events: none; background: radial-gradient(60% 100% at 50% 100%, rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0) 100%); opacity: 0.55; }
:root[data-theme="dark"] .wl-shade { background: radial-gradient(62% 100% at 50% 100%, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0) 100%); opacity: 0.9; }
:root[data-theme="dark"] .wl-pocket { background: linear-gradient(180deg, #33363e, #16181d 60%, #0d0e12); }
.wl-pass {
  --y0: 0px; --y: var(--y0); --s: 1; position: absolute; left: 0; right: 0; top: 0; margin-inline: auto; width: min(100%, 420px); height: 240px; border-radius: 24px; padding: 18px 20px; text-align: left; color: #fff;
  display: grid; grid-template-rows: auto auto 1fr auto; gap: 6px; overflow: hidden; isolation: isolate; cursor: pointer;
  box-shadow: 0 24px 50px -22px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  transform: translateY(var(--y)) scale(var(--s)); transition: transform 0.75s var(--spring), box-shadow 0.4s ease, filter 0.4s ease;
}
.wl-pass::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 70% at 20% -20%, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0) 55%), repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 9px); }
.wl-pass::after { content: ""; position: absolute; left: -30%; top: 0; width: 30%; height: 100%; background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0)); transform: skewX(-18deg); transition: left 0.9s var(--ease-out); pointer-events: none; }
.wl-pass.is-open::after { left: 120%; }
.wl-pass.is-open { box-shadow: 0 40px 70px -26px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
.wl-pass:not(.is-open) { filter: saturate(0.9) brightness(0.96); box-shadow: 0 -8px 24px -12px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.1); }
@media (hover: hover) { .wl-pass:not(.is-open):hover { filter: none; --y: calc(var(--y0) - 10px); } }
.wl-k b { margin-left: 8px; font-weight: 800; letter-spacing: -0.02em; opacity: 0; transition: opacity 0.3s ease; }
.wl-pass:not(.is-open) .wl-k b { opacity: 1; }
.p-brand { background-color: #0aaee2; background-image: linear-gradient(150deg, #4fd8ff, #0797c4); color: var(--shark); }
.p-green { background-color: #06c89f; background-image: linear-gradient(150deg, #5cf6d6, #05b58f); color: var(--shark); }
.p-night { background-image: radial-gradient(90% 90% at 100% 0%, rgba(var(--brand-rgb), 0.5), rgba(var(--brand-rgb), 0) 60%), linear-gradient(160deg, #23252b, #07080a); }
.p-blue { background-image: linear-gradient(150deg, #7dd6ff, #1f6fe0); }
.p-graphite { background-image: linear-gradient(150deg, #6a6d74, #1b1c1f); }
.p-teal { background-image: linear-gradient(150deg, #2de8c6, #0a8fbf); }
.wl-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 700; }
.wl-logo { display: inline-flex; align-items: center; gap: 6px; }
.wl-logo svg { width: 14px; height: 18px; }
.wl-k { opacity: 0.85; }
.wl-main { display: flex; align-items: baseline; gap: 10px; margin-top: 8px; }
.wl-v { font-size: 52px; font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.wl-u { font-size: 15px; font-weight: 700; opacity: 0.85; }
.wl-t { font-size: 13.5px; line-height: 1.4; opacity: 0.9; max-width: 34ch; }
.wl-fields { display: flex; gap: 22px; font-size: 14px; font-weight: 800; }
.wl-fields small { display: block; font-size: 10.5px; font-weight: 700; opacity: 0.7; text-transform: uppercase; letter-spacing: 0.05em; }
.wl-code { position: absolute; right: 18px; bottom: 18px; display: flex; gap: 2px; height: 36px; opacity: 0.8; }
.wl-code i { width: 2px; background: currentColor; }
.wl-code i:nth-child(3n) { width: 4px; } .wl-code i:nth-child(5n) { width: 1px; } .wl-code i:nth-child(7n) { width: 3px; }
@media (max-width: 960px) { .wl-in { grid-template-columns: 1fr; } .wl-index { display: none; } .wl-stack { margin-top: 12px; } }
@media (max-width: 460px) { .wl-pass { height: 232px; padding: 16px; } .wl-v { font-size: 44px; } .wl-pocket-hint { display: none; } }

/* ---------- Partner simulator ---------- */
.ps-card { position: relative; overflow: hidden; isolation: isolate; border-radius: clamp(28px, 4vw, 44px); padding: clamp(26px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(26px, 4vw, 56px); align-items: center; color: var(--shark); background: linear-gradient(150deg, #4fd8ff, var(--brand) 50%, #0799c9); box-shadow: 0 50px 100px -50px rgba(8, 130, 180, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.55); }
.ps-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.ps-bg i { position: absolute; border-radius: 50%; }
.ps-bg i:nth-child(1) { width: 60%; aspect-ratio: 1; right: -12%; top: -40%; background: radial-gradient(circle, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 62%); animation: drift-a 20s ease-in-out infinite alternate; }
.ps-bg i:nth-child(2) { width: 55%; aspect-ratio: 1; left: -14%; bottom: -50%; background: radial-gradient(circle, rgba(var(--green-rgb), 0.65), rgba(var(--green-rgb), 0) 62%); animation: drift-b 24s ease-in-out infinite alternate; }
.ps-bg i:nth-child(3) { width: 40%; aspect-ratio: 1; left: 30%; top: 30%; background: radial-gradient(circle, rgba(60, 90, 255, 0.25), rgba(60, 90, 255, 0) 62%); }
.ps-eb { color: var(--on-brand-2); }
.ps-eb .eb-dot { background: #fff; box-shadow: 0 0 10px rgba(255, 255, 255, 0.9); }
.ps-title { margin-top: 12px; font-size: clamp(32px, 3.6vw, 54px); }
.ps-lead { margin-top: 16px; font-size: 17px; line-height: 1.5; color: var(--on-brand-2); max-width: 34em; }
.ps-points { display: grid; gap: 10px; margin: 22px 0 28px; }
.ps-points li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15.5px; }
.ps-points .i { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: rgba(255, 255, 255, 0.55); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9); }
.ps-sim { border-radius: 28px; padding: clamp(18px, 2.4vw, 26px); background: rgba(255, 255, 255, 0.55); -webkit-backdrop-filter: blur(26px) saturate(180%); backdrop-filter: blur(26px) saturate(180%); box-shadow: 0 30px 60px -30px rgba(0, 60, 90, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.95), inset 0 0 0 1px rgba(255, 255, 255, 0.45); }
.ps-sim-h { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.ps-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 16px; }
.ps-l { display: block; font-size: 13.5px; font-weight: 700; color: var(--on-brand-2); margin-top: 14px; margin-bottom: 8px; }
.ps-row .ps-l { margin: 0; }
.ps-o { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ps-range { width: 100%; margin-top: 10px; --fill: 14%; }
.ps-types { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; padding: 3px; border-radius: 14px; background: rgba(35, 35, 37, 0.08); }
.ps-types button { padding: 9px 4px; border-radius: 11px; font-size: 13px; font-weight: 700; line-height: 1.15; color: var(--on-brand-2); transition: background var(--t-mid) ease, box-shadow var(--t-mid) ease, color var(--t-mid) ease; }
.ps-types button[aria-checked="true"] { background: #fff; color: var(--shark); box-shadow: 0 4px 12px rgba(0, 40, 60, 0.18); }
.ps-result { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-top: 18px; padding-top: 16px; box-shadow: inset 0 1px 0 rgba(35, 35, 37, 0.12); }
.ps-result small { display: block; font-size: 13px; font-weight: 700; color: var(--on-brand-2); }
.ps-result b { display: block; font-size: clamp(38px, 4vw, 52px); font-weight: 800; letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.ps-rate { text-align: right; }
.ps-rate b { font-size: 26px; }
.ps-tranches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.ps-tranches > div { padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.62); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9); }
.ps-tranches i { display: block; height: 6px; border-radius: 4px; background: linear-gradient(90deg, #0797c4, #05b58f); transform-origin: 0 50%; margin-bottom: 8px; }
.ps-tranches span { display: block; font-size: 11.5px; font-weight: 600; color: var(--on-brand-2); }
.ps-tranches b { display: block; font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ps-sim.is-pulse .ps-tranches i { animation: av-grow-x 0.8s var(--spring) both; }
.ps-sim.is-pulse .ps-tranches div:nth-child(2) i { animation-delay: 0.1s; } .ps-sim.is-pulse .ps-tranches div:nth-child(3) i { animation-delay: 0.2s; }
.ps-note { margin-top: 12px; font-size: 12px; line-height: 1.45; color: var(--on-brand-2); opacity: 0.9; }
@media (max-width: 960px) { .ps-card { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .ps-types { grid-template-columns: 1fr 1fr; } }

/* ---------- Request section ---------- */
.rqs { padding-block: var(--sp-section); }
.rqs-card { position: relative; overflow: hidden; isolation: isolate; border-radius: clamp(28px, 4vw, 48px); padding: clamp(22px, 4vw, 56px); display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: clamp(24px, 4vw, 56px); align-items: center; background: var(--night); color: #fff; box-shadow: var(--card-shadow-lift); }
.rqs-card > .aurora { opacity: 1; }
.rqs-card > *:not(.aurora) { position: relative; z-index: 1; }
.rqs-eb { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; color: var(--night-label-2); }
.rqs-title { margin-top: 14px; font-size: clamp(40px, 5.4vw, 76px); font-weight: 800; letter-spacing: -0.05em; line-height: 0.98; }
.rqs-title .grad-text { background-image: linear-gradient(100deg, #36cdfb 0%, var(--brand) 40%, var(--green) 100%); }
.rqs-lead { margin-top: 16px; font-size: 17px; color: var(--night-label-2); max-width: 30em; }
.rqs-next { display: grid; gap: 12px; margin-top: 26px; }
.rqs-next li { display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 14px; align-items: center; }
.rqs-next li span { grid-row: span 2; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; color: #fff; background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
.rqs-next li b { font-size: 16px; }
.rqs-next li small { font-size: 14px; color: var(--night-label-2); }
.rqs-person { display: flex; align-items: center; gap: 12px; width: fit-content; max-width: 100%; margin-top: 26px; padding: 8px 18px 8px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14); }
.rqs-person img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: linear-gradient(145deg, #3fd3ff, #0797c4); flex: none; }
.rqs-person b { display: block; font-size: 15px; }
.rqs-person small { display: block; font-size: 13px; color: var(--night-label-2); }
.rqs-contacts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; }
.rqs-contacts a { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 600; }
.rqs-contacts .i { width: 18px; height: 18px; color: #7fe0ff; }
.rqs-form { border-radius: 30px; padding: clamp(18px, 2.6vw, 30px); background: var(--bg-elev); color: var(--ink); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.8); }
:root[data-theme="dark"] .rqs-form { box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.05); }
.rqs-form .rq { margin-top: 0; }
@media (max-width: 960px) { .rqs-card { grid-template-columns: 1fr; } }
.faq-sec .split-sticky .h2 { margin-top: 12px; }

/* ==== 12-game.css ==== */
/* =====================================================================
   Mini-game «Охота на баги» (modal)
   ===================================================================== */
.modal-game { max-width: 760px; padding: 22px; color: #fff; background-color: rgba(14, 16, 20, 0.92); background-image: radial-gradient(90% 60% at 100% 0%, rgba(var(--brand-rgb), 0.28), rgba(var(--brand-rgb), 0) 60%), radial-gradient(70% 60% at 0% 100%, rgba(var(--green-rgb), 0.14), rgba(var(--green-rgb), 0) 60%); box-shadow: 0 50px 120px -30px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
.modal-game .modal-x { background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.8); }
.modal-game .modal-x:hover { background: rgba(255, 255, 255, 0.18); color: #fff; }
.modal-game::before { background: rgba(255, 255, 255, 0.25); }
.bh { position: relative; }
.bh-screen { display: grid; gap: 16px; }
.bh-hero { display: flex; align-items: center; gap: 14px; padding-right: 40px; }
.bh-logo { width: 56px; height: 56px; flex: none; border-radius: 18px; display: grid; place-items: center; color: #ff6b7a; background: linear-gradient(145deg, #2a1319, #150a0d); box-shadow: 0 10px 24px -10px rgba(255, 90, 110, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 0 0 1px rgba(255, 107, 122, 0.3); }
.bh-logo svg { width: 30px; height: 30px; filter: drop-shadow(0 0 8px rgba(255, 90, 110, 0.8)); animation: bh-wiggle 2.4s ease-in-out infinite; }
@keyframes bh-wiggle { 0%, 100% { transform: rotate(-10deg); } 50% { transform: rotate(10deg) translateY(-2px); } }
.bh-kicker { font-size: 12.5px; font-weight: 700; color: #7fe0ff; text-transform: uppercase; letter-spacing: 0.06em; }
.bh-title { font-size: clamp(28px, 4vw, 38px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin-top: 4px; }
.bh-intro { color: rgba(235, 235, 245, 0.72); font-size: 15px; line-height: 1.5; }
.bh-legend { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; }
.bh-legend li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); font-size: 13px; color: rgba(235, 235, 245, 0.8); }
.bh-legend li span { flex: 1; }
.bh-legend li b { font-size: 12.5px; color: #fff; }
.bh-ico { width: 18px; height: 18px; border-radius: 50%; flex: none; }
.bh-ico-bug { background: #ff5a6e; box-shadow: 0 0 10px #ff5a6e; }
.bh-ico-fast { background: #ffb020; box-shadow: 0 0 10px #ffb020; }
.bh-ico-tank { background: #c77dff; box-shadow: 0 0 10px #c77dff; }
.bh-ico-feat { border-radius: 5px; background: rgba(7, 231, 183, 0.2); box-shadow: inset 0 0 0 1.5px #07e7b7; }
.bh-ico-orb { background: radial-gradient(circle at 35% 30%, #e6fbff, #4fd8ff 40%, #0797c4); box-shadow: 0 0 12px #0abcf3; }
.bh-board { border-radius: 18px; padding: 12px 14px; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.bh-board-h { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: rgba(235, 235, 245, 0.7); margin-bottom: 8px; }
.bh-board-h .i { width: 16px; height: 16px; color: #ffcf6b; }
.bh-board ol { display: grid; gap: 2px; }
.bh-board li { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; font-size: 14px; }
.bh-board li b { margin-left: auto; font-variant-numeric: tabular-nums; }
.bh-board .bh-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: rgba(235, 235, 245, 0.85); }
.bh-rank { width: 18px; font-weight: 800; color: rgba(235, 235, 245, 0.45); text-align: center; font-variant-numeric: tabular-nums; }
.bh-board img, .bh-ava { width: 28px; height: 28px; border-radius: 50%; flex: none; object-fit: cover; background: linear-gradient(145deg, #3a3d44, #1b1c20); }
.bh-board li.is-coo { background: linear-gradient(90deg, rgba(255, 207, 107, 0.16), rgba(255, 207, 107, 0)); }
.bh-board li.is-coo .bh-rank { color: #ffcf6b; }
.bh-board li.is-coo img { box-shadow: 0 0 0 2px #ffcf6b; background: linear-gradient(145deg, #3fd3ff, #0797c4); }
.bh-board li.is-me { background: rgba(var(--brand-rgb), 0.16); }
.bh-board li.is-me .bh-n { color: #7fe0ff; font-weight: 700; }
.bh-offer { display: flex; align-items: center; gap: 10px; font-size: 14px; color: rgba(235, 235, 245, 0.75); }
.bh-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.bh-keys { font-size: 12.5px; color: rgba(235, 235, 245, 0.5); }
.modal-game .btn-glass { background: rgba(255, 255, 255, 0.08); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 0 0 1px rgba(255, 255, 255, 0.08); }

/* in-game */
.bh-game { gap: 10px; }
.bh-hud { display: grid; grid-template-columns: 1.3fr 0.9fr 1fr 1.3fr; gap: 8px; padding-right: 44px; }
.bh-stat { position: relative; padding: 8px 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); overflow: hidden; }
.bh-stat small { display: block; font-size: 11px; font-weight: 700; color: rgba(235, 235, 245, 0.5); text-transform: uppercase; letter-spacing: 0.05em; }
.bh-stat b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.bh-combo.is-hot b { color: #ffb020; text-shadow: 0 0 14px rgba(255, 176, 32, 0.8); }
.bh-combo.is-pop { animation: bh-pop 0.4s var(--spring); }
@keyframes bh-pop { 40% { transform: scale(1.12); } }
.bh-lives span { display: flex; gap: 5px; margin-top: 5px; }
.bh-lives i { width: 18px; height: 18px; border-radius: 6px; background: linear-gradient(145deg, #3ff2cc, #05b58f); box-shadow: 0 0 10px rgba(var(--green-rgb), 0.6); transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s var(--spring); }
.bh-lives i.is-off { background: rgba(255, 90, 110, 0.35); box-shadow: none; transform: scale(0.8); }
.bh-tbar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, 0.08); }
.bh-tbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--green)); transform-origin: 0 50%; }
.bh-field { position: relative; height: min(62vh, 520px); border-radius: 18px; overflow: hidden; background: #0a0c11; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); touch-action: none; user-select: none; -webkit-user-select: none; outline: none; }
.bh-field:focus-visible { box-shadow: inset 0 0 0 2px rgba(var(--brand-rgb), 0.7); }
.bh-field canvas { display: block; width: 100%; height: 100%; max-width: none; cursor: crosshair; }
.bh-toast { position: absolute; left: 50%; top: 14px; translate: -50% 0; padding: 7px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 700; white-space: nowrap; background: rgba(20, 22, 28, 0.85); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14); opacity: 0; transform: translateY(-8px); transition: opacity 0.2s ease, transform 0.3s var(--spring); pointer-events: none; }
.bh-toast.is-on { opacity: 1; transform: none; }
.bh-toast.is-good { color: #7fe0ff; }
.bh-toast.is-bad { color: #ff8a95; }

/* game over */
.bh-over { text-align: center; justify-items: center; }
.bh-final small { display: block; font-size: 13px; font-weight: 700; color: rgba(235, 235, 245, 0.6); }
.bh-final b { display: block; font-size: clamp(56px, 10vw, 84px); font-weight: 800; letter-spacing: -0.05em; line-height: 1; background: linear-gradient(120deg, #7fe0ff, var(--brand) 45%, var(--green)); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.bh-verdict { font-size: 16px; font-weight: 600; color: rgba(235, 235, 245, 0.8); max-width: 36em; }
.bh-verdict.is-best { color: #7fe0ff; }
.bh-verdict.is-win { color: #ffcf6b; }
.bh-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; }
.bh-sum li { padding: 10px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); }
.bh-sum small { display: block; font-size: 11.5px; color: rgba(235, 235, 245, 0.55); }
.bh-sum b { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.bh-over .bh-board { width: 100%; text-align: left; }
.bh-over .bh-actions { justify-content: center; }
@media (max-width: 600px) {
  .modal-game { padding: 20px 14px calc(16px + env(safe-area-inset-bottom)); }
  .bh-hud { grid-template-columns: 1fr 1fr; padding-right: 0; margin-top: 30px; }
  .bh-field { height: 58vh; height: 58dvh; }
  .bh-legend { grid-template-columns: 1fr 1fr; }
  .bh-legend li { font-size: 12px; padding: 7px 8px; }
  .bh-keys { display: none; }
}

/* ==== 13-team.css ==== */
/* =====================================================================
   Team hub and person pages
   ===================================================================== */
.hero-page-side { position: relative; z-index: 1; }
.tmh-faces { position: relative; height: 420px; }
.tmh-f { --s: 84px; position: absolute; width: var(--s); height: var(--s); border-radius: 30%; overflow: hidden; background: linear-gradient(145deg, #bfeaf8, #7fd3f0); box-shadow: 0 16px 36px -14px rgba(10, 60, 90, 0.45), 0 0 0 3px rgba(255, 255, 255, 0.85); animation: tmh-float 7s ease-in-out infinite; animation-delay: calc(var(--i) * -0.7s); }
:root[data-theme="dark"] .tmh-f { box-shadow: 0 16px 36px -14px rgba(0, 0, 0, 0.8), 0 0 0 3px rgba(255, 255, 255, 0.12); background: linear-gradient(145deg, #1e3a47, #0f2530); }
.tmh-f img { width: 100%; height: 100%; object-fit: cover; }
.tmh-f:nth-child(1) { left: 36%; top: 30%; --s: 120px; z-index: 2; }
.tmh-f:nth-child(2) { left: 64%; top: 8%; --s: 100px; }
.tmh-f:nth-child(3) { left: 8%; top: 12%; --s: 96px; }
.tmh-f:nth-child(4) { left: 70%; top: 48%; --s: 88px; }
.tmh-f:nth-child(5) { left: 12%; top: 50%; --s: 84px; }
.tmh-f:nth-child(6) { left: 42%; top: 2%; --s: 70px; }
.tmh-f:nth-child(7) { left: 40%; top: 68%; --s: 78px; }
.tmh-f:nth-child(8) { left: 86%; top: 28%; --s: 64px; }
.tmh-f:nth-child(9) { left: 0%; top: 78%; --s: 66px; }
.tmh-f:nth-child(10) { left: 22%; top: 82%; --s: 58px; }
.tmh-f:nth-child(11) { left: 62%; top: 78%; --s: 70px; }
.tmh-f:nth-child(12) { left: 86%; top: 72%; --s: 56px; }
@keyframes tmh-float { 50% { transform: translateY(-10px) rotate(2deg); } }
.tmh-stat { position: absolute; right: 2%; bottom: -4%; z-index: 3; padding: 14px 18px; border-radius: 20px; background-color: var(--g-fill-thick); -webkit-backdrop-filter: blur(24px) saturate(190%); backdrop-filter: blur(24px) saturate(190%); box-shadow: var(--g-shadow-lift), var(--g-rims), 0 0 0 0.5px var(--g-edge); }
.tmh-stat b { display: block; font-size: 34px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.tmh-stat span { font-size: 13.5px; color: var(--label-2); }
@media (max-width: 960px) { .tmh-faces { height: 300px; margin-top: 12px; } .tmh-f { --s: 70px !important; } .tmh-f:nth-child(1) { --s: 96px !important; } }

.tm-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .tm-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.sf-sec { padding-block: clamp(56px, 7vw, 96px); }
.sf-head { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 30px; }
.sf-head .app-icon { flex: none; }
.sf-head .lead { margin-top: 10px; }
.sf-count { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border-radius: 14px; font-size: 20px; vertical-align: 6px; margin-left: 6px; color: var(--brand-ink); background: rgba(var(--brand-rgb), 0.12); letter-spacing: -0.02em; }
.sf-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.sf { display: flex; flex-direction: column; padding: 8px 8px 14px; border-radius: 24px; background-color: var(--card-fill); -webkit-backdrop-filter: blur(var(--card-blur)) saturate(180%); backdrop-filter: blur(var(--card-blur)) saturate(180%); box-shadow: var(--card-shadow), var(--card-rims); transition: translate var(--t-mid) var(--ease-out), box-shadow var(--t-mid) ease; }
@media (hover: hover) { .sf:hover { translate: 0 -4px; box-shadow: var(--card-shadow-lift), var(--card-rims); } }
.sf-ph { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; isolation: isolate; background: radial-gradient(80% 60% at 50% 100%, rgba(var(--brand-rgb), 0.5), rgba(var(--brand-rgb), 0) 70%), linear-gradient(180deg, #e8f7fd, #c4ecf8); }
.sf-design { background: radial-gradient(80% 60% at 50% 100%, rgba(80, 120, 255, 0.45), rgba(80, 120, 255, 0) 70%), linear-gradient(180deg, #eef1ff, #cdd8fb); }
.sf-pm { background: radial-gradient(80% 60% at 50% 100%, rgba(var(--green-rgb), 0.5), rgba(var(--green-rgb), 0) 70%), linear-gradient(180deg, #e9fbf5, #c2f0e2); }
.sf-growth { background: radial-gradient(80% 60% at 50% 100%, rgba(255, 150, 80, 0.45), rgba(255, 150, 80, 0) 70%), linear-gradient(180deg, #fff3ea, #ffd9bf); }
.sf-office { background: radial-gradient(80% 60% at 50% 100%, rgba(200, 110, 255, 0.4), rgba(200, 110, 255, 0) 70%), linear-gradient(180deg, #f7efff, #e3cff9); }
:root[data-theme="dark"] .sf-ph { filter: brightness(0.5) saturate(1.25); }
:root[data-theme="dark"] .sf-ph img { filter: brightness(2) saturate(0.8); }
.sf-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transition: transform 0.7s var(--ease-out); }
@media (hover: hover) { .sf:hover .sf-ph img { transform: scale(1.05); } }
.sf-ph i { position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; font-size: clamp(34px, 3.6vw, 52px); font-weight: 800; letter-spacing: -0.04em; color: rgba(255, 255, 255, 0.95); text-shadow: 0 8px 24px rgba(0, 0, 0, 0.16); }
.sf-n { font-size: 15.5px; letter-spacing: -0.015em; line-height: 1.25; margin: 12px 6px 0; }
.sf-r { font-size: 13px; font-weight: 600; color: var(--brand-ink); margin: 3px 6px 0; }
.sf-s { font-size: 12.5px; color: var(--label-3); margin: 6px 6px 0; }
.sf { position: relative; }
.sf-in { position: absolute; right: 12px; top: 12px; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: #0a66c2; background: rgba(255, 255, 255, 0.85); box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.5); transition: transform var(--t-fast) var(--spring); }
.sf-in .i { width: 16px; height: 16px; }
.sf-in:hover { transform: translateY(-2px); }
@media (max-width: 1100px) { .sf-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 820px) { .sf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .sf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .sf-head { flex-direction: column; gap: 12px; } .sf-n { font-size: 14.5px; } }

/* ---------- person page ---------- */
.pd-hero { padding-bottom: clamp(40px, 5vw, 64px); }
.pd-in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.pd-code { display: flex; width: fit-content; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 800; letter-spacing: 0.06em; color: var(--brand-ink); text-transform: uppercase; }
.pd-name { margin-top: 12px; }
.pd-role { margin-top: 12px; font-size: clamp(18px, 1.7vw, 22px); font-weight: 700; color: var(--ink-soft); }
.pd-copy .lead { margin-top: 18px; }
.pd-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 30px; }
.pd-soc { display: flex; gap: 8px; }
.pd-soc .tm-s { width: 50px; height: 50px; border-radius: 16px; }
.pd-soc .tm-s svg { width: 22px; height: 22px; }
.pd-visual { position: relative; }
.pd-photo { position: relative; aspect-ratio: 4 / 5; max-width: 460px; margin-left: auto; border-radius: 36px; overflow: hidden; isolation: isolate; box-shadow: 0 50px 100px -40px rgba(8, 60, 90, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.5); }
.pd-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.pd-photo .tm-initials { font-size: clamp(80px, 10vw, 150px); }
.pd-photo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(120% 60% at 20% 0%, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0) 50%); }
.pd-chips { position: absolute; left: 0; bottom: 10%; display: grid; gap: 8px; justify-items: start; }
.pd-chips li { padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 700; background-color: var(--g-fill-thick); -webkit-backdrop-filter: blur(20px) saturate(190%); backdrop-filter: blur(20px) saturate(190%); box-shadow: var(--g-shadow-lift), var(--g-rims), 0 0 0 0.5px var(--g-edge); transform: translateX(calc(var(--i) * 18px)); animation: tmh-float 6s ease-in-out infinite; animation-delay: calc(var(--i) * -1.2s); }
.pd-facts-sec { padding-block: 0 clamp(40px, 5vw, 64px); }
.pd-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pd-facts > div { padding: 18px 20px; border-radius: 22px; background-color: var(--card-fill); -webkit-backdrop-filter: blur(var(--card-blur)) saturate(180%); backdrop-filter: blur(var(--card-blur)) saturate(180%); box-shadow: var(--card-shadow), var(--card-rims); }
.pd-facts small { display: block; font-size: 12.5px; font-weight: 700; color: var(--label-2); text-transform: uppercase; letter-spacing: 0.04em; }
.pd-facts b { display: block; margin-top: 6px; font-size: 17px; letter-spacing: -0.01em; line-height: 1.3; }
.pd-bio p { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.6; }
.pd-bio p + p { margin-top: 18px; }
.pd-own { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pd-own-i { padding: 24px; border-radius: 26px; background-color: var(--card-fill); -webkit-backdrop-filter: blur(var(--card-blur)) saturate(180%); backdrop-filter: blur(var(--card-blur)) saturate(180%); box-shadow: var(--card-shadow), var(--card-rims); }
.pd-own-i h3 { font-size: 19px; margin-top: 16px; }
.pd-own-i p { color: var(--label-2); font-size: 15px; margin-top: 6px; }
.pd-when { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.pd-when-card { padding: 26px; border-radius: 28px; display: grid; gap: 12px; background-color: var(--card-fill); -webkit-backdrop-filter: blur(var(--card-blur)) saturate(180%); backdrop-filter: blur(var(--card-blur)) saturate(180%); box-shadow: var(--card-shadow), var(--card-rims); }
.pd-when-k { font-size: 13px; font-weight: 700; color: var(--label-2); text-transform: uppercase; letter-spacing: 0.04em; }
.pd-when-v { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
@media (max-width: 960px) {
  .pd-in { grid-template-columns: 1fr; }
  .pd-photo { margin: 0 auto; max-width: 380px; }
  .pd-chips { left: 4%; }
  .pd-facts { grid-template-columns: 1fr 1fr; }
  .pd-own, .pd-when { grid-template-columns: 1fr; }
}
@media (max-width: 480px) { .pd-facts { grid-template-columns: 1fr; } }

/* ==== 14-partners.css ==== */
/* =====================================================================
   Partnership page
   ===================================================================== */
.pt-hero { padding-bottom: clamp(64px, 8vw, 110px); }
.pt-hero > .aurora { opacity: 1; }
.pt-in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.pt-copy .h1 { font-size: clamp(38px, 5vw, 72px); }
.pt-flow { position: relative; width: 100%; max-width: 560px; aspect-ratio: 520 / 440; justify-self: center; color: #fff; }
.pt-map { position: absolute; inset: 0; }
.pt-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pt-lines path { fill: none; stroke: rgba(127, 224, 255, 0.35); stroke-width: 2; stroke-dasharray: 5 7; vector-effect: non-scaling-stroke; animation: pt-dash 1.2s linear infinite; }
@keyframes pt-dash { to { stroke-dashoffset: -24; } }
.pt-node { position: absolute; translate: -50% -50%; display: grid; justify-items: center; gap: 6px; text-align: center; z-index: 2; }
.pt-node b { font-size: 15px; }
.pt-node small { font-size: 12px; color: var(--night-label-2); white-space: nowrap; }
.pt-client { left: 16.5%; top: 21.8%; }
.pt-w2w { left: 50%; top: 50%; }
.pt-you { left: 83.5%; top: 78.2%; }
.pt-w2w .app-icon { box-shadow: 0 0 0 10px rgba(var(--brand-rgb), 0.08), 0 0 0 22px rgba(var(--brand-rgb), 0.05), 0 18px 40px -10px rgba(var(--brand-rgb), 0.7); transition: box-shadow 0.4s ease; }
.pt-flow.is-pulse .pt-w2w .app-icon { box-shadow: 0 0 0 14px rgba(var(--brand-rgb), 0.18), 0 0 0 30px rgba(var(--brand-rgb), 0.08), 0 18px 50px -10px rgba(var(--brand-rgb), 0.9); }
.pt-dot { position: absolute; left: 0; top: 0; z-index: 3; padding: 5px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 800; white-space: nowrap; pointer-events: none; opacity: 0; font-variant-numeric: tabular-nums; }
.pt-dot.is-client { color: #0b0b0d; background: linear-gradient(145deg, #bfeeff, #4fd8ff); box-shadow: 0 0 20px rgba(var(--brand-rgb), 0.9); }
.pt-dot.is-you { color: #04241c; background: linear-gradient(145deg, #b6ffe9, #3ff2cc); box-shadow: 0 0 20px rgba(var(--green-rgb), 0.9); }
.pt-dash { position: absolute; right: 0; top: 2%; width: 44%; min-width: 190px; padding: 14px 16px; border-radius: 20px; z-index: 2; background: rgba(255, 255, 255, 0.07); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.07); }
.pt-dash-h { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 700; color: var(--night-label-2); }
.pt-dash-h em { font-style: normal; font-size: 10.5px; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); text-transform: uppercase; letter-spacing: 0.05em; }
.pt-dash-k { margin-top: 10px; font-size: 12px; color: var(--night-label-2); }
.pt-dash-v { font-size: 32px; font-weight: 800; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.pt-dash-bars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 8px; }
.pt-dash-bars i { height: 6px; border-radius: 4px; background: rgba(255, 255, 255, 0.12); position: relative; overflow: hidden; }
.pt-dash-bars i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--brand), var(--green)); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.6s var(--spring); }
.pt-dash-bars i.is-on::after { transform: scaleX(1); }
.pt-dash-s { margin-top: 8px; font-size: 11.5px; color: #7fe0ff; min-height: 2.6em; }
@media (max-width: 960px) { .pt-in { grid-template-columns: 1fr; } .pt-flow { max-width: 460px; } }
@media (max-width: 600px) {
  .pt-flow { aspect-ratio: auto; display: grid; gap: 16px; }
  .pt-map { position: relative; inset: auto; aspect-ratio: 520 / 440; }
  .pt-dash { position: relative; right: auto; top: auto; width: auto; min-width: 0; }
}

.pt-facts-sec { padding-block: clamp(40px, 5vw, 64px) 0; }
.pt-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pt-facts > div { padding: 20px; border-radius: 22px; background-color: var(--card-fill); -webkit-backdrop-filter: blur(var(--card-blur)) saturate(180%); backdrop-filter: blur(var(--card-blur)) saturate(180%); box-shadow: var(--card-shadow), var(--card-rims); }
.pt-facts b { display: block; font-size: clamp(24px, 2.4vw, 32px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; }
.pt-facts span { display: block; margin-top: 8px; font-size: 14px; color: var(--label-2); }
@media (max-width: 900px) { .pt-facts { grid-template-columns: 1fr 1fr; } }

.pt-who { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.pt-who-i { padding: 24px; border-radius: 26px; background-color: var(--card-fill); -webkit-backdrop-filter: blur(var(--card-blur)) saturate(180%); backdrop-filter: blur(var(--card-blur)) saturate(180%); box-shadow: var(--card-shadow), var(--card-rims); }
.pt-who-i h3 { margin-top: 16px; font-size: 18px; }
.pt-who-i p { margin-top: 6px; color: var(--label-2); font-size: 14.5px; }
@media (max-width: 1000px) { .pt-who { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pt-who { grid-template-columns: 1fr; } }

.pt-rates { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.pt-rate { display: flex; flex-direction: column; padding: 22px; border-radius: 26px; background-color: var(--card-fill); -webkit-backdrop-filter: blur(var(--card-blur)) saturate(180%); backdrop-filter: blur(var(--card-blur)) saturate(180%); box-shadow: var(--card-shadow), var(--card-rims); }
.pt-rate h3 { margin-top: 14px; font-size: 18px; }
.pt-rate p { margin-top: 6px; color: var(--label-2); font-size: 14px; flex: 1; }
.pt-rate-v { display: grid; gap: 10px; margin-top: 18px; }
.pt-rate-v > div { display: grid; grid-template-columns: 1fr auto; align-items: baseline; row-gap: 6px; }
.pt-rate-v small { font-size: 12.5px; color: var(--label-2); font-weight: 600; }
.pt-rate-v b { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; }
.pt-rate-v i { grid-column: 1 / -1; height: 8px; border-radius: 5px; background: var(--fill); position: relative; overflow: hidden; }
.pt-rate-v i::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--v); border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--green)); }
.pt-rate.is-top { background: radial-gradient(90% 70% at 100% 0%, rgba(var(--brand-rgb), 0.45), rgba(var(--brand-rgb), 0) 60%), linear-gradient(160deg, #16181d, #07080a); color: #fff; box-shadow: var(--card-shadow-lift), inset 0 1px 0 rgba(255, 255, 255, 0.14); }
.pt-rate.is-top p, .pt-rate.is-top small { color: var(--night-label-2); }
.pt-rate.is-top i { background: rgba(255, 255, 255, 0.1); }
.pt-upsell { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.pt-upsell > div { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 20px; background: var(--fill); }
.pt-upsell b { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; min-width: 54px; }
.pt-upsell span { font-size: 14px; color: var(--label-2); }
@media (max-width: 1000px) { .pt-rates { grid-template-columns: 1fr 1fr; } .pt-upsell { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .pt-rates { grid-template-columns: 1fr; } }

.pt-sim { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 16px; }
.pt-sim-ctl { display: grid; gap: 14px; align-content: start; padding: 22px; border-radius: 28px; background-color: var(--card-fill); -webkit-backdrop-filter: blur(var(--card-blur)) saturate(180%); backdrop-filter: blur(var(--card-blur)) saturate(180%); box-shadow: var(--card-shadow), var(--card-rims); }
.pt-ctl-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 14px; font-weight: 700; color: var(--label-2); margin-bottom: 8px; }
.pt-ctl-h output { font-size: 20px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.pt-ctl input[type="range"] { width: 100%; }
.pt-seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pt-seg button { font-size: 13px; padding: 8px 2px; }
@media (max-width: 520px) { .pt-seg { grid-template-columns: 1fr 1fr; grid-auto-flow: row; } .pt-seg button { font-size: 14px; padding: 9px 4px; } }
.pt-sim-total { margin-top: 6px; padding: 18px; border-radius: 22px; color: #fff; background: radial-gradient(90% 90% at 100% 0%, rgba(var(--brand-rgb), 0.5), rgba(var(--brand-rgb), 0) 60%), linear-gradient(160deg, #16181d, #07080a); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14); }
.pt-sim-total small { display: block; font-size: 13px; color: var(--night-label-2); font-weight: 600; }
.pt-sim-total b { display: block; font-size: clamp(36px, 3.6vw, 48px); font-weight: 800; letter-spacing: -0.045em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.pt-sim-total span { font-size: 13.5px; color: #7fe0ff; }
.pt-chart { padding: 22px; border-radius: 28px; display: flex; flex-direction: column; background-color: var(--card-fill); -webkit-backdrop-filter: blur(var(--card-blur)) saturate(180%); backdrop-filter: blur(var(--card-blur)) saturate(180%); box-shadow: var(--card-shadow), var(--card-rims); }
.pt-chart-h { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; font-weight: 700; }
.pt-legend { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--label-2); font-size: 12.5px; }
.pt-legend i { width: 12px; height: 12px; border-radius: 4px; background: linear-gradient(180deg, var(--brand), var(--green)); margin-left: 6px; }
.pt-legend i.is-line { height: 3px; border-radius: 2px; background: var(--ink); }
.pt-chart-box { flex: 1; min-height: 300px; margin-top: 12px; }
.pt-svg { display: block; width: 100%; height: 100%; min-height: 300px; overflow: visible; }
.pt-grid { stroke: var(--sep); stroke-width: 1; }
.pt-bar { fill: url(#ptg); transform-box: fill-box; transform-origin: 50% 100%; animation: pt-bar 0.7s var(--spring) both; animation-delay: var(--d); }
@keyframes pt-bar { from { transform: scaleY(0); } }
.pt-val { font-size: 11px; font-weight: 700; fill: var(--label-2); text-anchor: middle; }
.pt-m { font-size: 11.5px; fill: var(--label-3); text-anchor: middle; font-weight: 600; }
.pt-cum { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; opacity: 0.85; }
.pt-cum-dot { fill: var(--bg-elev); stroke: var(--ink); stroke-width: 2.5; }
.pt-cum-l { font-size: 14px; font-weight: 800; fill: var(--ink); text-anchor: end; }
.pt-chart-note { margin-top: 10px; font-size: 12.5px; color: var(--label-2); }
@media (max-width: 1000px) { .pt-sim { grid-template-columns: 1fr; } }

.pt-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; counter-reset: none; position: relative; }
.pt-steps li { position: relative; padding: 24px; border-radius: 26px; background-color: var(--card-fill); -webkit-backdrop-filter: blur(var(--card-blur)) saturate(180%); backdrop-filter: blur(var(--card-blur)) saturate(180%); box-shadow: var(--card-shadow), var(--card-rims); }
.pt-step-n { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; font-size: 18px; color: #fff; background: linear-gradient(145deg, #3fd3ff, #0797c4); box-shadow: 0 8px 18px -8px rgba(var(--brand-rgb), 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.45); }
.pt-steps li:nth-child(2) .pt-step-n { background: linear-gradient(145deg, #3ff2cc, #05b58f); }
.pt-steps li:nth-child(3) .pt-step-n { background: linear-gradient(145deg, #4a4a50, #1b1b1e); }
.pt-steps h3 { margin-top: 16px; font-size: 19px; }
.pt-steps p { margin-top: 6px; color: var(--label-2); font-size: 15px; }
@media (max-width: 860px) { .pt-steps { grid-template-columns: 1fr; } }
.pt-logos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pt-logos span { border-radius: 14px; overflow: hidden; background: #fff; box-shadow: var(--card-shadow); }
.pt-logos img { width: 100%; height: auto; }
:root[data-theme="dark"] .pt-logos span { filter: brightness(0.94); }

.pt-paid { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 9px 16px 9px 12px; border-radius: 999px; font-size: 14.5px; color: var(--night-label-2); background: rgba(255, 255, 255, 0.07); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 0 0 1px rgba(255, 255, 255, 0.07); }
.pt-paid b { color: #fff; font-size: 17px; font-variant-numeric: tabular-nums; }

/* ==== 15-pages.css ==== */
/* =====================================================================
   Inner pages: Company Brain, skills, misc
   ===================================================================== */
.cb-hero { padding-bottom: clamp(64px, 8vw, 110px); }
.cb-hero > .aurora { opacity: 1; }
.cb-in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.cb-win { border-radius: 24px; overflow: hidden; color: #fff; background: rgba(22, 24, 30, 0.6); -webkit-backdrop-filter: blur(30px) saturate(160%); backdrop-filter: blur(30px) saturate(160%); box-shadow: 0 50px 110px -40px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.07); transform: perspective(1400px) rotateY(-8deg) rotateX(4deg); transform-origin: 0 50%; }
.cb-win-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.06); font-size: 12.5px; color: rgba(235, 235, 245, 0.6); }
.cb-win-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.cb-win-bar i:nth-child(2) { background: #febc2e; } .cb-win-bar i:nth-child(3) { background: #28c840; margin-right: 10px; }
.cb-win-body { display: grid; grid-template-columns: 180px minmax(0, 1fr); min-height: 360px; }
.cb-side { padding: 14px; box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.06); }
.cb-side-h { font-size: 11px; font-weight: 700; color: rgba(235, 235, 245, 0.5); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; }
.cb-side ul { display: grid; gap: 6px; }
.cb-side li { display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: 10px; font-size: 13px; font-weight: 600; background: rgba(255, 255, 255, 0.04); }
.cb-side li .app-icon { --s: 26px; font-size: 10px; font-weight: 800; }
.cb-side li > .i { width: 14px; height: 14px; margin-left: auto; color: #3ff2cc; }
.cb-spin { width: 14px; height: 14px; margin-left: auto; border-radius: 50%; border: 2px solid rgba(var(--brand-rgb), 0.25); border-top-color: var(--brand); animation: pl-spin 0.9s linear infinite; }
.cb-chat { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.cb-q { align-self: flex-end; max-width: 86%; padding: 11px 14px; border-radius: 18px 18px 6px 18px; font-size: 14px; background: linear-gradient(145deg, #1fa9dc, #0a86b8); box-shadow: 0 10px 24px -12px rgba(var(--brand-rgb), 0.9); }
.cb-a { padding: 14px; border-radius: 18px 18px 18px 6px; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); font-size: 14px; line-height: 1.55; color: rgba(255, 255, 255, 0.88); }
.cb-a-h { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: rgba(235, 235, 245, 0.7); margin-bottom: 8px; }
.cb-a-h .app-icon { --s: 22px; }
.cb-a-h span:last-child { margin-left: auto; color: #3ff2cc; }
.cb-a b { color: #fff; }
.cb-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.cb-chips span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 5px; border-radius: 10px; font-size: 12px; background: rgba(255, 255, 255, 0.07); }
.cb-chips .cite { margin: 0; }
.cb-input { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; font-size: 13.5px; color: rgba(235, 235, 245, 0.5); background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
.cb-input .i { width: 18px; height: 18px; color: var(--brand); }
@media (max-width: 1000px) { .cb-in { grid-template-columns: 1fr; } .cb-win { transform: none; } }
@media (max-width: 560px) { .cb-win-body { grid-template-columns: 1fr; } .cb-side { display: none; } }

.cb-pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cb-pl { padding: 26px; border-radius: 28px; background-color: var(--card-fill); -webkit-backdrop-filter: blur(var(--card-blur)) saturate(180%); backdrop-filter: blur(var(--card-blur)) saturate(180%); box-shadow: var(--card-shadow), var(--card-rims); }
.cb-pl h3 { margin-top: 18px; font-size: 20px; letter-spacing: -0.02em; }
.cb-pl p { margin-top: 8px; color: var(--label-2); font-size: 15px; }
@media (max-width: 900px) { .cb-pillars { grid-template-columns: 1fr; } }
#demo { scroll-margin-top: 90px; }
.cb-skills { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cb-sk { display: grid; gap: 8px; padding: 18px; border-radius: 22px; text-decoration: none; color: inherit; background-color: var(--card-fill); -webkit-backdrop-filter: blur(var(--card-blur)) saturate(180%); backdrop-filter: blur(var(--card-blur)) saturate(180%); box-shadow: var(--card-shadow), var(--card-rims); transition: translate var(--t-mid) var(--ease-out), box-shadow var(--t-mid) ease; }
@media (hover: hover) { .cb-sk:hover { translate: 0 -4px; box-shadow: var(--card-shadow-lift), var(--card-rims); } }
.cb-sk b { font-size: 16px; margin-top: 6px; }
.cb-sk small { font-size: 13px; color: var(--label-2); }
@media (max-width: 1000px) { .cb-skills { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .cb-skills { grid-template-columns: 1fr; } }

.skg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.skg-card { width: auto; min-height: 460px; scroll-margin-top: 100px; }
.skg-calc { margin-top: 14px; font-size: 14.5px; }
.skg-card:target { box-shadow: var(--card-shadow-lift), var(--card-rims), 0 0 0 2px var(--brand); }
@media (max-width: 1100px) { .skg { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .skg { grid-template-columns: 1fr; } .skg-card { min-height: 0; } }

/* legacy agent cards (services pages) */
.agent-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.agent-card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: 28px; background-color: var(--card-fill); box-shadow: var(--card-shadow), var(--card-rims); }
.agent-card p { color: var(--label-2); font-size: 15px; }
.agent-kpi { margin-top: auto; padding-top: 14px; box-shadow: inset 0 1px 0 var(--sep); }
.agent-kpi b { display: block; font-size: 24px; font-weight: 800; letter-spacing: -0.03em; }
.agent-kpi span { font-size: 13.5px; color: var(--label-2); }
.agent-glow { display: none; }
@media (max-width: 1000px) { .agent-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .agent-grid { grid-template-columns: 1fr; } }

/* project cards on inner pages (layered glass) */
.pcard .cover { border-radius: 26px 26px 0 0; }
.pgrid .pcard { box-shadow: var(--card-shadow), var(--card-rims); }
.todo { display: inline-flex; align-items: center; gap: 8px; }

/* project cards with real screenshots */
.cover.has-shot { justify-content: flex-end; }
.pc-shot { position: absolute; left: 9%; right: 9%; top: 9%; bottom: -8%; border-radius: 12px 12px 0 0; overflow: hidden; background: #fff; box-shadow: 0 20px 50px -18px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.4); transition: transform var(--t-slow) var(--ease-out); }
.pc-shot .sc-browser { height: 22px; }
.pc-shot-in { position: absolute; left: 0; right: 0; top: 22px; bottom: 0; overflow: hidden; }
.pc-shot-in img { width: 100%; height: auto; transition: transform 7s cubic-bezier(.45,.05,.55,.95); }
a.pcard:hover .pc-shot { transform: translateY(-6px); }
a.pcard:hover .pc-shot-in img { transform: translateY(calc(-100% + 180px)); }
.cover.has-shot .cover-meta, .cover.has-shot .cover-name { position: relative; z-index: 2; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35); color: #fff; }
.cover.has-shot::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.55)); pointer-events: none; }
.cover.has-shot .cover-w { display: none; }
.cover.has-shot { flex-direction: column; }
.cover.has-shot .cover-meta { order: 2; margin-top: 4px; }
.pd-devices { max-width: 1060px; margin: 0 auto; }

/* ---------- Documents: a folder with real sheets ---------- */
.fd { position: relative; margin-top: 8px; }
.fd-tab { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 10px; margin-left: 22px; padding: 12px 22px 22px 18px; border-radius: 20px 20px 0 0; background: linear-gradient(180deg, #ffd873, #f5b53a); color: #4a3405; font-size: 15px; font-weight: 800; letter-spacing: -0.01em; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55); }
.fd-tab .i { width: 18px; height: 20px; }
.fd-tab small { font-size: 12.5px; font-weight: 700; opacity: 0.75; margin-left: 4px; }
.fd-body { position: relative; z-index: 2; margin-top: -12px; padding: clamp(16px, 2.4vw, 26px); border-radius: 30px; background: linear-gradient(180deg, #ffcf5c, #f2a92a 60%, #e59a1f); box-shadow: 0 40px 90px -40px rgba(120, 70, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 -2px 0 rgba(0, 0, 0, 0.12); }
.fd-body::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 6px); mix-blend-mode: overlay; }
:root[data-theme="dark"] .fd-tab { background: linear-gradient(180deg, #e0b445, #c9932a); color: #2b1d02; }
:root[data-theme="dark"] .fd-body { background: linear-gradient(180deg, #d9ad3f, #bf8c22 60%, #a97a1a); box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 0 -2px 0 rgba(0, 0, 0, 0.25); }
.fd-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.fd-hint { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: rgba(60, 40, 0, 0.75); }
.fd-hint .i { width: 18px; height: 18px; }
.fd-body .btn-glass { background: rgba(255, 255, 255, 0.55); color: #3a2800; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 10px 24px -14px rgba(80, 50, 0, 0.6); }
.fd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(252px, 1fr)); gap: 22px 18px; list-style: none; margin: 0; padding: 0; --fd-h: 190px; }
.fd-doc { display: flex; flex-direction: column; gap: 10px; }
/* все листы — в коробке одной высоты (--fd-h): вертикальные на всю высоту, горизонтальные на всю ширину, и те и другие прижаты к нижней кромке; кнопки скачивания — по нижнему краю карточки */
.fd-sheet { position: relative; display: flex; align-items: flex-end; justify-content: center; height: var(--fd-h); outline-offset: 4px; }
.fd-page { position: relative; display: block; max-width: 100%; max-height: 100%; border-radius: 5px; background: #fff; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 16px 26px -16px rgba(60, 35, 0, 0.55); transform: rotate(calc((var(--i) % 3 - 1) * 0.9deg)); transition: transform 0.6s var(--spring), box-shadow 0.4s ease; overflow: hidden; }
.fd-page img { display: block; width: auto; height: auto; max-width: 100%; max-height: var(--fd-h); }
.fd-doc.is-land .fd-page img { width: 100%; }
.fd-paper { position: absolute; inset: 0; z-index: -1; border-radius: 5px; background: #fff; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08); transform: translate(4px, 4px) rotate(1.2deg); }
.fd-paper + .fd-paper { transform: translate(8px, 8px) rotate(-1deg); opacity: 0.9; }
.fd-page::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255, 255, 255, 0) 55%, rgba(255, 255, 255, 0.28) 75%, rgba(255, 255, 255, 0) 90%); opacity: 0; transition: opacity 0.4s ease; }
.fd-kind { position: absolute; left: 8px; top: 8px; padding: 3px 8px; border-radius: 999px; background: rgba(18, 20, 26, 0.82); color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: 0.02em; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
@media (hover: hover) {
  .fd-doc:hover .fd-page { transform: translateY(-10px) rotate(0deg) scale(1.02); box-shadow: 0 2px 0 rgba(0, 0, 0, 0.05), 0 34px 50px -22px rgba(60, 35, 0, 0.6); }
  .fd-doc:hover .fd-page::after { opacity: 1; }
}
.fd-info { display: flex; flex-direction: column; flex: 1; }
.fd-title { font-size: 14.5px; font-weight: 800; letter-spacing: -0.015em; line-height: 1.25; color: #2b1d02; }
.fd-title a { color: inherit; text-decoration: none; }
.fd-title a:hover { text-decoration: underline; }
.fd-sub { margin-top: 4px; font-size: 12px; line-height: 1.4; color: rgba(43, 29, 2, 0.75); }
.fd-meta { display: flex; gap: 10px; margin-top: 6px; font-size: 12px; font-weight: 600; color: rgba(43, 29, 2, 0.6); }
.fd-files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 10px; }
.fd-dl { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px 7px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.7); color: #2b1d02; font-size: 12.5px; font-weight: 800; text-decoration: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 6px 16px -10px rgba(80, 50, 0, 0.5); transition: background var(--t-fast) ease, transform var(--t-fast) var(--spring); }
.fd-dl .i { width: 15px; height: 15px; }
.fd-dl small { font-weight: 600; opacity: 0.65; }
.fd-dl:hover { background: #fff; transform: translateY(-1px); }
@media (max-width: 600px) { .fd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; } .fd-tab { margin-left: 14px; padding: 10px 16px 20px 14px; font-size: 14px; } .fd-tab small { display: none; } }
@media (max-width: 400px) { .fd-grid { grid-template-columns: 1fr; } }

/* ==== 16-personal.css ==== */
/* ---------- Personal Brain (/personal/): личный AI-ассистент в Telegram ---------- */
.pb-in { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
.pb-hero .eyebrow { margin-bottom: 14px; }
.pb-stats { list-style: none; margin: clamp(28px, 4vw, 44px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pb-stats li { padding: 16px 18px; border-radius: 20px; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.05); }
.pb-stats b { display: block; font-size: clamp(22px, 2.2vw, 28px); font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: #fff; }
.pb-stats span { display: block; margin-top: 6px; font-size: 12.5px; line-height: 1.35; color: var(--night-label-2); }
@media (max-width: 1000px) { .pb-in { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .pb-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* iPhone из макета проектов, внутри — чат Telegram */
.pb-phone { position: relative; z-index: 1; display: flex; justify-content: center; padding: 8px 0; }
.pb-phone .dv-phone { position: relative; right: auto; bottom: auto; width: min(100%, 332px); transform: rotate(-2.5deg); transition: transform 0.9s var(--spring); }
.pb-phone:hover .dv-phone { transform: rotate(0deg); }
.pb-phone .sc-phone-in { background: #0e1621; }
.pb-tg { position: absolute; inset: var(--sb-h) 0 0 0; display: flex; flex-direction: column; color: #f2f3f5; font-size: 3.55cqi; line-height: 1.4; }
.pb-tg-top { display: flex; align-items: center; gap: 2.6cqi; padding: 2.4cqi 4cqi 2.6cqi; background: #17212b; box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.06); }
.pb-tg-ava { display: grid; place-items: center; width: 9.5cqi; height: 9.5cqi; border-radius: 50%; background: linear-gradient(145deg, #0abcf3, #07e7b7); color: #062430; }
.pb-tg-ava svg { width: 5.6cqi; height: 5.6cqi; fill: currentColor; }
.pb-tg-who b { display: block; font-size: 3.9cqi; font-weight: 700; letter-spacing: -0.01em; }
.pb-tg-who small { display: block; font-size: 3.1cqi; color: #6ab3f3; }
.pb-tg-body { flex: 1; display: flex; flex-direction: column; gap: 2.2cqi; padding: 3.2cqi 3cqi 2cqi; overflow: hidden; }
.pb-msg { margin: 0; max-width: 86%; padding: 2.4cqi 3.2cqi; border-radius: 4.2cqi; font-size: 3.45cqi; }
.pb-msg.is-me { align-self: flex-end; background: #2b5278; border-bottom-right-radius: 1.2cqi; }
.pb-msg.is-ai { align-self: flex-start; background: #182533; border-bottom-left-radius: 1.2cqi; }
.pb-msg.is-ai b { color: #07e7b7; font-weight: 700; }
.pb-msg ol { margin: 1.6cqi 0 0; padding-left: 4.6cqi; display: grid; gap: 0.8cqi; }
.pb-src, .pb-act { display: flex; flex-wrap: wrap; gap: 1.6cqi; margin-top: 2.4cqi; }
.pb-src i, .pb-act i { font-style: normal; font-size: 2.9cqi; padding: 1cqi 2.4cqi; border-radius: 999px; background: rgba(255, 255, 255, 0.08); color: rgba(235, 235, 245, 0.7); }
.pb-act i { background: rgba(7, 231, 183, 0.16); color: #07e7b7; font-weight: 600; }
.pb-tg-meta { margin: 0; font-size: 2.9cqi; color: rgba(235, 235, 245, 0.55); }
.pb-tg-input { display: flex; align-items: center; justify-content: space-between; gap: 2cqi; margin: 0 3cqi 4.6cqi; padding: 2.6cqi 3.6cqi; border-radius: 999px; background: #17212b; font-size: 3.3cqi; color: rgba(235, 235, 245, 0.55); }
.pb-tg-input .i { width: 4.4cqi; height: 4.4cqi; color: #6ab3f3; flex: none; }
@media (max-width: 1000px) { .pb-phone .dv-phone { width: min(78%, 320px); transform: none; } }

/* сравнение: голосовой помощник vs Personal Brain */
.pb-cmp { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pb-cmp > div { padding: 26px; border-radius: var(--r-lg); background-color: var(--card-fill); -webkit-backdrop-filter: blur(var(--card-blur)) saturate(180%); backdrop-filter: blur(var(--card-blur)) saturate(180%); box-shadow: var(--card-shadow); }
.pb-cmp-yes { box-shadow: var(--card-shadow), inset 0 0 0 1.5px rgba(var(--green-rgb), 0.55) !important; }
.pb-cmp .tag + ul { margin-top: 18px; }
.x-list { display: grid; gap: 12px; list-style: none; margin: 0; padding: 0; }
.x-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--label-2); }
.x-list .i { flex: none; width: 22px; height: 22px; padding: 5px; border-radius: 50%; margin-top: 1px; background: rgba(229, 72, 77, 0.12); color: #d63b40; box-shadow: inset 0 0 0 1px rgba(229, 72, 77, 0.35); }
.tag-green { background: rgba(var(--green-rgb), 0.16); color: var(--green-deep); font-weight: 600; }
.tag-brand { background: rgba(var(--brand-rgb), 0.16); color: var(--brand-ink); font-weight: 600; }
:root[data-theme="dark"] .tag-green { color: var(--green); }
:root[data-theme="dark"] .tag-brand { color: var(--brand); }
@media (max-width: 760px) { .pb-cmp { grid-template-columns: 1fr; } }

/* архитектура: Telegram → ядро → Obsidian */
.pb-arch { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px; align-items: stretch; }
.pb-arch .cb-pl h3 { display: flex; align-items: center; gap: 12px; margin-top: 0; }
.pb-arch .cb-pl.is-core { box-shadow: var(--card-shadow), inset 0 0 0 1.5px rgba(var(--brand-rgb), 0.55); }
.pb-arrow { align-self: center; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--fill); color: var(--label-2); }
.pb-arrow svg { width: 16px; height: 16px; fill: currentColor; }
.pb-sub { display: grid; gap: 8px; margin-top: 16px; }
.pb-sub div { padding: 10px 12px; border-radius: 12px; background: var(--fill); font-size: 13.5px; color: var(--label-2); line-height: 1.4; }
.pb-sub div b { display: block; color: var(--ink); font-size: 14px; margin-bottom: 2px; }
@media (max-width: 900px) { .pb-arch { grid-template-columns: 1fr; } .pb-arrow { transform: rotate(90deg); justify-self: center; } }

/* день с ассистентом: вертикальная лента */
.pb-day { list-style: none; margin: 0; padding: 4px 0 0 30px; position: relative; display: grid; gap: 28px; }
.pb-day::before { content: ""; position: absolute; left: 7px; top: 12px; bottom: 12px; width: 2px; border-radius: 2px; background: linear-gradient(180deg, var(--brand), var(--green)); opacity: 0.55; }
.pb-day li { position: relative; }
.pb-day li::before { content: ""; position: absolute; left: -30px; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: linear-gradient(145deg, #58c8ff, var(--brand)); box-shadow: 0 0 0 4px var(--bg), 0 6px 14px -6px rgba(var(--brand-rgb), 0.9); }
.pb-day time { font-size: 13px; font-weight: 800; letter-spacing: 0.06em; color: var(--brand-ink); }
:root[data-theme="dark"] .pb-day time { color: var(--brand); }
.pb-day h3 { margin: 6px 0 6px; font-size: 19px; letter-spacing: -0.02em; }
.pb-day p { color: var(--label-2); max-width: 62ch; }

/* тарифы */
.pb-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 920px; }
.pb-plan { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: var(--r-lg); background-color: var(--card-fill); -webkit-backdrop-filter: blur(var(--card-blur)) saturate(180%); backdrop-filter: blur(var(--card-blur)) saturate(180%); box-shadow: var(--card-shadow); }
.pb-plan.is-hot { box-shadow: var(--card-shadow), inset 0 0 0 1.5px rgba(var(--brand-rgb), 0.7); }
.pb-plan > .tag { align-self: flex-start; }
.pb-badge { position: absolute; top: -13px; left: 24px; }
.pb-price { font-size: clamp(34px, 3.4vw, 44px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.pb-for { color: var(--label-2); font-size: 15px; min-height: 42px; }
.pb-plan .check-list { font-size: 14.5px; gap: 10px; }
.pb-plan .check-list .i { width: 20px; height: 20px; }
.pb-term { margin-top: auto; padding-top: 14px; font-size: 13px; color: var(--label-3); box-shadow: inset 0 1px 0 var(--sep); }
.pb-plan .btn { justify-content: center; }
@media (max-width: 760px) { .pb-plans { grid-template-columns: 1fr; } }

/* шаги внедрения: срок и результат */
.pb-steps > div { display: flex; flex-direction: column; }
.pb-dur { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-ink); margin-bottom: 12px; }
:root[data-theme="dark"] .pb-dur { color: var(--brand); }
.pb-out { margin-top: auto; padding-top: 12px; font-size: 13.5px; color: var(--label-2); box-shadow: inset 0 1px 0 var(--sep); }
.pb-out b { color: var(--ink); }
.pb-steps p + .pb-out { margin-top: 14px; }

/* ==== 19-motion.css ==== */
/* =====================================================================
   Motion states, theme transition, page transitions, a11y fallbacks
   ===================================================================== */
@property --rim-a { syntax: "<angle>"; inherits: true; initial-value: 200deg; }
.hd-bar, .lg, .lg-rim { transition-property: --rim-a; transition-duration: 0.6s; }

/* elements wait for their intro only while JS animations are active */
.motion [data-reveal] { opacity: 0; transform: translateY(36px); }
.motion [data-split-words] .w { opacity: 0; transform: translateY(0.35em); filter: blur(10px); }
.motion .hero-page .crumbs, .motion .hero-page .lead, .motion .hero-page .hero-cta, .motion .hero-page .hero-page-aside, .motion .hero-page .hero-page-side { opacity: 0; transform: translateY(18px); }
.motion .hero-page .h1 { opacity: 0; }
.motion .hero-page .h1.is-split { opacity: 1; }
.w { display: inline-block; }

/* theme switch: circular reveal from the toggle */
html.theme-vt:active-view-transition .hd { view-transition-name: none; }
::view-transition-old(root), ::view-transition-new(root) { mix-blend-mode: normal; }
html.theme-vt::view-transition-old(root) { animation: none; }
html.theme-vt::view-transition-new(root) { animation: theme-reveal 0.75s var(--ease-out) both; }
@keyframes theme-reveal { from { clip-path: circle(0 at var(--vt-x, 50%) var(--vt-y, 0)); } to { clip-path: circle(160vmax at var(--vt-x, 50%) var(--vt-y, 0)); } }

/* cross-document page transitions (Chromium) */
@view-transition { navigation: auto; }
html:not(.theme-vt)::view-transition-old(root) { animation: 0.28s var(--ease-out) both vt-out; }
html:not(.theme-vt)::view-transition-new(root) { animation: 0.45s var(--ease-out) both vt-in; }
@keyframes vt-out { to { opacity: 0; transform: scale(0.985); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .dot-live { animation: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .tile, .pcard, .figures > div, .flow > div, .two-lists > div, .panel, .person, .list, .index, .faq, .facts, .own, .industries, .doc-list, .ledger, .stack, .tbl-wrap, .contact-group, .tiles > div,
  .crumbs, .hero-page-aside, .modal, .toast, .ft-contact, .ft-soc, .ft-rec { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background-color: var(--bg-elev) !important; }
  .toast, .ft-rec { background-color: #1a1b20 !important; }
  .modal-bg::before { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(0, 0, 0, 0.55); }
}
