/* =========================================================================
   Digital Lab — FLOW: one continuous page, one thread, more colour.
   Loaded last; overrides earlier layered styles.
   Palette: ice blue (brand) + its complement apricot, a lilac bridge between
   blue and wine, and a bright rose that keeps the brand wine readable on navy.
   ========================================================================= */
:root {
  --navy: #07060b;
  --ice: #7cc4ff;
  --lilac: #a855f7;
  --indigo: #6366f1;
  --rose: #ec4899;
  --apricot: #fcd34d;
  --pearl: #f3f2f5;
  --wine: #d6246e;
  /* legacy tokens used by earlier stylesheets */
  --bg: #07060b;
  --bg2: #0e0d14;
  --ink: #f3f2f5;
  --muted: #a7a6b4;
  --line: #2b2a34;
  --copper: #f3f2f5;
  --slate: #7cc4ff;
  --wine-deep: #2a0f1e;
  --paper: #fbfbfb;
  --dark: #0e0d14;
  --acc: var(--ice);
  --acc2: var(--lilac);
}

/* ---- canvas layers behind the whole page -------------------------------- */
body.flow {
  background: var(--navy) !important;
}
.flow-layers {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.flow-layers > * {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
}
#logo-webgl canvas,
#digits-webgl canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}
#digits-webgl {
  opacity: 0;
}
#thread {
  width: 100%;
  height: 100%;
}
.flow-glow i {
  position: absolute;
  width: 70vmax;
  height: 70vmax;
  border-radius: 50%;
  background: radial-gradient(circle, currentColor 0%, transparent 62%);
  opacity: 0.13;
  transition:
    color 1.4s ease,
    transform 2s cubic-bezier(0.16, 1, 0.3, 1);
}
.flow-glow i:nth-child(1) {
  left: -28vmax;
  top: -30vmax;
  color: var(--ice);
}
.flow-glow i:nth-child(2) {
  right: -32vmax;
  top: 10vh;
  color: var(--wine);
  opacity: 0.2;
}
.flow-glow i:nth-child(3) {
  left: 0;
  bottom: -42vmax;
  color: var(--lilac);
}
body[data-section="why"] .flow-glow i:nth-child(2) { color: var(--apricot); transform: translate(-6vw, 10vh); }
body[data-section="why"] .flow-glow i:nth-child(3) { color: var(--rose); }
body[data-section="products"] .flow-glow i:nth-child(1) { color: var(--lilac); transform: translate(10vw, 10vh); }
body[data-section="products"] .flow-glow i:nth-child(2) { color: var(--ice); }
body[data-section="works"] .flow-glow i:nth-child(2) { color: var(--rose); transform: translate(-10vw, 20vh); }
body[data-section="works"] .flow-glow i:nth-child(3) { color: var(--ice); }
body[data-section="how"] .flow-glow i:nth-child(1) { color: var(--rose); transform: translate(6vw, 20vh); }
body[data-section="how"] .flow-glow i:nth-child(2) { color: var(--lilac); }
body[data-section="team"] .flow-glow i:nth-child(2) { color: var(--apricot); transform: translate(-4vw, 25vh); }
body[data-section="faq"] .flow-glow i:nth-child(1) { color: var(--lilac); }
body[data-section="contact"] .flow-glow i:nth-child(2) { color: var(--rose); transform: translate(-20vw, 30vh); }
body[data-section="contact"] .flow-glow i:nth-child(3) { color: var(--apricot); }

/* ---- one page: no section backgrounds or separators --------------------- */
body.flow main,
body.flow footer {
  position: relative;
  z-index: 1;
}
body.flow section,
body.flow #contact.cta,
body.flow footer {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
#hero { --acc: var(--ice); --acc2: var(--lilac); }
#why { --acc: var(--apricot); --acc2: var(--rose); }
#products { --acc: var(--lilac); --acc2: var(--ice); }
#works { --acc: var(--ice); --acc2: var(--rose); }
#how { --acc: var(--rose); --acc2: var(--apricot); }
#team { --acc: var(--apricot); --acc2: var(--lilac); }
#faq { --acc: var(--lilac); --acc2: var(--rose); }
#contact { --acc: var(--rose); --acc2: var(--apricot); }

/* Chapter labels get a glowing accent marker */
body.flow section .eyebrow {
  color: color-mix(in srgb, var(--acc) 80%, #fff 20%) !important;
}
body.flow section .section-head .eyebrow::before,
.flow-eyebrow i {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  margin-right: 10px;
  vertical-align: 1px;
  background: var(--acc);
  box-shadow: 0 0 14px var(--acc);
  transform: rotate(45deg);
}

/* ---- hero ---------------------------------------------------------------- */
.flow-hero {
  position: relative;
  padding: 0 !important;
  min-height: 100svh;
}
.flow-hero .hero {
  min-height: 100svh;
  padding: 150px 0 130px;
  display: grid;
  align-content: center;
  will-change: opacity, transform;
}
.flow-hero h1 .outline {
  -webkit-text-stroke: 1.2px #ffffffb3 !important;
}
.flow-hero .brand-fallback {
  display: none;
}
.no-webgl .flow-hero .brand-fallback {
  display: block;
  position: absolute;
  right: 4%;
  top: 50%;
  width: min(34vw, 420px);
  transform: translateY(-50%);
}
.flow-hero-foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #a7a6b4;
  letter-spacing: 0.04em;
}
#motion-toggle {
  pointer-events: auto;
  border: 1px solid #f3f2f526;
  background: #07060b99;
  color: #c9c8d2;
  font: inherit;
  font-size: 12px;
  border-radius: 999px;
  padding: 8px 13px;
  cursor: pointer;
  backdrop-filter: blur(10px);
}
.flow-scroll-cue b {
  display: inline-block;
  color: var(--apricot);
  animation: cueBounce 1.8s ease-in-out infinite;
}
@keyframes cueBounce {
  50% { transform: translateY(5px); }
}

/* Buttons & nav get the new accents */
body.flow .pill.primary,
body.flow .btn.wine {
  background: linear-gradient(120deg, #d6246e, #db2777 70%, #ec4899) !important;
  border-color: transparent !important;
  box-shadow: 0 10px 34px -12px #ff5c8a88;
}
body.flow .btn.primary {
  background: linear-gradient(120deg, #fbfbfb, #f3f2f5 55%, #fde68a) !important;
  border-color: transparent !important;
  color: #07060b !important;
}
body.flow .btn.primary:hover {
  box-shadow: 0 14px 40px -14px var(--apricot);
}

/* ---- split chapters: sticky 3D on the left, stacked cards on the right ---- */
.flow-split {
  padding: 130px 0 150px !important;
}
.flow-split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 48px;
}
.flow-split-aside {
  position: relative;
}
.flow-head {
  margin-bottom: 18vh;
}
.flow-head h2 {
  font-size: clamp(40px, 4.4vw, 70px);
  line-height: 0.95;
  letter-spacing: -0.06em;
  margin: 18px 0 0;
  color: #fbfbfb;
}
.flow-head h2 em {
  font-style: normal;
  background: linear-gradient(95deg, var(--acc), var(--acc2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.flow-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}
.flow-card {
  --i: 0 !important;
  position: relative;
  padding: 46px 42px 42px;
  border-radius: 30px;
  background: linear-gradient(160deg, #14131cc7, #0b0a10a6);
  border: 1px solid #f3f2f514;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  margin: 0 0 18vh;
  overflow: hidden;
  transition:
    box-shadow 0.7s ease,
    background 0.7s ease;
}
.flow-card:last-child {
  margin-bottom: 0;
}
.flow-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--acc), transparent 38%, transparent 62%, var(--acc2));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.3;
  transition: opacity 0.7s ease;
  pointer-events: none;
}
.flow-card::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -120px;
  bottom: -160px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--acc), transparent 65%);
  opacity: 0.08;
  transition: opacity 0.7s ease;
  pointer-events: none;
}
.flow-card.is-active::before { opacity: 1; }
.flow-card.is-active::after { opacity: 0.22; }
.flow-card.is-active {
  box-shadow: 0 40px 100px -40px color-mix(in srgb, var(--acc) 55%, transparent);
}
[data-why="0"] { --acc: var(--apricot); --acc2: var(--rose); }
[data-why="1"] { --acc: var(--rose); --acc2: var(--lilac); }
[data-why="2"] { --acc: var(--lilac); --acc2: var(--ice); }
[data-step="0"] { --acc: var(--ice); --acc2: var(--lilac); }
[data-step="1"] { --acc: var(--lilac); --acc2: var(--rose); }
[data-step="2"] { --acc: var(--rose); --acc2: var(--apricot); }
[data-step="3"] { --acc: var(--apricot); --acc2: var(--ice); }
.flow-card-num {
  position: absolute;
  right: 26px;
  top: 4px;
  font-size: 140px;
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px color-mix(in srgb, var(--acc) 45%, transparent);
  pointer-events: none;
}
.flow-card-index {
  position: relative;
  font-size: 11px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--acc);
}
.flow-card h3 {
  position: relative;
  font-size: clamp(36px, 3.4vw, 56px);
  line-height: 0.95;
  letter-spacing: -0.06em;
  margin: 24px 0 18px;
  color: #fbfbfb;
}
.flow-card h3 span {
  color: var(--acc);
}
.flow-card p {
  position: relative;
  font-size: 17px;
  line-height: 1.5;
  color: #c9c8d2;
  max-width: 480px;
  margin: 0;
}
.flow-card .btn {
  position: relative;
  margin-top: 28px;
}
.flow-process .process-number-fallback {
  display: none;
}
body:not(.process-webgl-ready) .flow-process .process-number-fallback {
  display: block;
  position: sticky;
  top: 25vh;
  font-size: min(30vw, 380px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.08em;
  color: transparent;
  -webkit-text-stroke: 2px var(--rose);
}

/* ---- reveal: blocks unfold one under another --------------------------- */
.flow-in {
  opacity: 0;
}
.flow-in.is-in {
  animation: flowIn 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--i, 0) * 80ms);
}
@keyframes flowIn {
  from { opacity: 0; translate: 0 56px; }
  to { opacity: 1; translate: 0 0; }
}
.flow-card.flow-in.is-in {
  animation-name: flowUnfold;
  animation-duration: 1.25s;
}
@keyframes flowUnfold {
  from { opacity: 0; translate: 0 70px; clip-path: inset(0 0 100% 0 round 30px); }
  35% { opacity: 1; }
  to { opacity: 1; translate: 0 0; clip-path: inset(0 0 0 0 round 30px); }
}
/* Portfolio: each project grows out of the previous one's corner */
.case-tile.flow-in.is-in {
  animation-name: flowGrow;
  animation-duration: 1.3s;
  animation-delay: calc(var(--i, 0) * 140ms);
}
@keyframes flowGrow {
  from { opacity: 1; clip-path: circle(0% at 0% 0%); }
  to { opacity: 1; clip-path: circle(150% at 0% 0%); }
}
.case-tile:nth-child(even).flow-in.is-in {
  animation-name: flowGrowR;
}
@keyframes flowGrowR {
  from { opacity: 1; clip-path: circle(0% at 100% 0%); }
  to { opacity: 1; clip-path: circle(150% at 100% 0%); }
}

/* ---- accents across existing components ---------------------------------- */
.folder-web { --acc: var(--ice); }
.folder-telegram { --acc: var(--lilac); }
.folder-systems { --acc: var(--rose); }
.folder-design { --acc: var(--apricot); }
body.flow .price-folder .folder-number { color: var(--acc) !important; }
body.flow .price-folder .folder-plus {
  color: var(--acc) !important;
  border-color: color-mix(in srgb, var(--acc) 50%, transparent) !important;
}
body.flow .price-folder[open] {
  border-color: color-mix(in srgb, var(--acc) 55%, transparent) !important;
  box-shadow: 0 30px 80px -40px var(--acc);
}
body.flow .price-folder .folder-content strong { color: var(--acc) !important; }
.case-web { --acc: var(--ice); }
.case-app { --acc: var(--rose); }
.case-payment { --acc: var(--lilac); }
.case-bot { --acc: var(--apricot); }
.case-system { --acc: var(--ice); }
body.flow .project-card-caption > span { color: var(--acc) !important; }
body.flow .case-tile:hover .case-cover {
  box-shadow: 0 30px 90px -40px var(--acc);
}
body.flow .faq-item summary span { color: var(--acc) !important; }
body.flow .faq-item:before {
  background: linear-gradient(var(--lilac), var(--rose)) !important;
}
body.flow .faq-item[open] {
  border-color: color-mix(in srgb, var(--lilac) 45%, transparent) !important;
}
body.flow .cta h2 span {
  background: linear-gradient(95deg, var(--rose), var(--apricot));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
}
body.flow .expertise-tabs [aria-selected="true"] {
  background: linear-gradient(120deg, var(--apricot), #fde68a) !important;
  color: #07060b !important;
  border-color: transparent !important;
}
body.flow .expertise-panel > span { color: var(--apricot) !important; }
body.flow .founder-label { color: var(--apricot) !important; }

/* ---- hidden logo cubes (mini-game) -------------------------------------- */
#products .w,
#works .w,
.faq > div:first-child {
  position: relative;
}
.lab-cube {
  position: absolute;
  z-index: 3;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  animation: cubeFloat 3.6s ease-in-out infinite;
}
.lab-cube i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 5px;
  transform: rotate(14deg);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.lab-cube:hover i,
.lab-cube:focus-visible i {
  transform: rotate(60deg) scale(1.2);
}
.lab-cube-mint i { background: linear-gradient(135deg, #dbeafe, #7cc4ff 60%, #3b82f6); box-shadow: 0 0 18px #7cc4ffaa; }
.lab-cube-rose i { background: linear-gradient(135deg, #f9a8d4, #db2777 55%, #d6246e); box-shadow: 0 0 18px #ff5c8aaa; }
.lab-cube-pearl i { background: linear-gradient(135deg, #fff, #f3f2f5 60%, #a7a6b4); box-shadow: 0 0 18px #f3f2f5aa; }
.lab-cube.is-found { display: none !important; }
.cube-ghost {
  transition:
    transform 0.7s cubic-bezier(0.5, 0, 0.2, 1),
    opacity 0.7s ease;
  animation: none !important;
  pointer-events: none;
}
#products .lab-cube { right: 6px; bottom: -8px; }
#works .lab-cube { right: 26px; bottom: 112px; }
.faq .lab-cube { position: relative; display: block; margin: 26px 0 0 4px; }
@keyframes cubeFloat {
  50% { translate: 0 -7px; }
}

/* ---- Диги, the guide ----------------------------------------------------- */
.guide {
  --p: 0;
  --guide-acc: var(--apricot);
  position: fixed;
  z-index: 45;
  right: 18px;
  top: 104px;
  bottom: 56px;
  width: 64px;
  pointer-events: none;
  font-family: inherit;
}
body[data-section="hero"] .guide { --guide-acc: var(--ice); }
body[data-section="products"] .guide,
body[data-section="faq"] .guide { --guide-acc: var(--lilac); }
body[data-section="works"] .guide { --guide-acc: var(--ice); }
body[data-section="how"] .guide,
body[data-section="contact"] .guide { --guide-acc: var(--rose); }
.guide-rail {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: #f3f2f51c;
}
.guide-rail-fill {
  position: absolute;
  inset: 0;
  transform-origin: top;
  transform: scaleY(0);
  background: linear-gradient(var(--ice), var(--lilac), var(--rose), var(--apricot));
  box-shadow: 0 0 10px #a68cff66;
}
.guide-dots {
  position: absolute;
  inset: 0;
}
.guide-dots button {
  pointer-events: auto;
  position: absolute;
  left: 50%;
  top: calc(var(--y, 0) * 100%);
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.guide-dots button::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  transform: rotate(45deg);
  background: var(--navy);
  border: 1px solid #f3f2f566;
  transition: 0.3s;
}
.guide-dots button[aria-current]::before {
  background: var(--guide-acc);
  border-color: var(--guide-acc);
  box-shadow: 0 0 12px var(--guide-acc);
}
.guide-dots span {
  position: absolute;
  right: 26px;
  top: 50%;
  transform: translate(6px, -50%);
  white-space: nowrap;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #f3f2f5;
  background: #0e0d14e6;
  border: 1px solid #f3f2f51f;
  border-radius: 999px;
  padding: 5px 10px;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s;
}
.guide-dots button:hover span,
.guide-dots button:focus-visible span {
  opacity: 1;
  transform: translate(0, -50%);
}
.guide.talking .guide-dots span { opacity: 0 !important; }
.guide-bot-wrap {
  position: absolute;
  left: 50%;
  top: calc(var(--p) * 100%);
  transform: translate(-50%, -50%);
  pointer-events: auto;
  z-index: 2;
}
.guide-bot {
  display: block;
  position: relative;
  width: 60px;
  height: 72px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  filter: drop-shadow(0 10px 18px #0009);
}
.guide-bot svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.guide-bot:focus-visible {
  outline: 2px solid var(--guide-acc);
  outline-offset: 4px;
  border-radius: 18px;
}
.guide-bot .dg-body {
  animation: dgBob 3.2s ease-in-out infinite;
}
.guide-bot .dg-eyes {
  transform-box: fill-box;
  transform-origin: center;
  animation: dgBlink 4.6s infinite;
}
.guide-bot .dg-happy { opacity: 0; }
.guide-bot.happy .dg-eyes { opacity: 0; }
.guide-bot.happy .dg-happy { opacity: 1; }
.guide-bot .dg-arm,
.guide-bot .dg-foot {
  transform-box: fill-box;
}
.guide-bot .dg-arm-r { transform-origin: 0 0; }
.guide-bot .dg-arm-l { transform-origin: 100% 0; }
.guide.talking .dg-arm-r { animation: dgWave 0.9s ease-in-out 3; }
.guide.walking .dg-foot-l { animation: dgStep 0.26s ease-in-out infinite alternate; }
.guide.walking .dg-foot-r { animation: dgStep 0.26s ease-in-out infinite alternate-reverse; }
.guide.walking .dg-arm-l { animation: dgSwing 0.26s ease-in-out infinite alternate; }
.guide-bot.hop svg { animation: dgHop 0.6s cubic-bezier(0.3, 1.6, 0.5, 1); }
.guide-bot .dg-antenna-glow {
  transform-box: fill-box;
  transform-origin: center;
  animation: dgGlow 2.2s ease-in-out infinite;
}
@keyframes dgBob { 50% { transform: translateY(-3px); } }
@keyframes dgBlink { 0%, 91%, 97%, 100% { transform: scaleY(1); } 94% { transform: scaleY(0.08); } }
@keyframes dgWave { 50% { transform: rotate(-55deg); } }
@keyframes dgSwing { to { transform: rotate(25deg); } }
@keyframes dgStep { to { transform: translateY(-4px); } }
@keyframes dgHop { 40% { transform: translateY(-12px) rotate(-4deg); } 70% { transform: translateY(0) scale(1.05, 0.95); } }
@keyframes dgGlow { 50% { opacity: 0.45; transform: scale(0.8); } }
.guide-score {
  position: absolute;
  left: 50%;
  top: calc(100% + 2px);
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #07060b;
  background: linear-gradient(120deg, var(--apricot), var(--rose));
  border-radius: 999px;
  padding: 3px 7px;
}
.guide.complete .guide-score {
  background: linear-gradient(120deg, var(--ice), var(--lilac), var(--rose), var(--apricot));
}
.guide-bubble {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  width: 280px;
  padding: 15px 17px;
  border-radius: 20px;
  background: #0e0d14f0;
  border: 1px solid #f3f2f524;
  box-shadow:
    0 30px 80px -20px #000c,
    0 0 0 1px #00000040;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #f3f2f5;
  font-size: 14px;
  line-height: 1.45;
  opacity: 0;
  transform: translate(10px, calc(-50% - (var(--p) - 0.5) * 70%)) scale(0.96);
  transform-origin: right center;
  transition:
    opacity 0.3s ease,
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.guide-bubble.open {
  opacity: 1;
  transform: translate(0, calc(-50% - (var(--p) - 0.5) * 70%)) scale(1);
}
.guide-bubble::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--guide-acc), transparent 45%);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.guide-name {
  display: block;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--guide-acc);
  margin-bottom: 6px;
}
.guide-text {
  margin: 0;
  min-height: 2.9em;
}
.guide-extra {
  margin: 10px 0 0;
  font-size: 13px;
  color: #a7a6b4;
}
.guide-extra[hidden] { display: none; }
.guide-actions:empty { display: none; }
.guide-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.guide-next {
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  color: #07060b;
  background: linear-gradient(120deg, #fbfbfb, var(--guide-acc));
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  text-decoration: none;
}
.guide-close {
  position: absolute;
  right: 8px;
  top: 6px;
  width: 26px;
  height: 26px;
  border: 0;
  background: none;
  color: #a7a6b4;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
}
.guide-close:hover { color: #fff; background: #ffffff12; }
.guide-confetti {
  position: fixed;
  z-index: 70;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  pointer-events: none;
  animation: confetti 1.55s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}
@keyframes confetti {
  45% { transform: translate(calc(var(--dx) * 0.7), var(--dy)) rotate(calc(var(--r) * 0.5)); opacity: 1; }
  to { transform: translate(var(--dx), calc(var(--dy) + 320px)) rotate(var(--r)); opacity: 0; }
}

/* Dialog above everything */
body.flow dialog { z-index: 80; }

/* ---- tablet --------------------------------------------------------------- */
@media (max-width: 1100px) and (min-width: 701px) {
  .flow-split-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 28px; }
  .flow-card { padding: 38px 32px 34px; }
}
@media (min-width: 701px) {
  body.flow main .w { width: min(100% - 180px, 1320px); }
}

/* ---- phone ---------------------------------------------------------------- */
@media (max-width: 700px) {
  .flow-hero .hero {
    padding: 104px 0 92px;
    align-content: stretch;
  }
  .flow-hero .hero-grid > div {
    min-height: calc(100svh - 196px);
    display: flex;
    flex-direction: column;
  }
  .flow-hero .hero-copy {
    margin-top: auto;
    font-size: 16px !important;
  }
  .flow-hero .hero-actions {
    margin-top: 18px !important;
  }
  .flow-hero-foot {
    bottom: 22px;
    padding-right: 70px;
  }
  .flow-scroll-cue { display: none; }
  .flow-split { padding: 90px 0 110px !important; }
  .flow-split-grid { display: block; }
  .flow-split-aside { display: none; }
  body:not(.process-webgl-ready) .flow-process .flow-split-aside { display: block; height: 0; }
  .flow-head { margin-bottom: 44svh; }
  .flow-head h2 { font-size: clamp(34px, 10vw, 46px); }
  .flow-card {
    padding: 30px 24px 28px;
    border-radius: 24px;
    margin-bottom: 30svh;
    background: linear-gradient(160deg, #14131ce0, #0b0a10cc);
  }
  .flow-card-num { font-size: 96px; right: 14px; top: 2px; }
  .flow-card h3 { font-size: clamp(32px, 9.4vw, 42px); margin: 18px 0 14px; }
  .flow-card p { font-size: 15.5px; }
  @keyframes flowUnfold {
    from { opacity: 0; translate: 0 40px; clip-path: inset(0 0 100% 0 round 24px); }
    35% { opacity: 1; }
    to { opacity: 1; translate: 0 0; clip-path: inset(0 0 0 0 round 24px); }
  }

  .guide {
    top: auto;
    right: 10px;
    bottom: 12px;
    width: 58px;
    height: 70px;
  }
  .guide-rail,
  .guide-dots { display: none; }
  .guide-bot-wrap {
    left: 0;
    top: 0;
    transform: none;
  }
  .guide-bot {
    width: 58px;
    height: 70px;
  }
  .guide-bot::before {
    content: "";
    position: absolute;
    left: 5px;
    right: 5px;
    top: 14px;
    bottom: 4px;
    border-radius: 50%;
    background: conic-gradient(var(--guide-acc) calc(var(--p) * 360deg), #f3f2f51a 0);
    -webkit-mask: radial-gradient(circle, transparent 62%, #000 63%);
    mask: radial-gradient(circle, transparent 62%, #000 63%);
    opacity: 0.9;
  }
  .guide-score { top: auto; bottom: calc(100% - 6px); }
  .guide-bubble {
    right: 0;
    top: auto;
    bottom: calc(100% + 8px);
    width: min(290px, calc(100vw - 24px));
    font-size: 13.5px;
    padding: 14px 16px;
    transform: translateY(8px) scale(0.96);
    transform-origin: bottom right;
  }
  .guide-bubble.open { transform: none; }
  #works .lab-cube { right: 12px; bottom: 104px; }
}

@media (prefers-reduced-motion: reduce) {
  .flow-in { opacity: 1 !important; }
}
.motion-paused .guide-bot *,
.motion-paused .lab-cube,
.motion-paused .flow-scroll-cue b {
  animation-play-state: paused !important;
}

/* =========================================================================
   CLEAN PALETTE — solid near-black background, pure bright accents
   ========================================================================= */
.flow-glow { display: none !important; }
body.flow, html { background: #07060b !important; color: #f3f2f5; }
body.flow .nav { background: #0b0a10e6 !important; border-color: #ffffff14 !important; }
.flow-card {
  background: linear-gradient(160deg, #ffffff0d, #ffffff05) !important;
  border-color: #ffffff12 !important;
}
.flow-card p { color: #b9b8c6 !important; }
body.flow .btn.primary {
  background: #ffffff !important;
  color: #07060b !important;
}
body.flow .pill.primary,
body.flow .btn.wine {
  background: linear-gradient(120deg, #a855f7, #ec4899) !important;
  box-shadow: 0 12px 36px -14px #a855f7aa !important;
  color: #fff !important;
}

/* Product folders: dark glass, colour only in accents (numbers and plus are visible now) */
body.flow .price-folder {
  background: linear-gradient(160deg, #ffffff0c, #ffffff04) !important;
  border: 1px solid #ffffff14 !important;
  color: #f3f2f5 !important;
  position: relative;
  overflow: hidden;
}
body.flow .price-folder::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--acc);
  box-shadow: 0 0 18px var(--acc);
}
body.flow .price-folder summary,
body.flow .price-folder h3,
body.flow .price-folder h4 { color: #f3f2f5 !important; }
body.flow .price-folder summary p,
body.flow .price-folder .folder-content p,
body.flow .price-folder .folder-content span { color: #a7a6b4 !important; }
body.flow .price-folder .folder-number {
  color: var(--acc) !important;
  opacity: 1 !important;
  visibility: visible !important;
  font-weight: 800;
}
body.flow .price-folder .folder-price { color: #f3f2f5 !important; }
body.flow .price-folder .folder-plus {
  display: grid !important;
  place-items: center;
  visibility: visible !important;
  opacity: 1 !important;
  color: var(--acc) !important;
  border: 1px solid color-mix(in srgb, var(--acc) 60%, transparent) !important;
  background: color-mix(in srgb, var(--acc) 12%, transparent) !important;
}
body.flow .price-folder .folder-content article {
  background: #ffffff08 !important;
  border: 1px solid #ffffff10 !important;
  color: #f3f2f5 !important;
}
body.flow .price-folder .folder-content a {
  color: var(--acc) !important;
  background: none !important;
}
.folder-web { --acc: #7cc4ff; }
.folder-telegram { --acc: #a855f7; }
.folder-systems { --acc: #ec4899; }
.folder-design { --acc: #fcd34d; }
.folder-custom { --acc: #6366f1; }

/* Case covers: neutral dark stage, photos fill the frame */
body.flow .case-cover {
  background: radial-gradient(ellipse at 50% 20%, color-mix(in srgb, var(--acc) 22%, transparent), transparent 70%), #0e0d14 !important;
  border-color: #ffffff14 !important;
}
.case-cover .case-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.case-tile:hover .case-photo { transform: scale(1.04); }
.case-cover:has(.case-photo)::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 55%, #07060bb3);
  pointer-events: none;
}
.case-cover .open-project { z-index: 2; }

/* Project dialog: photo gallery */
body.flow dialog { background: #0b0a10 !important; color: #f3f2f5; }
.photo-gallery {
  display: flex;
  justify-content: center;
  align-items: center;
  height: min(60svh, 640px);
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
}
.photo-gallery img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 22px;
  box-shadow: 0 40px 100px -40px #a855f799;
  animation: photoIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes photoIn { from { opacity: 0; transform: scale(0.97); } }
@media (max-width: 700px) {
  .photo-gallery { height: 62svh; }
  .photo-gallery img { border-radius: 16px; }
}

body.flow .founder-portrait { object-position: 50% 62% !important; }

/* Диги v2 — built from the Digital Lab mark: the D is the body, the three cubes are its companions */
.guide-bot .dg-cube { transform-box: fill-box; transform-origin: center; animation: dgCube 2.4s ease-in-out infinite; }
.guide-bot .dg-c2 { animation-delay: 0.25s; }
.guide-bot .dg-c3 { animation-delay: 0.5s; }
@keyframes dgCube { 50% { transform: translate(-2px, -3px) rotate(-8deg); } }
.guide.talking .dg-c1 { animation: dgCubeWave 0.7s ease-in-out 3; }
@keyframes dgCubeWave { 50% { transform: translate(-6px, -8px) rotate(-30deg); } }
.guide.walking .dg-cube { animation: dgCubeWalk 0.26s ease-in-out infinite alternate; }
@keyframes dgCubeWalk { to { transform: translateX(-4px); } }
.guide-bot.happy .dg-cube { animation: dgCubeSpin 0.8s cubic-bezier(0.3, 1.4, 0.5, 1) 2; }
.guide-bot.happy .dg-c2 { animation-delay: 0.1s; }
.guide-bot.happy .dg-c3 { animation-delay: 0.2s; }
@keyframes dgCubeSpin { 50% { transform: translateY(-12px) rotate(180deg); } to { transform: rotate(360deg); } }
.guide-bot { width: 64px !important; }
@media (max-width: 700px) {
  .guide-bot::before { left: 9px; right: 3px; }
}
.guide-score { background: linear-gradient(120deg, #a855f7, #ec4899) !important; color: #fff !important; }

body.flow .founder-copy { background: linear-gradient(150deg, #a855f7, #ec4899) !important; border: 0 !important; }
body.flow .founder-copy .founder-label { color: #fde68a !important; }
body.flow .founder-copy p { color: #fff !important; }

/* Диги v3 — robot avatar in a round badge (poses change by section) */
.guide-bot {
  width: 66px !important;
  height: 66px !important;
  border-radius: 50%;
  background: #ecebe8;
  box-shadow: 0 0 0 2px #07060b, 0 0 0 4px var(--guide-acc), 0 14px 30px -8px #000c;
  overflow: visible;
  filter: none !important;
}
.digi-img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  transform-origin: 50% 90%;
  animation: digiBob 3.2s ease-in-out infinite;
}
@keyframes digiBob { 50% { transform: translateY(-2px) rotate(-2deg); } }
.guide.walking .digi-img { animation: digiWalk 0.28s ease-in-out infinite alternate; }
@keyframes digiWalk { from { transform: rotate(-5deg); } to { transform: rotate(5deg) translateY(-2px); } }
.guide-bot.hop .digi-img, .guide-bot.happy .digi-img { animation: digiHop 0.7s cubic-bezier(0.3, 1.6, 0.5, 1) 2; }
@keyframes digiHop { 40% { transform: translateY(-8px) scale(1.06); } }
.guide-bot.hop svg { animation: none; }
@media (max-width: 700px) {
  .guide { width: 60px; height: 60px; }
  .guide-bot { width: 60px !important; height: 60px !important; }
  .guide-bot::before {
    left: -5px !important; right: -5px !important; top: -5px !important; bottom: -5px !important;
    z-index: -1;
  }
  .guide-bot { box-shadow: 0 14px 30px -8px #000c !important; }
}

.guide-dots { z-index: 1; }
.guide-bot-wrap { z-index: 5 !important; }

/* =========================================================================
   SERIOUS / INTERNATIONAL — monochrome graphite, silver and one steel accent
   ========================================================================= */
:root {
  --ice: #a9c4dc;
  --lilac: #c9ced6;
  --indigo: #a9c4dc;
  --rose: #dfe3e8;
  --apricot: #c9ced6;
  --steel: #a9c4dc;
  --silver: #c9ced6;
  --mute2: #8a8f98;
}
#hero, #why, #products, #works, #how, #team, #faq, #contact,
[data-why], [data-step], .folder-web, .folder-telegram, .folder-systems, .folder-design, .folder-custom,
.case-web, .case-app, .case-payment, .case-bot, .case-system { --acc: #a9c4dc !important; --acc2: #ffffff !important; }
.guide, body[data-section] .guide { --guide-acc: #a9c4dc !important; }

body.flow section .eyebrow { color: #9aa0a8 !important; letter-spacing: 0.2em; }
body.flow section .section-head .eyebrow::before,
.flow-eyebrow i {
  width: 22px !important; height: 1px !important; border-radius: 0 !important;
  transform: none !important; box-shadow: none !important; background: #a9c4dc !important;
  vertical-align: 3px !important;
}
.flow-head h2 em, .flow-card h3 span, body.flow .cta h2 span {
  background: none !important; -webkit-background-clip: initial !important; background-clip: initial !important;
  color: #8a8f98 !important; -webkit-text-fill-color: #8a8f98;
}

/* Buttons: white primary, hairline secondary */
body.flow .btn.primary, body.flow .pill.primary, body.flow .btn.wine {
  background: #ffffff !important; color: #07060b !important; border-color: #ffffff !important;
  box-shadow: none !important;
}
body.flow .btn:not(.primary):not(.wine) { border-color: #ffffff33 !important; color: #f3f2f5 !important; background: transparent !important; }
body.flow .btn:hover, body.flow .pill.primary:hover { box-shadow: 0 10px 30px -12px #ffffff55 !important; }
body.flow .instagram-cta { background: transparent !important; color: #f3f2f5 !important; border: 1px solid #ffffff33 !important; }

/* Cards: solid graphite plates */
.flow-card {
  background: #0f1013f2 !important;
  border: 1px solid #ffffff14 !important;
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
}
.flow-card::before { background: linear-gradient(135deg, #ffffff66, transparent 35%, transparent 70%, #a9c4dc55) !important; opacity: 0 !important; }
.flow-card.is-active::before { opacity: 1 !important; }
.flow-card::after { display: none !important; }
.flow-card.is-active { box-shadow: 0 40px 90px -50px #000 !important; }
.flow-card-num { -webkit-text-stroke: 1px #ffffff1f !important; }
.flow-card-index { color: #a9c4dc !important; }

/* Product line: readable plates, plain plus */
body.flow .price-folder {
  background: #111216 !important;
  border: 1px solid #ffffff14 !important;
  box-shadow: none !important;
}
body.flow .price-folder::before { display: none !important; }
body.flow .price-folder:hover { border-color: #ffffff2e !important; }
body.flow .price-folder[open] { border-color: #ffffff33 !important; box-shadow: none !important; }
body.flow .price-folder .folder-number { color: #a9c4dc !important; }
body.flow .price-folder .folder-plus {
  border: 0 !important; background: none !important; box-shadow: none !important;
  width: auto !important; height: auto !important; border-radius: 0 !important;
  color: #ffffff !important; font-size: 28px !important; font-weight: 300 !important; line-height: 1 !important;
  transition: transform .4s cubic-bezier(.16,1,.3,1);
}
body.flow .price-folder[open] .folder-plus { transform: rotate(45deg); }
body.flow .price-folder .folder-plus::before, body.flow .price-folder .folder-plus::after { display: none !important; }
body.flow .price-folder .folder-content article { background: #16171c !important; border-color: #ffffff12 !important; }
body.flow .price-folder .folder-content strong { color: #ffffff !important; }
body.flow .price-folder .folder-content a { color: #ffffff !important; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #ffffff55; }

/* Team & misc */
body.flow .founder-copy { background: #111216 !important; border: 1px solid #ffffff14 !important; }
body.flow .founder-copy .founder-label { color: #a9c4dc !important; }
body.flow .founder-copy p { color: #c9ced6 !important; }
body.flow .expertise-tabs [aria-selected="true"] { background: #ffffff !important; color: #07060b !important; }
body.flow .expertise-panel > span { color: #a9c4dc !important; }
body.flow .faq-item:before { background: #a9c4dc !important; }
body.flow .faq-item[open] { border-color: #ffffff33 !important; }
body.flow .faq-item summary span { color: #ffffff !important; }
.photo-gallery img { box-shadow: 0 40px 100px -50px #000 !important; }
body.flow .case-tile:hover .case-cover { box-shadow: 0 30px 80px -50px #000 !important; }
body.flow .case-cover { background: #111216 !important; }
.case-web .case-cover, .case-system .case-cover { background: #d9dce1 !important; }
.case-payment .case-cover { background: #a9c4dc !important; }
.case-app .case-cover { background: #2b313a !important; }
.case-bot .case-cover { background: #16181d !important; }

/* Guide: AI assistant */
.guide-bot {
  background: radial-gradient(circle at 50% 35%, #23262d, #0b0c0f 70%) !important;
  box-shadow: 0 0 0 1px #ffffff26, 0 14px 30px -8px #000 !important;
}
.ai-avatar { width: 100%; height: 100%; border-radius: 50%; display: block; transform-origin: 50% 80%; animation: aiFloat 4s ease-in-out infinite; }
.ai-avatar .ai-eyes { transform-box: fill-box; transform-origin: center; animation: dgBlink 5s infinite; }
@keyframes aiFloat { 50% { transform: translateY(-1.5px); } }
.guide.walking .ai-avatar { animation: aiFloat 0.5s ease-in-out infinite; }
.guide-bot.hop .ai-avatar, .guide-bot.happy .ai-avatar { animation: digiHop 0.7s cubic-bezier(0.3, 1.4, 0.5, 1); }
.guide-rail-fill { background: linear-gradient(#ffffff, #a9c4dc) !important; box-shadow: none !important; }
.guide-bubble { background: #0f1013f7 !important; border-color: #ffffff1f !important; border-radius: 16px !important; }
.guide-bubble::before { display: none !important; }
.guide-name { color: #a9c4dc !important; letter-spacing: 0.14em !important; }
.guide-next { background: #ffffff !important; color: #07060b !important; border-radius: 999px; }
.guide-score { background: #ffffff !important; color: #07060b !important; }
.guide-dots button[aria-current]::before { background: #ffffff !important; border-color: #ffffff !important; box-shadow: none !important; }
@media (max-width: 700px) { .guide-bot::before { background: conic-gradient(#a9c4dc calc(var(--p) * 360deg), #ffffff1a 0) !important; } }

/* Crystals instead of cubes */
.lab-cube { width: 20px !important; height: 28px !important; filter: drop-shadow(0 0 8px #a9c4dc88); }
.lab-cube i {
  border-radius: 0 !important; transform: none !important; box-shadow: none !important;
  clip-path: polygon(50% 0, 96% 24%, 96% 70%, 50% 100%, 4% 70%, 4% 24%);
  position: relative; overflow: hidden;
}
.lab-cube i::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(115deg, transparent 0 46%, #ffffff99 48%, transparent 52%),
    linear-gradient(65deg, transparent 0 60%, #ffffff55 62%, transparent 66%),
    linear-gradient(180deg, #ffffff40, transparent 30%);
}
.lab-cube i::after {
  content: ""; position: absolute; left: -60%; top: 0; width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, #ffffffcc, transparent);
  transform: skewX(-20deg); animation: crystalGlint 3.2s ease-in-out infinite;
}
@keyframes crystalGlint { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.lab-cube-mint i { background: linear-gradient(160deg, #e6f2fb, #a9c4dc 45%, #4d6a85) !important; }
.lab-cube-rose i { background: linear-gradient(160deg, #d9dde2, #6b7380 50%, #2b2f36) !important; }
.lab-cube-pearl i { background: linear-gradient(160deg, #ffffff, #dfe3e8 50%, #9aa1aa) !important; }
.lab-cube:hover i, .lab-cube:focus-visible i { transform: scale(1.15) !important; }

.ai-avatar { clip-path: circle(50% at 50% 50%); }

/* =========================================================================
   PALETTE 01 — Graphite & Electric Blue (+ signal orange, used sparingly)
   ========================================================================= */
:root {
  --g-900: #06080f; --g-800: #0b0e18; --g-700: #121728; --g-600: #191f30; --g-line: #ffffff17;
  --cloud: #f4f2ed; --paper-w: #ffffff; --line-l: #e5e1d8; --ink: #06080f; --mute-l: #5e6673; --mute-d: #9aa3b2;
  --blue: #2443f0; --blue-hi: #7088ff; --blue-soft: #e8ebfc; --orange: #ea6a25; --orange-soft: #f6e8dc;
}
#hero, #why, #works, #how, #team, #contact,
[data-why], [data-step], .case-web, .case-app, .case-payment, .case-bot, .case-system { --acc: #7088ff !important; --acc2: #ffffff !important; }
#products, #faq, .folder-web, .folder-telegram, .folder-systems, .folder-design, .folder-custom { --acc: #2443f0 !important; --acc2: #06080f !important; }
.guide, body[data-section] .guide { --guide-acc: #2443f0 !important; }
body.flow, html { background: var(--g-900) !important; }
body.flow .nav { background: #06080fe6 !important; border-color: #ffffff1a !important; }

/* Eyebrows: orange marker, readable label */
body.flow section .eyebrow { color: #c5cbd5 !important; }
body.flow section .section-head .eyebrow::before, .flow-eyebrow i { background: var(--orange) !important; height: 2px !important; }

/* Headline accents */
.flow-head h2 em, .flow-card h3 span { color: var(--blue-hi) !important; -webkit-text-fill-color: var(--blue-hi) !important; }
body.flow .cta h2 span { color: var(--blue-hi) !important; -webkit-text-fill-color: var(--blue-hi) !important; }
.flow-hero h1 .outline {
  color: transparent !important; -webkit-text-stroke: 0 !important;
  background: linear-gradient(100deg, #2443f0 10%, #9aabff 60%, #2443f0 95%) !important;
  -webkit-background-clip: text !important; background-clip: text !important; -webkit-text-fill-color: transparent !important;
}
.flow-hero .eyebrow::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); margin-right: 10px; box-shadow: 0 0 12px var(--orange); vertical-align: 1px; }
.flow-hero .hero-copy b { color: #ffffff !important; }

/* Buttons in colour */
body.flow .btn.primary, body.flow .pill.primary, body.flow .btn.wine, body.flow .guide-next, body.flow .dialog-cta {
  background: var(--blue) !important; color: #ffffff !important; border-color: var(--blue) !important;
  box-shadow: 0 12px 30px -12px #2443f0aa !important;
}
body.flow .btn.primary:hover, body.flow .pill.primary:hover, body.flow .btn.wine:hover { background: #1a32c8 !important; }
body.flow .btn:not(.primary):not(.wine) { border-color: #ffffff3a !important; color: #ffffff !important; }

/* Why / Process cards: visible numbers */
.flow-card { background: var(--g-800) !important; border: 1px solid var(--g-line) !important; }
.flow-card::before { background: linear-gradient(135deg, #7088ff, transparent 40%, transparent 70%, #ea6a2588) !important; }
.flow-card-index {
  display: inline-flex; align-items: center; gap: 8px;
  color: #ffffff !important; font-weight: 700; font-size: 12px !important; letter-spacing: .14em !important;
  background: #2443f022; border: 1px solid #2443f066; padding: 6px 12px; border-radius: 999px;
}
.flow-card-index::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.flow-card-num {
  -webkit-text-stroke: 0 !important; color: transparent !important;
  background: linear-gradient(180deg, #7088ff, #2443f000 90%);
  -webkit-background-clip: text; background-clip: text; opacity: .9;
}
.flow-card p { color: #c5cbd5 !important; }

/* ---------- Light sections: prices and questions ---------- */
body.flow #products, body.flow #faq {
  background: var(--cloud) !important; color: var(--ink) !important;
  border-radius: 36px; position: relative; z-index: 2;
  margin-inline: max(0px, calc((100vw - 1500px) / 2));
}
#products h2, #products h3, #products h4, #faq h2, #faq summary { color: var(--ink) !important; }
#products .section-head p, #products .price-note, #faq .faq-intro, #faq .faq-item p { color: var(--mute-l) !important; }
#products .eyebrow, #faq .eyebrow { color: var(--mute-l) !important; }
body.flow #products .price-folder {
  background: var(--paper-w) !important; border: 1px solid var(--line-l) !important;
  box-shadow: 0 1px 2px #06080f0d, 0 12px 30px -20px #06080f33 !important; color: var(--ink) !important;
}
body.flow #products .price-folder::before { display: block !important; content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 0 3px 3px 0; background: var(--blue); box-shadow: none; opacity: 0; transition: opacity .3s; }
body.flow #products .price-folder:hover::before, body.flow #products .price-folder[open]::before { opacity: 1; }
body.flow #products .price-folder:hover { border-color: #2443f066 !important; }
body.flow #products .price-folder[open] { border-color: var(--blue) !important; }
body.flow #products .price-folder summary, body.flow #products .price-folder h3 { color: var(--ink) !important; }
body.flow #products .price-folder summary p { color: var(--mute-l) !important; }
body.flow #products .price-folder .folder-number {
  color: var(--blue) !important; background: var(--blue-soft); border-radius: 8px; padding: 4px 8px; font-family: inherit;
}
body.flow #products .price-folder .folder-price { color: var(--ink) !important; font-weight: 800 !important; }
body.flow #products .price-folder .folder-plus { color: var(--blue) !important; font-size: 30px !important; }
body.flow #products .price-folder .folder-content { border-color: var(--line-l) !important; }
body.flow #products .price-folder .folder-content article { background: var(--cloud) !important; border: 1px solid var(--line-l) !important; color: var(--ink) !important; }
body.flow #products .price-folder .folder-content article p, body.flow #products .price-folder .folder-content article span { color: var(--mute-l) !important; }
body.flow #products .price-folder .folder-content strong { color: var(--blue) !important; }
body.flow #products .price-folder .folder-content a {
  color: #fff !important; background: var(--blue) !important; text-decoration: none !important;
  border-radius: 999px; padding: 9px 14px; display: inline-flex; width: max-content; font-weight: 700;
}
.folder-custom .folder-number { background: var(--orange-soft) !important; color: #c2410c !important; }
body.flow #faq .faq-item { background: var(--paper-w) !important; border: 1px solid var(--line-l) !important; }
body.flow #faq .faq-item[open] { border-color: var(--blue) !important; }
body.flow #faq .faq-item summary span { color: var(--blue) !important; }
body.flow #faq .faq-item:before { background: var(--blue) !important; }

/* ---------- Founder expertise text on plates ---------- */
body.flow .expertise-panel {
  background: var(--g-800) !important; border: 1px solid var(--g-line) !important; border-left: 3px solid var(--blue) !important;
  border-radius: 18px !important; padding: 26px 28px !important; margin-top: 16px;
}
body.flow .expertise-panel > span { color: var(--blue-hi) !important; font-weight: 700; }
body.flow .expertise-panel h4 { color: #ffffff !important; }
body.flow .expertise-panel p { color: #c5cbd5 !important; }
body.flow .expertise-tabs [aria-selected="true"] { background: var(--blue) !important; color: #fff !important; border-color: var(--blue) !important; }
body.flow .expertise-tabs [role="tab"] { border-color: #ffffff26 !important; }
body.flow .founder-copy { background: var(--g-800) !important; }
body.flow .founder-copy .founder-label { color: var(--orange) !important; }

/* ---------- Instagram: compact plate in the site's language ---------- */
body.flow .instagram-feature {
  display: inline-grid !important; grid-template-columns: 44px minmax(0, 1fr) auto !important; align-items: center; gap: 14px !important;
  width: auto !important; max-width: 520px; margin-top: 34px !important; padding: 12px 18px 12px 12px !important;
  background: var(--g-800) !important; border: 1px solid var(--g-line) !important; border-radius: 18px !important;
  color: #fff !important; box-shadow: none !important; min-height: 0 !important;
}
body.flow .instagram-feature:hover { border-color: #2443f088 !important; transform: none !important; }
body.flow .instagram-feature .instagram-icon {
  width: 44px !important; height: 44px !important; border-radius: 12px !important; display: grid !important; place-items: center;
  background: var(--blue) !important; color: #fff !important; border: 0 !important; font-size: 18px !important;
}
body.flow .instagram-feature small { color: var(--orange) !important; font-size: 10px !important; letter-spacing: .14em !important; }
body.flow .instagram-feature strong { color: #fff !important; font-size: 16px !important; line-height: 1.2 !important; margin: 2px 0 !important; }
body.flow .instagram-feature span > span { color: var(--mute-d) !important; font-size: 12px !important; }
body.flow .instagram-feature > b { color: var(--blue-hi) !important; font-size: 18px !important; }

/* ---------- Work covers: real-looking phones ---------- */
.device-phone .device-screen { padding: 0 !important; background: #000 !important; }
.device-phone .device-screen img { object-fit: cover !important; object-position: top center !important; }
.device-phone .device-camera { top: 9px !important; width: 30% !important; height: 11px !important; background: #000 !important; border-radius: 999px !important; }
body.flow .case-cover { background: radial-gradient(ellipse at 50% 30%, #2443f033, transparent 65%), var(--g-800) !important; border-color: var(--g-line) !important; }
body.flow .project-card-caption > span { color: var(--blue-hi) !important; }

/* ---------- Crystals: visible, glowing, inviting ---------- */
.lab-cube {
  width: 28px !important; height: 40px !important; z-index: 6 !important;
  filter: drop-shadow(0 0 10px #7088ffcc) drop-shadow(0 0 2px #fff) !important;
}
.lab-cube::before {
  content: ""; position: absolute; inset: -14px -18px; border-radius: 50%;
  border: 1px solid #7088ff88; animation: crystalPing 2.4s ease-out infinite; pointer-events: none;
}
@keyframes crystalPing { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(1.3); opacity: 0; } }
.lab-cube-mint i { background: linear-gradient(160deg, #e8ebfc, #7088ff 45%, #1d47c9) !important; }
.lab-cube-rose i { background: linear-gradient(160deg, #f6e8dc, #ea6a25 50%, #b8401c) !important; }
.lab-cube-pearl i { background: linear-gradient(160deg, #ffffff, #c9d6ff 50%, #2443f0) !important; }
.flow-hero-foot .lab-cube { position: relative !important; display: block; }
#works .lab-cube { right: 30px !important; top: 12px !important; bottom: auto !important; }
#faq .lab-cube { filter: drop-shadow(0 0 10px #2443f0aa) !important; }

/* ---------- Guide in the new palette ---------- */
.guide-bot { background: #06080f !important; box-shadow: 0 0 0 1px #ffffff2e, 0 0 0 4px #2443f033, 0 14px 30px -8px #000 !important; }
.ai-avatar { animation: none !important; }
.guide.walking .ai-avatar, .guide-bot.hop .ai-avatar { animation: none !important; }
.ai-avatar .ai-eyes { animation: aiScan 6s ease-in-out infinite !important; }
@keyframes aiScan { 0%, 88%, 100% { opacity: 1; } 92% { opacity: .35; } 95% { opacity: 1; } }
.guide-rail-fill { background: linear-gradient(#7088ff, #2443f0 70%, #ea6a25) !important; }
.guide-name { color: var(--blue-hi) !important; }
.guide-score { background: var(--orange) !important; color: #fff !important; }
.guide-dots button[aria-current]::before { background: var(--blue) !important; border-color: var(--blue) !important; }
@media (max-width: 700px) {
  .guide-bot::before { background: conic-gradient(#2443f0 calc(var(--p) * 360deg), #ffffff1a 0) !important; }
  body.flow #products, body.flow #faq { border-radius: 26px; }
  body.flow .instagram-feature { display: grid !important; max-width: 100%; }
}
body.flow #products .price-folder .folder-content article { padding: 24px 24px 22px !important; border-radius: 16px !important; display: grid; gap: 6px; align-content: start; }
body.flow #products .price-folder .folder-content article h4 { margin: 0 0 4px !important; }
body.flow #products .price-folder .folder-content article a { margin-top: 10px; }
@media (max-width: 700px) {
  .guide-dots, .guide-rail { display: none !important; }
}
body.flow .mobile-menu-toggle { color: #fff !important; background: #ffffff10 !important; border: 1px solid #ffffff2e !important; }
body.flow .mobile-menu-toggle b { color: var(--blue-hi) !important; }

/* ---------- Hero: hollow accent words ---------- */
.flow-hero h1 .outline {
  background: none !important; -webkit-background-clip: initial !important; background-clip: initial !important;
  color: transparent !important; -webkit-text-fill-color: transparent !important;
  -webkit-text-stroke: 1.5px #ffffffb8 !important;
}

/* ---------- Instagram: one bold orange call ---------- */
body.flow .instagram-feature {
  display: inline-flex !important; align-items: center; justify-content: space-between; gap: 22px !important;
  grid-template-columns: none !important; max-width: 560px; padding: 18px 18px 18px 24px !important;
  background: var(--orange) !important; border: 0 !important; border-radius: 20px !important; color: #fff !important;
  box-shadow: 0 18px 40px -18px #ea6a25cc !important; transition: transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s !important;
}
body.flow .instagram-feature:hover { transform: translateY(-3px) !important; box-shadow: 0 24px 50px -18px #ea6a25 !important; }
body.flow .instagram-feature .ig-text { display: grid; gap: 4px; }
body.flow .instagram-feature .ig-text strong { color: #fff !important; font-size: 19px !important; letter-spacing: -.02em; margin: 0 !important; }
body.flow .instagram-feature .ig-text span { color: #ffffffd9 !important; font-size: 13px !important; }
body.flow .instagram-feature .ig-arrow {
  flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: #ffffff !important; color: var(--orange) !important; font-size: 20px !important; font-weight: 700;
}

/* ---------- Project dialog ---------- */
body.flow #detail-dialog {
  width: min(1180px, calc(100vw - 32px)) !important; max-width: none !important; max-height: calc(100svh - 32px) !important;
  padding: 22px 26px 26px !important; border-radius: 28px !important;
  background: var(--g-900) !important; border: 1px solid #ffffff1c !important; color: #fff;
  box-shadow: 0 60px 140px -40px #000 !important;
}
body.flow #detail-dialog::backdrop { background: #05070bcc !important; backdrop-filter: blur(10px); }
body.flow #detail-dialog .dialog-header { display: flex; justify-content: space-between; align-items: center; padding: 0 0 18px !important; border: 0 !important; }
body.flow #detail-dialog .dialog-header img { height: 20px; width: auto; }
body.flow #close-dialog {
  font-size: 0 !important; width: 44px !important; height: 44px !important; padding: 0 !important; border-radius: 50% !important;
  border: 1px solid #ffffff26 !important; background: #ffffff0f !important; color: #fff !important; display: grid !important; place-items: center; cursor: pointer;
  transition: background .25s, border-color .25s;
}
body.flow #close-dialog span { font-size: 24px !important; line-height: 1; }
body.flow #close-dialog:hover { background: var(--blue) !important; border-color: var(--blue) !important; }
.pd { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; align-items: stretch; }
.pd-stage {
  position: relative; border-radius: 22px; overflow: hidden; min-height: 0;
  background: radial-gradient(ellipse at 50% 20%, #2443f026, transparent 70%), var(--g-800);
  border: 1px solid #ffffff12; display: grid; place-items: center; height: min(68svh, 640px);
}
.pd-photo { width: 100%; height: 100%; object-fit: cover; display: block; animation: photoIn .6s cubic-bezier(.16,1,.3,1); }
.pd-device { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 24px; background: none !important; }
.pd-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid #ffffff33; background: #06080fb3; backdrop-filter: blur(10px); color: #fff; font-size: 18px; cursor: pointer;
  transition: background .25s, border-color .25s;
}
.pd-nav:hover { background: var(--blue); border-color: var(--blue); }
.pd-prev { left: 14px; } .pd-next { right: 14px; }
.pd-count {
  position: absolute; left: 14px; bottom: 14px; font-size: 12px; font-weight: 700; letter-spacing: .1em; font-variant-numeric: tabular-nums;
  padding: 6px 11px; border-radius: 999px; background: #06080fb3; backdrop-filter: blur(10px); border: 1px solid #ffffff26;
}
.pd-info { display: flex; flex-direction: column; gap: 16px; padding: 6px 0; min-width: 0; }
.pd-chip {
  align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: #fff; padding: 7px 12px; border-radius: 999px; background: #2443f026; border: 1px solid #2443f066;
}
.pd-info h2 { margin: 0; font-size: clamp(30px, 3.2vw, 46px); line-height: 1; letter-spacing: -.05em; color: #fff; text-wrap: balance; }
.pd-info p { margin: 0; color: #c5cbd5; font-size: 16px; line-height: 1.55; max-width: 46ch; }
.pd-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; margin-top: 6px; }
.pd-thumbs button {
  aspect-ratio: 3 / 4; border-radius: 12px; border: 2px solid transparent; background-size: cover; background-position: center;
  background-color: var(--g-800); cursor: pointer; opacity: .55; transition: opacity .25s, border-color .25s;
}
.pd-screens .pd-thumbs button { aspect-ratio: 1; }
.pd-thumbs button:hover { opacity: .9; }
.pd-thumbs button[aria-current] { opacity: 1; border-color: var(--blue); }
.pd-actions { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-top: 10px; }
.pd-cta {
  display: inline-flex; align-items: center; gap: 12px; padding: 15px 16px 15px 22px; border-radius: 999px;
  background: var(--blue); color: #fff !important; font-weight: 700; font-size: 15px; text-decoration: none;
  box-shadow: 0 14px 34px -14px #2443f0cc; transition: background .25s, transform .3s;
}
.pd-cta b { width: 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--blue); display: grid; place-items: center; font-size: 15px; }
.pd-cta:hover { background: #1a32c8; transform: translateY(-2px); }
.pd-link { color: #9aa3b2 !important; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #ffffff33; }
.pd-link:hover { color: #fff !important; }
@media (max-width: 860px) {
  body.flow #detail-dialog { padding: 16px 16px 20px !important; border-radius: 22px !important; }
  .pd { grid-template-columns: 1fr; gap: 18px; }
  .pd-stage { height: 56svh; border-radius: 18px; }
  .pd-info h2 { font-size: 30px; }
  .pd-info p { font-size: 15px; }
  .pd-thumbs { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .pd-cta { width: 100%; justify-content: space-between; }
}
body.flow #close-dialog { outline: none !important; box-shadow: none !important; position: relative; }
body.flow #close-dialog span { position: static !important; background: none !important; border: 0 !important; width: auto !important; height: auto !important; margin: 0 !important; padding: 0 !important; display: block; transform: none !important; }
body.flow #close-dialog:focus-visible { box-shadow: 0 0 0 3px #2443f088 !important; }
.pd-stage { isolation: isolate; }
.pd-stage::before { content: ""; position: absolute; inset: -40px; z-index: -1; background: var(--bgimg) center / cover no-repeat; filter: blur(34px) brightness(.45) saturate(1.2); }
.pd-photo { object-fit: contain !important; }
.pd-photo { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; max-height: none !important; }
body.flow #close-dialog { display: flex !important; align-items: center !important; justify-content: center !important; line-height: 0 !important; }
body.flow #close-dialog span { line-height: 1 !important; margin-top: -2px !important; }
body.flow #close-dialog svg { display: block; }
.case-rvnwapp .case-cover .case-photo { object-position: 50% 70%; }
/* Founder tabs in signal orange */
body.flow .expertise-tabs [aria-selected="true"] { background: var(--orange) !important; border-color: var(--orange) !important; color: #fff !important; box-shadow: 0 10px 26px -12px #ea6a25cc !important; }
body.flow .expertise-tabs [role="tab"]:not([aria-selected="true"]):hover { border-color: #ea6a2588 !important; color: #fff !important; }
body.flow .expertise-panel { border-left-color: var(--orange) !important; }
body.flow .expertise-panel > span { color: var(--orange) !important; }
.pd-thumbs .is-video { position: relative; background-size: cover !important; background-position: center !important; opacity: .8; }
.pd-thumbs .is-video span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 14px; color: #fff; background: #2443f099; border-radius: 10px; }
video.pd-photo { background: #000; }
.pd-count { top: 14px !important; bottom: auto !important; }
/* Диги voice */
.guide-voice {
  position: absolute; right: 38px; top: 6px; width: 26px; height: 26px; border: 0; border-radius: 50%;
  background: none; color: var(--blue-hi); cursor: pointer; display: grid; place-items: center; padding: 0;
}
.guide-voice:hover { background: #ffffff12; color: #fff; }
.guide-voice .cross { display: none; }
.guide.voice-off .guide-voice { color: #9aa3b2; }
.guide.voice-off .guide-voice .wave { display: none; }
.guide.voice-off .guide-voice .cross { display: block; }
.guide-name { padding-right: 56px; }
.guide.speaking .ai-avatar .ai-eyes { animation: aiTalk .35s ease-in-out infinite alternate !important; }
@keyframes aiTalk { from { opacity: 1; } to { opacity: .45; } }
.guide.speaking .guide-bot { box-shadow: 0 0 0 1px #ffffff2e, 0 0 0 4px #2443f088, 0 0 24px #2443f0aa !important; }
.guide.speaking .guide-voice .wave { animation: aiTalk .5s ease-in-out infinite alternate; }

body.flow .foot-seo { flex-basis: 100%; margin: 10px 0 0; font-size: 12px; line-height: 1.5; color: #6b7483; max-width: 820px; }
body.flow .foot { flex-wrap: wrap; }

@media (max-width: 700px) { .flow-hero .hero-actions { margin-top: auto !important; } }
